PacketExchange

Voice, SMS and phone verification for AI agents, on one prepaid account.

Hosted MCP Server

npx add-mcp 'https://packetexchange.io/mcp/http'

Installs into Claude Code, Codex, Cursor and more

Documentation

PacketExchange MCP server

Markdown version of https://packetexchange.io/mcp. Index for agents: https://packetexchange.io/llms.txt. Slim OpenAPI spec: https://packetexchange.io/openapi-lite.json.

A hosted Model Context Protocol server: your agent searches and prices routes, sends SMS, places calls, verifies phone numbers and reads the balance, all as tool calls on one endpoint. Nothing to install.

Endpoint: https://packetexchange.io/mcp/http (Streamable HTTP, stateless). Legacy SSE: https://packetexchange.io/mcp/sse, through mcp-remote --transport sse-only. Send your API key as the connection's Authorization: Bearer header; no tool takes a key argument.

Claude Code (.mcp.json)

Claude Code expands ${PACKETEXCHANGE_API_KEY} from your shell, so the key never sits in the file.

{
  "mcpServers": {
    "packetexchange": {
      "type": "http",
      "url": "https://packetexchange.io/mcp/http",
      "headers": {
        "Authorization": "Bearer ${PACKETEXCHANGE_API_KEY}"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

Cursor reads ${env:PACKETEXCHANGE_API_KEY} from the environment it was started in.

{
  "mcpServers": {
    "packetexchange": {
      "url": "https://packetexchange.io/mcp/http",
      "headers": {
        "Authorization": "Bearer ${env:PACKETEXCHANGE_API_KEY}"
      }
    }
  }
}

VS Code (.vscode/mcp.json)

VS Code asks for the key once and stores it in its secret storage, not in the file.

{
  "servers": {
    "packetexchange": {
      "type": "http",
      "url": "https://packetexchange.io/mcp/http",
      "headers": {
        "Authorization": "Bearer ${input:packetexchange-api-key}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "packetexchange-api-key",
      "description": "PacketExchange API key",
      "password": true
    }
  ]
}

Claude Desktop (claude_desktop_config.json)

Claude Desktop launches local commands, so mcp-remote bridges to the hosted endpoint and adds the header.

{
  "mcpServers": {
    "packetexchange": {
      "command": "npx",
      "args": [
        "-y", "mcp-remote",
        "https://packetexchange.io/mcp/http",
        "--header", "Authorization:${PX_AUTH_HEADER}"
      ],
      "env": {
        "PX_AUTH_HEADER": "Bearer px_live_sk_YOUR_KEY"
      }
    }
  }
}

Codex (~/.codex/config.toml)

Codex sends the value of PACKETEXCHANGE_API_KEY as the bearer token.

[mcp_servers.packetexchange]
url = "https://packetexchange.io/mcp/http"
bearer_token_env_var = "PACKETEXCHANGE_API_KEY"

Tools

Discover

  • px_list_routes (also answers to wmmn_list_routes): Search marketplace routes per network, proven first, with measured connect and caller-ID results. No key needed.
  • px_route_details (also answers to wmmn_route_details): One route in full: price, billing increment, stated quality and Exchange Score. No key needed.
  • px_market_summary (also answers to wmmn_market_summary): Route and destination counts right now; averages too when a key is present. No key needed.
  • px_resolve_route (also answers to wmmn_resolve_route): Preview which route Smart Routing would pick for a number, with alternatives.

Connect

  • px_purchase_route (also answers to wmmn_purchase_route): Connect a route to the account: no upfront charge, traffic then bills per use. Live key only.
  • px_list_purchases (also answers to wmmn_list_purchases): The routes you have connected, with SIP credentials. Full-access key only.

Send

  • px_send_sms (also answers to wmmn_send_sms): Send an SMS; returns segments and the exact cost.
  • px_make_call (also answers to wmmn_make_call): Place a call that can speak, play audio and collect keypad digits; returns the outcome and cost, or a call id while it runs.
  • px_get_call (also answers to wmmn_get_call): Live status of a call: answered, duration, cost, hangup reason and gathered digits.

Verify

  • px_verify_start (also answers to wmmn_verify_start): Send a one-time code by SMS or a voice call. Only a hash of the code is kept.
  • px_verify_check (also answers to wmmn_verify_check): Check a code: approved, denied, expired or max_attempts.
  • px_send_voice_otp (also answers to wmmn_send_voice_otp): Read your own code aloud on a call in en, es, fr, de, pt or hi.

Account

  • px_get_balance (also answers to wmmn_get_balance): Prepaid balance and test credit.
  • px_list_transactions (also answers to wmmn_list_transactions): Recent charges, credits and top-ups.
  • px_topup_x402 (also answers to wmmn_topup_x402): Fund the balance with USDC on Base over x402, $5 to $50,000.

18 further switch_* tools manage a hosted Switch and need an operator key on an active Switch plan: switch_preview_routing, switch_analytics_overview, switch_analytics_breakdown, switch_list_customers, switch_create_customer, switch_list_suppliers, switch_create_supplier, switch_set_route_plan_entries, switch_assign_customer_routing, switch_bulk_upsert_supplier_rates, switch_bulk_upsert_sell_rates, switch_create_invoice, switch_list_invoices, switch_ar_aging, switch_create_payable, switch_run_netting, switch_fraud_events, switch_update_fraud_settings.

Sign in instead of pasting a key

Chat apps that support MCP authorization (Claude, ChatGPT, Claude Code) connect to https://packetexchange.io/mcp/connect. With no credential it answers 401 with a WWW-Authenticate challenge, the app opens the PacketExchange sign-in, and the person chooses what the app may do and whether it runs live or in test mode. Metadata: https://packetexchange.io/.well-known/oauth-authorization-server and https://packetexchange.io/.well-known/oauth-protected-resource. A pasted API key keeps working on the same address.

Agent self-signup

An agent can open a sandbox account for a person with one request. The sandbox is free.

curl -X POST https://packetexchange.io/api/v1/agent/signup -H "Content-Type: application/json" -d '{"email":"you@example.com","agent_name":"My agent","accept_terms":true}'
  • A new address gets 201 with a sandbox key (px_test_sk_...) in api_key, plus funding and next_step. accept_terms: true accepts the Terms of Service for the account holder.
  • An address that already has an account gets 202 and a claim_token. Its owner is emailed and must sign in and approve; poll POST /api/v1/agent/signup/status with the claim token every 10 seconds, and the key arrives once.
  • The sandbox key can:
    • Search the marketplace and read market data
    • Read this account
    • Add funds to this account's balance with USDC on Base over x402 (POST /api/v1/topups/x402)
  • It cannot:
    • Place calls, send SMS or send verification codes, real or simulated. That needs the account holder to complete the ID check and create a live key.
    • Buy routes or numbers
    • Withdraw funds
    • Create more keys
  • There is no test credit. Calls, SMS and verifications, simulated ones included, are refused (403 GO_LIVE_REQUIRED or TEST_KEY_NOT_ALLOWED), and the error carries error.next_step: action (human_kyc_required), sign_in_url, kyc_url, live_key_url and the steps. Relay it to the account holder.
  • Fund the account with x402: POST https://packetexchange.io/api/v1/topups/x402 with {"amountUsd":5} and the sandbox key. The first answer is HTTP 402 with the payment requirements; sign the USDC transfer and send the same POST with the X-PAYMENT header. On success the response carries next_step and the account holder is emailed to verify their identity. Guide: https://packetexchange.io/x402.
  • Going live, done by the person:
    1. Sign in on the website with this email address. Choose "Email me a code", which also confirms the address. https://packetexchange.io/login
    2. Complete the ID check. It is required before buying or calling marketplace routes. https://packetexchange.io/dashboard/verify
    3. Create a live API key in the dashboard. https://packetexchange.io/dashboard/api-keys
  • The first sign-in confirms the address and ends keys made before it, the sandbox key included. Funds the agent added stay on the account.
  • Limits: three sign-ups per address a day; throwaway email services and embargoed countries are refused.

Discovery