Skip to main content
Glama
VoiceMint MCP Server

VoiceMint MCP Server

Official
README.md
# VoiceMint MCP server

Lets an AI assistant (Claude Desktop, Claude Code, Cursor and any other
[Model Context Protocol](https://modelcontextprotocol.io) client) build and
run VoiceMint voice agents, phone calls and campaigns with your VoiceMint
account: "create a Hindi EMI-reminder agent from this prompt and call my
phone to test it", "how many of yesterday's campaign calls were answered?".

Every tool is one call 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.

- 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: 0.1.0, not yet published to npm. Until it is, build from source
> (below) and point your client at `node /path/to/voicemint-mcp/dist/stdio.js`.

## Get a key

VoiceMint → Settings → **Developers** → create an app → **New secret key**.
Use a **dedicated key with only the `agents` permission** (`agents.read` if
the assistant should only read), and a test key (`vm_sk_test_…`) while you
try things out. Keys can never reach admin, account or billing endpoints,
and can only read the credit balance.

## Set up your client

### Claude Code

```bash
claude mcp add voicemint --env VOICEMINT_API_KEY=vm_sk_test_your_key -- npx -y @voicemint/mcp
```

### Claude Desktop

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

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

### Cursor

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

```json
{
  "mcpServers": {
    "voicemint": {
      "command": "npx",
      "args": ["-y", "@voicemint/mcp"],
      "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://voicemint-api.alphaaiservice.com/api/v1`) |
| `VOICEMINT_MCP_ALLOW_UNCONFIRMED` | `1` skips the confirmation step for costly tools. **Unsafe**: only for unattended scripts you trust |

## Tools

| 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 |
| `credit_balance` | `GET /credits/balance` | any key | read |

Every tool carries MCP annotations (`readOnlyHint`, `destructiveHint`,
`idempotentHint`, `openWorldHint`) so clients can ask before running
anything that is not read-only.

**Resources:** `voicemint://agents/{agent_id}` (agent config),
`voicemint://calls/{call_id}/transcript`, `voicemint://campaigns/{campaign_id}/report`.

**Prompts:** `build_agent` (build an agent from a description),
`test_agent_call` (test an agent with a call to your phone),
`summarise_campaign`.

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

### Confirmation

Tools marked **confirm** do not act on the first call. They answer with a
preview of what will happen (who will be called, from which number, by which
agent, the credit balance and the campaign's credit estimate) and a
`confirm_token`. The assistant must show 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.

### Untrusted data and phone numbers

Transcripts, contact data, knowledge text, agent replies and workflow output
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)

```bash
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) |
| `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. OAuth sign-in for web clients is planned; until
then only clients that can send a custom header can use the hosted server.

## Develop

```bash
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, the confirmation flow, the MCP protocol over an in-memory
transport, and the HTTP entry with a real MCP client.

## License

MIT — see [LICENSE](LICENSE).

TDQS

A3.5/5.0

Scored across 21 tools

Disambiguation4/5

Tools are organized around distinct resources (agents, calls, campaigns, workflows, knowledge, numbers, credits) with clear action boundaries, e.g. update_agent vs publish_agent_version is unambiguous. A few near-neighbors exist—get_call vs get_call_debug and get_campaign vs campaign_results overlap in subject matter—but their descriptions draw the line (timeline diagnostics vs call record; per-contact results vs campaign-level status).

Naming Consistency4/5

Nearly the whole surface follows a predictable snake_case verb_noun pattern (list_agents, get_agent, create_campaign, add_campaign_contacts, control_campaign, add_knowledge_text). The only deviations are the noun-only names credit_balance and campaign_results, which are still readable but break the pattern.

Tool Count4/5

21 tools spread across six coherent sub-domains (agents, calls, campaigns, workflows, knowledge, numbers/credits), so nearly every tool maps to a real operation. It is on the heavy side and a few could be folded together (e.g. get_campaign/campaign_results), but nothing feels gratuitous.

Completeness3/5

The create/update/publish agent flow and the create/append/control/results campaign flow are well covered, but deletion is absent everywhere (no delete_agent, delete_campaign, or knowledge-source removal). More importantly, some tool descriptions reference GET-style helpers that don't exist (no list_voices/list_llms for create_agent, no list_workflows to discover the workflow id run_workflow requires), leaving dead ends.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues