Mobvoi MCP Server
Project description
Official Mobvoi Model Context Protocol (MCP) server that enables interaction with Mobvoi powerful Text to Speech, Voice Clone APIs. This server allows MCP clients like Cursor, Claude Desktop, Cline , Windsurf and other Client to generate speech, clone voices, and more. The mobvoi-tts-mcp server is built based on Python. Our PyPI package is published at Pypi, you can click on Pypi to view the latest version.
Prerequisite
- python 3.10+;
- Get your APP_KEY and APP_SECRET from Mobvoi Sequence Monkey open platform. New users can claim a free quota.
- Install
uv(Python package manager), install withpip install uvor see theuvrepo for additional install methods.
What can Mobvoi MCP do?
Mobvoi MCP currently supports the following functions:
- Voice Clone: Clone the voice according to the URL audio file link or the local audio file provided by you, and return the speaker ID. You can use this speaker ID to generate speech.
- Speech Synthesis: You can specify the speaker ID to generate speech from the specified text content. In addition, you can also adjust speech attributes such as speech speed and volume. For detailed information, please refer to the documentation of our Mobvoi Sequence Monkey open platform TTS part.
- Voice broadcasting: Play the specified audio file.
Quickstart with Cursor
Go to Cursor -> Cursor Settings -> MCP, click Add new global MCP server, and mcp.json will open, paste the following config content:
"Mobvoi": {
"command": "uvx",
"args": [
"mobvoi-mcp"
],
"env": {
"APP_KEY": "<insert-your-APP_KEY-here>",
"APP_SECRET": "<insert-your-APP_SECRET-here>"
},
},
Quickstart with Claude Desktop
Go to Claude Desktop -> Settings -> Developer, click Edit Config and open claude_desktop_config.json, paste the following config content:
"Mobvoi": {
"command": "uvx",
"args": [
"mobvoi-mcp"
],
"env": {
"APP_KEY": "<insert-your-APP_KEY-here>",
"APP_SECRET": "<insert-your-APP_SECRET-here>"
},
},
Quickstart with Cline
Install Cline extension on VSCode EXTENSIONS, and go to Cline -> MCP Servers -> Installed, click Config MCP Servers and cline_mcp_settings.json will be opened, paste the following config content:
"Mobvoi": {
"command": "uvx",
"args": [
"mobvoi-mcp"
],
"env": {
"APP_KEY": "<insert-your-APP_KEY-here>",
"APP_SECRET": "<insert-your-APP_SECRET-here>"
},
"transportType": "stdio"
},
For MacOS and Linux systems, you can refer to the above for configuration. We haven't tested the Windows system yet.
Source Code Test
If you want to conduct tests based on the source code or perform secondary development based on this repository, you can configure it in the following way:
"MobvoiLocal": {
"disabled": false,
"timeout": 60,
"command": "uv",
"args": [
"--directory",
"<path-to-mobvoi-mcp>/mobvoi_mcp",
"run",
"server.py"
],
"env": {
"APP_KEY": "<insert-your-APP_KEY-here>",
"APP_SECRET": "<insert-your-APP_SECRET-here>"
},
"transportType": "stdio"
},
Take Cline as an example, and the configuration of other clients is similar.
Example usage
- Try cloning a voice from your audio file(local or remote), enter the following content in the Cursor agent mode: "https://tc-nj-backend-pub-cdn.mobvoi.com/subtitles/wav/9e5d439e0e9142966037fb80fe9e0d8e.wav, clone this voice"
- Specify the speaker, synthesize speech from the text and play it aloud. Prompt the model like the following: "Use the sound cloned just now to broadcast: 'Welcome to experience Mobvoi TTS MCP."
- A demonstration video:
Troubleshooting
spawn uvx ENOENT
If you encounter the error "MCP Mobvoi: spawn uvx ENOENT", confirm its absolute path by running this command in your terminal:
which uvx
Once you obtain the absolute path (e.g., /usr/local/bin/uvx), update your configuration to use that path (e.g., "command": "/usr/local/bin/uvx"). This ensures that the correct executable is referenced.
MCP error -32001: Request timed out
If you encounter this error, this indicates that there is a problem with your network. If you are in mainland China, we strongly recommend that you configure extra pypi sources in the following way:
"Mobvoi": {
...
"args": [
"--index",
"https://pypi.tuna.tsinghua.edu.cn/simple",
"mobvoi-mcp"
],
...
},
Note that the extra pypi source needs to be configured at the very front of the args.
Unable to synchronize the latest PyPI package
If you encounter this situation, it may be caused by the following reasons: 1) Network problems; 2) Cache problems; 3) The specified mirror source has not synchronized the mobvoi-mcp package.
If you are using a mirror source, you should first check whether the mobvoi-mcp package is synchronized on the mirror source you are using, in the following way:
pip index versions --index-url https://pypi.tuna.tsinghua.edu.cn/simple mobvoi-mcp
If you can see that the LATEST version number is consistent with that on PyPI, you can use the mirror source to update the latest mobvoi-mcp package. Otherwise, you can only use https://pypi.org/simple for the update. Usually, after a new package is released on PyPI, there will be a delay of dozens of minutes for the mirror source to synchronize.
At the same time, you can refer to the following configuration to update and clear the cache.
"Mobvoi": {
...
"args": [
"--upgrade",
"--no-cache-dir",
"--index",
"https://pypi.tuna.tsinghua.edu.cn/simple",
"mobvoi-mcp"
],
...
},
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mobvoi_mcp-0.0.4.tar.gz.
File metadata
- Download URL: mobvoi_mcp-0.0.4.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37fa3f26694873aa703141a831ab7a085cb4733863cf0ad607e3ebcefb8b82a7
|
|
| MD5 |
f62b4ee512486314f699756d5ab11b04
|
|
| BLAKE2b-256 |
cfbfcf3d9b0a3772bf842a37cf77d67ca4abe5d0936f5aa4d550b59ea73c6127
|
File details
Details for the file mobvoi_mcp-0.0.4-py3-none-any.whl.
File metadata
- Download URL: mobvoi_mcp-0.0.4-py3-none-any.whl
- Upload date:
- Size: 15.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
645811cc24272e716005f9e503728f203d45f37bb463f4cd0b5b899938040be2
|
|
| MD5 |
3935885cf22a20bfc3ab42fe6530a9aa
|
|
| BLAKE2b-256 |
bd4b2d71e88d036b7d670bfb16e6125e1853d6a0b9e126875c2841c35a95fee8
|