
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 inVOICEMINT_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 ascom.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:
| permission | tool groups it opens |
|---|---|
agents.read / agents.write | agents |
media.read / media.write | voice, music, video, image (and the credit balance) |
meet.read / meet.write | meet |
*.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).
| group | what | tools |
|---|---|---|
agents | voice/chat agents, calls, campaigns, numbers, knowledge, workflows | 20 |
voice | Voice Lab: text to speech, transcription, voices and cloning, voice changer, isolation, translation, dubbing | 12 |
music | instrumental music, songs with vocals | 4 |
video | video generation, models, dubbing | 4 |
image | image generation, image tools, models | 3 |
meet | personas, experts, meets | 9 |
jobs | always on: job status, waiting, download links, credit balance | 4 |
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 ownVOICEMINT_MCP_TOOLSETSis 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_KEY | required (stdio): your vm_sk_… secret key |
VOICEMINT_BASE_URL | optional: the API base URL (default https://api.voicemint.io/api/v1) |
VOICEMINT_MCP_TOOLSETS | optional: tool groups (agents,music, all, auto; default auto) |
VOICEMINT_MCP_LOCAL_FILES | stdio: 0 refuses file_path arguments (only file_url) |
VOICEMINT_MCP_ALLOW_UNCONFIRMED | 1 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
| tool | API call | permission | risk |
|---|---|---|---|
list_agents, get_agent | GET /agents, GET /agents/{id} | agents.read | read |
create_agent | POST /agents | agents.write | low |
update_agent | PUT /agents/{id}/draft (merged into the draft; the live agent is untouched) | agents.write | low |
publish_agent_version | POST /agents/{id}/publish | agents.write | confirm |
chat_with_agent | POST /agents/{id}/chat (uses credits) | agents.write | low |
place_call | POST /agents/calls (rings a real phone, uses credits) | agents.write | confirm |
get_call, list_calls, get_call_debug | GET /agents/calls/{id}, GET /agents/calls, GET /agents/calls/{id}/debug | agents.read | read |
create_campaign | POST /agents/campaigns/json (draft; Idempotency-Key) | agents.write | low |
add_campaign_contacts | POST /agents/campaigns/{id}/contacts (Idempotency-Key) | agents.write | low |
control_campaign | POST /agents/campaigns/{id}/start|pause|resume|cancel | agents.write | confirm for start and cancel |
get_campaign, campaign_results | GET /agents/campaigns/{id}, GET /agents/campaigns/{id}/contacts | agents.read | read |
list_numbers | GET /agents/numbers | agents.read | read |
list_knowledge, add_knowledge_text | GET /agents/knowledge, POST /agents/knowledge/{id}/sources/text | agents.read / write | read / low |
run_workflow, get_workflow_run | POST /agents/workflows/{id}/run, GET /agents/workflows/runs/{id} | agents.write / read | confirm / read |
voice (Voice Lab)
| tool | API call | risk |
|---|---|---|
text_to_speech | POST /text-to-speech/ (stored copy; returns its audio_url) | confirm |
transcribe_audio | POST /speech-to-text/transcribe (upload) | low |
list_voices | GET /voice-profiles/catalog (premade) or GET /voice-cloning/voices (cloned) | read |
clone_voice | POST /voice-cloning/clone (upload) | confirm |
delete_voice | DELETE /voice-cloning/voice/{id} | confirm |
list_voice_effects, change_voice | GET /voice-effects/effects, POST /voice-effects/apply (upload; returns the processed audio_url) | read / confirm |
isolate_voice | POST /audio-processing/isolate (upload; job isolation) | confirm |
translate_text | POST /translation/translate-text | low |
translate_audio | POST /translation/translate-audio-job (upload; job translation) | confirm |
dub_video, list_dubbing_projects | POST /video-dubbing/projects, …/{id}/upload, …/{id}/dub; GET /video-dubbing/projects (also in video) | confirm / read |
music
| tool | API call | risk |
|---|---|---|
generate_music | POST /music-generation/generate-async (job music) | confirm |
create_song | POST /music/songs (job song) | confirm |
list_songs, get_song | GET /music/songs, GET /music/songs/{id} | read |
video
| tool | API call | risk |
|---|---|---|
generate_video | POST /generate/video (job generation) | confirm |
list_video_models | GET /ai-models/video | read |
dub_video, list_dubbing_projects | see voice | confirm / read |
image
| tool | API call | risk |
|---|---|---|
generate_image | POST /generate/image (job generation) | confirm |
edit_image | POST /generate/image-tool (upscale, remove background, …), uploading a file first with POST /assets/upload when given one | confirm |
list_image_models | GET /ai-models/image | read |
meet
| tool | API call | risk |
|---|---|---|
list_personas, list_meet_categories | GET /meet/personas, GET /meet/categories | read |
list_experts, create_expert | GET /meet/experts, POST /meet/experts | read / low |
list_meets, get_meet, create_meet | GET /meet/meets, GET /meet/meets/{id}, POST /meet/meets | read / read / low |
add_meet_source, end_meet | POST /meet/meets/{id}/sources (a URL), POST /meet/meets/{id}/end | low |
Talking to a persona happens in the VoiceMint app (a live voice socket), not through MCP.
jobs (always on)
| tool | what |
|---|---|
get_job | status 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_job | polls 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_link | the links of a finished job, or of a result URL; check: true tests storage links with a HEAD request |
credit_balance | GET /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 publichttps://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 fordub_video).file_path: a local file, stdio server only, audio / video / image file types only. The hosted server refuses it.VOICEMINT_MCP_LOCAL_FILES=0turns 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_estimatedonce 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 /mcp | MCP JSON-RPC; requires Authorization: Bearer vm_sk_… (the caller's own key); optional X-VoiceMint-Toolsets |
GET /healthz | liveness |
GET /readyz | readiness |
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_videoreturns 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.
@voicemint/mcpnpm install @voicemint/mcp