Blabber-MCP is a server that gives large language models a voice by connecting them to OpenAI's Text-to-Speech API. It allows your AI applications to convert text into natural-sounding speech with various voice options, making your AI interactions more engaging and accessible.
To use Blabber-MCP, you need to add its configuration to your Model Context Protocol (MCP) client's settings file. Follow these steps:
mcpServers
object in your MCP settings file (e.g., mcp_settings.json
):{
"mcpServers": {
"blabber-mcp": {
"command": "node",
"args": ["/full/path/to/blabber-mcp/build/index.js"],
"env": {
"OPENAI_API_KEY": "YOUR_OPENAI_API_KEY",
"AUDIO_PLAYER_COMMAND": "xdg-open",
"DEFAULT_TTS_VOICE": "nova"
},
"disabled": false,
"alwaysAllow": []
}
}
}
"YOUR_OPENAI_API_KEY"
with your actual OpenAI API keyindex.js
file in the args
parameterAUDIO_PLAYER_COMMAND
is optional and specifies the command to play audio (options include cvlc
, vlc
, mpv
, ffplay
, afplay
, or xdg-open
). It defaults to cvlc
DEFAULT_TTS_VOICE
is optional and sets your preferred default voice. Options are alloy
, echo
, fable
, onyx
, nova
, and shimmer
. It defaults to nova
Once configured, you can use the text_to_speech
tool through your MCP client.
input
(string, required): The text you want converted to speechvoice
(string, optional): Voice type (alloy
, echo
, fable
, onyx
, nova
, shimmer
)model
(string, optional): Model quality (tts-1
or tts-1-hd
)response_format
(string, optional): Audio format (mp3
, opus
, aac
, flac
)play
(boolean, optional): Set to true
to automatically play the audio after savingTo use the tool, send a request like this from your MCP client:
<use_mcp_tool>
<server_name>blabber-mcp</server_name>
<tool_name>text_to_speech</tool_name>
<arguments>
{
"input": "Hello from Blabber MCP!",
"voice": "shimmer",
"play": true
}
</arguments>
</use_mcp_tool>
The server saves the audio file to the output/
directory within the Blabber-MCP project folder and returns a JSON response:
{
"message": "Audio saved successfully. Playback initiated using command: cvlc",
"filePath": "path/to/speech_1743908694848.mp3",
"format": "mp3",
"voiceUsed": "shimmer"
}
Blabber-MCP offers several customization options:
tts-1
) or high-definition (tts-1-hd
) modelsmp3
, opus
, aac
, or flac
formatTo add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "blabber-mcp" '{"command":"node","args":["/full/path/to/blabber-mcp/build/index.js"],"env":{"OPENAI_API_KEY":"YOUR_OPENAI_API_KEY","AUDIO_PLAYER_COMMAND":"xdg-open","DEFAULT_TTS_VOICE":"nova"},"disabled":false,"alwaysAllow":[]}'
See the official Claude Code MCP documentation for more details.
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.
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": {
"blabber-mcp": {
"command": "node",
"args": [
"/full/path/to/blabber-mcp/build/index.js"
],
"env": {
"OPENAI_API_KEY": "YOUR_OPENAI_API_KEY",
"AUDIO_PLAYER_COMMAND": "xdg-open",
"DEFAULT_TTS_VOICE": "nova"
},
"disabled": false,
"alwaysAllow": []
}
}
}
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.
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.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"blabber-mcp": {
"command": "node",
"args": [
"/full/path/to/blabber-mcp/build/index.js"
],
"env": {
"OPENAI_API_KEY": "YOUR_OPENAI_API_KEY",
"AUDIO_PLAYER_COMMAND": "xdg-open",
"DEFAULT_TTS_VOICE": "nova"
},
"disabled": false,
"alwaysAllow": []
}
}
}
3. Restart Claude Desktop for the changes to take effect