Developers · PhoneIQ MCP Server

Control your voice agents from any AI tool.

The PhoneIQ MCP server connects Claude, ChatGPT, Cursor, Replit or any MCP client to your PhoneIQ account. Add one URL, sign in with PhoneIQ and pick your workspace. Your AI tool can then read calls and transcripts, and draft and deploy your agents. An API key works too.

What it is

An MCP server over the PhoneIQ customer API.

MCP is the open standard for connecting AI assistants to business tools. The PhoneIQ MCP server speaks it over streamable HTTP and forwards each request to the PhoneIQ customer API. When you sign in with PhoneIQ, it creates an API key for that one connection in your workspace. If you paste your own API key instead, it uses that. Either way, your AI tool sees exactly what that key can see.

  • Read your calls

    Recent calls with outcomes, full transcripts as Caller and Agent turns, private recording links, and monthly minutes.

  • Configure your agents

    Draft new agents with a greeting and instructions, review every saved version, and deploy the one you want live.

  • Wire up events

    Send call, transcript and recording events to your app or CRM with signed webhooks, and test them on the spot.

Control your agent

Draft, review, deploy. In plain words.

Your AI tool works through the same steps you would. New agents start as drafts and never answer calls on create. Deploying makes a saved version live, so you can roll forward to a new version or back to an earlier one.

  • Draft and review

    "Draft a Saturday agent called Weekend Desk. It should say we close at 2pm on Saturdays and take a message. Show it to me before it goes live."

    • create_agent_draft with a name, greeting and instructions
    • get_agent to show the greeting, instructions and versions
  • Deploy

    "Looks right. Deploy Weekend Desk."

    • deploy_agent_version makes the latest saved version live and switches the draft to active
    • It answers calls once a phone number is connected to it with connect_number
  • Roll forward or back

    "Version 4 of the front desk agent is the one we tested. Make it live."

    • list_agents and get_agent to find the agent and its saved versions
    • deploy_agent_version with version: 4
  • Check the setup

    "Which number goes to which agent, and what does the front desk agent say when it answers?"

    • list_routes for each number and the agent it reaches
    • get_agent for the greeting and instructions

Not in the MCP server yet: editing an existing agent, and choosing a voice or model (new agents use your account defaults).

Go live by chat

From a new account to an agent answering calls, in one conversation with your AI tool.

The steps

  1. Connect PhoneIQ to your AI tool (see Connect).
  2. create_agent_draft with a name, greeting and instructions.
  3. get_phone_number gets a local number on your trial or plan.
  4. connect_number with that number and the agent's id.
  5. deploy_agent_version makes the agent live.

The agent now answers calls at its number. get_account_status shows your remaining credit and trial status at any time.

Hours and trial

To cover only certain hours, forward your business phone to your agent's number during those hours. Business hours and rules live in the agent's instructions.

New accounts that sign up through a connector get this trial.

Free trial: 1,000 credits (about 29 minutes of calls), 14 days, one local number, no card needed.

Tool reference

17 tools, one connection.

Results come back as short text your AI tool can read: names, numbers, outcomes and transcripts. List tools return a before cursor when there are more results. Inputs marked optional can be left out.

Read

  • list_agents

    Your voice agents, newest first, with status and live version.

    Inputs: status (draft, active or archived, optional), limit (1 to 200), before

  • get_agent

    One agent: status, live and draft versions, engine, greeting, instructions and enabled tools.

    Inputs: agent_id

  • list_routes

    Which phone number goes to which agent, with recording settings.

    Inputs: limit (1 to 500), before

  • get_usage

    Calls and minutes for a month, with your monthly cap if one is set.

    Inputs: period (YYYY-MM, optional, defaults to this month), granularity (kind or day)

Agent configuration

  • create_agent_draft

    Create a new agent as a draft. It does not answer calls until it is deployed and a number is routed to it.

    Inputs: name, greeting, instructions, description (optional)

  • deploy_agent_version

    Make a saved version live. Without a version, deploys the latest one. A draft agent is switched to active.

    Inputs: agent_id, version (optional)

Numbers and account

  • get_phone_number

    Get a local phone number on your trial or plan.

  • connect_number

    Have one of your agents answer a phone number. Returns the route id, which disconnect_number needs.

    Inputs: phone_number (E.164, e.g. +15125550100), agent_id, recording (optional, defaults to true), external_id (optional)

  • disconnect_number

    Stop an agent answering a number by removing its route.

    Inputs: route_id

  • get_account_status

    Your remaining credit and trial status.

Calls

  • list_calls

    Recent calls, newest first: numbers, time, duration, outcome and agent.

    Inputs: agent_id (optional), since (ISO time, optional), limit (1 to 200), before

  • get_call

    One call with its outcome and full transcript as Caller and Agent turns.

    Inputs: call_id

  • get_recording_link

    A download link for a call recording. It needs no credential and expires after 5 minutes; it is never a permanent public link.

    Inputs: call_id

Webhooks

  • create_webhook

    Subscribe an HTTPS endpoint to events. Returns the signing secret once.

    Inputs: url (https), events (list, or * for all), description (optional)

  • delete_webhook

    Remove a webhook endpoint so PhoneIQ stops sending it events.

    Inputs: webhook_id

  • list_webhooks

    Your webhook endpoints with their events and delivery health.

    Inputs: none

  • test_webhook

    Send one webhook.test event now and report whether it was accepted.

    Inputs: webhook_id

Auth and safety

One workspace, one key, until you revoke it.

Sign in with PhoneIQ

  • Your AI tool opens a PhoneIQ page that names the app asking for access. An app that registered itself is marked as unverified, so check the name before you approve.
  • You log in to PhoneIQ and pick the workspace. Only a workspace owner or admin can approve a connection.
  • PhoneIQ creates one API key for that connection, named MCP · app · host, and lists it in Settings, API keys.
  • The connection does not expire. It lasts until you revoke that key in Settings, API keys, or disconnect PhoneIQ in your AI tool.
  • Connecting the same app to the same workspace again replaces its old key.

Or your own API key

  • An account owner or admin creates a key in PhoneIQ under Settings, API keys. It is shown once.
  • Send it on every request: Authorization: Bearer YOUR_API_KEY.
  • Each key belongs to one PhoneIQ account and sees only that account.
  • Revoke it anytime in the same place, and it stops working.
  • The MCP server never stores, logs or shows your key.

What a connection can do

  • There is one access level today, with no read-only option. A connection can read calls, transcripts and recordings, and it can also create and deploy agents, connect numbers to them and create webhooks.
  • Only a fixed list of customer API operations is reachable. Ops, partner and internal routes are not.
  • Requests are rate limited. Over the limit you get HTTP 429 with a retry-after header.
  • New agents start as drafts and never go live on create.

Connect

Add PhoneIQ to your AI tool.

Early access. The MCP server is enabled per account during early access. Request access to get enabled, then use the settings below.

Recommended

Sign in with PhoneIQ

Add the URL with no headers. Your AI tool finds PhoneIQ's sign-in by itself and registers itself, so there is nothing to set up first. When it asks, sign in to PhoneIQ, pick your workspace and approve.

URL        https://mcp.agents.phoneiq.co/mcp
Transport  Streamable HTTP
Headers    none

Under the hood this is OAuth 2.1 with dynamic client registration and client ID metadata documents. A request without credentials gets a 401 that points your client to PhoneIQ's sign-in.

Claude

  1. Go to Customize, then Connectors.
  2. Click + Add, then Add custom connector.
  3. Name it PhoneIQ, paste the URL and click Continue.
  4. Keep the sign-in settings Claude detects, and click Add.
  5. Connect, then sign in to PhoneIQ and pick your workspace.

ChatGPT

  1. Go to chatgpt.com/plugins.
  2. Select the plus button, then Add custom MCP server.
  3. Enter a name and description, and paste the URL under Connection.
  4. Choose OAuth for authentication, review the warning and select Create as a plugin.
  5. Sign in to PhoneIQ when asked.

Your ChatGPT workspace's settings may need to allow custom MCP servers.

Cursor

Add this to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json for every project. Cursor reads PhoneIQ's sign-in details and asks you to sign in.

{
  "mcpServers": {
    "phoneiq": {
      "url": "https://mcp.agents.phoneiq.co/mcp"
    }
  }
}

Claude Code

Run this once in your terminal.

claude mcp add --transport http phoneiq \
  https://mcp.agents.phoneiq.co/mcp

Then sign in: run /mcp in Claude Code and choose phoneiq, or run claude mcp login phoneiq.

Replit Agent

  1. Open Integrations, then MCP Servers.
  2. Click + Add MCP server and name it PhoneIQ.
  3. Paste the URL. Leave the headers empty.
  4. Click Test & save. Replit walks you through signing in to PhoneIQ.

Or connect with an API key

Use this for scripts and clients that cannot open a browser to sign in. Create a key in PhoneIQ under Settings, API keys, and send it as a header.

Any MCP client

URL        https://mcp.agents.phoneiq.co/mcp
Transport  Streamable HTTP
Header     Authorization: Bearer YOUR_API_KEY

To try it by hand, run npx @modelcontextprotocol/inspector, choose Streamable HTTP, paste the URL and add the header.

Claude Code, Cursor and Replit

claude mcp add --transport http phoneiq \
  https://mcp.agents.phoneiq.co/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"

In Cursor, add "headers": { "Authorization": "Bearer YOUR_API_KEY" } next to the URL. In Replit, open Advanced settings when you add the server and add a header named Authorization with the value Bearer YOUR_API_KEY.

Webhooks

Call events, straight to your app or CRM.

What you can receive

PhoneIQ sends an HTTPS POST to your endpoint as things happen. Subscribe to any of these events, or to all of them:

  • call.created, call.answered, call.ended, call.failed
  • transcript.final and recording.ready
  • usage.call_summary and contact.erased
  • webhook.test for checking your endpoint

Every delivery is signed. Verify the x-phoneiq-signature header (HMAC-SHA256) with the signing secret you get once when you create the webhook (how). Delivery is at least once and unordered, so dedupe on the event id. Reply with any 2xx within 10 seconds.

Set one up by asking

"Add a webhook to https://your-app.example.com/phoneiq for call.ended and transcript.final, send a test event, and tell me if it arrived."

  • create_webhook returns the endpoint and its signing secret
  • test_webhook sends a test event and reports the result

Request headers on every delivery

POST /your/path
content-type: application/json
user-agent: PhoneIQ-Webhooks/1.0
x-phoneiq-signature: t=1781372528,v1=<64 hex chars>
x-phoneiq-event-id: evt_4f0a9c1b2d3e4f5061728394a5b6c7d8
x-phoneiq-event-type: call.ended

Example payloads

Every body is the same envelope: id, type, apiVersion, createdAt, customerId and a data object that depends on the type. Fields marked nullable below can be null.

call.ended

data is the full call, the same shape as GET /api/agents/v1/calls/{id} without the transcript. Nullable: runtimeNode, routeId, agentId, agentVersion, answeredAt, endedAt, endReason, both numbers, recordingUrl, totalTurns, both latencies and metadata. transcriptUrl is always null; the turns arrive in transcript.final. Treat endReason as free text.

{
  "id": "evt_4f0a9c1b2d3e4f5061728394a5b6c7d8",
  "type": "call.ended",
  "apiVersion": "2026-06",
  "createdAt": "2026-06-13T17:43:42.512Z",
  "customerId": "cust_9a8b7c6d",
  "data": {
    "id": "call_77c1a2b3c4d5e6f70819",
    "direction": "inbound",
    "runtimeNode": "node-sjc-04",
    "routeId": "route_0a1b2c3d4e5f60718293a4b5c6d7e8f9",
    "agentId": "agent_1234567890abcdef1234567890abcdef",
    "agentVersion": 3,
    "startedAt": "2026-06-13T17:41:55.000Z",
    "answeredAt": "2026-06-13T17:41:58.000Z",
    "endedAt": "2026-06-13T17:43:42.000Z",
    "endReason": "caller_hangup",
    "callerNumber": "+14155550123",
    "calleeNumber": "+14155550199",
    "transcriptUrl": null,
    "recordingUrl": "https://agents.phoneiq.co/api/agents/v1/calls/call_77c1a2b3c4d5e6f70819/recording",
    "totalTurns": 12,
    "latencyMsP50": 540,
    "latencyMsP95": 910,
    "metadata": null
  }
}

recordingUrl downloads with your API key in the Authorization header.

transcript.final

data has the callId and the ordered transcript. Each turn has speaker ("caller" or "assistant"), text, and atMs, the offset from the start of the call in milliseconds. It can arrive before or after call.ended for the same call.

{
  "id": "evt_0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e",
  "type": "transcript.final",
  "apiVersion": "2026-06",
  "createdAt": "2026-06-13T17:43:43.020Z",
  "customerId": "cust_9a8b7c6d",
  "data": {
    "callId": "call_77c1a2b3c4d5e6f70819",
    "transcript": [
      {
        "speaker": "assistant",
        "text": "Thanks for calling. How can I help?",
        "atMs": 1200
      },
      {
        "speaker": "caller",
        "text": "I need to reschedule my appointment.",
        "atMs": 4300
      }
    ]
  }
}

Verify the signature

The header looks like x-phoneiq-signature: t=1781372528,v1=5d41.... t is the Unix time in seconds when PhoneIQ signed the body. v1 is the HMAC-SHA256 of t, a dot and the raw body, as lowercase hex.

Step by step

  1. Read the raw request body as text, before any JSON parsing. Parsing and re-serializing changes the bytes and breaks the check.
  2. Split the header on , and then on = to get t and v1.
  3. Build the signed message: t + . + raw body, as UTF-8.
  4. Compute HMAC-SHA256 of that message. The key is your whole signing secret as a plain string, including the whsec_ prefix. Do not hex-decode it.
  5. Hex-encode the result in lowercase and compare it to v1 with a constant-time comparison.
  6. Reject the request if t is more than 5 minutes from your clock. PhoneIQ does not enforce a time window, so this check is yours.
  7. Only then parse the JSON and dedupe on id.

The signing secret looks like whsec_ followed by 64 hex characters. It is shown once, when the webhook is created. Store it as a secret, for example PHONEIQ_WEBHOOK_SECRET.

Node and TypeScript

import { createHmac, timingSafeEqual } from "node:crypto";

export function verifyPhoneIQ(rawBody: string, header: string | null, secret: string): boolean {
  const parts = Object.fromEntries((header ?? "").split(",").map((p) => p.split("=")));
  const t = Number(parts.t);
  if (!parts.v1 || !Number.isInteger(t) || Math.abs(Date.now() / 1000 - t) > 300) return false;
  const expected = createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
  const a = Buffer.from(expected);
  const b = Buffer.from(parts.v1);
  return a.length === b.length && timingSafeEqual(a, b);
}

// In a fetch-style handler (Next.js, Hono, Bun, Workers):
const raw = await req.text();
if (!verifyPhoneIQ(raw, req.headers.get("x-phoneiq-signature"), process.env.PHONEIQ_WEBHOOK_SECRET!)) {
  return new Response("bad signature", { status: 400 });
}
const event = JSON.parse(raw);

In Express, keep the raw body with express.json({ verify: (req, _res, buf) => { req.rawBody = buf.toString("utf8"); } }) and pass req.rawBody.

Show it in your app

Your agent's number and calls, inside your app.

Three steps

  1. Create an API key in PhoneIQ under Settings, API keys. An owner or admin can create one. It is shown once.
  2. Store it in your app's secrets, for example Replit Secrets as PHONEIQ_API_KEY. Call PhoneIQ from your server only, never from the browser.
  3. Read GET https://agents.phoneiq.co/api/agents/v1/routes for each number (did) and the agent that answers it (agentId), and GET /api/agents/v1/calls for recent calls, newest first. Send Authorization: Bearer with the key.

To get calls pushed to you instead, use create_webhook for call.ended and transcript.final, and verify each delivery.

Example

const base = "https://agents.phoneiq.co/api/agents/v1";
const headers = { Authorization: `Bearer ${process.env.PHONEIQ_API_KEY}` };

const { routes } = await (await fetch(`${base}/routes`, { headers })).json();
const { calls } = await (await fetch(`${base}/calls?limit=10`, { headers })).json();

// routes[0].did          "+14155550123" (the agent's number)
// calls[0].callerNumber  "+15125551234"
// calls[0].startedAt, endedAt, endReason, agentId, recordingUrl

Both lists return hasMore and nextCursor; pass nextCursor back as before for the next page. Calls take limit (up to 200), agent_id and since.

Build on PhoneIQ.

Tell us what you're building and which AI tool you use. We'll get your account enabled.

Or email [email protected].

Request access