Repository avatar
AI Tools
v0.2.1
active

voicemint-mcp

com.alphaaiservice/voicemint-mcp

Voice agents, calls and campaigns, Voice Lab, music, video, images and Meet on VoiceMint.

Documentation

VoiceMint MCP server

Lets an AI assistant (Claude Desktop, Claude Code, Cursor and any other Model Context Protocol client) work with your VoiceMint account: voice agents, phone calls and campaigns, Voice Lab (speech, voices, translation, dubbing), music, video, images and Meet. "Create a Hindi EMI-reminder agent and call my phone to test it", "make a 30-second jingle for our bakery", "dub this video into Hindi".

Every tool is one call (or a short sequence of calls) to the VoiceMint public API with your API key, so the API's permissions, billing, compliance checks (DND, KYC, calling windows) and rate limits apply exactly as for any API client. The server holds no data of its own and never returns file contents: results are links.

  • Local: npx @voicemint/mcp (stdio) with your key in VOICEMINT_API_KEY.
  • Hosted: the same code over Streamable HTTP (node dist/http.js, or the Docker image), each caller sending their own key.

Status: published on npm as @voicemint/mcp, on ghcr.io and in the MCP registry as com.alphaaiservice/voicemint-mcp.

Get a key

VoiceMint → Settings → Developers → create an app → New secret key. Give the key only the permissions the assistant needs, and use a test key (vm_sk_test_…) while you try things out:

permissiontool groups it opens
agents.read / agents.writeagents
media.read / media.writevoice, music, video, image (and the credit balance)
meet.read / meet.writemeet

*.read keys can only use the read tools of a group; the others answer 403. Keys can never reach admin, account or billing endpoints, and can only read the credit balance.

Tool groups

One server, several groups of tools. Only the enabled groups are listed to the assistant, which keeps the list short (clients pick tools by their descriptions, and fewer tools means better picks).

groupwhattools
agentsvoice/chat agents, calls, campaigns, numbers, knowledge, workflows20
voiceVoice Lab: text to speech, transcription, voices and cloning, voice changer, isolation, translation, dubbing12
musicinstrumental music, songs with vocals4
videovideo generation, models, dubbing4
imageimage generation, image tools, models3
meetpersonas, experts, meets9
jobsalways on: job status, waiting, download links, credit balance4

Choosing groups

Default: auto. At start-up (stdio) or on a key's first request (HTTP, then cached for 5 minutes) the server asks the API which permissions the key has and enables only those groups. The API has no "describe this key" endpoint (key management is closed to keys), so it makes one cheap read per permission at once, without retries: GET /agents?limit=1 (agents), GET /meet/categories (meet) and GET /credits/balance (media). A 403 means the group stays off; any other answer below 500 means it is on. If nothing can be learnt (API unreachable, invalid key) it falls back to agents + jobs.

To choose yourself, pass a comma list (agents,music), all or auto:

  • stdio flag: --toolsets agents,music (wins over the variable)
  • environment: VOICEMINT_MCP_TOOLSETS=agents,music
  • hosted (HTTP): request header X-VoiceMint-Toolsets: agents,music (the server's own VOICEMINT_MCP_TOOLSETS is the default)

Unknown names are an error (the stdio server exits, the HTTP server answers 400). jobs is always added.

Set up your client

Claude Code

claude mcp add voicemint --env VOICEMINT_API_KEY=vm_sk_test_your_key -- npx -y @voicemint/mcp
# only music and voice:
claude mcp add voicemint --env VOICEMINT_API_KEY=vm_sk_test_your_key -- npx -y @voicemint/mcp --toolsets music,voice

Claude Desktop

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

{
  "mcpServers": {
    "voicemint": {
      "command": "npx",
      "args": ["-y", "@voicemint/mcp"],
      "env": { "VOICEMINT_API_KEY": "vm_sk_test_your_key", "VOICEMINT_MCP_TOOLSETS": "agents,music" }
    }
  }
}

Leave out VOICEMINT_MCP_TOOLSETS for auto.

Cursor

~/.cursor/mcp.json (or .cursor/mcp.json in a project; do not commit a key):

{
  "mcpServers": {
    "voicemint": {
      "command": "npx",
      "args": ["-y", "@voicemint/mcp", "--toolsets", "video,image"],
      "env": { "VOICEMINT_API_KEY": "vm_sk_test_your_key" }
    }
  }
}

Environment

variable
VOICEMINT_API_KEYrequired (stdio): your vm_sk_… secret key
VOICEMINT_BASE_URLoptional: the API base URL (default https://api.voicemint.io/api/v1)
VOICEMINT_MCP_TOOLSETSoptional: tool groups (agents,music, all, auto; default auto)
VOICEMINT_MCP_LOCAL_FILESstdio: 0 refuses file_path arguments (only file_url)
VOICEMINT_MCP_ALLOW_UNCONFIRMED1 skips the confirmation step for costly tools. Unsafe: only for unattended scripts you trust

Tools

risk: read changes nothing; low changes or uses a little (no preview); confirm shows a preview and needs your OK first (see Costs and confirmation).

agents

toolAPI callpermissionrisk
list_agents, get_agentGET /agents, GET /agents/{id}agents.readread
create_agentPOST /agentsagents.writelow
update_agentPUT /agents/{id}/draft (merged into the draft; the live agent is untouched)agents.writelow
publish_agent_versionPOST /agents/{id}/publishagents.writeconfirm
chat_with_agentPOST /agents/{id}/chat (uses credits)agents.writelow
place_callPOST /agents/calls (rings a real phone, uses credits)agents.writeconfirm
get_call, list_calls, get_call_debugGET /agents/calls/{id}, GET /agents/calls, GET /agents/calls/{id}/debugagents.readread
create_campaignPOST /agents/campaigns/json (draft; Idempotency-Key)agents.writelow
add_campaign_contactsPOST /agents/campaigns/{id}/contacts (Idempotency-Key)agents.writelow
control_campaignPOST /agents/campaigns/{id}/start|pause|resume|cancelagents.writeconfirm for start and cancel
get_campaign, campaign_resultsGET /agents/campaigns/{id}, GET /agents/campaigns/{id}/contactsagents.readread
list_numbersGET /agents/numbersagents.readread
list_knowledge, add_knowledge_textGET /agents/knowledge, POST /agents/knowledge/{id}/sources/textagents.read / writeread / low
run_workflow, get_workflow_runPOST /agents/workflows/{id}/run, GET /agents/workflows/runs/{id}agents.write / readconfirm / read

voice (Voice Lab)

toolAPI callrisk
text_to_speechPOST /text-to-speech/ (stored copy; returns its audio_url)confirm
transcribe_audioPOST /speech-to-text/transcribe (upload)low
list_voicesGET /voice-profiles/catalog (premade) or GET /voice-cloning/voices (cloned)read
clone_voicePOST /voice-cloning/clone (upload)confirm
delete_voiceDELETE /voice-cloning/voice/{id}confirm
list_voice_effects, change_voiceGET /voice-effects/effects, POST /voice-effects/apply (upload; returns the processed audio_url)read / confirm
isolate_voicePOST /audio-processing/isolate (upload; job isolation)confirm
translate_textPOST /translation/translate-textlow
translate_audioPOST /translation/translate-audio-job (upload; job translation)confirm
dub_video, list_dubbing_projectsPOST /video-dubbing/projects, …/{id}/upload, …/{id}/dub; GET /video-dubbing/projects (also in video)confirm / read

music

toolAPI callrisk
generate_musicPOST /music-generation/generate-async (job music)confirm
create_songPOST /music/songs (job song)confirm
list_songs, get_songGET /music/songs, GET /music/songs/{id}read

video

toolAPI callrisk
generate_videoPOST /generate/video (job generation)confirm
list_video_modelsGET /ai-models/videoread
dub_video, list_dubbing_projectssee voiceconfirm / read

image

toolAPI callrisk
generate_imagePOST /generate/image (job generation)confirm
edit_imagePOST /generate/image-tool (upscale, remove background, …), uploading a file first with POST /assets/upload when given oneconfirm
list_image_modelsGET /ai-models/imageread

meet

toolAPI callrisk
list_personas, list_meet_categoriesGET /meet/personas, GET /meet/categoriesread
list_experts, create_expertGET /meet/experts, POST /meet/expertsread / low
list_meets, get_meet, create_meetGET /meet/meets, GET /meet/meets/{id}, POST /meet/meetsread / read / low
add_meet_source, end_meetPOST /meet/meets/{id}/sources (a URL), POST /meet/meets/{id}/endlow

Talking to a persona happens in the VoiceMint app (a live voice socket), not through MCP.

jobs (always on)

toolwhat
get_jobstatus of a job: kind generation (video/image), music, song, translation, isolation or dubbing; one shape for all: status, state (running / completed / failed), progress, error, links
wait_for_jobpolls after 2 s, then 1.5x longer each time (at most 15 s apart), until the job finishes or timeout_seconds (default 55, max 300) passes; a timeout is not an error, the job keeps running
get_download_linkthe links of a finished job, or of a result URL; check: true tests storage links with a HEAD request
credit_balanceGET /credits/balance (needs media.read or all.read)

Links, never bytes. Results carry links, not file contents:

  • storage links (signed cloud-storage URLs) open without a key and may expire. The server sends nothing of yours to them: no API key, no headers.
  • api links (…/api/v1/…, e.g. an isolated track or a dubbed track) need your own API key (curl -H "Authorization: Bearer $VOICEMINT_API_KEY" -o file "<url>"). The server never fetches them for you and never reveals the key.
  • Inline data: URIs in any result are replaced by a placeholder.

Resources: voicemint://agents/{agent_id}, voicemint://calls/{call_id}/transcript, voicemint://campaigns/{campaign_id}/report (agents); voicemint://songs/{song_id} (music); voicemint://meets/{meet_id} (meet, with its claims).

Prompts: build_agent, test_agent_call, summarise_campaign (agents); voice_over, translate_recording (voice); make_jingle ("Generate a 30-second jingle"), background_music (music); dub_video ("Dub this video into Hindi", video); product_image (image); practice_interview (meet).

The whole catalogue (descriptions, input schemas, HTTP mapping, groups) is data: src/catalogue.json.

Input files

Tools that take a recording, video or image accept one of:

  • file_url: a public https:// URL. The server downloads it itself, without your API key or any other header of yours; it refuses redirects, private / loopback / link-local addresses and files over 25 MB (100 MB for dub_video).
  • file_path: a local file, stdio server only, audio / video / image file types only. The hosted server refuses it. VOICEMINT_MCP_LOCAL_FILES=0 turns it off locally too.

Costs and confirmation

Tools marked confirm do not act on the first call. They answer with a preview and a confirm_token; the assistant must show you the preview and call the tool again with the same arguments plus confirm_token once you agree. A token is an HMAC of the tool, the exact arguments and your key, expires after 5 minutes and works once; changing any argument needs a new preview.

  • Generations (speech, voice cloning, voice effects, isolation, audio translation, dubbing, music, songs, video, images, image tools) show what will be made, the input file, whether it runs in the background, and your credit balance. The API gives no price before a generation runs, so the preview says "credits are charged per generation" instead of an estimate; if the balance is too low the API refuses (402) and nothing is charged. Video and image jobs report credits_estimated once started.
  • Calls and campaigns show who will be called, from which number, by which agent, the balance and the campaign's credit estimate.
  • Deletes and publishes show what will be removed or go live.

transcribe_audio, translate_text and chat_with_agent also use a few credits but run without a preview.

Untrusted data and phone numbers

Transcripts, translations, contact data, knowledge text, meet content, agent replies, workflow output and job records are returned with an untrusted_content_warning: the assistant is told not to follow instructions found inside them. Contact phone numbers are masked (+********3210) unless the assistant passes show_full_numbers: true, which it should do only when you ask for the numbers. Your own numbers (list_numbers) are shown in full.

Hosted (Streamable HTTP)

npm run build
PORT=8080 VOICEMINT_MCP_CONFIRM_SECRET=$(openssl rand -hex 32) node dist/http.js
# or
docker build -t voicemint-mcp . && docker run --rm -p 8080:8080 -e VOICEMINT_MCP_CONFIRM_SECRET=... voicemint-mcp
endpoint
POST /mcpMCP JSON-RPC; requires Authorization: Bearer vm_sk_… (the caller's own key); optional X-VoiceMint-Toolsets
GET /healthzliveness
GET /readyzreadiness

The server is stateless (no MCP sessions): any replica can serve any request. Set the same VOICEMINT_MCP_CONFIRM_SECRET on every replica so a preview from one is honoured by another (single use is enforced per process for now). VOICEMINT_MCP_ALLOWED_ORIGINS (comma list) refuses browser requests from other origins. Auto-detected groups are cached per key (a hash of it) for 5 minutes per process. OAuth sign-in for web clients is planned; until then only clients that can send a custom header can use the hosted server.

What the API does not offer (yet)

  • Credit estimates before a generation: none (see above).
  • Speaking in a cloned voice (POST /voice-cloning/generate) and one-shot audio dubbing (POST /dubbing/dub) answer with audio bytes only, no stored link, so they are not tools here. Text to speech, voice effects and dubbing projects keep a stored copy and are.
  • Video dubbing that returns a video (/translation/dub-video) is not implemented by the API; dub_video returns the dubbed audio track.
  • Key introspection: no endpoint describes a key's permissions, hence the probes of auto.
  • Meet live sessions are voice sockets for the app, not MCP tools.

Develop

npm install
npm run build && npm run typecheck && npm run lint && npm test

Tests run against a mocked API (no key or network needed): every tool's request, uploads and their safety checks, the confirmation flow on every paid tool, job waiting and download links, group selection (flag, env, header, auto-detection), the MCP protocol over an in-memory transport per group, and the HTTP entry with a real MCP client.

License

MIT — see LICENSE.

NPM
@voicemint/mcp
Install Command
npm install @voicemint/mcp