p402

p402 is an MCP server for Claude Code, Codex, Cursor, Gemini CLI, OpenCode from Z333Q/p402-protocol. Its token cost is not measured, scanned A, original, MIT.

A local MCP server that routes requests across AI providers and settles small payments through x402 on Base, an Ethereum layer-2 network.

In plain words
What is it for?
Use it when an agent needs multi-provider AI routing and x402 payment handling through the P402 MCP package.
Why use it?
It provides one connection for multiple AI providers and records payment settlement through the configured router.

MCP server for Claude CodeCodexCursorGemini CLIOpenCode

Written for no agent in particular: it speaks MCP, so any client can run it.

Good fit Use it when an agent needs multi-provider AI routing and x402 payment handling through the P402 MCP package.

Compare 6 mcp servers from other repositories ↓
Install with agentmods
npx agentmods add mcp/z333q/p402-protocol/mcp-server-p402
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/Z333Q/p402-protocol

Made for: Claude Code, Codex, Cursor, Gemini CLI, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for p402

README.md
[![agentmods](https://agentmods.dev/badge/mcp/z333q/p402-protocol/mcp-server-p402.svg)](https://agentmods.dev/mcp/z333q/p402-protocol/mcp-server-p402)
Your own site
<a href="https://agentmods.dev/mcp/z333q/p402-protocol/mcp-server-p402"><img src="https://agentmods.dev/badge/mcp/z333q/p402-protocol/mcp-server-p402.svg" alt="Measured on agentmods" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

p402 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

packages/mcp-server/server.json · 13 lines

What it actually says

{
  "p402": {
    "command": "npx",
    "args": [
      "-y",
      "@p402/mcp-server"
    ],
    "env": {
      "P402_API_KEY": "",
      "P402_ROUTER_URL": ""
    }
  }
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 13 lines scan A cb7ae9217bc1

Subscribe to this mod's changes

p402 is an MCP server published in the GitHub repository Z333Q/p402-protocol (0 stars, last pushed 1mo ago), licensed MIT. Its token cost is not measured: an MCP server costs its tool schemas, not its config file. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other mcp servers, from other repositories

polymarket-guard

Polymarket prediction markets — buy/sell positions in USDC. LemonCake pay-per-call billing. Runs locally from the polymarket-guard-mcp npm package. Needs 2 environment variables to run.

evidai/agent-payment-mcp · not measured

xstocks

Buy tokenized US stocks (xStocks) on Solana via Jupiter DEX in USDC. Daily cap. Dry-run default. Runs locally from the xstocks-mcp npm package. Needs 2 environment variables to run.

evidai/agent-payment-mcp · not measured

agent-payment

Stripe-style USDC billing for any API. 8 free demo services no signup. Non-custodial. Runs locally from the agent-payment-mcp npm package.

evidai/agent-payment-mcp · not measured

verantis-mcp

MCP server for Verantis — the verified directory for machine payments (x402 & MPP). Find live-verified services and check a wallet before your agent pays. Runs locally from the verantis-mcp Python package. Needs 1 environment variable to run.

m9labs-railscope/verantis-mcp · not measured

anchor-x402

MCP server for anchor-x402 — 14 x402-paid agent utilities on Base + Solana. 9 commodity primitives (anchor, screen, attest, decode/tx, resolve/name, price/token, decode/calldata, parse/datetime, intel/wallet) plus 5 universal LLM endpoints (roast, oracle. Runs locally from the anchor-x402-mcp npm package. Needs 1…

hypeprinter007-stack/anchor-x402-mcp · not measured

stipend

Non-custodial USDC wallet on Base with spending limits enforced in code, not in a prompt. Runs locally from the stipend npm package.

stipend-sh/stipend · not measured