Ap2 MCP Server
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?. Its 22 documented tools cover payment, agent, mandate, verify.
People who work with payment, agent and mandate and want it reachable from Claude, Cursor, VS Code, or another MCP client. The project is written in TypeScript.
One of 127 MCP servers published from codespar/mcp-dev-latam. Stars and repository activity are shared across all of them. See all 127 →
VERIFIED ACTIVE
LAST COMMIT 2026-09-27 · VERIFIED 2026-09-30
MIT · TypeScript servers · how we verify → /methodology
01 · Install Ap2
before you install - you'll need
Set AP2_API_KEY, AP2_AGENT_ID before connecting.
Claude Code
claude mcp add codespar-mcp-dev-latam-packages-payments -- npx -y @codespar/mcp-ap2 Claude Desktop / Cursor / VS Code - add to config
{
"mcpServers": {
"codespar-mcp-dev-latam-packages-payments": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-ap2"
]
}
}
} Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.
Using another client? Same JSON, different key
Claude Desktop · mcpServers
Cursor · mcpServers
VS Code · servers
Windsurf · mcpServers
Zed · context_servers
Cline · mcpServers
Roo Code · mcpServers
Continue · mcpServers
LibreChat · mcpServers
Gemini CLI · mcpServers
Codex CLI · mcp_servers
Full setup guides: every client.
02 · Evidence
Security posture
What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.
runs as local process (stdio) - runs on your machine with your user's permissions
license MIT - declared in the repository
npm package @codespar/mcp-ap2 - published under the repo owner's npm scope (@codespar)
registry namespace io.github.codespar is GitHub-verified and matches the repo owner
03 · What Ap2 can do
Prose above is summarized from the project's README and registry record - no invented capabilities.
What you can build
With this server connected, an agent can get agent registration details, trust status, and current spend usage, list registered agents with optional filters, request payment authorization with scoped limits, and get authorization details including status, limits, and expiry.
Capability map
Tools grouped from the project's README - what Ap2 lets an agent do.
read & search
6 tools - e.g. Get agent registration details, trust status, and current spend usage; List registered agents with optional filters; Get authorization details including status, limits, and expiry
get_agent · list_agents · get_authorization · list_authorizations · get_transaction · list_transactions
Payment
4 tools - e.g. Request payment authorization with scoped limits.; Execute an authorized payment.; List payment methods offered by the AP2 partner network
authorize_payment · execute_payment · list_payment_methods · create_payment_mandate
create & write
4 tools - e.g. Create an AP2 intent mandate - a Verifiable Credential expressing the user's intent to delegate a transacti..; Create an AP2 cart mandate - a signed, locked-cart commitment from a merchant binding line…
create_intent_mandate · create_cart_mandate · create_presentation · create_receipt
Verify
3 tools - e.g. Verify a Verifiable Credential (intent, cart, or payment mandate).; Verify a Verifiable Presentation and all embedded credentials, including holder binding and challenge nonce.; Verify a receipt's…
verify_credential · verify_presentation · verify_receipt
Audit
2 tools - e.g. Get the complete audit trail for a transaction - every authorization, approval, execution, and settlement e..; List audit events across all transactions with filters
get_audit_trail · list_audit_events
Register
1 tool - e.g. Register an AI agent as a trusted payer in the AP2 network.
register_agent
Revoke
1 tool - e.g. Revoke an agent's payment authorization.
revoke_agent
Resolve
1 tool - e.g. Resolve a Decentralized Identifier (DID) to its DID document via the AP2 universal resolver.
resolve_did
04 · Who maintains Ap2
mcp-ap2 is maintained by codespar. We track 127 MCP servers from codespar - 127 actively maintained, 271 combined GitHub stars, oldest repo from Mar 2026. Full record: all servers from codespar.
- mcp-ucp Google UCP - agentic shopping, cart, checkout, orders, delivery ★ 271
- mcp-legiti DEPRECATED: no live endpoint (collection-prod.inspcdn.net does not resolve) ★ 271
- mcp-unico DEPRECATED: no live endpoint (api.unico.co does not resolve) ★ 271
- mcp-pomelo MCP server for Pomelo - pan-LATAM card issuing: users, virtual/physical cards, transactions ★ 271
- mcp-banco-do-brasil MCP server for Banco do Brasil - Pix, Cobrança (boleto), Conta-Corrente, Arrecadação (OAuth2 + mTLS) ★ 271
- mcp-iugu MCP server for iugu - invoices, subscriptions, customers, payment methods ★ 271
05 · Facts
- repository
- github.com/codespar/mcp-dev-latam
- category
- API integration - actively maintained as of 2026-09-30.
- registry
- io.github.codespar/mcp-ap2 (active, first published 2026-04-12 · 4 versions)
- packages
- npm:@codespar/mcp-ap2
06 · Ap2 FAQ
Is Ap2 still maintained?
Yes - as of 2026-09-30, its last commit was 2026-09-27. We re-verify nightly.
What can Ap2 do?
With this server connected, an agent can get agent registration details, trust status, and current spend usage, list registered agents with optional filters, request payment authorization with scoped limits, and get authorization details including status, limits, and expiry.
How do I install Ap2?
Run `npx -y @codespar/mcp-ap2`. The README documents 2 environment variables (AP2_API_KEY, AP2_AGENT_ID) to set first. Set AP2_API_KEY, AP2_AGENT_ID before connecting. You can also paste the ready-made client config above.
Does Ap2 run locally?
Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.
07 · Alternatives to Ap2
Alternatives to Ap2
Maintained API integration servers if Ap2 isn't the fit.
- LetsFG - Flights & Hotels Search and book flights and hotels: hundreds of airlines, plus bookable hotel rates. ★ 2,075 · 2026-09-29
- Microsoft 365 MCP Server Interact with Microsoft 365 and Office services through the Microsoft Graph API. ★ 1,002 · 2026-09-29
- Idea Reality MCP Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt - returns 0-100 signal. ★ 823 · 2026-09-18
- Tapo MCP MCP server for discovering and controlling TP-Link Tapo smart home devices via AI Agents ★ 810 · 2026-09-29
- Sv Number MCP Server Phone numbers for AI agents: order a private number, read the SMS verification code, hand it back. ★ 551 · 2026-08-10
- Anytype MCP Official MCP server for Anytype API - your encrypted, local and collaborative wiki. ★ 528 · 2026-09-21