MCP server
@kolwire/mcp-server exposes Kolwire to AI assistants (Claude, ChatGPT, Cursor, your own agents) over the Model Context Protocol. Ask an assistant to "buy a 415 number and point it at our support agent", "call +1… with the appointment agent", or "summarize yesterday's calls that mention cancellation".
Install
claude mcp add kolwire -e KOLWIRE_API_KEY=vi_test_… -- npx -y @kolwire/mcp-server{
"mcpServers": {
"kolwire": {
"command": "npx",
"args": ["-y", "@kolwire/mcp-server"],
"env": { "KOLWIRE_API_KEY": "vi_test_…" }
}
}
}KOLWIRE_API_KEY=vi_test_… npx -y @kolwire/mcp-server --http --port 3333
# MCP endpoint: POST http://127.0.0.1:3333/mcp (stateless)Start with a test key (vi_test_…): calls and messages are simulated and nothing is billed.
Transports
- stdio (default) — for local assistants that launch the server as a subprocess.
- Streamable HTTP (
--http --port <n> [--host 127.0.0.1] [--path /mcp]) — stateless: everyPOST /mcpis handled independently (JSON responses, no session state), so it scales horizontally.GET /healthzfor probes.- A request's
Authorization: Bearer vi_…header overrides the environment key, so one hosted server can serve many workspaces. - Binding to a non-local interface while holding
KOLWIRE_API_KEYrequiresKOLWIRE_MCP_HTTP_TOKEN; clients then sendAuthorization: Bearer <token>. Without it the server refuses to start. On local binds theHostheader is checked (DNS-rebinding protection).
- A request's
Configuration
| Variable | Default | Effect |
|---|---|---|
KOLWIRE_API_KEY | — | API key (required for stdio). |
KOLWIRE_BASE_URL | https://api.kolwire.com/v1 | API base URL. |
KOLWIRE_MCP_READ_ONLY | false | true exposes only read tools (no calls, messages, purchases or config changes). Same as --read-only. |
KOLWIRE_MCP_TOOLS | all | Comma-separated allowlist of tool names. |
KOLWIRE_MCP_HTTP_TOKEN | — | Bearer token guarding the server's own key over HTTP. |
Tools
| Tool | What it does | Read-only |
|---|---|---|
search_available_numbers | Find purchasable numbers by country, area code, digits | ✓ |
buy_number | Buy a number and route it to an agent, flow or webhook | |
list_numbers | Numbers in the workspace and their routing | ✓ |
place_call | Place an outbound call with an AI agent, a flow, or a spoken message | |
get_call | Status, duration and parties of a call | ✓ |
search_calls | Filter calls, or full-text search transcripts and summaries | ✓ |
get_call_transcript | Full diarized transcript | ✓ |
get_call_summary | AI summary, action items, sentiment, extracted fields | ✓ |
send_sms | Send an SMS | |
send_whatsapp | Send a WhatsApp message (free-form or template) | |
list_conversations | Messaging threads | ✓ |
get_conversation_messages | Messages in a thread | ✓ |
list_ai_agents | AI agents available for calls | ✓ |
create_campaign | Create an outbound campaign (draft) | |
import_campaign_leads | Add leads to a campaign (DNC-checked) | |
control_campaign | Start or pause a campaign | |
get_campaign_stats | Progress and outcomes | ✓ |
get_wallboard | Live agents, queues and active calls | ✓ |
get_balance | Prepaid balance | ✓ |
Tools that place calls, send messages or spend money carry openWorldHint (and read tools readOnlyHint) so clients can ask you to confirm before they run; their descriptions also tell the model to confirm recipient, content and cost. API errors are returned as tool errors (isError: true) with status, code, details and a hint, so the model can correct itself.