Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

Explore

  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Tags index
  • Submit a server
  • Pricing

Learn

  • Guides hub
  • What is MCP?
  • Install guide
  • Troubleshooting
  • Security
  • Blog
  • Blog RSS

Tools

  • All tools
  • Config generator
  • Config validator
  • MCP playground
  • OpenAPI β†’ MCP
  • Badge generator

For agents

  • API docs
  • Trust & traffic
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
  • Remote MCP β†— (opens in a new tab)

Company

  • About
  • Contact
  • X (@AllMCPs) β†— (opens in a new tab)
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on Buildlist
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’° Finance & Fintech
  3. P402
P
Health: Not checked yetWe have not completed a health check for this listing yet.Last checked 8/11/2026, 12:20:29 AM

P402

Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository

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

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Install Config Generator

Choose your client
claude_desktop_config.json
{
  "mcpServers": {
    "p402": {
      "command": "npx",
      "args": [
        "-y",
        "p402"
      ]
    }
  }
}

πŸ’‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

Install Directory Badge Claim listing AlternativesπŸ’° More in Finance & Fintech

Documentation Overview

P402 Protocol

npm @p402/sdk npm @p402/cli npm @p402/mcp-server npm @p402/mpp-method VS Code Marketplace License: MIT Docs

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:

Code
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)

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

β†’ MCP docs Β· MCP Registry


Quick Start (SDK)

Terminal
npm install @p402/sdk
server.ts
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)

bash
# 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:

server.ts
// 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.

Code
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.

typescript
// 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 helpersnpm
@p402/cliCLI tool β€” login, chat, sessions, mandates, analyticsnpm
@p402/mcp-serverstdio MCP server β€” 6 tools over Model Context Protocolnpm
@p402/mpp-methodmppx payment methods β€” Base EIP-3009 and Tempo TIP-20 multi-rail settlementnpm
p402 VS Code extensionEmbedded MCP server for VS Code, Cursor, and Windsurf β€” zero configMarketplace

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

  • Dashboard: p402.io/dashboard
  • Docs: p402.io/docs
  • Issues: GitHub Issues
  • Security: See SECURITY.md for responsible disclosure
  • Contributing: See CONTRIBUTING.md

License

MIT Β© P402 Protocol

Related MCP Servers

View all in Finance & Fintech View all alternatives
  • P
    Parser

    Parse receipts & invoices into structured JSON. Pay per call in USDC (x402 on Base), no API key.

    πŸ’° Finance & Fintech0 views
    Compare vs Parser β†’
  • M
    M2mcent

    x402 payment wrapper for AI Agents and MCP Servers. USDC settlements on Base L2.

    πŸ’° Finance & Fintech0 views
    Compare vs M2mcent β†’
  • Mcp logoMcp

    x402 micropayments for AI agents β€” credits-based, no wallets, no blockchain.

    πŸ’° Finance & Fintech1 views
    Compare vs Mcp β†’
  • SAP MCP Server logoSAP MCP Server

    Solana-native MCP gateway for SAP, DeFi tools, SNS identity, and x402 payments.

    πŸ’° Finance & Fintech0 views
    Compare vs SAP MCP Server β†’

Frequently Asked Questions about P402

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "p402": { "command": "npx", "args": ["-y", "p402"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewP402 AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/p402?style=directory)](https://allmcps.com/mcp/p402)
HTML Embed
<a href="https://allmcps.com/mcp/p402"><img src="https://allmcps.com/api/badge/p402?style=directory" alt="P402 on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ’°Finance & Fintech
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
27Quality signal: Emerging Β· 27/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools11/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedAllMCPs Server logo

AllMCPs Server

The official MCP server for AllMCPs.com - submit and manage tools directly from your AI. The open directory for MCP servers. Connect Claude, Cursor, Windsurf, and AI agents to databases, tools, files, and APIs. Explore 3,181+ servers. AllMCPs is the premier, open directory for discovering, evaluating, and installing Model Context Protocol (MCP) servers to equip AI agents and LLMs with real-world superpowers.

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Free dofollow backlink: after claiming, verify your product site and place a dofollow AllMCPs badge β€” we recheck it stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’° Finance & Fintech β†’Best MCP servers for Finance & Fintech β†’Alternatives to P402 β†’Install in Claude DesktopInstall in CursorInstall in VS Code