Kokoro

v1.0.0Communicationstable

TTS toolkit built on Kokoro-82M with librosa audio enhancement, MCP server for Claude/Cursor, CLI & Python API. Free & open-source for YouTube creators.

apiclaudeclaude-desktopclikokoro-82m
Share:
10
Stars
0
Downloads
0
Weekly
0/5

What is Kokoro?

Kokoro is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to tts toolkit built on kokoro-82m with librosa audio enhancement, mcp server for claude/cursor, cli & python api. free & open-source for youtube creators.

TTS toolkit built on Kokoro-82M with librosa audio enhancement, MCP server for Claude/Cursor, CLI & Python API. Free & open-source for YouTube creators.

This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • TTS toolkit built on Kokoro-82M with librosa audio enhanceme

Use Cases

Convert text to speech using the Kokoro-82M model with audio enhancement.
Use free, open-source TTS for YouTube content creation.
Access TTS through CLI, Python API, or Claude Desktop integration.
aparsoft

Maintainer

LicenseApache-2.0
Languagepython
Versionv1.0.0
UpdatedMay 20, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx kokoro

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Kokoro

Kokoro MCP Server brings the Kokoro-82M text-to-speech model into Claude Desktop and other MCP clients, enabling AI-assisted voiceover generation with librosa-based audio enhancement. It is free, open-source, and designed for YouTube creators and developers who need high-quality speech synthesis through a simple natural language interface.

Prerequisites

  • Python 3.9+ with pip installed
  • espeak-ng and ffmpeg installed (brew install espeak ffmpeg on macOS; apt-get install espeak-ng ffmpeg on Ubuntu)
  • libsndfile1 installed (Linux: apt-get install libsndfile1)
  • Claude Desktop application installed
  • Git to clone the repository
1

Install system dependencies

Install the audio libraries required by Kokoro's librosa audio enhancement pipeline. On macOS use Homebrew; on Ubuntu/Debian use apt-get.

# macOS
brew install espeak ffmpeg

# Ubuntu/Debian
sudo apt-get install espeak-ng ffmpeg libsndfile1
2

Clone the repository and create a virtual environment

Clone the Kokoro MCP Server repository from GitHub and set up an isolated Python environment to avoid dependency conflicts.

git clone https://github.com/aparsoft/kokoro-mcp-server.git
cd kokoro-mcp-server
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
3

Install the package with MCP and CLI extras

Install the complete package including the MCP server module and CLI tool. The [mcp,cli] extras are the minimum needed for Claude Desktop integration.

pip install -e ".[mcp,cli]"

# Or install the full suite including the web UI:
pip install -e ".[complete]"
4

Configure environment variables

Create a .env file in the project directory to set the default voice, speed, and audio enhancement options. These values are used by the MCP server at startup.

TTS_VOICE=am_michael
TTS_SPEED=1.0
TTS_ENHANCE_AUDIO=true
TTS_SAMPLE_RATE=24000
TTS_TRIM_SILENCE=true
TTS_TRIM_DB=20.0
TTS_FADE_DURATION=0.1
LOG_LEVEL=INFO
5

Find the virtual environment Python path

Claude Desktop requires an absolute path to the Python binary inside the virtual environment. Record this path before editing the config file.

which python  # Run with the venv activated
# Example output: /Users/you/kokoro-mcp-server/venv/bin/python
6

Add the server to Claude Desktop configuration

Edit claude_desktop_config.json to register the Kokoro MCP server. Replace the command value with the absolute Python path you recorded in the previous step.

{
  "mcpServers": {
    "aparsoft-tts": {
      "command": "/absolute/path/to/venv/bin/python",
      "args": ["-m", "aparsoft_tts.mcp_server"]
    }
  }
}
7

Restart Claude Desktop and verify

Restart Claude Desktop (Cmd+R on macOS). Open a new conversation and ask Claude to list available voices to confirm the MCP server is connected.

Kokoro Examples

Client configuration

Minimal claude_desktop_config.json entry for the Kokoro MCP server using the virtual environment Python binary.

{
  "mcpServers": {
    "aparsoft-tts": {
      "command": "/Users/you/kokoro-mcp-server/venv/bin/python",
      "args": ["-m", "aparsoft_tts.mcp_server"]
    }
  }
}

Prompts to try

Sample natural language prompts to use with the Kokoro MCP server in Claude Desktop.

- "List all available TTS voices"
- "Generate speech for 'Welcome to my channel' using am_michael voice and save to intro.wav"
- "Create voiceovers for these three segments: 'Intro', 'Main content', 'Outro' at 1.2x speed"
- "Process video_script.txt and generate a complete voiceover file"

Troubleshooting Kokoro

ImportError or ModuleNotFoundError when the MCP server starts

Ensure the venv is activated and the package was installed with pip install -e ".[mcp,cli]". Confirm the command in claude_desktop_config.json points to the Python binary inside the venv, not the system Python.

espeak or ffmpeg not found errors during audio generation

Install the required system packages (brew install espeak ffmpeg on macOS or sudo apt-get install espeak-ng ffmpeg libsndfile1 on Ubuntu). These must be on the system PATH visible to the Python process.

Claude Desktop does not show the TTS tools

Restart Claude Desktop fully after editing the config. Check the Logs section in Claude Desktop for MCP server errors. Verify the absolute path in the config file is correct by running it directly in a terminal.

Frequently Asked Questions about Kokoro

What is Kokoro?

Kokoro is a Model Context Protocol (MCP) server that tts toolkit built on kokoro-82m with librosa audio enhancement, mcp server for claude/cursor, cli & python api. free & open-source for youtube creators. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Kokoro?

Follow the installation instructions on the Kokoro GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Kokoro?

Kokoro works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Kokoro free to use?

Yes, Kokoro is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Communication MCP Servers

Explore all communication servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "kokoro": { "command": "npx", "args": ["-y", "kokoro"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Kokoro?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides