MCP (Model Context Protocol)
Use Dial x402 as an MCP server for any AI agent framework.
MCP Integration
Dial can be used as an MCP server, giving any MCP-compatible agent (Claude Desktop, Cursor, OpenClaw, etc.) access to telephony and OSINT primitives.
MCP Tools
| Tool | Description | x402 Price |
|---|---|---|
dial_send_sms | Send SMS to a phone number | $0.10 |
dial_lookup_phone | Reverse phone number lookup | $0.05 |
dial_breach_search | Search breach data | $0.05 |
dial_buy_credits | Buy prepaid credits | $0.10 |
dial_check_balance | Check credit balance | Free |
Configuration
Claude Desktop
Add to ~/.claude/mcp.json:
{
"mcpServers": {
"dial": {
"command": "npx",
"args": ["@dial/mcp"],
"env": {
"DIAL_API_URL": "https://x402.dial.wtf",
"DIAL_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY"
}
}
}
}Cursor
Add to .cursor/mcp.json in your project:
{
"mcpServers": {
"dial": {
"command": "npx",
"args": ["@dial/mcp"],
"env": {
"DIAL_API_URL": "https://x402.dial.wtf",
"DIAL_PRIVATE_KEY": "0xYOUR_PRIVATE_KEY"
}
}
}
}x402 Payment Flow in MCP
When an MCP tool requires payment:
- The MCP server calls the Dial API
- If the response is
402, it automatically signs an x402 payment - Payment settles on Base in ~1 second
- The result is returned to the agent
The agent never needs to handle payment logic — it's all transparent.