> ## Documentation Index
> Fetch the complete documentation index at: https://docs.acedata.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Fish Audio MCP integration guide

> fish MCP server integration

Fish Audio MCP can synthesize speech from text using an existing voice or a reference recording for the current synthesis. To reuse a voice over time, you can also create a public voice separately.

## Connect to the Hosted Service

In your client, select remote MCP (Streamable HTTP) and enter `https://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.

| Client | How to connect |
| - | - |
| Claude / Claude Desktop | Under Customize → Connectors, add a custom connector, paste the server address, and sign in. |
| Claude Code | Run `claude mcp add --transport http --scope user fish https://fish.mcp.acedata.cloud/mcp`, then open `/mcp` within the session to 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 a new HTTP server in the MCP settings, enter the address, and sign in when prompted during connection. |
| 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 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 &lt;应用 API Key>` in the client's private credential settings. [Applications and API Keys](https://platform.acedata.cloud/console/applications)

### Using 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 a reference to the variable.

| 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 use `gemini mcp list` to check. |
| 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, and `oauth` to `false`. Then set `headers.Authorization` to `Bearer {env:ACEDATACLOUD_API_TOKEN}`. [OpenCode 1.x configuration](https://opencode.ai/v1/docs/mcp-servers/)

## 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 the `uvx mcp-fish` command and pass the key to the process as an environment variable.

```json theme={null}
{
  "mcpServers": {
    "fish": {
      "command": "uvx",
      "args": [
        "mcp-fish"
      ],
      "env": {
        "ACEDATACLOUD_API_TOKEN": "YOUR_API_KEY"
      }
    }
  }
}
```

The local process still calls the Ace Data Cloud API. Store your key in your personal client configuration or a credential manager. [mcp-fish package](https://pypi.org/project/mcp-fish/)

## Verify the connection and available tools

Open the client's tool list, find Fish Audio, and first ask the assistant to call `fish_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.

| Purpose | Tool | Usage |
| - | - | - |
| Synthesize speech | `fish_generate_audio` | Enter the text to be read aloud in `text`. When using an existing voice, pass `reference_id`. |
| 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 your account. |
| Create a public voice | `fish_create_model` | Pass `title` and the reference recording URL `voices` only if you have authorization to publish them publicly. Others can discover and use the resulting voice. |
| 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. |

## Example request

Ask the assistant: "First, use `fish_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](https://platform.acedata.cloud/services/fish) · [Speech synthesis API](https://platform.acedata.cloud/documents/fish-tts) · [Voice creation API](https://platform.acedata.cloud/documents/fish-model) · [Task query API](https://platform.acedata.cloud/documents/fish-tasks)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.