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-08-29 · VERIFIED 2026-09-18
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-brasil-api MCP server for BrasilAPI - CEP, CNPJ, banks, FIPE, holidays, weather ★ 271
- mcp-iugu MCP server for iugu - invoices, subscriptions, customers, payment methods ★ 271
- mcp-asaas MCP server for Asaas - billing automation, Pix, boleto, credit card, subscriptions ★ 271
- mcp-omie MCP server for Omie - ERP, customers, products, orders, invoices, financials ★ 271
- mcp-mercado-bitcoin MCP server for Mercado Bitcoin - Brazilian crypto exchange, trading, orderbook, withdrawals ★ 271
- mcp-sendgrid MCP server for SendGrid - global transactional + marketing email (Twilio-owned) ★ 271
05 · Facts
- repository
- github.com/codespar/mcp-dev-latam
- category
- finance - actively maintained as of 2026-09-18.
- registry
- io.github.codespar/mcp-ap2 (active, first published 2026-04-12 · 3 versions)
- packages
- npm:@codespar/mcp-ap2
06 · Ap2 FAQ
Is Ap2 still maintained?
Yes - as of 2026-09-18, its last commit was 2026-08-29. 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 finance servers if Ap2 isn't the fit.
- CCXT Official CCXT MCP server - Market data and trading across 100+ exchanges and prediction markets ★ 44,030 · 2026-09-18
- Tradingview MCP Real-time market data, screeners, technical analysis & backtesting for stocks, crypto and forex. ★ 4,567 · 2026-09-01
- Edgar Tools Open-source SEC EDGAR toolkit - 11 tools, 7 prompts, every filing type. No API key required. ★ 2,726 · 2026-09-17
- TickDB Market Data Real-time & historical market data: forex, stocks, crypto, indices, metals, K-line, quotes ★ 801 · 2026-06-20
- xbbg MCP Local Bloomberg tools for xbbg users. ★ 715 · 2026-09-16
- Emilia Protocol Exact-action approval for consequential agent actions: request, track, and verify signed receipts. ★ 650 · 2026-09-17
Pairs well with
Servers that cover what Ap2 doesn't - only shown when the pairing reason fits the companion.