Google's Agent-to-Agent Payment Protocol. Authorization, audit, trust establishment between autonomous payment agents.
$ npm install @codespar/mcp-ap2@alphaAdd this entry to your claude_desktop_config.json (or any MCP-compatible client config).
{
"mcpServers": {
"ap2": {
"command": "npx",
"args": [
"-y",
"@codespar/mcp-ap2@alpha"
],
"env": {
"AP2_API_KEY": "<your_ap2_api_key>"
}
}
}
}After restart, your agent can call any of the 22 tools below โ try register_agent first.
Required to authenticate the server. Stored encrypted when using CodeSpar managed hosting.
AP2_API_KEYAPI key for ap2
Each tool is independent โ your agent loads only what it needs to reduce context and response time.
register_agentget_agentlist_agentsrevoke_agentauthorize_paymentget_authorizationlist_authorizationsexecute_paymentMCP is a protocol โ any framework that speaks it can mount this server.