P402 MCP Server

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…

Local serverstdio

What is the P402 MCP Server?

@p402/mcp Server is an MCP project maintained in the z333q/p402-protocol repository. The maintainer describes its purpose as “P402 sits between your AI application and every LLM provider. It handles intelligent multi-provider routing (cost / quality / speed / balanced), on-chain micropayment settlement…”. Read the project documentation for the complete scope.

Installation

The documented npm package is @p402/mcp-server. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares P402_API_KEY. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

How to install the P402 MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
P402_API_KEYDeclared in the maintainer’s client configuration.Check documentation