Skip to main content

The official Cartesia MCP server

Project description

Cartesia MCP Server

PyPI version Python

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.

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"
      }
    }
  }
}

uvx

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

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.

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: cartesia_mcp-0.1.9.tar.gz
  • Upload date:
  • Size: 7.9 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.9.tar.gz
Algorithm Hash digest
SHA256 bbcfd0298dfcd8d020828032f4195e06875b68570aeefee9f11a4f19ac8a88d5
MD5 78f1ff33eebaa481fe8a820dfd6c7adb
BLAKE2b-256 1c3afce39e086df7fca2fe859ac9b69cc87d68b3c6ba1dbffdb6a752995d0a27

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cartesia_mcp-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 7.8 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 4520cf1796fa16400fbaa2f941bc797d32df376c19cfedc8f39c5670e71af943
MD5 ba3b00f696d8d25a7e650cf7b0b6b368
BLAKE2b-256 2dc94bf1f46a9bdec03aeabd8570fffee70ad80e25616345bef0ef6f41c22569

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