Skip to main content

The official Cartesia MCP server

Project description

Cartesia MCP Server

PyPI version

The Cartesia MCP server exposes Cartesia APIs over the Model Context Protocol (MCP) so clients such as Cursor, Claude Desktop, and OpenAI Agents can list voices, run TTS, clone voices, infill audio, and more—without one-off scripts.

Documentation: Cartesia docs — MCP (overview and links back to this README).

Requirements

Installation

pip

pip install cartesia-mcp
which cartesia-mcp   # copy absolute path for MCP config below

uv (recommended for ephemeral runs)

If you use uv, you can run the published package without a global install:

uvx cartesia-mcp

Use which uvx or command -v uvx if your MCP client needs an absolute path to uvx. Some clients invoke MCP via command + args (see Cursor).

Environment

Variable Required Description
CARTESIA_API_KEY Yes Your Cartesia API key
OUTPUT_DIRECTORY No Directory for generated audio files (defaults to .)

Claude Desktop integration

Edit Settings → Developer → Edit Config (claude_desktop_config.json).

Use either the installed executable (from pip install) or uvx:

Installed cartesia-mcp

{
  "mcpServers": {
    "cartesia-mcp": {
      "command": "/absolute/path/to/cartesia-mcp",
      "env": {
        "CARTESIA_API_KEY": "<your-api-key>",
        "OUTPUT_DIRECTORY": "/absolute/path/to/output"
      }
    }
  }
}

Omit OUTPUT_DIRECTORY to write files to the process working directory.

uvx

{
  "mcpServers": {
    "cartesia-mcp": {
      "command": "uvx",
      "args": ["cartesia-mcp"],
      "env": {
        "CARTESIA_API_KEY": "<your-api-key>"
      }
    }
  }
}

Try asking Claude to…

  • List all available Cartesia voices
  • Convert text to audio with a chosen voice
  • Localize an existing voice into another language
  • Infill audio between two segments (provide absolute paths to audio files)
  • Change an audio file to use a different voice

Cursor integration

Create .cursor/mcp.json in your project or ~/.cursor/mcp.json globally. You can use the same shapes as Claude Desktop (command pointing at the installed binary, or uvx + args).

Tools

The server registers MCP tools for TTS (text_to_speech), voice listing and management (list_voices, get_voice, clone_voice, etc.), infill, voice change, and localize voice. See cartesia_mcp/server.py for the authoritative list and parameters.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cartesia_mcp-0.1.8.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cartesia_mcp-0.1.8-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file cartesia_mcp-0.1.8.tar.gz.

File metadata

  • Download URL: cartesia_mcp-0.1.8.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cartesia_mcp-0.1.8.tar.gz
Algorithm Hash digest
SHA256 ceb30ef2d319d0460af83f8785157211f01b6e54b6074cd49893f29c91028c00
MD5 b88a6733cd8a89fcb04638a47b86532e
BLAKE2b-256 8597db43c375c9a395d3751810ab82a3d1f7ab62a5f6b7df9656352a3e6cab87

See more details on using hashes here.

File details

Details for the file cartesia_mcp-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: cartesia_mcp-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for cartesia_mcp-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 9749117532adc9aab21a9fba2c253c826412cf43190b16f04d68cd47647727d0
MD5 3ccf67a8e34f1c2c3a99d4e9cea3a3e0
BLAKE2b-256 895e1d4fb2e1ed315911101af806a4ef755996fbb14844c86b5be9b43574ed96

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page