AgentPhone MCP server
93 operations6 webhooks
Read inbound messages, manage phone numbers, send texts, and handle voice calls with AgentPhone.
Try AgentPhone with your agent
Connect AgentPhone, then paste this into Claude, ChatGPT or Cursor. For ideas from other apps, see the use cases.
Using Corsair, show me what you can do in AgentPhone on my account, then run one read-only example and show me the result.
AgentPhone tools and triggers
Tools are what your agent can do in AgentPhone through Corsair's MCP server. Triggers are the AgentPhone events a routine can start from.
Agents
- Attach NumberWrite
Attach an existing phone number to an agent.
agents.attachNumber
- CreateWrite
Create Agent.
agents.create
- DeleteDestructive
Delete Agent.
agents.delete
- Detach NumberDestructive
Detach a phone number from an agent (sets agentId to null).
agents.detachNumber
- GetRead-only
Get a single agent with its attached numbers.
agents.get
- ListRead-only
List all agents for this account.
agents.list
- List CallsRead-only
List all calls for an agent.
agents.listCalls
- List ConversationsRead-only
List all conversations for an agent.
agents.listConversations
- List VoicesRead-only
Return available voices from the configured voice provider.
agents.listVoices
- UpdateWrite
Update an agent's configuration.
agents.update
Calls
- Create OutboundDestructive
Initiate an outbound call.
calls.createOutbound
- Create WebDestructive
Create a browser-based web call.
calls.createWeb
- EndDestructive
Terminate an ongoing call.
calls.end
- GetRead-only
Get a specific call with its transcripts.
calls.get
- Get RecordingRead-only
Download the recording as a file. Keep recording URLs and audio private.
calls.getRecording
- Get TranscriptRead-only
Get the full transcript for a call.
calls.getTranscript
- ListRead-only
List all calls for this account.
calls.list
- List For NumberRead-only
List all calls for a specific phone number.
calls.listForNumber
- Push TranscriptDestructive
Push transcript turns for a call (e.g. from a BYO voice stack).
calls.pushTranscript
- Stream TranscriptRead-only
Replay a finished call as server-sent event text. This operation checks the call status and returns the complete replay after the ended event. Use calls.getTranscript for a snapshot during a live call.
calls.streamTranscript
Numbers
- CreateDestructive
Provision an AgentPhone number. AgentPhone charges the first month when it provisions the number.
numbers.create
- GetRead-only
Get a single phone number owned by this account.
numbers.get
- ListRead-only
List the phone numbers already assigned to the account. Use the returned id to fetch message history or calls.
numbers.list
- List AvailableRead-only
Search purchasable phone numbers before buying one.
numbers.listAvailable
- List MessagesRead-only
Read message history for a number, including inbound SMS. Use the number id from numbers.list and follow nextCursor for older or newer messages.
numbers.listMessages
- LookupDestructive
Look up line type, country, and RCS support. Replace the example with the E.164 number to look up. AgentPhone bills each number looked up.
numbers.lookup
- ReleaseDestructive
Permanently release a phone number and stop renewals.
numbers.release
- UpdateWrite
Update an existing number. Use an externalId unique to your account.
numbers.update
- Update Inbound CallsWrite
Turn inbound calls on or off for one number.
numbers.updateInboundCalls
- Update Voice RoutingWrite
Route a number's inbound calls.
numbers.updateVoiceRouting
- ConnectWrite
Complete Embedded Signup: exchange the code, store the connection, and onboard the phone number (register + subscribe webhooks).
whatsapp.connect
- Connect NumberWrite
Connect an additional number from an already-connected WABA: validates the number belongs to the WABA, registers it for Cloud API use, and binds it (dual-channel when the E.164 already exists on this account).
whatsapp.connectNumber
- Create TemplateWrite
Submit a template, authored or from Meta's Template Library.
whatsapp.createTemplate
- Delete TemplateDestructive
Delete a template by name.
whatsapp.deleteTemplate
- DisconnectDestructive
Disconnect a WABA: mark the connection disconnected and release its numbers.
whatsapp.disconnect
- Get StatusRead-only
Whatsapp Status.
whatsapp.getStatus
- List Available NumbersRead-only
Whatsapp Available Numbers.
whatsapp.listAvailableNumbers
- List TemplatesRead-only
List the WABA's message templates and their approval status.
whatsapp.listTemplates
Conversations
- GetRead-only
Get a conversation with its recent messages.
conversations.get
- ListRead-only
List all conversations for this account.
conversations.list
- List MessagesRead-only
Get paginated messages for a conversation.
conversations.listMessages
- Remove BackgroundDestructive
Clear the custom wallpaper for the chat (iMessage only).
conversations.removeBackground
- Send Typing IndicatorDestructive
Show a typing indicator in the conversation (iMessage only).
conversations.sendTypingIndicator
- Set BackgroundDestructive
Set a custom wallpaper for the chat (iMessage only).
conversations.setBackground
- UpdateWrite
Update a conversation.
conversations.update
Webhooks
- DeleteDestructive
Remove the master webhook for this account.
webhooks.delete
- GetRead-only
Get the master webhook configuration for this account.
webhooks.get
- Get All Time StatsRead-only
Lightweight all-time delivery counts using indexed COUNT queries.
webhooks.getAllTimeStats
- Get Delivery StatsRead-only
Aggregated delivery stats for the account's webhooks over the last N hours.
webhooks.getDeliveryStats
- List DeliveriesRead-only
Get paginated webhook delivery attempts for all account webhooks.
webhooks.listDeliveries
- TestDestructive
Send a test webhook to verify the endpoint is working.
webhooks.test
- UpsertWrite
Save the account-level webhook. Store the signing secret returned by AgentPhone and update the webhook handler whenever the secret changes.
webhooks.upsert
Contacts
- CreateWrite
Create a new contact.
contacts.create
- DeleteDestructive
Delete Contact.
contacts.delete
- GetRead-only
Get a single contact by ID.
contacts.get
- Get CapabilitiesRead-only
Check which messaging channels a phone number supports, without sending a message.
contacts.getCapabilities
- ListRead-only
List all contacts for this account.
contacts.list
- UpdateWrite
Update a contact's fields.
contacts.update
Agent Webhooks
- DeleteDestructive
Remove the webhook for a specific agent.
agentWebhooks.delete
- GetRead-only
Get the webhook configuration for a specific agent.
agentWebhooks.get
- List DeliveriesRead-only
Get recent webhook delivery attempts for a specific agent's webhook.
agentWebhooks.listDeliveries
- TestDestructive
Send a test webhook to the agent's webhook endpoint.
agentWebhooks.test
- UpsertWrite
Save the webhook for one agent. Store the signing secret returned by AgentPhone.
agentWebhooks.upsert
Sip Trunks
- CreateWrite
Create a SIP trunk for routing your numbers' calls to your own SIP infrastructure.
sipTrunks.create
- DeleteDestructive
Delete a SIP trunk (removes upstream and soft-deletes locally).
sipTrunks.delete
- GetRead-only
Get a single SIP trunk.
sipTrunks.get
- ListRead-only
List SIP trunks for the current account.
sipTrunks.list
- UpdateWrite
Update a SIP trunk (name, transfers, origination URIs).
sipTrunks.update
Usage
- GetRead-only
Get usage statistics for the current account.
usage.get
- Get By AgentRead-only
Get Usage By Agent.
usage.getByAgent
- Get By NumberRead-only
Get usage statistics broken down by phone number, with linked agent info.
usage.getByNumber
- Get DailyRead-only
Get daily usage breakdown for the last N days (up to 365). Returns per-day counts of messages, calls, and webhook deliveries.
usage.getDaily
- Get MonthlyRead-only
Get monthly usage aggregation for the last N months. Returns per-month totals of messages, calls, and webhook deliveries.
usage.getMonthly
Registration
- Get DetailsRead-only
Retrieve the content of your submitted A2P 10DLC registration.
registration.getDetails
- Get StatusRead-only
Get Registration Status.
registration.getStatus
- RegisterDestructive
Submit an A2P registration. Adapt the sample messages, consent flow, and business details for your campaign.
registration.register
- UpdateDestructive
Update an existing A2P 10DLC registration.
registration.update
Sub Accounts
- CreateWrite
Create Sub Account.
subAccounts.create
- DeleteDestructive
Delete Sub Account.
subAccounts.delete
- ListRead-only
List Sub Accounts.
subAccounts.list
- UpdateWrite
Update Sub Account.
subAccounts.update
Contact Cards
- DeleteDestructive
Remove the iMessage contact card from this number.
contactCards.delete
- GetRead-only
Fetch the iMessage contact card set on this number.
contactCards.get
- UpsertWrite
Create or replace the iMessage contact card on this number.
contactCards.upsert
Caller Name
- GetRead-only
The caller name shown when this number calls someone. supported is false for numbers that can't set one.
callerName.get
- UpsertWrite
Set the caller name (max 15 characters). Starts as "pending" and usually becomes "active" within 1-3 days. Display is up to the receiving carrier; many mobile carriers don't show it.
callerName.upsert
Location
- GetRead-only
Get Location.
location.get
- RefreshDestructive
Refresh Locations.
location.refresh
Messages
- SendDestructive
Send a message from an existing number. SMS requires outbound carrier activation. Check message history for delivery status before retrying a timed-out send.
messages.send
- Send ReactionDestructive
Send Reaction.
messages.sendReaction
Verification
- CheckDestructive
Check a code for a challenge created with verification.send.
verification.check
- SendDestructive
Start an AgentPhone Verify challenge for a recipient who has requested verification.
verification.send
Feedback
- SubmitDestructive
Report an API issue or documentation mismatch, including the request id of the call it is about when you have one.
feedback.submit
Connect AgentPhone to Claude, ChatGPT or Cursor
- 1
Connect AgentPhone in Corsair
Add your AgentPhone API key once in Corsair. Corsair stores the credential encrypted and makes the AgentPhone API calls for your agent, so it never goes into a prompt or a config file. Connect AgentPhone
If your link lets the agent add apps, you can skip this: it gives you a sign-in link the first time it needs AgentPhone. On a ChatGPT personal plan, connect AgentPhone here first.
- 2
Add Corsair's MCP server to your agent
Every client uses the same address:
https://mcp.corsair.dev/mcpOpen Plugins → Add → Add custom connector, name it Corsair, paste the address, select Continue, then Add.Add a custom MCP server with the address and choose OAuth. Personal plans get read tools only.Add to CursorOr add this to~/.cursor/mcp.json. Cursor opens Corsair to sign in the first time it connects.{ "mcpServers": { "corsair": { "url": "https://mcp.corsair.dev/mcp" } } }Run this, then run/mcpin Claude Code to sign in.claude mcp add --transport http corsair https://mcp.corsair.dev/mcpCodex, Gemini CLI, VS Code, Zed and other clients with OAuth sign-in work the same way. Clients without it, such as GitHub Copilot's coding agent, use a link's own address and an API key. Setup for every client
- 3
Sign in and choose what needs your approval
Your client opens Corsair to sign in. Pick a link: the apps your agent can use and a mode that decides what it may do without asking. In the default Cautious mode, AgentPhone's read and write operations run right away and its 30 destructive operations wait for your approval. Strict mode asks before every write and refuses destructive operations, and Read mode allows reads only.
FAQ
Install corsair and @corsair-dev/agentphone, add the AgentPhone plugin, and connect with an API key. Then call methods like corsair.agentphone.api.agents.attachNumber() from your app. Corsair verifies webhooks, and keeps each tenant isolated.
Yes. AgentPhone requires an API key from your AgentPhone account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.
Yes. One Corsair client can hit AgentPhone, GitHub, Notion, Stripe, and the rest. Trigger AgentPhone from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.
Teams use Corsair for read inbound messages, manage phone numbers, send texts, and handle voice calls with AgentPhone. Common builds include sync jobs, admin tooling, and agents that call AgentPhone APIs from your backend. Webhook handlers react to AgentPhone events and fan out to Slack, email, or other plugins in the same tenant.
The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per AgentPhone API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.
We maintain @corsair-dev/agentphone in the open repo. When AgentPhone ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.
No. Corsair does not read your AgentPhone data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store AgentPhone data on your behalf.
Yes. Add https://mcp.corsair.dev/mcp as a custom connector or MCP server in Claude, ChatGPT, Cursor, VS Code, Claude Code, Codex or any client that supports remote MCP servers with OAuth sign-in, then sign in to Corsair. On ChatGPT personal plans, custom servers currently get read tools only.
Yes. Put AgentPhone on a link in Strict mode and every write waits for your approval, while destructive actions are refused. The default Cautious mode asks only before the 30 destructive AgentPhone operations. You can change a link's mode at hub.corsair.dev/me.