
Mcp Ap2
io.github.codespar由 GitHub 账号 codespar 发布v0.2.0-alpha.4更新于 Oct 27, 2026
DEPRECATED: no live endpoint (AP2 is a spec; ap2.googleapis.com serves no API)
概览
已弃用的 Google AP2 代理支付协议 MCP 服务器,提供 22 个支付、授权凭证与凭据工具,但不连接任何在线服务。
- 可以做什么
- 注册、列出、查看和撤销作为付款方的 AI 代理,含信任状态与消费额度
- 申请、查看和列出支付授权,执行已授权支付并查看交易
- 读取交易审计轨迹与审计事件,列出合作方支付方式
- 创建并验证意图、购物车和支付授权凭证、可验证呈现与收据
- 通过 AP2 通用解析器解析去中心化标识符
- 适用场景
- 仅适合参考或试验 AP2 规范的数据模型。该包已弃用,没有任何工具能连到服务,文档中的端点均返回错误,因此无法用于真实的代理支付。
- 运行要求
- 通过 npx 从 npm 包在本地运行。需要 AP2_API_KEY 密钥(以 Bearer 形式发送)和 AP2_AGENT_ID(以 X-Agent-Id 请求头发送),可选 AP2_SANDBOX 与 AP2_BASE_URL。没有门户签发这些凭据,默认端点也不可用。
安装
在 SourceWeft 中
- 打开 控制台中的 Mcp Ap2,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@codespar/mcp-ap2
Deprecated: no live endpoint. Measured on 2026-09-27:
ap2.googleapis.comanswers every path with Google's genericError 404 (Not Found)page, andsandbox.ap2.googleapis.com(used withAP2_SANDBOX=true) fails the TLS handshake, because the certificate served there covers*.googleapis.comand not the extra label. AP2 is an open specification, not an API Google hosts. No tool in this server reaches a service. The package is deprecated on npm and stays in this repository for reference only. If you have a working endpoint, point the server at it withAP2_BASE_URL. To bring the package back, open an issue in mcp-dev-latam with the provider's documented base URL.
Alpha release — published under the
alphanpm dist-tag. Pin exact versions during0.x.x-alpha. Install withnpm install <pkg>@alpha.
MCP server for AP2 — Google's Agent-to-Agent Payment Protocol (authorization, audit, and trust for agentic payments)
What is AP2?
AP2 (Agent-to-Agent Payment Protocol) is Google's open framework for authorization, audit, and trust in agentic payments. It answers the critical questions: Who authorized this payment? What limits apply? What's the full audit trail?
The specification is published at ap2-protocol.org.
Quick Start
Claude Desktop
Add to ~/.config/claude/claude_desktop_config.json:
Claude Code
Cursor / VS Code
Add to .cursor/mcp.json or .vscode/mcp.json:
Tools (22)
Authentication
The server sends AP2_API_KEY as an Authorization: Bearer header and AP2_AGENT_ID as an X-Agent-Id header on every request (src/index.ts:69-73).
There is no portal issuing those credentials. The developer portal this README used to link, developers.google.com/ap2, answers HTTP 404, as does the ap2-spec repository it pointed at. The published specification is at ap2-protocol.org.
Environment Variables
Use Cases
- Authorized agent purchases — Agent requests spend authorization, gets approval with limits, then executes payment
- Multi-agent commerce — Agent A authorizes Agent B to make payments on its behalf with scoped limits
- Compliance & audit — Full audit trail of every authorization, approval, execution, and settlement
- Cross-rail payments — AP2 bridges card payments, bank transfers, wallets, and x402 micropayments
Roadmap
v0.2 (planned)
create_policy— Define reusable authorization policiesdelegate_authority— Allow agent-to-agent authorization delegationget_spend_report— Get spend analytics and reports- OAuth 2.0 authentication flow
v0.3 (planned)
- Webhook support for real-time authorization events
- Multi-currency support with automatic FX
- Integration with x402 as payment method
Want to contribute? Open a PR or request a tool.
Links
Enterprise
Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.
License
MIT
来源:packages/payments/ap2/README.md,提交 d0a519a
工具
0版本历史
2- v0.2.0-alpha.4最新Sep 27, 2026
- v0.2.0-alpha.3Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分