
P402
Route agent LLM requests through P402’s multi-provider router with x402 micropayments settled on Base L2 instead of juggling separate API billing accounts.
Overview
P402 is a MCP server for the Build phase that routes multi-provider AI requests with x402 micropayment settlement on Base L2 through the P402 router.
What is this MCP server?
- Multi-provider AI router exposed as an MCP server
- x402 micropayment settlement on Base L2 with documented 1% flat fee
- Requires P402_API_KEY from p402.io dashboard settings
- Optional P402_ROUTER_URL override (default https://p402.io)
- npm @p402/mcp-server at registry version 1.0.0
- Transport: stdio
- npm identifier @p402/mcp-server
What problem does it solve?
Agents need several LLM vendor keys and billing setups, which slows integration and makes usage costs opaque during shipping.
Who is it for?
Builders wiring Claude Code or Cursor to a paid, multi-model router who want x402-style settlement instead of per-vendor dashboards.
Skip if: Teams that must keep all inference on-premises with no third-party router, or anyone unwilling to use Base L2 micropayments.
What do I get? / Deliverables
One P402 API key and MCP tools let your agent call routed models with micropayments on Base L2 per the service’s 1% fee model.
- Agent-accessible routed LLM calls via P402
- Configurable router endpoint (default https://p402.io)
- Consolidated multi-provider access behind one MCP integration
Recommended MCP Servers
Journey fit
How it compares
Paid AI routing MCP, not a local Ollama skill or codebase search integration.
Common Questions / FAQ
Who is P402 for?
Solo builders and agent authors who want a single P402-backed router for multiple LLM providers with x402 payments on Base L2.
When should I use P402?
Use it during Build when integrating model calls into your agent or API and you are ready to configure P402_API_KEY and monitor micropayment spend.
How do I add P402 to my agent?
Create a P402 API key at https://p402.io/dashboard/settings, add the npm MCP server @p402/mcp-server via stdio in your client, and set P402_ROUTER_URL only if you need a non-default router host.