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

Requirements

  • uv — runs the server via uvx with no global install
  • Python 3.13+ (installed automatically by uvx)
  • A Cartesia API key

Setup

Add this to your MCP config. You only need your API key.

Cursor.cursor/mcp.json in your project, or ~/.cursor/mcp.json globally.

Claude DesktopSettings → Developer → Edit Config (claude_desktop_config.json).

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

Restart the client (or refresh MCP in Cursor) and confirm cartesia-mcp is connected.

Try it

Ask your agent things like:

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

Tools

Tool Description
text_to_speech Convert text to audio with a chosen voice and model
list_voices List available voices (optionally filter by language or gender)
get_voice Fetch metadata for a voice by ID
clone_voice Clone a voice from an audio sample
update_voice Update a cloned voice's name or description
delete_voice Delete a cloned voice
infill Generate audio between two existing audio segments
voice_change Re-render audio with a different voice
localize_voice Adapt a voice to another language or dialect

See cartesia_mcp/server.py for parameters and return types.

Testing

Smoke-test all tools (requires CARTESIA_API_KEY):

uv run python scripts/test_all_tools.py

The script creates temporary cloned/localized voices and deletes only those. It does not delete catalog or other existing voices.

Advanced

Output directory

By default, generated audio is written to the server's working directory. To choose a fixed folder, add OUTPUT_DIRECTORY to env:

"env": {
  "CARTESIA_API_KEY": "<your-api-key>",
  "OUTPUT_DIRECTORY": "~/cartesia-output"
}

Local audio files

Tools like infill and voice_change need paths to existing audio files on disk. Pass the full path to each file when prompting your agent.

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.12.tar.gz (7.7 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.12-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cartesia_mcp-0.1.12.tar.gz
  • Upload date:
  • Size: 7.7 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.12.tar.gz
Algorithm Hash digest
SHA256 36a7a5686854b66866d21bb4e5dea285d4081bcd435a8a753a2c94474d0c870c
MD5 c742e62d694a76a0ed0bed5edc184b11
BLAKE2b-256 3022e5e6340b7bb25b369c6a074a4db6b73511a1b3216e9b8439ea6365f33e34

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cartesia_mcp-0.1.12-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.12-py3-none-any.whl
Algorithm Hash digest
SHA256 476bd45ce8d4d8fab5ee102d4107ac522ba28e4ef03311f32232370194dd0d15
MD5 4adaab3c10bc255f584ec558821086c2
BLAKE2b-256 41413de01ca8dd722f99083612d50a56678e2cd7b613ad4303dd6bfa1ef1ab65

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