
Mcp Ap2
Wire your coding agent into Google’s AP2 so autonomous workflows can request payment authorization, audit trails, and trust checks before money moves agent-to-agent.
Overview
io.github.codespar/mcp-ap2 is a MCP server for the Build phase that connects coding agents to Google AP2 for agent-to-agent payment authorization, audit, and trust.
What is this MCP server?
- Stdio MCP server (@codespar/mcp-ap2) for Google AP2 agent-to-agent payments
- Supports authorization, audit, and trust flows for automated payment decisions
- Requires AP2_API_KEY as a secret environment variable
- npm registry package v0.1.2 from codespar/mcp-dev-brasil payments/ap2
- Fits agent marketplaces and multi-agent commerce backends
- Package version 0.1.2
- Transport: stdio
- 1 required secret env var: AP2_API_KEY
Community signal: 252 GitHub stars.
What problem does it solve?
Autonomous agents that need to pay other agents lack a standard, auditable protocol hook inside your local agent setup.
Who is it for?
Indie builders adding agent-to-agent checkout, escrow, or paid tool calls on top of Claude Code or Cursor.
Skip if: Teams that only need human checkout with Stripe or Asaas and have no AP2 or multi-agent payment requirement.
What do I get? / Deliverables
Your agent can call AP2-backed MCP tools for authorized, traceable agent payments after you add the server and AP2_API_KEY.
- Registered stdio MCP server in agent config
- Agent-callable AP2 authorization and audit tools
- Environment-backed secret for AP2_API_KEY
Recommended MCP Servers
Journey fit
Agent payment protocols are implemented when you connect billing and trust layers to the product, not during early idea research. AP2 is an external payment protocol integration exposed to Claude Code and similar agents via MCP tools over stdio.
How it compares
AP2 protocol MCP bridge, not a full billing dashboard or subscription manager skill.
Common Questions / FAQ
Who is io.github.codespar/mcp-ap2 for?
Solo and small-team builders shipping agent products who must integrate Google AP2 authorization, audit, and trust from inside Claude Code, Cursor, or other MCP clients.
When should I use io.github.codespar/mcp-ap2?
Use it during build when you are wiring autonomous or semi-autonomous agents to pay other agents or services under AP2 rules, not when you only validate pricing on a landing page.
How do I add io.github.codespar/mcp-ap2 to my agent?
Install @codespar/mcp-ap2 from npm, configure the stdio MCP entry in your agent’s MCP config, and set the required secret AP2_API_KEY before starting the server.