AgentPhone MCP Server

AgentPhone MCP Server

agentphone-mcp•byagentphone-ai

An MCP server that connects AI assistants to the AgentPhone API so agents can buy phone numbers, send and receive SMS/iMessage, and place voice calls.

License: MIT•Runtime: Awaiting documentation review•Category: communication social

WHAT IT DOES

  • •Lets agents buy and manage US and Canada phone numbers.
  • •Sends and receives SMS and iMessage, with conversation threads.
  • •Places outbound voice calls with built-in AI conversation or a custom webhook.
  • •Creates agents with custom voices, system prompts, call transfer, and voicemail.

BEST FOR

  • •AI assistants that need to send texts and make calls on real phone numbers.
  • •Setting up agents that handle inbound calls and messages via webhooks.

ABOUT AGENTPHONE-MCP

AgentPhone MCP Server is cataloged as an MCP server attributed to agentphone-ai. An MCP server that connects AI assistants to the AgentPhone API so agents can buy phone numbers, send and receive SMS/iMessage, and place voice calls. It is categorized under communication social. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for AgentPhone MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Do outbound calls and messages require user approval?

Yes. Outbound calls and messages do nothing unless confirm=true is passed; without it the tools return a preview of the destination and content for the user to approve first.

Can the server be run self-hosted over HTTP?

Yes. Setting PORT or passing --http runs a Streamable HTTP server reachable at /mcp.

Does the server expose call recordings or audio files?

No. No tool returns audio files or call recordings; the voice-sample preview URL in list_voices is a library clip rather than call audio.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 69d6f3ca4b39 · 采集于 2026-11-13 12:51:25 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

AgentPhone MCP Server

Give AI agents real phone numbers, SMS, and voice calls via the Model Context Protocol.

AgentPhone lets your AI agent buy phone numbers, send/receive SMS, and place voice calls — all through natural language in Cursor, Claude Desktop, or any MCP-compatible client.

Agents are the core concept — each agent gets its own phone numbers, voice personality, system prompt, and webhook. Think of an agent as a virtual team member with its own phone line. You can create agents for different purposes (support, sales, scheduling) and configure how they sound and behave on calls.

Quick Start

1. Get your API key

Sign up at agentphone.ai and create an API key from Settings.

2. Connect via MCP

Option A: Remote server (recommended)

Point your MCP client at the hosted endpoint — no install needed:

{
  "mcpServers": {
    "agentphone": {
      "type": "streamable-http",
      "url": "https://mcp.agentphone.ai/mcp",
      "headers": {
        "Authorization": "Bearer your_api_key_here"
      }
    }
  }
}

Works with any MCP client that supports Streamable HTTP transport (Switchboard, remote agent platforms, etc.).

Option B: Local server (stdio)

Runs locally via npx — works with Cursor, Claude Desktop, Windsurf, and Claude Code:

Cursor: Settings > MCP or ~/.cursor/mcp.json Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "agentphone": {
      "command": "npx",
      "args": ["-y", "agentphone-mcp"],
      "env": {
        "AGENTPHONE_API_KEY": "your_api_key_here"
      }
    }
  }
}

Option C: Self-hosted HTTP server

Run your own HTTP MCP endpoint:

PORT=3000 npx agentphone-mcp --http

Then connect to http://localhost:3000/mcp and configure your MCP client to send Authorization: Bearer <your AgentPhone API key> with each request. A server-side AGENTPHONE_API_KEY alone does not authorize HTTP callers.

Warning: AGENTPHONE_ALLOW_ANONYMOUS=true opts into using the server's AGENTPHONE_API_KEY for requests with no Authorization header, only when OAuth is off. Anyone who can reach that endpoint can act as the account: only enable this behind your own authentication. Malformed headers are rejected, and a caller's supplied bearer is never replaced by the server key.

What Can It Do?

Once configured, just ask your AI agent things like:

  • "Buy me a phone number in the 415 area code"
  • "Create a support agent that greets callers and helps with billing"
  • "Call +14155551234 and have a conversation about scheduling a dentist appointment"
  • "Text +14155551234 saying 'Your appointment is confirmed for 3pm tomorrow'"
  • "Show me my recent calls and transcripts"
  • "List the available voices and switch my agent to a different one"
  • "Set up a webhook so I get notified when someone calls or texts my number"
  • "Show me this month's usage breakdown"

Transport & hosting

The server ships two transports from one entry point (node dist/index.js):

  • stdio (default): bare npm start / npx agentphone-mcp runs the standard MCP stdio transport for local clients, using AGENTPHONE_API_KEY.

  • HTTP: set PORT (or pass --http, optionally with --port <n>) to run the Streamable HTTP server, reachable at /mcp. --port alone does not switch transports — --http or PORT selects HTTP. The HTTP layer is built on the mcp-use framework, which owns Streamable HTTP, the SSE stream, session management, and the OAuth discovery endpoints.

  • Hosted: https://mcp.agentphone.ai/mcp

  • Self-hosted HTTP: PORT=3000 npm start → http://localhost:3000/mcp

Authentication

  1. OAuth (recommended for end users): the framework proxies an Authorization Code + PKCE flow to the AgentPhone authorization server, so the client opens a browser to sign in at agentphone.ai — no key to paste. Enable it by setting MCP_OAUTH_CLIENT_ID (a client pre-registered with the AgentPhone AS). MCP_OAUTH_CLIENT_SECRET is optional: set it to run the gateway as a confidential client, or leave it unset to run as a public client (the gateway must then be registered with token_endpoint_auth_method=none). Public mode advertises none to downstream clients, which strict OAuth clients require.
  2. API key (scripts / single-tenant, OAuth off): each request sends Authorization: Bearer <your API key>. The server-side AGENTPHONE_API_KEY is only used for callers that send nothing, and only when AGENTPHONE_ALLOW_ANONYMOUS=true. Without that flag an unauthenticated call is rejected, so an exposed port cannot act as your account.

With OAuth enabled, bearer tokens are verified through the backend’s /auth/me; the anonymous opt-in does not bypass that verification.

The caller’s credential is forwarded to the AgentPhone REST API for validation. The optional anonymous mode instead uses the configured server API key.

Environment

VarPurpose
PORTHTTP port (default 3000)
AGENTPHONE_API_KEYFallback API key when OAuth is off. Only used for callers that send no Authorization header when AGENTPHONE_ALLOW_ANONYMOUS=true
AGENTPHONE_ALLOW_ANONYMOUSDefault off; ignored when OAuth is enabled. Set to true to let requests with no Authorization header act with the server's AGENTPHONE_API_KEY. Anyone who can reach the port then controls the account: put the server behind your own auth first
MCP_OAUTH_CLIENT_IDEnable OAuth; a gateway client pre-registered with the AgentPhone AS
MCP_OAUTH_CLIENT_SECRETOptional. Set = confidential gateway; unset = public client (gateway registered with token_endpoint_auth_method=none, advertises none downstream)
AGENTPHONE_BASE_URLAPI base (default https://api.agentphone.ai)
AGENTPHONE_OAUTH_AUTHORIZEOverride authorize/consent URL (default https://agentphone.ai/oauth/authorize)
AGENTPHONE_MCP_PUBLIC_URLPublic base URL this server is reached at, advertised in the /.well-known/mcp.json install manifest (e.g. https://mcp.agentphone.ai). If unset, it's derived from the request.
WAKESHIFT_KEYOptional, HTTP only, with AGENTPHONE_EVENTS_SECRET. Turns on Wakeshift wakes: adds watch_messages, which wakes the agent whenever a message arrives on any of the numbers it watches. Without both, the server runs exactly as before
AGENTPHONE_EVENTS_SECRETOptional, HTTP only, with WAKESHIFT_KEY. A Standard Webhooks secret (whsec_…) shared with the AgentPhone backend: turns on POST /internal/events/message-received, which the backend calls for each inbound message. See docs/backend-events.md

Support matrix

DimensionSupported
Transportsstdio (default) and Streamable HTTP (set PORT / --http)
Tested runtimeNode ^20.19.0 || >=22.12.0 (CI runs 20, 22, 24)
ClientsAny MCP client — verified with Cursor, Claude Desktop, Claude Code, Windsurf (stdio); Streamable-HTTP clients and remote agent platforms (HTTP)
Auth modesstdio: AGENTPHONE_API_KEY. HTTP: per-request bearer, OAuth (Authorization Code + PKCE), or anonymous server-key fallback (AGENTPHONE_ALLOW_ANONYMOUS=true, OAuth off)
ChannelsSMS and iMessage (send/receive); voice calls (webhook-driven or built-in AI)
Number typesUS and Canada numbers

Highlights

  • Phone numbers — buy and manage numbers in any US/CA area code
  • SMS — send and receive text messages, view conversation threads
  • Voice calls — place outbound calls with built-in AI conversation (no webhook needed) or bring your own webhook
  • Inbound handling — set up webhooks to receive and respond to inbound calls and texts in real time
  • Agents — create agents with custom voices, system prompts, call transfer, and voicemail
  • Usage & billing — monitor number usage, message/call/webhook volume, and daily/monthly breakdowns

Authorization & AI disclosure

  • Every outbound call and message is individually authorized by the user. make_call, make_conversation_call, and send_message do nothing unless confirm=true is passed — without it they return a preview of the full destination(s) and content (all group recipients, the complete message body, every media URL, and any interactive payload) for the user to approve first (the same two-step pattern buy_number uses). There is no bulk-send path that skips a person in the loop.
  • The connector adds AI self-identification to what it submits. Outbound calls placed through the call tools open with an AI disclosure that no argument disables. When a hosted agent is created or updated through this connector, the connector also prepends the disclosure to its system prompt, opening line, and voicemail so they identify as AI on inbound calls and voicemail. This is disclosure text and prompt instruction that the connector submits — it guides, but does not itself guarantee, model behavior or backend playback, and it only covers agents created/updated through this connector (the AgentPhone backend is the authoritative enforcer for all inbound calls). Webhook agents (your own backend, which may be human-staffed) are left untouched.
  • No audio is exposed. Voice synthesis happens only inside live calls; no tool returns audio files or call recordings. (list_voices includes a static voice-sample preview_audio_url, which is a library clip, not call audio.)

All Tools (32)

Account

ToolDescription
account_overviewGet a full snapshot of your account — agents, numbers, webhook, and usage
get_usageGet usage stats — number usage, billed SMS segments, and message/call/webhook volume. Use breakdown for daily or monthly time-series.

Phone Numbers

ToolDescription
list_numbersList all phone numbers in your account
buy_numberPurchase a new phone number with optional area_code and agent_id

SMS

ToolDescription
send_messageSend SMS, iMessage, or WhatsApp. Requires confirm=true (previews first — every message is individually authorized by the user). Supports media, threaded replies (reply_to_message_id), iMessage effects (send_style), existing groups (to_number) or new groups (recipients), and WhatsApp interactive content (channel=whatsapp with buttons/list/cta/template)
check_capabilitiesCheck which channels a phone number can receive (iMessage / SMS / RCS) before sending
check_readinessCheck a number is ready before sending/calling: active + assigned + channel-capable are hard blockers; A2P/10DLC registration and recipient reachability are warnings. Returns ready, blockers, warnings, and next steps (credit/concurrency are enforced at send time, not pre-checkable)
get_messagesGet messages for a specific number. Page older history with cursor (from nextCursor); before/after are optional time filters.
list_conversationsList SMS conversations. Pass agent_id to filter by agent.
get_conversationGet a conversation with a bounded tail of recent messages
get_conversation_messagesPage through a conversation's full message history with cursor
update_conversationSet metadata on a conversation

Contacts

ToolDescription
list_contactsList saved contacts (address book). Filter with a search term.
manage_contactCreate, update, or delete a contact (set action). Delete requires confirm=true (previews first; cannot be undone)

Voice Calls

ToolDescription
list_callsList calls. Scope by agent_id or number_id, or filter the account-wide list by status/direction/search. Scope and filters can't be combined.
get_callGet call details and transcript
end_callEnd an in-progress call (safe to retry; ending a finished call is a no-op)
make_callPlace an outbound call (webhook-driven). Requires confirm=true (previews first — every call is individually authorized by the user). Supports recording, variables, model tier, and call-screening controls
make_conversation_callPlace a call with built-in AI conversation — no webhook needed. Requires confirm=true (previews first — every call is individually authorized by the user). Supports recording, variables, model tier, and call-screening controls

Agents

ToolDescription
list_agentsList all agents with their numbers and voice config
create_agentCreate an agent with voice, system prompt, call transfer, voicemail, and voice tuning (speed, interruption sensitivity, backchannel, language, and more)
update_agentUpdate an agent's configuration
delete_agentDelete an agent (numbers are kept but unassigned)
get_agentGet agent details including phone numbers and voice config
attach_numberAssign a phone number to an agent
detach_numberRemove a phone number from an agent
list_voicesList available voices for agents

Webhooks

All webhook tools accept an optional agent_id — pass it to manage an agent-specific webhook, omit it for the project-level default. Agent webhooks take priority over project-level.

ToolDescription
get_webhookGet webhook configuration
set_webhookSet a webhook URL for inbound messages and call events
delete_webhookRemove a webhook
test_webhookSend a test event to verify your webhook works
list_webhook_deliveriesView delivery history for debugging

get_webhook and set_webhook never return the signing secret, for either scope — it is always masked, so it can't land in model context, transcripts, or client logs. Retrieve the secret from the AgentPhone dashboard to verify webhook signatures.

Environment Variables

VariableRequiredDescription
AGENTPHONE_API_KEYstdio: yes; HTTP anonymous mode: yesIn HTTP mode, used only with AGENTPHONE_ALLOW_ANONYMOUS=true, OAuth off, and no caller Authorization header
AGENTPHONE_ALLOW_ANONYMOUSNoExplicit HTTP server-key fallback; default off, ignored when OAuth is enabled. See the self-hosting warning above
AGENTPHONE_BASE_URLNoOverride the API base URL (defaults to https://api.agentphone.ai)
PORTNoPort for HTTP mode (defaults to 3000; set with PORT)
WAKESHIFT_KEYNoHTTP only, with AGENTPHONE_EVENTS_SECRET. Wakeshift app key; adds watch_messages. Without both, nothing is sent to Wakeshift
AGENTPHONE_EVENTS_SECRETNoHTTP only, with WAKESHIFT_KEY. Signing secret for backend message notifications; see docs/backend-events.md

Development

git clone https://github.com/AgentPhone-AI/agentphone-mcp.git
cd agentphone-mcp
npm install
npm run dev     # Run with tsx (hot reload)
npm run build   # Compile TypeScript
npm start       # Run compiled JS — stdio by default; set PORT (or pass --http) for the HTTP server
npm test        # Build + run the full test suite (both transports, output-schema contracts)

Release & deployment checks

CommandWhat it verifies
npm run check:releaseVersion is identical across package.json, server.json, and the built handshake (run in prepublishOnly).
npm run smoke:packRuns npm pack, installs the resulting tarball in a clean dir, and runs the 204 detach regression against that packed tarball (the same bytes npm publish would upload; run in prepublishOnly).
npm run check:contractFetches the live OpenAPI and asserts the endpoints/fields the tools depend on still exist (message cursors + item fields, call filters, outbound-call request/response fields the client uses, the detach endpoint, and the from_ sender field). Network-dependent, so it's not part of npm test — run before a release or as a non-blocking CI job. Override with OPENAPI_URL.
npm run canaryRead-only post-deploy canary: connects to MCP_CANARY_URL, checks the handshake and tool surface, and (with MCP_CANARY_TOKEN) runs one read-only tool. No mutations; skips cleanly when MCP_CANARY_URL is unset.

How It Works

This MCP server connects your AI assistant to the AgentPhone API. Your assistant talks to the MCP server, which calls the AgentPhone API, which talks to the phone network.

Your AI Assistant  <-->  agentphone-mcp  <-->  AgentPhone API  <-->  Phone Network

Outbound: your assistant places calls and sends texts through AgentPhone's API.

Inbound: when someone calls or texts your number, AgentPhone sends a webhook event to your server — you can then respond programmatically or let your agent's built-in AI handle it.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for AgentPhone MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/agentphone-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related communication social MCP Servers

Alternative and complementary servers in the same category

View all in communication social →

An AI receptionist platform with an MCP server for accessing business calls, contacts and appointments from AI assistants.

52
Communication

Pidgeon provides an MCP server and an email inbox API that gives AI agents their own addresses for sending, awaiting, and replying to email.

Repository stats unavailable
Communication