@p402/mcp Server
@Z333Q
AI payment router for agents. Route 300+ LLMs via cost/quality/speed/balanced modes, enforce session budgets, and settle per-request in USDC on Base via x402 micropayments. 6 tools: p402_chat, p402_create_session, p402_get_session, p402_list_models, p402_compare_providers, p402_h
Overview
What is @p402/mcp Server?
@ p402/mcp Server is an AI payment router for agents that routes over 300 LLMs based on cost, quality, speed, or balanced modes, enforces session budgets, and settles per-request in USDC on Base via x402 micropayments. It is built in TypeScript and hosted in the cloud, charging a 1% flat fee.
How to use @p402/mcp Server?
Configure the MCP client to connect to the server, then invoke any of the six exposed tools: p402_chat, p402_create_session, p402_get_session, p402_list_models, p402_compare_providers, or p402_health.
Key features of @p402/mcp Server
- Routes 300+ LLMs by cost, quality, speed, or balance
- Enforces per-session budget limits
- Settles each request in USDC on Base
- Uses x402 micropayments for per-request settlement
- Charges a flat 1% fee on payments
- Exposes six MCP tools for interaction
Use cases of @p402/mcp Server
- An agent automatically selects the cheapest LLM for a given task within a budget
- A developer tests multiple model providers side-by-side via p402_compare_providers
- A user creates a session with a fixed budget and monitors spending with p402_get_session
- An application pays for each LLM call instantly using USDC micropayments
FAQ from @p402/mcp Server
What modes are available for routing?
Routing modes include cost, quality, speed, and balanced.
What is the fee structure?
A flat 1% fee is applied to each payment.
Which blockchain and token are used for settlement?
Settlement is done in USDC on the Base network via x402 micropayments.
What languages and runtime are supported?
The server is written in TypeScript and is deployed as a cloud-hosted service.
How many tools does the server provide?
Six tools: p402_chat, p402_create_session, p402_get_session, p402_list_models, p402_compare_providers, p402_health.