
Mcp Ap2
io.github.codesparPublished by GitHub account codesparv0.2.0-alpha.4Updated Oct 27, 2026
DEPRECATED: no live endpoint (AP2 is a spec; ap2.googleapis.com serves no API)
Overview
Deprecated MCP server for Google's AP2 agent payment protocol; it exposes 22 payment, mandate and credential tools but reaches no live service.
- What you can do
- Register, list, inspect and revoke AI agents as payers, with trust status and spend usage
- Request, inspect and list payment authorizations, then execute authorized payments and review transactions
- Read audit trails and audit events across transactions, and list partner payment methods
- Create and verify intent, cart and payment mandates, presentations and receipts
- Resolve decentralized identifiers through an AP2 universal resolver
- When to use it
- Only for reference or experimentation with the AP2 specification's data model. The package is deprecated, no tool reaches a service, and the documented endpoints return errors, so it is not usable for real agent payments.
- Requirements
- Runs locally via npx from the npm package. Requires the AP2_API_KEY secret, sent as a Bearer token, and AP2_AGENT_ID, sent as an X-Agent-Id header; optional AP2_SANDBOX and AP2_BASE_URL. No portal issues these credentials, and the default endpoints do not work.
Installation
In SourceWeft
- Open Mcp Ap2 in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
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
Source: packages/payments/ap2/README.md at commit d0a519a
Tools
0Version history
2- v0.2.0-alpha.4LatestSep 27, 2026
- v0.2.0-alpha.3Sep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts