{"id":51153066,"url":"https://github.com/ptbsare/ttsstt-mcp-server","last_synced_at":"2026-06-26T08:01:22.944Z","repository":{"id":366063276,"uuid":"1274932311","full_name":"ptbsare/ttsstt-mcp-server","owner":"ptbsare","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-20T04:17:54.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-20T06:08:09.426Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ptbsare.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-20T03:50:40.000Z","updated_at":"2026-06-20T04:17:58.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ptbsare/ttsstt-mcp-server","commit_stats":null,"previous_names":["ptbsare/ttsstt-mcp-server"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/ptbsare/ttsstt-mcp-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptbsare%2Fttsstt-mcp-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptbsare%2Fttsstt-mcp-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptbsare%2Fttsstt-mcp-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptbsare%2Fttsstt-mcp-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ptbsare","download_url":"https://codeload.github.com/ptbsare/ttsstt-mcp-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptbsare%2Fttsstt-mcp-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34808043,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-26T08:01:20.589Z","updated_at":"2026-06-26T08:01:22.939Z","avatar_url":"https://github.com/ptbsare.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TTSSTT MCP Server\n\nA Model Context Protocol (MCP) server that provides Speech-to-Text (STT) and Text-to-Speech (TTS) tools using OpenAI-compatible APIs.\n\n## Features\n\n- **STT (Speech-to-Text)**: Convert audio files to text using OpenAI-compatible STT APIs\n- **TTS (Text-to-Speech)**: Convert text to audio files using OpenAI-compatible TTS APIs\n\n## Quick Start\n\n### Using npx (Recommended)\n\n```bash\nnpx github:ptbsare/ttsstt-mcp-server\n```\n\n### Local Development\n\n```bash\n# Clone the repository\ngit clone https://github.com/ptbsare/ttsstt-mcp-server.git\ncd ttsstt-mcp-server\n\n# Install dependencies\nnpm install\n\n# Build\nnpm run build\n\n# Run\nnpm start\n```\n\n## Environment Variables\n\n### STT Configuration\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `STT_URL` | OpenAI-compatible STT API endpoint URL | (required) |\n| `STT_API_KEY` | API key for STT service | (required) |\n| `STT_MODEL` | STT model name | `whisper-1` |\n| `STT_RESPONSE_FORMAT` | Response format (`json`, `text`, `srt`, `verbose_json`, `vtt`) | `json` |\n\n### TTS Configuration\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `TTS_URL` | OpenAI-compatible TTS API endpoint URL | (required) |\n| `TTS_API_KEY` | API key for TTS service | (required) |\n| `TTS_MODEL` | TTS model name (`tts-1`, `tts-1-hd`, `gpt-4o-mini-tts`) | `tts-1` |\n| `TTS_VOICE` | Voice to use (`alloy`, `echo`, `fable`, `onyx`, `nova`, `shimmer`) | `alloy` |\n| `TTS_SPEED` | Speech speed (0.25 to 4.0) | `1.0` |\n| `TTS_PITCH` | Pitch adjustment | `1.0` |\n| `TTS_OUTPUT_DIR` | Directory to save generated audio files | `./tts_output` |\n\n### Alternative Environment Variables\n\nYou can also use the following prefixed versions:\n- `OPENAI_STT_URL`, `OPENAI_STT_API_KEY`, `OPENAI_STT_MODEL`, `OPENAI_STT_RESPONSE_FORMAT`\n- `OPENAI_TTS_URL`, `OPENAI_TTS_API_KEY`, `OPENAI_TTS_MODEL`, `OPENAI_TTS_VOICE`, `OPENAI_TTS_SPEED`, `OPENAI_TTS_PITCH`, `OPENAI_TTS_OUTPUT_DIR`\n\n## Usage\n\n### Configure MCP Client\n\nAdd to your MCP client configuration (e.g., Claude Desktop, Cursor, VS Code):\n\n```json\n{\n  \"mcpServers\": {\n    \"ttsstt\": {\n      \"command\": \"npx\",\n      \"args\": [\"github:ptbsare/ttsstt-mcp-server\"],\n      \"env\": {\n        \"STT_URL\": \"http://192.168.195.210:10500/v1/audio/transcriptions\",\n        \"STT_API_KEY\": \"your-stt-api-key\",\n        \"STT_MODEL\": \"whisper-1\",\n        \"TTS_URL\": \"http://192.168.195.210:10500/v1/audio/speech\",\n        \"TTS_API_KEY\": \"your-tts-api-key\",\n        \"TTS_MODEL\": \"tts-1\",\n        \"TTS_VOICE\": \"alloy\",\n        \"TTS_OUTPUT_DIR\": \"./audio_output\"\n      }\n    }\n  }\n}\n```\n\n### STT Tool\n\nConvert audio to text:\n\n```json\n{\n  \"tool\": \"stt\",\n  \"arguments\": {\n    \"audio_path\": \"/path/to/audio.mp3\",\n    \"language\": \"zh\"\n  }\n}\n```\n\n**Parameters:**\n- `audio_path` (required): Path to the audio file to transcribe\n- `language` (optional): Language code for transcription (e.g., 'en', 'zh', 'ja')\n\n### TTS Tool\n\nConvert text to audio:\n\n```json\n{\n  \"tool\": \"tts\",\n  \"arguments\": {\n    \"text\": \"Hello, world! This is a test.\",\n    \"voice\": \"nova\",\n    \"speed\": 1.0\n  }\n}\n```\n\n**Parameters:**\n- `text` (required): Text content to convert to speech\n- `voice` (optional): Voice to use (alloy, echo, fable, onyx, nova, shimmer)\n- `speed` (optional): Speech speed (0.25 to 4.0)\n- `pitch` (optional): Pitch adjustment\n\n**Returns:** Path to the generated audio file\n\n## API Compatibility\n\nThis server is compatible with OpenAI's Audio API format:\n\n- **STT**: Uses `/v1/audio/transcriptions` endpoint with multipart/form-data\n- **TTS**: Uses `/v1/audio/speech` endpoint with JSON body\n\n## Testing\n\nTest server with the provided test endpoint:\n\n```bash\nSTT_URL=http://192.168.195.210:10500/v1/audio/transcriptions \\\nSTT_API_KEY=test \\\nTTS_URL=http://192.168.195.210:10500/v1/audio/speech \\\nTTS_API_KEY=test \\\nTTS_OUTPUT_DIR=/tmp/tts_output \\\nnpm run build \u0026\u0026 npm start\n```\n\n## Project Structure\n\n```\nttsstt-mcp-server/\n├── src/\n│   └── index.ts          # Main server code\n├── dist/                 # Compiled JavaScript\n├── package.json\n├── tsconfig.json\n├── LICENSE\n└── README.md\n```\n\n## Dependencies\n\n- `@modelcontextprotocol/sdk` - MCP SDK\n- `axios` - HTTP client\n- `zod` - Schema validation\n- `form-data` - Multipart form data for STT\n\n## License\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License\nalong with this program.  If not, see \u003chttps://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptbsare%2Fttsstt-mcp-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fptbsare%2Fttsstt-mcp-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptbsare%2Fttsstt-mcp-server/lists"}