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.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Transports: stdio vs HTTP
  • State of MCP (stats)
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • 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 BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs 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 BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’° Finance & Fintech
  3. P402
P402 logo
Health: ActiveRecent health check succeeded.Last checked 9/23/2026, 1:31:19 AM

P402

User RatingsBe the first to rate and review this MCP server! 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 RepositoryVisit Website

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
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "p402": {
      "command": "npx",
      "args": [
        "-y",
        "p402"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

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

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Finance & Fintech View all alternatives
  • 1inch MCP logo1inch MCP

    Doc search, intent & cross-chain swaps, limit orders, portfolio, spot prices, gas & all APIs.

    πŸ’° Finance & Fintech2 views
    Compare vs 1inch MCP β†’
  • Stock Trends Market Intelligence logoStock Trends Market Intelligence

    Equity trend, relative-strength, expected-return, market-context, and research resources for agents.

    πŸ’° Finance & Fintech2 views
    Compare vs Stock Trends Market Intelligence β†’
  • Mcptoon logoMcptoon
    Verified

    Every Agent discovers all your MCP tools from one install; major token savings via TOON output.

    πŸ’° Finance & Fintech9 views
    Compare vs Mcptoon β†’
  • Zwldarren Akshare One MCP logoZwldarren Akshare One MCP

    Provide access to Chinese stock market data including historical prices, real-time data, news, and…

    πŸ’° Finance & Fintech2 views
    Compare vs Zwldarren Akshare One MCP β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

Last commit
2mo ago
Most recent push to the default branch.
Directory activity
1 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

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
Last updatedJul 27, 2026
11/12 checks healthy over the last 46d
Views1
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.
GitHub stars0
GitHub Star CountTotal stargazers on GitHub representing community popularity (0 stars).
Last commit2mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Jul 27, 2026
37Quality signal: Fair Β· 37/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 ownership10/20
Documentation & tools16/30
Adoption & activity2/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.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev Β· p402 (npm)

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge 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 CodeSetup guides for all 13 MCP clients