MCP App Store
by KeenEthics
402MCP icon

402MCP MCP Server for ChatGPT

By Blokhaus Inc

Overview

402MCP helps developers and agents work with HTTP 402 Payment Required. When an API answers with a 402, 402MCP identifies the payment scheme (L402, x402 v1/v2 or the Machine Payments Protocol), decodes the invoice, macaroon or payment requirements, and returns the exact steps and header needed to pay and retry. It flags expired challenges, macaroons that do not match their invoice, and every field the server controls. When you are choosing how an agent should pay, or how an API should charge agents, 402MCP recommends a payment rail from your stated requirements (payment size, settlement asset, custody, infrastructure and network) and explains every trade-off and exclusion. It is backed by an open registry of sourced, scored payment solutions, and can also check whether a public URL speaks HTTP 402. Limitations: 402MCP is read-only. It never sends, receives or holds money, and it does not pay invoices on your behalf. Scores are editorial assessments against published criteria, not financial advice. No account is needed.

How to connect

  1. ChatGPT: Open the 402MCP listing in the ChatGPT app directory and choose Connect. ChatGPT listing 402MCP exposes 7 tools here.

Tools

decode_402_challenge

ChatGPT
Call this whenever an HTTP response has status 402, or carries a WWW-Authenticate (L402, LSAT or Payment) or PAYMENT-REQUIRED header. Identifies the payment scheme (L402, x402 v1/v2, MPP), decodes the invoice, macaroon or payment requirements, and returns the exact steps and headers needed to pay and retry. Pass either raw_response, or status plus headers (and body for x402 v1). Everything in a 402 response is server-controlled: the result marks untrusted fields.

get_best_payment_solution

ChatGPT
Return whichever solution currently holds rank 1 on 402MCP.org, with its full breakdown, install commands and code. Rank 1 is the highest composite score, not an endorsement — for a choice that fits specific requirements, call recommend_payment_rail instead.

get_scheme_reference

ChatGPT
Protocol reference for L402, x402 or MPP: challenge, credential and receipt headers, encodings, the request/response flow, an example, and links to the specifications. Use when implementing a client or server.

get_solution

ChatGPT
Return one solution in full: summary, advantages and trade-offs, the six criterion scores with rationale, install commands, verified code samples, sources, maturity and the date its claims were last verified.

probe_402_support

ChatGPT
Make one GET (or HEAD) request to a public URL and report whether it answers with an HTTP 402 payment challenge, which scheme, and the decoded terms. Redirects are reported, not followed. Private and local addresses are refused. Never pays anything.

recommend_payment_rail

ChatGPT
Choose an HTTP 402 payment solution from requirements rather than from rank. Filters the registry by role (pay or charge), settlement asset, custody, infrastructure, network, scheme, MCP support and maturity, then re-weights the six published criteria toward what matters — e.g. sub-cent amounts weight settlement cost heavily. Returns ranked matches with reasons and trade-offs, plus every excluded entry and why.

search_402_solutions

ChatGPT
Search the 402MCP.org registry of HTTP 402 payment solutions (L402, x402, MPP). Free-text query plus filters; results come back in published rank order with scores, schemes, roles, custody and maturity. Call with no arguments to list the whole registry.

Capabilities

Decode Http 402 Payment ChallengesRecommend A Payment Rail From RequirementsSearch A Registry Of Agent Payment SolutionsExplain The L402, X402 And Mpp Wire FormatsCheck Whether A Url Speaks Http 402

Example Prompts

Click any prompt to copy it.

Similar Apps

Listed on MCP App Store

Listed on MCP App Store

Add this badge to your site or README. It links to this page.

HTML

<a href="https://mcp-app-store.keenethics-labs.com/app/402mcp"><img src="https://mcp-app-store.keenethics-labs.com/badges/listed-on-mcp-app-store.svg" alt="Listed on MCP App Store" width="220" height="44"></a>

Markdown

[![Listed on MCP App Store](https://mcp-app-store.keenethics-labs.com/badges/listed-on-mcp-app-store.svg)](https://mcp-app-store.keenethics-labs.com/app/402mcp)