FlowSpeech MCP Server
FlowSpeech MCP Server lets MCP clients generate and save FlowSpeech text-to-speech audio, including two-speaker dialogue, and inspect available voices, with README-documented job recovery and quota helpers.
Convert text to speech with a selectable voice and optional output path, saving a local WAV file.
Generate two-speaker dialogue using
Speaker1:andSpeaker2:labels with separate voices.List available voices, including descriptions and gender, with optional
male/female/allfiltering.Per the README, also generate local request IDs, check quota, and look up job status for recovery.
README notes generation in 0.2.1 requires a caller-retained
request_id, though the provided schema does not show it.Supports local output configuration, timeouts, trusted API base URL, result validation, atomic no-overwrite saving, and credential-free audio downloads.
FlowSpeech MCP Server
0.2.1 Security Update
Read-only tools and returned job errors reject the configured API key in diagnostic codes. Returned job errors contain only the validated code, not remote messages or extra fields. Recovery IDs and successful result links remain available.
Use FlowSpeech speech generation from an MCP client. Version 0.2.1 uses the public API v1: create a job, wait for completion, download the WAV, and save it locally.
Related MCP server: TTS-MCP
Requirements
Node.js 20.3 or newer.
A FlowSpeech developer API key from API settings.
Active paid Basic, Pro or Scale API access for generation. Trials do not include API access; generated speech consumes account credits.
Keep keys in your MCP client's local environment or secret manager, not in prompts or public configuration files.
Configuration
Set FLOWSPEECH_API_KEY in the environment used to launch your MCP client. A stdio configuration is:
{
"mcpServers": {
"flowspeech": {
"command": "npx",
"args": ["-y", "mcp-flowspeech-server@0.2.1"]
}
}
}The MCP client must pass the key to its child process. Clients which do not inherit environment variables need a private env entry or their own secret configuration.
Variable | Meaning | Default |
| Required developer key | None |
| Local output directory; |
|
| Total operation deadline, at most 7200000 ms |
|
| Trusted API origin; never use an untrusted key recipient |
|
HTTP is allowed only for loopback test servers. Audio downloads never include the API key. Redirects are rejected, and audio downloads are limited to 100 MiB.
Tools
Tool | Arguments | Result |
| None; no API key needed | Fresh UUID generated locally without network access |
| Required | Local WAV path, job ID, request ID and usage |
| Required labelled | Local WAV path and recovery IDs |
| Optional | Current authenticated voice catalog |
| None | Available, remaining and reserved credits |
| Exactly one UUID: | Current job status and result; never creates work |
Call flowspeech_new_request_id first and retain its request_id before invoking
either generation tool. Never use a fresh UUID merely because a call was interrupted.
All tools reject unknown fields and incorrect argument types at runtime.
Model, source, speed and format options are unsupported. Output paths are validated
and preflighted before paid submission; the final write still uses atomic
no-overwrite protection in case another process creates the file meanwhile.
Two-speaker input uses one label per turn. Continuation lines belong to the preceding speaker:
Speaker1: Welcome.[pause:2s]Let's begin.
Speaker2: Thanks for inviting me.
Speaker1: What should we cover first?Output is 24 kHz, mono, 16-bit PCM WAV. The client validates all result fields
(url, mimeType, sampleRate, channels, bitsPerSample, access),
usage counters, UUID correlation, RIFF length, chunk boundaries and padding,
PCM format, and nonempty sample-aligned data before saving. Existing output files
are never overwritten. Anyone holding a result URL can download it, so keep job
results and recordings private when appropriate.
Recovery and migration
Version 0.1.0 called the retired synchronous endpoint. Upgrade the npm package and
restart your MCP client. All API tools require a developer key, including voice
listing; only flowspeech_new_request_id is entirely local. All five existing
tool names remain available.
Breaking change in 0.2.0: both generation tools now require request_id;
automatic UUID creation inside a blocking generation call has been removed.
The TypeScript client's generate(input, requestId, signal?) likewise requires a
caller-known UUID. UUIDs are normalized to lowercase. The client rejects
responses whose request or job identity does not match the requested operation.
The server submits { "input": ... } with a UUID idempotency key, polls no faster
than five seconds (including status retries), honors a longer Retry-After,
and downloads result.url. A received cooldown still applies if reading the
response body fails. It does not expect an API Base64 response. Transient API
retries preserve the exact request ID and body, with at most five attempts per
API request. Redirects and size-validation failures are not retried.
Recovery workflow:
Call
flowspeech_new_request_idand retain the returned UUID.Pass that UUID as
request_idto generation with the intended text and voices.After a timeout or cancellation, call
flowspeech_get_jobwith{"request_id":"YOUR_RETAINED_UUID"}. If a job ID was already returned,{"job_id":"YOUR_JOB_UUID"}is also supported.While queued, running, merging or settling, wait at least five seconds between status calls. On success, use the existing
result.urlfor a credential-free download. Do not request another recording to retry a download.If lookup returns 404, retry the original generation with the same UUID and unchanged text and voices. To retry local saving through MCP, replay that same request with an unused output path; idempotency prevents new generation.
Caller cancellation is passed to HTTP requests, response reads and polling waits.
It never sends a server-side cancellation request. MCP clients may time out
earlier than FLOWSPEECH_TIMEOUT_MS (the SDK default is 60 seconds); configure
their timeout as appropriate. Cancelled MCP requests may not receive a final
error response, which is why retaining the UUID before submission is required.
A deleted success result has no downloadable audio. A terminal failed/cancelled
job requires a new UUID only when intentionally requesting a new attempt.
Development and tests
npm ci --ignore-scripts
npm test
npm run test:packedTests cover mocked v1 contracts, real WAV fixtures and a loopback HTTP server exercised through the built MCP stdio process. Packed tests rebuild the tarball, inspect its members and credentials patterns, compare packaged bytes with local files, and rerun the client and stdio suites against the extracted package. They never call paid production generation. Node 20 and 22 CI run both suites. See CHANGELOG.md and the public API documentation.
License
MIT
Available Tools
6 toolsflowspeech_get_jobA
Read an existing job by job UUID or caller-known request UUID without creating a recording. Supply exactly one ID.
Inputs: job_id, request_id.
flowspeech_list_voicesC
Retrieve the current voice catalog from FlowSpeech.
Inputs: gender.
flowspeech_new_request_idA
Generate a fresh request UUID locally, without network access or an API key. Keep it before starting one recording.
Inputs: no named parameters.
flowspeech_quotaA
Read available, remaining and reserved API credits.
Inputs: no named parameters.
flowspeech_ttsA
Generate a WAV recording with FlowSpeech. Requires a caller-known request UUID, an API key and paid API access; consumes account credits.
Inputs: text (required), request_id (required), voice, output_path.
flowspeech_tts_multiA
Generate a two-speaker WAV recording with a caller-known request UUID. Each turn starts with Speaker1: or Speaker2:. Consumes account credits.
Inputs: text (required), request_id (required), voice_a, voice_b, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct role: single-speaker TTS, two-speaker TTS, voice catalog, quota, job lookup, and local request-ID generation. The main potential overlap between tts and tts_multi is resolved by descriptions specifying single- versus two-speaker output.
All tools share the flowspeech_ prefix and lowercase snake_case, making them predictable. The only minor inconsistency is that some names are verb-led (list_voices, get_job) while others are noun/acronym-led (tts, quota, new_request_id).
Six tools is well-scoped for a focused TTS API surface. Each tool appears to serve a distinct necessary purpose without obvious redundancy.
The surface covers the core workflow: request-ID creation, single- and multi-speaker synthesis, voice discovery, quota checking, and job status lookup. Minor gaps may exist around job listing/cancellation or explicit audio retrieval, but the essential lifecycle is represented.
Maintenance
Related MCP Connectors
AI text-to-speech, multi-speaker dialogues, and audiobooks over remote Streamable HTTP MCP.
1MCP server for Text-to-Speech
Hosted text-to-speech MCP server: 66 voices in 9 languages, long-form narration, podcasts.
MCP server exposing the AceDataCloud Fish Audio API (text-to-speech with voice conditioning)
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that provides text-to-speech capabilities using the Kokoro TTS model, offering multiple voice options and customizable speech parameters.642MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that integrates high-quality text-to-speech capabilities with Claude Desktop and other MCP-compatible clients, supporting multiple voice options and audio formats.1MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that enables AI models to generate and play high-quality text-to-speech audio through your device's native audio system using Rime's voice synthesis API.127-

ElevenLabs MCP Serverofficial
AlicenseBqualityFmaintenanceAn official Model Context Protocol (MCP) server that enables AI clients to interact with ElevenLabs' Text to Speech and audio processing APIs, allowing for speech generation, voice cloning, audio transcription, and other audio-related tasks.271,558MIT