Open-source B2B and marketplace ecommerce; new stores include an MCP server for AI agents.
402MCP.org — HTTP 402 & Agent Payment Registry
概览
作者提供的说明(英文原文)
Decode HTTP 402 challenges (L402, x402, MPP) and choose agent payment rails from an open registry.
PopNx MCP 的三大支柱
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
- 用户评价i暂无评价评价功能将在后续阶段与账户功能一起开放
- 我们的基础检查i1 项中通过 1 项依据公开信息检查;尚未扫描代码
- 使用情况i尚未统计★ –
它能帮你做什么
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
- 连接方式: 电脑或云端
- 传输方式: stdio, Streamable HTTP
- 分类: 网店与支付
安装
选择你使用的 AI 应用,然后复制设置。
安装之前
- 基础检查:1 项中通过 1 项
- 在作者的服务器上运行:你向它提出的内容会经过他们的服务器。
- 需要你自己填写:
MCP_402_OFFLINE
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
适用于网页版、桌面版和手机版 Claude:
- 打开 Settings → Connectors
- 点击 Add custom connector
- 粘贴下面的地址,然后点击 Add
- 如果要求登录,请登录作者的服务
https://402mcp.org/api/v1/mcp或者在你的电脑上运行
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"registry": {
"command": "npx",
"args": [
"-y",
"@402mcp/mcp"
],
"env": {
"MCP_402_OFFLINE": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add --transport http registry https://402mcp.org/api/v1/mcp或者在你的电脑上运行
claude mcp add registry --env MCP_402_OFFLINE=your-value -- npx -y @402mcp/mcp运行前请先填写空着的值。
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"registry": {
"url": "https://402mcp.org/api/v1/mcp"
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"registry": {
"command": "npx",
"args": [
"-y",
"@402mcp/mcp"
],
"env": {
"MCP_402_OFFLINE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"registry": {
"type": "http",
"url": "https://402mcp.org/api/v1/mcp"
}
}
}或者在你的电脑上运行
或者自己复制设置
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"registry": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@402mcp/mcp"
],
"env": {
"MCP_402_OFFLINE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
ChatGPT 只能连接互联网上的服务器:
- 打开网页版 ChatGPT → Settings → Connectors (Apps)
- 点击 Create 或 Add(部分套餐需要先在 Advanced 中开启 Developer mode)
- 粘贴下面的地址,起个名字,然后保存
- 如果要求登录,请登录作者的服务
https://402mcp.org/api/v1/mcp菜单名称可能因套餐和版本不同而略有差异。
你的选择通过 Cookie 保存在这台设备上,无需账户。
需要你填写的值
MCP_402_OFFLINEenvSet to 1 to use the bundled registry snapshot and never fetch.
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它能做什么
我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。
基础检查i
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
- ✓ 通过
作者与仓库一致
注册名称已通过域名 402mcp.org 验证(注册中心会核实域名所有权)
- … 尚未检查
仍在维护
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
有许可证
我们还没有从 GitHub 读取这个仓库
- … 尚未检查
端点有响应
尚未检查;我们会轮流检查各个端点
- … 尚未检查
使用 OAuth 登录
尚未检查;我们会轮流检查各个端点
- … 尚未检查
工具描述中没有隐藏指令
尚未检查;我们会在检查端点时读取工具列表
与“网店与支付”中的其他服务器比较i
- 星标数多于此分类中其他 1753 个服务器的 0%
- 发布到注册中心的时间比此分类中其他 1753 个服务器的 60% 更新
- 基础检查结果等于或优于此分类中其他 1753 个服务器的 100%
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
常见问题
402MCP.org — HTTP 402 & Agent Payment Registry 安全吗?
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
它需要哪些密钥或代码?
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在我的电脑上运行还是在云端?
两种方式都可以:安装在你的电脑上,或者连接云端版本。
它还在维护吗?
GitHub 仓库最后更新于–,最新版本(1.1.1)于22天前进入注册中心。
哪些应用可以使用它?
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。
有什么可以替代它?
同一分类中有:Spree Commerce: open-source B2B and marketplace ecommerce, Stripe MCP, MCP Cn Commerce
替代选择
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Stripe MCP
MCP server integrating with Stripe - tools for customers, products, payments, and more.
MCP Cn Commerce
8 read-only MCP platform entries; support is operation-specific; merchant live acceptance pending
作者的 README
打开 README
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
402MCP.org
The MCP server and open registry for HTTP 402 agent payments.
When an AI agent receives 402 Payment Required, 402MCP tells it which scheme the server speaks (L402, x402 or MPP), what is being asked for, and exactly how to pay and retry. When a developer is choosing how an agent should pay, or how an API should charge agents, it recommends a rail from stated requirements. Behind both sits an open registry of sourced, scored payment solutions.
- Site: https://402mcp.org
- Remote MCP endpoint:
https://402mcp.org/api/v1/mcp(streamable HTTP) - npm:
@402mcp/mcp(stdio) - Install guides: https://402mcp.org/docs#install
Install
Claude Code:
claude mcp add --transport http 402mcp https://402mcp.org/api/v1/mcp
Any stdio MCP client (Claude Desktop, Cursor, Windsurf and others):
{
"mcpServers": { "402mcp": { "command": "npx", "args": ["-y", "@402mcp/mcp"] } } }
MCP server
One transport-agnostic core (lib/mcp/) serves both the hosted endpoint and the stdio package, so the two expose the same tools, resources and prompts.
| Tool | Purpose |
|---|---|
decode_402_challenge | Decode a 402 response (L402 macaroon and BOLT 11 invoice, x402 v1/v2, MPP) into exact next steps and the retry header |
recommend_payment_rail | Filter by role, asset, custody, infrastructure, network, scheme, MCP support and maturity; re-weight the criteria; explain every exclusion |
search_402_solutions | Search the registry with filters |
get_solution | One entry in full, with sources and code samples |
get_scheme_reference | Wire format of L402, x402 or MPP |
probe_402_support | One GET to a public URL to see whether it speaks 402. Never pays |
get_best_payment_solution | The entry with the highest composite score |
Resources: 402mcp://registry, 402mcp://methodology, 402mcp://solutions/{id}, 402mcp://schemes/{scheme}. Prompts: choose_payment_rail, handle_402_response. Every tool is annotated readOnlyHint.
Safety. Everything in a 402 response is server-controlled, so the decoder lists those fields in untrusted_fields and never repeats their text as instructions. It flags expired challenges and macaroons that commit to a different payment hash than their invoice. The probe refuses private, loopback, link-local and metadata addresses (including hostnames that resolve to them) and non-web ports, and the hosted endpoint rate-limits it per client. No tool can spend money.
Machine interfaces
| Endpoint | Purpose |
|---|---|
POST /api/v1/mcp | MCP (JSON-RPC 2.0, streamable HTTP) |
POST /api/v1/decode | Decode a 402 response |
GET /api/v1/recommend | Recommend a rail from requirements |
GET /api/v1/probe?url= | Probe a URL for 402 support (rate limited) |
GET /api/v1/solutions | Versioned list (?q=, ?id=, ?view=full) |
GET /api/v1/registry | Canonical feed with ETag / 304 support |
GET /api/v1/schemes/{scheme} | Wire format of L402, x402, MPP |
GET /api/v1/status | Daily liveness of every entry's docs and website |
GET /api/v1/changelog · /changelog.xml · /changelog | Changes and corrections |
/schema/v1/registry.json · /schema/v1/solution.json | JSON Schemas (draft 2020-12) |
/openapi.json | OpenAPI 3.1 |
/llms.txt · /llms-full.txt | Plain-text indexes |
/.well-known/402.json · api-catalog · mcp/server-card.json · agent-skills/ | Discovery |
Any page returns Markdown when requested with Accept: text/markdown.
Methodology
Every entry is scored 1–10 on six equally weighted criteria: custody and sovereignty, operational friction, agent-native support, payment rails and assets, settlement speed and fees, and developer experience. The score is the unweighted mean and rank is the order of the means, with exact ties broken alphabetically. Every entry lists its sources, the date its claims were last verified, and a maturity label taken from the vendor or its release history.
The current ranking is at https://402mcp.org and in /api/v1/registry. The full methodology is at https://402mcp.org/docs#methodology.
402MCP.org is not affiliated with, sponsored by, or compensated by any vendor it indexes, and listing position cannot be purchased. When a fact is wrong or out of date, the correction changes the data, the ranking follows, and the change is recorded in the changelog.
Development
Requires Node 18.18 or later.
npm install
npm run dev # http://localhost:3000
| Command | What it does |
|---|---|
npm run test:unit | Decoder tests against vectors from the BOLT 11 spec, the MPP draft, reference-minted macaroons and x402 shapes |
npm run verify:agents -- [url] | Every machine endpoint: formats, contracts, JSON-RPC behaviour, schema validation, dataset invariants |
npm run verify:seo -- [url] | Crawler directives, metadata, structured data, icons, discovery documents, feeds, headers |
npm run build:package | Builds the stdio package and the .mcpb desktop extension |
npm run verify:stdio -- [registryUrl] | The built stdio package, end to end |
npm run lint · npm run typecheck | ESLint and TypeScript |
The verify suites default to http://localhost:3000; pass a URL to run them against a deployment.
Deploying to Cloudflare
The site runs as a Cloudflare Worker through the OpenNext adapter. Copy wrangler.example.jsonc to wrangler.jsonc, create the KV namespace it names, and fill in your own values. Then:
npm run cf:build
npm run cf:deploy
Project layout
data/solutions.ts The registry dataset; scores and ranks are computed here
data/changelog.ts Additions and corrections, with reasons lib/decode/ bech32, BOLT 11, macaroons, RFC 9110 challenges, x402, MPP lib/mcp/ Transport-agnostic MCP server: tools, resources, prompts lib/recommend.ts Requirement-driven recommendation lib/probe.ts URL probe with SSRF guards lib/schemes.ts Wire-format reference for each scheme lib/liveness.ts Daily docs and website checks app/ Next.js App Router pages and route handlers worker.ts Worker entry: OpenNext handler plus the scheduled liveness job packages/402mcp/ The @402mcp/mcp stdio package server.json Official MCP Registry entry tests/ · scripts/ Unit tests, verification suites and the package build
License
Code: MIT (see LICENSE). Registry data: CC BY 4.0.