IDPHANTOM MCP Server
Exposes IDPHANTOM payments as MCP tools so an AI agent can quote, authorize, submit, and verify agent-to-agent payments.
quote_payment: create a free, idempotent payment quote with 0.5% fee (min $0.01 USDC) and optional metadata/agent IDs.authorize_payment: attach the payer's EIP-712 PaymentAuthorization signature to a quoted intent.submit_payment: broadcast and settle an authorized intent on-chain via IDPHANTOM's relay; exactly one broadcast enforced.verify_payment: verify a payment receipt's EIP-712 signature, payer recovery, expiry, and on-chain authorization state.Setup/registration: use the CLI
initflow (paid $2 USDC on Base mainnet) to register an agent and get an API key.Funnel analytics: emits
[funnel]JSON events on stderr for onboarding (install → register → first pay → repeat).
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@IDPHANTOM MCP Server quote and submit a 5 USDC payment to seller-agent on Base"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
IDPHANTOM MCP Server
@phantomid/mcp-server exposes IDPHANTOM payments as standard MCP tools so an AI agent can quote, authorize, submit, and verify agent-to-agent payments through IDPHANTOM.
Production defaults to:
https://pay.idphantom.comInstall
npx @phantomid/mcp-serverFor MCP clients, configure the server command and environment:
{
"mcpServers": {
"phantom-id": {
"command": "npx",
"args": ["@phantomid/mcp-server"],
"env": {
"PHANTOM_API_URL": "https://pay.idphantom.com",
"PHANTOM_API_KEY": "pk_live_..."
}
}
}
}PHANTOM_API_URL is optional when using production. PHANTOM_API_KEY is required for normal paid API usage after registration.
Self-serve tools environment (AGP-100)
The MCP tools phantom_register and phantom_authorize_budget read their
signing keys only from the environment (never from command-line flags —
argv leaks into shell history and process listings):
Variable | Used by | Purpose |
|
| Pays the $2 USDC registration; signs locally, never leaves the process. |
|
| Human funder's key for the EIP-712 |
| both |
|
| funnel |
|
Without PHANTOM_PAYER_PRIVATE_KEY, phantom_register runs in manual mode:
pass payer_wallet and it returns the registration challenge plus
step-by-step signing instructions.
Funnel events (AGP-100 F1.4)
The server emits one JSON line per event on stderr, prefixed with [funnel]:
[funnel] {"event":"install","ts":"...","source":"external",...}Events: install → register_start → register_complete → first_pay →
repeat. Scrape these lines to build the onboarding funnel
(install → register → first pay → repeat). Traffic tagged
PHANTOM_FUNNEL_SOURCE=internal must be aggregated separately from external
volume.
Related MCP server: cardzero-mcp
Connect Your Agent In 5 Minutes
Registration is self-serve and costs $2 USDC on Base mainnet. The CLI signs locally and never prints the private key.
export PHANTOM_PAYER_PRIVATE_KEY="0x..."
export PHANTOM_ROUTER_ADDRESS="0x..."
npx @phantomid/mcp-server init --name my-agentThe init flow calls:
POST /v1/registerPOST /v1/intents/:id/authorizePOST /v1/intents/:id/submitGET /v1/register/:referencePOST /v1/register/:reference/claim
On success it prints the account id and the API key once. Store the returned key as PHANTOM_API_KEY.
Flags are supported for non-sensitive options. The payer key is environment-only (never a flag — command lines leak into shell history and process listings):
export PHANTOM_PAYER_PRIVATE_KEY="0x..."
npx @phantomid/mcp-server init \
--api-url https://pay.idphantom.com \
--router-address 0x... \
--name my-agentTools
The server supports newline-delimited JSON-RPC over stdio.
quote_payment
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "quote_payment",
"arguments": {
"payer_wallet": "0x...",
"recipient_wallet": "0x...",
"asset_contract": "0x...",
"amount": "1000000",
"chain_id": 8453,
"idempotency_key": "quote-001",
"payer_agent_id": "buyer-agent",
"recipient_agent_id": "seller-agent"
}
}
}authorize_payment
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "authorize_payment",
"arguments": {
"payment_intent_id": "pi_...",
"payer_signature": "0x..."
}
}
}submit_payment
{
"jsonrpc": "2.0",
"id": 3,
"method": "tools/call",
"params": {
"name": "submit_payment",
"arguments": {
"payment_intent_id": "pi_..."
}
}
}verify_payment
{
"jsonrpc": "2.0",
"id": 4,
"method": "tools/call",
"params": {
"name": "verify_payment",
"arguments": {
"payment_intent_id": "pi_...",
"receipt_id": "rcpt_..."
}
}
}Limits
Default production policy limits are:
50 USD maximum per payment
500 USD maximum per day
Payments above those limits are rejected by the PHANTOM ID API.
Publish
npm publish --access publicAvailable Tools
4 toolsauthorize_paymentAuthorize a paymentAIdempotentInspect
Attach the payer's EIP-712 PaymentAuthorization signature to a quoted payment intent. The signature is produced locally by the payer's wallet; it authorizes up to maximumTotalAuthorized, expiring at expiresAt. No funds move until submit_payment.
Inputs: payer_signature (required), payment_intent_id (required). Returns: content, isError
quote_paymentQuote a paymentAIdempotentInspect
Create an IDPHANTOM payment quote with transparent platform fee (0.5%, min $0.01 USDC). Returns a payment intent ready for the payer's EIP-712 signature. Free: quoting never moves funds.
Inputs: amount (required), chain_id (required), payer_wallet (required), asset_contract (required), +5 more. Returns: content, isError
submit_paymentSubmit a paymentADestructiveIdempotentInspect
Broadcast an authorized payment intent through IDPHANTOM. The platform relays the on-chain transaction; exactly one broadcast per intent is enforced server-side (retries return the already-submitted transaction hash). This is the step that settles funds.
Inputs: payment_intent_id (required). Returns: content, isError
verify_paymentVerify a payment receiptARead-onlyIdempotentInspect
Verify an IDPHANTOM payment receipt: cryptographic checks (EIP-712 signature, payer recovery), expiry, and the on-chain state of the authorization (free/used/cancelled). Free for receipts of payments the caller participated in; paid via the receipt-verifier for third-party receipts.
Inputs: payment_intent_id (required), receipt_id. Returns: content, isError
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool maps to a distinct phase of the payment lifecycle (quote, authorize, submit, verify) with no overlapping responsibilities. The descriptions clearly delineate when funds move and what each step requires.
All four names follow a consistent snake_case verb_noun pattern. The verbs are precise and parallel (quote_, authorize_, submit_, verify_).
Four tools form a minimal, well-scoped set for the payment flow; each tool is necessary and no tool feels redundant or missing at the count level.
The core quote→authorize→submit→verify lifecycle is covered, but there is no explicit cancel/refund tool despite verify tracking a cancelled state, and no payment history or listing operation. These are minor gaps an agent can likely work around for single payments.
Maintenance
Related MCP Connectors
Pay-per-use MCP tools for AI agents. USDC on Base via x402. No API keys.
Non-custodial stablecoin bill-pay rails on Celo & Base for AI agents, settled on-chain via MCP.
15 paid AI agent primitives via x402 (USDC on Base). Pay-per-call MCP server.
28 agent tools via x402: crypto data, tx checks, web fetch. MCP pays Base USDC; HTTP adds 3 rails.
Related MCP Servers
FlicenseNot gradedqualityDmaintenanceEnables AI agents to discover and pay for monetized services such as PDF processing and DeFi operations using USDC on the Base blockchain. It provides automatic payment processing and secure local wallet management for seamless integration with MCP-compatible clients.16 npm-- AlicenseAqualityDmaintenanceGives AI agents a smart-contract wallet on Base (USDC) with 10 stdio tools: create wallets, send USDC payments, pay x402-protected HTTP resources, and run ERC-8183 escrow Jobs for A2A service delivery.1010 npmMIT

paean-pay-mcpofficial
AlicenseNot gradedqualityDmaintenanceEnables AI agents to send and receive USDC stablecoin payments on Base and Solana blockchains through MCP tools for wallet operations, balance checks, payment requests, and transfers.31 npm7MIT- AlicenseAqualityDmaintenanceAn MCP server for USDC payments on Base, enabling AI agents to check balances, send payments, generate payment requests, and view transaction history.42MIT