Connect to the Hosted Service
In your client, select remote MCP (Streamable HTTP) and enterhttps://fish.mcp.acedata.cloud/mcp as the server address. Select OAuth, then follow the browser prompts to sign in to Ace Data Cloud and authorize access.
If using an application API key, select a general-purpose application or an application with permissions for Fish TTS, the required voice operations, and task queries on the application management page. Check the allowed APIs and your balance. Set the request header to
Authorization: Bearer <应用 API Key> in the client’s private credential settings. Applications and API Keys
Using an Application Key with Gemini CLI and OpenCode
First, set the environment variableACEDATACLOUD_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 a reference to the variable.
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, and oauth to false. Then set headers.Authorization to Bearer {env:ACEDATACLOUD_API_TOKEN}. OpenCode 1.x configuration
Connect locally via stdio
Install uv, open the local MCP configuration in Claude Desktop’s developer settings, and merge the following entries into your user configuration. Replace the placeholder with your application’s API key, save, and restart the client. Other clients that support stdio can also run theuvx mcp-fish command and pass the key to the process as an environment variable.
Verify the connection and available tools
Open the client’s tool list, find Fish Audio, and first ask the assistant to callfish_get_usage_guide to explain how to select a voice and query synthesis tasks. This query checks whether the client has loaded the tools without submitting a synthesis request.
Example request
Ask the assistant: “First, usefish_list_models to find the voice I specify, then use the returned ID to read: Welcome to this week’s book club. Output an MP3; if a wait 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 its accessible HTTPS URL in reference_audio_url and its verbatim transcript in reference_text, while omitting reference_id. Put the text to be spoken in text. This synthesis does not require creating a public voice.
Before making a request, check the service page for current pricing and availability. Fish Audio service · Speech synthesis API · Voice creation API · Task query API
