Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

P402

by Z333Qversion 1.0.0i★ –iRuns on your computer
Registry nameio.github.Z333Q/p402

Install

Overview

Description from the maker (original English)

Multi-provider AI router with x402 micropayment settlement on Base L2. 1% flat fee.

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Other
  • You need to fill in: P402_API_KEY

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: P402_API_KEY, P402_ROUTER_URL

Values marked secret are keys to your account. Never share them or paste them into a chat.

You need

  • npmNode.js installed (for the npx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

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

Run this in your terminal

claude mcp add p402 --env P402_API_KEY=your-value --env P402_ROUTER_URL=your-value -- npx -y @p402/mcp-server

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

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

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "p402": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@p402/mcp-server"
      ],
      "env": {
        "P402_API_KEY": "your-value",
        "P402_ROUTER_URL": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • P402_API_KEY secret required env
    Your P402 API key. Get one at https://p402.io/dashboard/settings
  • P402_ROUTER_URL env
    P402 router base URL override. Defaults to https://p402.io

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 7, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account Z333Q, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Otheri

  • More stars than 0% of the other 32725 servers in this category
  • Published to the registry more recently than 4% of the other 32725 servers in this category
  • Basic checks equal to or better than 100% of the other 32725 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is P402 safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: P402_API_KEY

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (1.0.0) reached the registry 8 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: Spec Driven Development, Remote Desktop Commander, Signoff

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Spec Driven Development

by formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

Runs on your computer★ 440MITUpdated 14 months ago
Install

Remote Desktop Commander

by desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

Runs in the cloud★ 211Updated 2 days ago
Install

Signoff

by ayuanxx-max

Five gates that make an agent's 'done' provable: run them, read the verdict, audit the record.

Runs on your computerUpdated today
Install

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

P402 Protocol

AI payment router. Route across 300+ models, settle per request in USDC on Base or USDC.e on Tempo.

P402 sits between your AI application and every LLM provider. It handles intelligent multi-provider routing (cost / quality / speed / balanced), on-chain micropayment settlement via the x402 protocol and mppx on Base and Tempo, and spending guardrails for autonomous agents.


Why P402

ProblemP402 Solution
Hardcoded to one AI providerRoute across 300+ models automatically
$0.30 payment fees kill micropaymentsUSDC on Base: fractions of a cent per settlement
No spending limits for AI agentsSession budgets + AP2 mandate governance
Fragmented provider APIsOne OpenAI-compatible endpoint
No visibility into AI costsReal-time analytics + optimization suggestions

Quick Start (VS Code / Cursor / Windsurf)

Install the extension — the MCP server is embedded, tools appear in Copilot agent mode immediately, no config files required:

ext install p402-protocol.p402

Then run P402: Configure API Key from the command palette.

→ VS Code Marketplace · Open VSX


Quick Start (Claude Desktop / any MCP client)

{

"mcpServers": { "p402": { "command": "npx", "args": ["-y", "@p402/mcp-server"], "env": { "P402_API_KEY": "p402_live_..." } } } }

→ MCP docs · MCP Registry


Quick Start (SDK)

npm install @p402/sdk
import P402Client from '@p402/sdk';

const p402 = new P402Client({ apiKey: process.env.P402_API_KEY });

// Drop-in OpenAI replacement — P402 picks the best provider const response = await p402.chat({ messages: [{ role: 'user', content: 'Explain x402 payments in one sentence.' }], p402: { mode: 'cost' } // cost | quality | speed | balanced });

console.log(response.choices[0].message.content); // p402_metadata: { provider: 'deepseek', cost_usd: 0.00031, latency_ms: 412 }


Quick Start (CLI)

# Authenticate once

npx p402 login

Chat using the cheapest provider

npx p402 chat "What is x402?" --mode cost

Check facilitator health

npx p402 health


Routing Modes

ModeOptimizes ForTypical Provider
costLowest priceDeepSeek V3, Haiku 4.5, GPT-4o-mini
qualityBest outputClaude Opus 4.6, GPT-5, Gemini 3 Pro
speedLowest latencyGroq LPU, Flash models
balancedEqual weight (default)Sonnet 4.6, GPT-4o, Gemini Flash

Session Budgets

Enforce hard spending caps for autonomous agents:

// Create a $10 session — agent cannot spend a cent more

const session = await p402.createSession({ budget_usd: 10 });

// All chat requests are deducted from the session const response = await p402.chat({ messages, p402: { session_id: session.id, mode: 'cost' } });

// Check remaining budget const { budget } = await p402.getSession(session.id); console.log($${budget.remaining_usd} remaining);


x402 Payments

x402 is a machine-native payment protocol using HTTP 402. AI agents pay for resources using gasless EIP-3009 USDC transfers on Base L2.

Client → signs EIP-3009 authorization

→ POST /api/v1/facilitator/verify → POST /api/v1/facilitator/settle Facilitator → executes transferWithAuthorization → pays gas (user pays zero gas) → returns { success, txHash, receipt }

Network: Base Mainnet (Chain ID: 8453) · Asset: USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

→ x402 payments guide


A2A Protocol

P402 implements the Google A2A spec over JSON-RPC 2.0. Agents communicate through structured tasks, discover capabilities via /.well-known/agent.json, and settle payments via the x402 extension.

// Discover P402's capabilities

GET https://p402.io/.well-known/agent.json

// Submit a task POST https://p402.io/api/a2a { "jsonrpc": "2.0", "method": "tasks/send", "params": { ... } }

→ A2A protocol guide


Packages

PackageDescriptionVersion
@p402/sdkTypeScript SDK — P402Client, types, EIP-712 mandate helpers
@p402/cliCLI tool — login, chat, sessions, mandates, analytics
@p402/mcp-serverstdio MCP server — 6 tools over Model Context Protocol
@p402/mpp-methodmppx payment methods — Base EIP-3009 and Tempo TIP-20 multi-rail settlement
p402 VS Code extensionEmbedded MCP server for VS Code, Cursor, and Windsurf — zero config

Examples

ExampleWhat It Shows
01-quickstartLogin → chat → view spend in ~20 lines
02-openai-migrationDrop-in OpenAI SDK replacement
03-nextjs-session-budgetBudget-capped AI in a Next.js App Router project
04-a2a-agentsTwo agents communicating with x402 payment gate

Docs

Guide
Getting StartedAccount, API key, first request
AuthenticationAPI keys, env vars, security
Routing GuideModes, scoring, providers, models
x402 PaymentsEIP-3009, wire format, settlement
SessionsSession lifecycle + budget enforcement
A2A ProtocolJSON-RPC, mandates, Bazaar
CLI ReferenceFull CLI command reference
OpenAPI SpecMachine-readable API schema

Community


License

MIT © P402 Protocol

Ask PopNx