Fish Audio MCP Integration Guide
Fish Audio MCP can synthesize text into speech, using an existing voice or referencing a recording for the current synthesis. To reuse the same voice over the long term, you can also create a public voice separately.
¶ Connect to the hosted service
Select remote MCP (Streamable HTTP) in the client and enter https://fish.mcp.acedata.cloud/mcp as the server address. After selecting OAuth, follow the browser prompts to log in to Ace Data Cloud and authorize access.
| Client | How to connect |
|---|---|
| Claude / Claude Desktop | Add a custom connector under “Customize → Connectors”, paste the server address, and log in. |
| Claude Code | Run claude mcp add --transport http --scope user fish https://fish.mcp.acedata.cloud/mcp, then open /mcp in the session, select the server, and complete authorization. |
| Codex CLI | Run codex mcp add fish --url https://fish.mcp.acedata.cloud/mcp, then run codex mcp login fish. |
| Cursor | Create an HTTP server in MCP settings, enter the address, and log in as prompted when connecting. |
| VS Code | Run MCP: Add Server from the command palette, select HTTP and enter the address, then use MCP: List Servers to check the status. |
If using an application API Key, select a general-purpose application or an application with Fish TTS, the required voice operation, and task query permissions on the application management page, and check the allowed APIs and balance. In the client’s private credential settings, set the request header to Authorization: Bearer <application API Key>. Applications and API Keys
¶ Use an application key with Gemini CLI and OpenCode
First, set the environment variable ACEDATACLOUD_API_TOKEN to the application API Key in the terminal where you launch the client. The following commands use macOS or Linux shell quoting and save the variable reference.
| Client | How to connect |
|---|---|
| Gemini CLI | Run gemini mcp add --scope user --transport http fish https://fish.mcp.acedata.cloud/mcp --header 'Authorization: Bearer ${ACEDATACLOUD_API_TOKEN}', then check with gemini mcp list. |
| OpenCode 2.x | Run opencode mcp add fish --global --url https://fish.mcp.acedata.cloud/mcp --header 'Authorization=Bearer {env:ACEDATACLOUD_API_TOKEN}', then run opencode reload and opencode mcp list. |
For OpenCode 1.x, add a service named fish to the mcp object in your personal opencode.json, set type to remote, url to the address above, oauth to false, and headers.Authorization to Bearer {env:ACEDATACLOUD_API_TOKEN}. OpenCode 1.x configuration
¶ Connect locally through stdio
Install uv, open the local MCP configuration in Claude Desktop’s developer settings, and merge the following entry into the user configuration. Replace the placeholder with the application API Key, save, and restart the client. Other clients that support stdio can also run the uvx mcp-fish command and pass the key to the process as an environment variable.
{
"mcpServers": {
"fish": {
"command": "uvx",
"args": [
"mcp-fish"
],
"env": {
"ACEDATACLOUD_API_TOKEN": "YOUR_API_KEY"
}
}
}
}
The local process still calls the Ace Data Cloud API. Keep the key in your personal client configuration or credential manager. mcp-fish package
¶ Verify the connection and available tools
Open the client’s tool list, find Fish Audio, and first have the assistant call fish_get_usage_guide and explain how to select a voice and query synthesis tasks. This query can check whether the client has loaded the tools without submitting an operational request.
| Purpose | Tool | Usage |
|---|---|---|
| Synthesize speech | fish_generate_audio |
Enter the text to be read aloud in text. Pass reference_id when using an existing voice. |
| Find voices | fish_list_models, fish_get_model |
Find voices by title or view details by ID. Use self=true to view voices saved in the current account. |
| Create a public voice | fish_create_model |
Pass title and the reference recording URLs in voices only when authorized to publish them publicly. The resulting voice can be discovered and used by others. |
| Query tasks | fish_get_task, fish_get_tasks_batch |
Query synthesis results using task_id or task_ids. |
| View parameters | fish_get_usage_guide |
View descriptions of speech synthesis and audio output formats. |
¶ Usage example
Ask the assistant: “First use fish_list_models to find the voice I specify, and use the returned ID to read aloud: Welcome to this week’s book club. Output an MP3; if waiting is required, query the original task and give me the audio URL.”
If you only want to use an authorized reference audio clip for this reading, put the accessible HTTPS recording URL in reference_audio_url and the recording’s verbatim transcript in reference_text, while omitting reference_id. The target text still goes in text. There is no need to create a public voice for this synthesis.
Before making an actual call, you can check current pricing and availability on the service page. Fish Audio service · Speech synthesis API · Create voice API · Task query API
