Mobvoi TTS MCP server

Enables AI to generate natural-sounding speech and clone voices using Mobvoi's text-to-speech APIs with customizable parameters for audio output.
Back to servers
Setup instructions
Provider
Mobvoi
Release date
May 09, 2025
Stats
1 star

Mobvoi TTS MCP server enables interaction with Mobvoi's Text to Speech and Voice Clone APIs. It allows MCP clients like Cursor, Claude Desktop, Cline, and Windsurf to generate speech, clone voices, and more. The server is built on Python and published as a PyPI package.

Prerequisites

Capabilities

The Mobvoi TTS MCP server supports:

  • Voice Clone: Clone voices from URL audio file links or local audio files, returning a speaker ID
  • Speech Synthesis: Generate speech from text using specified speaker IDs with adjustable attributes like speed and volume
  • Voice Broadcasting: Play specified audio files

Client Setup Instructions

Cursor Setup

  1. Go to Cursor → Cursor Settings → MCP
  2. Click "Add new global MCP server"
  3. In the opened mcp.json file, paste:
"MobvoiTTS": {
        "command": "uvx",
        "args": [
          "mobvoi-tts-mcp"
        ],
        "env": {
          "APP_KEY": "<insert-your-APP_KEY-here>",
          "APP_SECRET": "<insert-your-APP_SECRET-here>"
        },
      },

Claude Desktop Setup

  1. Go to Claude Desktop → Settings → Developer
  2. Click "Edit Config" to open claude_desktop_config.json
  3. Paste:
"MobvoiTTS": {
        "command": "uvx",
        "args": [
          "mobvoi-tts-mcp"
        ],
        "env": {
          "APP_KEY": "<insert-your-APP_KEY-here>",
          "APP_SECRET": "<insert-your-APP_SECRET-here>"
        },
      },

Cline Setup

  1. Install Cline extension in VSCode EXTENSIONS
  2. Go to Cline → MCP Servers → Installed
  3. Click "Config MCP Servers" to open cline_mcp_settings.json
  4. Paste:
"MobvoiTTS": {
        "command": "uvx",
        "args": [
          "mobvoi-tts-mcp"
        ],
        "env": {
          "APP_KEY": "<insert-your-APP_KEY-here>",
          "APP_SECRET": "<insert-your-APP_SECRET-here>"
        },
        "transportType": "stdio"
      },

Source Code Testing

To test using source code or perform secondary development:

"MobvoiTTSLocal": {
      "disabled": false,
      "timeout": 60,
      "command": "uv",
      "args": [
        "--directory",
        "<path-to-mobvoi_tts-mcp>/mobvoi_tts_mcp",
        "run",
        "server.py"
      ],
      "env": {
          "APP_KEY": "<insert-your-APP_KEY-here>",
          "APP_SECRET": "<insert-your-APP_SECRET-here>"
      },
      "transportType": "stdio"
    },

Usage Examples

  • Clone a voice: In Cursor agent mode, enter:

    https://tc-nj-backend-pub-cdn.mobvoi.com/subtitles/wav/9e5d439e0e9142966037fb80fe9e0d8e.wav, clone this voice
    
  • Synthesize and play speech: After cloning a voice, prompt:

    Use the sound cloned just now to broadcast: 'Welcome to experience Mobvoi TTS MCP.'
    

Troubleshooting

spawn uvx ENOENT

If you see "MCP Mobvoi TTS: spawn uvx ENOENT":

  1. Find the absolute path with:
    which uvx
    
  2. Update your configuration with the absolute path:
    "command": "/usr/local/bin/uvx"
    

MCP error -32001: Request timed out

For network issues, especially in mainland China, configure an alternative PyPI source:

"MobvoiTTS": {
        ...
        "args": [
          "--index", 
          "https://pypi.tuna.tsinghua.edu.cn/simple",
          "mobvoi-tts-mcp"
        ],
       ...
      },

Unable to synchronize the latest PyPI package

Check if your mirror has synchronized the package:

pip index versions --index-url https://pypi.tuna.tsinghua.edu.cn/simple mobvoi-tts-mcp

Update with no cache:

"MobvoiTTS": {
        ...
        "args": [
          "--upgrade",
          "--no-cache-dir",
          "--index", 
          "https://pypi.tuna.tsinghua.edu.cn/simple",
          "mobvoi-tts-mcp"
        ],
       ...
      },

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "MobvoiTTS" '{"command":"uvx","args":["mobvoi-tts-mcp"],"env":{"APP_KEY":"<insert-your-APP_KEY-here>","APP_SECRET":"<insert-your-APP_SECRET-here>"}}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "MobvoiTTS": {
            "command": "uvx",
            "args": [
                "mobvoi-tts-mcp"
            ],
            "env": {
                "APP_KEY": "<insert-your-APP_KEY-here>",
                "APP_SECRET": "<insert-your-APP_SECRET-here>"
            }
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "MobvoiTTS": {
            "command": "uvx",
            "args": [
                "mobvoi-tts-mcp"
            ],
            "env": {
                "APP_KEY": "<insert-your-APP_KEY-here>",
                "APP_SECRET": "<insert-your-APP_SECRET-here>"
            }
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later