ThunderPhone v3 is live.Self-serve, from 2¢/min.Read the announcement

Agents

MCP Servers

Attach remote MCP tool servers to your agents, and use ThunderPhone itself as an MCP server.

Two directions of MCP (Model Context Protocol) integration:

  1. Remote MCP servers (/v1/mcp-servers) — register an external MCP server; its tools are synced, cached, and become callable by any agent you attach the server to via mcp_server_ids.
  2. ThunderPhone as an MCP server (POST /v1/mcp) — a single endpoint that speaks MCP (JSON-RPC over Streamable HTTP), letting Claude, coding IDEs, and agent frameworks build, test, validate, and operate your voice agents. Authenticate with your sk_live_ key.

Endpoints

MethodPathDescription
GET/v1/mcp-serversList registered servers
POST/v1/mcp-serversRegister a server (syncs tools immediately)
GET/v1/mcp-servers/{server_id}Retrieve one server
PATCH/v1/mcp-servers/{server_id}Update (re-syncs when connection details change)
DELETE/v1/mcp-servers/{server_id}Remove a server
POST/v1/mcp-servers/{server_id}/sync-toolsRe-fetch the server's tool list
POST/v1/mcpThunderPhone's own MCP endpoint (JSON-RPC)

{server_id} is the server's UUID. Writes require the admin role.

MCP server object

{
  "id": "1c9d2e4f-…",
  "display_name": "Internal ops tools",
  "url": "https://mcp.example.com/mcp",
  "transport": "streamable_http",
  "headers": [{ "key": "Authorization" }],
  "enabled": true,
  "last_tools_sync_at": "2026-04-20T18:24:10.113Z",
  "cached_tools": [
    {
      "type": "function",
      "function": {
        "name": "mcp_1c9d2e4f…_create_ticket",
        "description": "Create a support ticket",
        "parameters": { "type": "object", "properties": { "…": {} } }
      },
      "mcp": { "server_id": "1c9d2e4f-…", "tool_name": "create_ticket" }
    }
  ],
  "created_at": "2026-04-20T18:24:10.113Z",
  "updated_at": "2026-04-20T18:24:10.113Z"
}
FieldTypeDescription
idUUIDServer id
display_namestring1–255 chars
urlstringThe server's streamable-HTTP endpoint. Must be http(s) and resolve only to public IP addresses (SSRF guard)
transportstringOnly streamable_http is supported
headersarrayStatic headers sent on every connection. Key names only are returned (values are encrypted at rest and never leave the server), and only to admin+ members — others see []
enabledbooleanDisabled servers keep their config but their tools stop being offered to agents
last_tools_sync_attimestamp | nullLast successful tool sync
last_sync_errorstringWhy the last tool sync failed; empty after a successful one
cached_toolsarrayThe synced tool list in OpenAI function format. Tool names are namespaced mcp_<server-id>_<tool> to avoid collisions; mcp.tool_name is the original name

Register a server

cURL
curl -X POST https://api.thunderphone.com/v1/mcp-servers \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "display_name": "Internal ops tools",
    "url": "https://mcp.example.com/mcp",
    "headers": [{ "key": "Authorization", "value": "Bearer secret-token" }]
  }'
FieldTypeRequiredDescription
display_namestringyes≤ 255 chars
urlstringyes≤ 2048 chars; public-IP HTTPS/HTTP endpoint
transportstringnostreamable_http (the only value)
headersarray of {key, value}noHeader names must be unique (case-insensitive)
enabledbooleannoDefault true

The create connects to the server and syncs its tools inline — if the server is unreachable or the MCP handshake fails, the request fails with 400 ({"url": "Unable to synchronize MCP tools: …"}) and nothing is saved. Returns 201 Created with the server object.

Update / delete / re-sync

PATCH accepts any subset of the create fields. Changing display_name, url, transport, or headers triggers a re-sync (same 400 on failure). When updating headers, an entry with an empty value keeps the existing stored value for that key — so you can reorder/rename without re-sending secrets.

DELETE returns 204 No Content (agents attached to the server simply lose those tools).

POST /v1/mcp-servers/{id}/sync-tools re-fetches the tool list and returns the updated server object — call it after deploying new tools to your MCP server.

Tool names must be unique on an agent. Turning a server on (enabled: true) returns 400 when one of its tools would share a name with another tool of an agent that has the server attached, naming the agents and tools. A sync that would do the same keeps the previous tool list and explains why in last_sync_error.


ThunderPhone as an MCP server

POST /v1/mcp is a stateless Streamable HTTP MCP endpoint. It supports protocol versions 2025-06-18 and 2025-03-26, plus initialize, ping, tools, prompts, resources, and notifications. Point a client at https://api.thunderphone.com/v1/mcp with an sk_live_ organization API key as its Bearer token, or connect it with OAuth (how assistant directories such as Claude's and ChatGPT's connect). Session cookies and publishable widget keys are not accepted.

The server exposes 100 tools, every one listed here by category; the MCP server guide describes each tool's arguments:

CategoryTools
Agentslist_agents, get_agent, create_agent, update_agent, deploy_agent, discard_agent_draft, duplicate_agent, delete_agent, list_agent_versions, review_prompt, refactor_prompt, list_prompt_revisions, list_reusable_instructions, create_reusable_instruction
Phone numberslist_phone_numbers, get_phone_number_limits, provision_phone_number, list_voip_connections, search_voip_numbers, import_voip_numbers, update_phone_number, delete_phone_number, get_voip_setup_session, answer_voip_setup_question, save_voip_setup, check_phone_number
Callslist_calls, get_call, get_call_transcript, get_call_audio_url, get_call_grade, place_call, export_calls, send_sms, get_call_analytics, get_call_insights
Testinglist_test_scenarios, create_test_scenario, generate_test_scenarios, run_agent_tests, get_test_run, list_validation_runs, get_validation_status, create_talk_link, run_simulation, get_simulation, test_my_agent, test_in_text
Agent iteration toolkit (beta, per organization)list_conversations, get_conversation, get_conversation_revisions, generate_conversations, import_conversations, refresh_conversations, get_conversation_job, run_replays, compare_configs, get_replay_run
Knowledgelist_knowledge_bases, create_knowledge_base, add_knowledge_document, import_knowledge_url, search_knowledge
Tools and webhookslist_integrations, create_integration, test_integration, list_webhook_endpoints, create_webhook_endpoint, test_webhook_endpoint, list_webhook_deliveries, list_mcp_servers, create_mcp_server, sync_mcp_server_tools, copy_webhook_endpoint
Campaignslist_campaigns, create_campaign, add_campaign_contacts, campaign_action, get_campaign_stats, check_campaign
Voiceslist_voices, preview_voice, list_voice_clones
Billingget_billing_summary (read-only; no payment mutation tools)
Organizationget_org_settings, update_org_settings, get_account_limits, list_blocked_callers, block_callers, unblock_callers
Capabilities and helpget_supported_languages, get_agent_capabilities, escalate_to_human, request_feature
Imports from other platformsstart_agent_import, get_agent_import, commit_agent_import (the platform key is entered in the dashboard, never passed to a tool)
Docssearch_docs, get_doc_page
Connectionget_connection_identity (the organization and credential the token belongs to)

Claude's connector (claude.ai and Claude Code, over OAuth) gets a narrower set: no campaign tools (create_campaign, add_campaign_contacts, campaign_action) and no test_integration; place_call and send_sms first return a preview and a confirmation token and act only when called again with it; and preview_voice plays a fixed sample phrase, free when the voice has a ready-made sample. Every other client gets the full set.

Every tool has title and MCP safety annotations. Product tools dispatch through the same REST views as the public API, retaining organization scoping, roles, validation, billing admission, quotas, outbound TCPA confirmation, provider safety, and audit behavior. See Use ThunderPhone as an MCP server for full arguments, annotations, prompts, resources, and configuration examples.

Twelve starter prompts cover receptionist creation, test execution, number provisioning, low-grade call review, knowledge URL attachment, improving an agent from its calls, checking a change before deploying, one-step testing, number and campaign diagnosis, a call report and agent imports. Resources expose thunderphone://docs/llms.txt, thunderphone://docs/quickstart, thunderphone://pricing, the prompt style guide that review_prompt checks against, thunderphone://guides/prompt-style, and thunderphone://guides/working-with-thunderphone, the working method for assistants using these tools. Results about an agent, call, number, campaign or setting carry web_url, the matching page in the app, where Zeus can carry on.

Example tools/call exchange:

Request
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": { "name": "list_agents", "arguments": {} }
}
Response
{
  "jsonrpc": "2.0",
  "id": 3,
  "result": {
    "content": [{ "type": "text", "text": "[{\"id\": 12, \"name\": \"Customer Support Agent\", …}]" }],
    "structuredContent": [{ "id": 12, "name": "Customer Support Agent" }],
    "isError": false
  }
}

Tool errors are reported in-band (isError: true) as a short sentence plus a JSON block containing code, detail, and an actionable next_step. Unknown JSON-RPC methods return -32601 in an HTTP 200 response. Notifications return 202 Accepted; JSON-RPC batches return -32600; and unsupported GET or DELETE requests return 405 Method Not Allowed with Allow: POST.

BAA connector URL

POST /v1/mcp/baa is the same server with the same tools. The difference is call content for organizations whose calls may contain protected health information (PHI): an organization with a BAA on file, or one whose agents are designated as processing PHI.

  • At /v1/mcp, the URL that public assistant directories list, these organizations never get call content. list_calls, export_calls, get_campaign_stats, import_conversations, refresh_conversations, run_replays, compare_configs and get_replay_run return a tool error with code: "phi_content_unavailable". get_call, get_call_transcript, get_call_audio_url and get_call_grade return it unless the call was handled as not containing PHI. Conversation tools serve simulated conversations only. Configuration, testing and docs tools are unaffected.
  • At /v1/mcp/baa, they get call content once an organization admin has recorded the AI assistant BAA confirmation. Without it, the same tool error.

Organizations without PHI see the same results at both URLs. OAuth tokens are bound to the URL they were issued for: the BAA connector URL has its own protected-resource metadata at /.well-known/oauth-protected-resource/v1/mcp/baa, and a token issued for one URL is rejected at the other. Organization API keys work at both.

AI assistant BAA confirmation

GET /v1/assistant-baa-attestation · POST /v1/assistant-baa-attestation · DELETE /v1/assistant-baa-attestation

An organization admin's confirmation that every AI assistant workspace the organization connects through the BAA connector URL is covered by a business associate agreement between the organization and that assistant's provider.

GET returns the current text_version, the canonical English statement (statement_en) and its statement_sha256, the connector_url, phi_content_restricted (whether /v1/mcp withholds this organization's call content), attested, and the active attestation. POST takes accepted: true, the text_version and statement_sha256 from GET, and an optional display locale; it returns 201, or 200 when a confirmation is already active. DELETE withdraws it, effective on the next tool call.