Skip to main content
Glama
ross-sec

Kokoro TTS MCP Server

by ross-sec
README.md
<div align="center">

![Ross Technologies Logo](https://github.com/ross-sec/kokoro_mcp_server/raw/main/resources/images/main_logo.png)

### **MCP server for text-to-speech using Kokoro TTS**

[![npm version](https://img.shields.io/npm/v/@ross_tchnologies/kokoro-tts-mcp-server)](https://www.npmjs.com/package/@ross_tchnologies/kokoro-tts-mcp-server)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![GitHub](https://img.shields.io/github/stars/ross-sec/kokoro_mcp_server?style=social)](https://github.com/ross-sec/kokoro_mcp_server)

**100% Local • No Python Required • Female Voice Default**

**[šŸ“¦ NPM Package](https://www.npmjs.com/package/@ross_tchnologies/kokoro-tts-mcp-server)** | **[šŸ™ GitHub Repository](https://github.com/ross-sec/kokoro_mcp_server)** | **[šŸ“š Documentation](https://github.com/ross-sec/kokoro_mcp_server/wiki)**

</div>

---

## Overview

A production-ready MCP server that provides text-to-speech capabilities using the Kokoro TTS model. Features a default female voice (`af_heart`) and runs **100% locally** using native JavaScript, eliminating Python dependencies.

**Built by [Ross Technologies](https://github.com/ross-sec)**  
šŸ“ Beer Sheva, Israel | šŸ“§ [devops.ross@gmail.com](mailto:devops.ross@gmail.com)

## Features

āœ… **100% Local** - No external API calls, complete privacy  
āœ… **Native JavaScript** - Built with TypeScript and Node.js  
āœ… **SSE & Stdio Support** - Multiple transport modes  
āœ… **NPX Ready** - Run directly without installation  
āœ… **Female Voice Default** - Uses `af_heart` voice out of the box  
āœ… **Auto Audio Playback** - Automatically saves and plays generated audio  

## Quick Start

```bash
# Run with npx (no installation)
npx @ross_tchnologies/kokoro-tts-mcp-server

# Or install globally
npm install -g @ross_tchnologies/kokoro-tts-mcp-server
kokoro-tts-mcp
```

## Installation

### NPM

```bash
npm install @ross_tchnologies/kokoro-tts-mcp-server
```

### NPX (No Installation)

```bash
npx @ross_tchnologies/kokoro-tts-mcp-server
```

### Global Installation

```bash
npm install -g @ross_tchnologies/kokoro-tts-mcp-server
```

Visit **[Installation Guide](https://github.com/ross-sec/kokoro_mcp_server/wiki/Installation)** for detailed instructions.

## MCP Client Configuration

Add to your MCP configuration file (e.g., `~/.cursor/mcp.json`):

```json
{
  "mcpServers": {
    "kokoro-tts": {
      "command": "npx",
      "args": ["-y", "@ross_tchnologies/kokoro-tts-mcp-server"]
    }
  }
}
```

See **[Configuration Guide](https://github.com/ross-sec/kokoro_mcp_server/wiki/Configuration)** for more options.

## Usage

### Text to Speech Tool

```json
{
  "name": "text_to_speech",
  "arguments": {
    "text": "Hello, world!",
    "voice": "af_heart",  // optional, default
    "speed": 1.0          // optional, default
  }
}
```

**Available Voices:** `af_heart` (default), `af_bella`, `af_sarah`, and more.

See **[API Reference](https://github.com/ross-sec/kokoro_mcp_server/wiki/API-Reference)** for complete documentation.

## Documentation

šŸ“š **[Full Documentation Wiki](https://github.com/ross-sec/kokoro_mcp_server/wiki)**

**Quick Links:**
- šŸ“– [Installation Guide](https://github.com/ross-sec/kokoro_mcp_server/wiki/Installation)
- šŸš€ [Getting Started](https://github.com/ross-sec/kokoro_mcp_server/wiki/Getting-Started)
- āš™ļø [Configuration](https://github.com/ross-sec/kokoro_mcp_server/wiki/Configuration)
- šŸ“– [API Reference](https://github.com/ross-sec/kokoro_mcp_server/wiki/API-Reference)
- šŸ’» [Examples](https://github.com/ross-sec/kokoro_mcp_server/wiki/Examples)
- šŸ”§ [Troubleshooting](https://github.com/ross-sec/kokoro_mcp_server/wiki/Troubleshooting)
- ā“ [FAQ](https://github.com/ross-sec/kokoro_mcp_server/wiki/FAQ)
- šŸ› ļø [Development Guide](https://github.com/ross-sec/kokoro_mcp_server/wiki/Development-Guide)

## Requirements

- **Node.js** v18 or higher
- No Python or other external dependencies required! šŸŽ‰

## Troubleshooting

- **First run**: Downloads ~300MB model (one-time, takes 2-5 minutes)
- **Audio not playing**: File is saved - check response message for location
- **WSL users**: Copy audio files to Windows Desktop for playback

See **[Troubleshooting Guide](https://github.com/ross-sec/kokoro_mcp_server/wiki/Troubleshooting)** for detailed solutions.

## Contributing

Contributions are welcome! See:
- **[Contributing Guide](https://github.com/ross-sec/kokoro_mcp_server/wiki/Contributing)**
- **[Development Guide](https://github.com/ross-sec/kokoro_mcp_server/wiki/Development-Guide)**

## Links & Resources

- šŸ“¦ **[NPM Package](https://www.npmjs.com/package/@ross_tchnologies/kokoro-tts-mcp-server)** - Install from npm
- šŸ™ **[GitHub Repository](https://github.com/ross-sec/kokoro_mcp_server)** - Source code and issues
- šŸ“š **[Documentation Wiki](https://github.com/ross-sec/kokoro_mcp_server/wiki)** - Complete documentation
- šŸ› **[Report Issues](https://github.com/ross-sec/kokoro_mcp_server/issues)** - Bug reports and feature requests
- šŸ’¬ **[Discussions](https://github.com/ross-sec/kokoro_mcp_server/discussions)** - Community discussions
- šŸ”— **[Model Context Protocol](https://modelcontextprotocol.io)** - Learn about MCP
- šŸ”— **[Kokoro TTS Model](https://github.com/hexgrad/kokoro)** - Underlying TTS engine

## License

MIT License - See [LICENSE](https://github.com/ross-sec/kokoro_mcp_server/blob/main/LICENSE) for details.

Copyright Ā© 2025 [Ross Technologies](https://ross-developers.com). All rights reserved.

---

<div align="center">

**Made with ā¤ļø by Ross Technologies**

[Back to Top](#ross_tchnologieskokoro-tts-mcp-server)

</div>