Skip to main content
Glama

402MCP.org — HTTP 402 & Agent Payment Registry

Server Details

Decode HTTP 402 challenges (L402, x402, MPP) and choose agent payment rails from an open registry.

If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
402MCP/402mcp
GitHub Stars
0
Server Listing
402MCP
ChatGPT
–
Claude
–

TDQS

A4.2/5.0

Scored across 7 tools

Disambiguation5/5

Each tool targets a distinct action: decoding a 402 response, probing a URL, reading protocol references, searching the registry, fetching one solution, fetching the rank-1 solution, and requirements-based recommendation. Descriptions actively steer users away from confusable neighbors (e.g. get_best_payment_solution explicitly redirects to recommend_payment_rail), eliminating ambiguity.

Naming Consistency5/5

All names follow a strict snake_case verb_noun pattern (decode_402_challenge, get_solution, probe_402_support, recommend_payment_rail, search_402_solutions). No convention mixing; verbs are predictable and consistent across the set.

Tool Count5/5

Seven tools is well-scoped for a payment registry plus 402-response handling. Each tool earns its place with no redundant or bloated entries.

Completeness4/5

Covers the full read/registry lifecycle: decode, probe, reference, search, fetch, rank, and recommend. Minor gap remains—no direct compare tool or helper to assemble/pay a credential beyond the header steps decode returns, though core workflows are covered.

Available Tools

7 tools
decode_402_challengeDecode an HTTP 402 responseA
Read-onlyIdempotent
Inspect

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.

Inputs: body, status, headers, raw_response. Returns: status, schemes, warnings, challenges, +5 more

get_best_payment_solutionGet the top-ranked payment solutionA
Read-onlyIdempotent
Inspect

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.

Inputs: use_case. Returns: solution, install_command, mcp_serve_command, recommended_primary_solution

get_scheme_referenceGet the wire format of a 402 schemeA
Read-onlyIdempotent
Inspect

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.

Inputs: scheme (required). Returns: reference, implementations

get_solutionGet one registry entry in fullA
Read-onlyIdempotent
Inspect

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.

Inputs: id (required). Returns: liveness, solution

probe_402_supportProbe a URL for HTTP 402 supportA
Read-onlyIdempotent
Inspect

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.

Inputs: url (required), method. Returns: url, error, status, schemes, +2 more

recommend_payment_railRecommend a payment rail for your requirementsA
Read-onlyIdempotent
Inspect

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.

Inputs: role, chain, limit, scheme, +6 more. Returns: notes, method, weights, excluded, +2 more

search_402_solutionsSearch 402 payment solutionsA
Read-onlyIdempotent
Inspect

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.

Inputs: kind, role, limit, query, +4 more. Returns: count, query, solutions, total_indexed, +1 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      L402 + x402 client MCP. AI agents discover, pay for, and consume any payment-gated API autonomously. Supports Lightning (NWC), Cashu ecash, stablecoins, and human-in-the-loop payments.
      14
      383 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables autonomous AI agents to access paid MCP tools and APIs by handling HTTP 402 payment challenges automatically, signing and settling Stellar/Soroban micropayments with budget ceilings and anti-replay verification.
      Apache 2.0
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.