mcp-ap2
MCP server by codespar Community
mcp-ap2 is a deprecated MCP server for Google's Agent-to-Agent Payment Protocol (AP2), listed as alpha with 22 tools. It has no live endpoint, so its tools cannot reach a working service. It is kept for reference only.
Install mcp-ap2
Built from the published package, never by AI.
claude mcp add mcp-ap2 -e AP2_API_KEY=YOUR_AP2_API_KEY -- npx -y @codespar/mcp-ap2Run in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"mcp-ap2": {
"env": {
"AP2_API_KEY": "YOUR_AP2_API_KEY"
},
"args": [
"-y",
"@codespar/mcp-ap2"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"mcp-ap2": {
"env": {
"AP2_API_KEY": "YOUR_AP2_API_KEY"
},
"args": [
"-y",
"@codespar/mcp-ap2"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"mcp-ap2": {
"env": {
"AP2_API_KEY": "YOUR_AP2_API_KEY"
},
"args": [
"-y",
"@codespar/mcp-ap2"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add mcp-ap2 --env AP2_API_KEY=YOUR_AP2_API_KEY -- npx -y @codespar/mcp-ap2{
"mcpServers": {
"mcp-ap2": {
"env": {
"AP2_API_KEY": "YOUR_AP2_API_KEY"
},
"args": [
"-y",
"@codespar/mcp-ap2"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add mcp-ap2 npx -y @codespar/mcp-ap2Gemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the mcp-ap2 block.
About
mcp-ap2 is an MCP server from the codespar publisher for AP2, Google's Agent-to-Agent Payment Protocol. The catalog describes AP2 as covering authorization, audit trails and scoped spend limits, and lists this server with 22 tools at alpha stage. It is published on npm as @codespar/mcp-ap2 and sits in the MCP Dev LATAM repository, which is MIT licensed.
The server is deprecated. The source states that ap2.googleapis.com serves no API, because AP2 is an open specification rather than a hosted API. When tested on 2026-09-27, the default host returned a generic 404 page, and the sandbox host failed the TLS handshake. The package is kept for reference and is outside the quick start guide.
Written from the project's README and checked against it.
What you need
- npx to run the @codespar/mcp-ap2 package
- API key (the catalog lists API Key auth)
| Setting | Needed | What it is |
|---|---|---|
AP2_Environment variable, secret | Required | API key for ap2 |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Set a scoped spend limit for my agent using AP2
- Show the audit trail for an AP2 authorization
- Check whether the AP2 endpoint is live before I use it
Good to know
- Deprecated on npm and kept for reference only
- No live endpoint: ap2.googleapis.com serves no API
- Listed as alpha in the catalog
- Sandbox host fails the TLS handshake
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
What you can do with it
- Reference for AP2 authorization design
- Studying scoped spend limits for AI agents
Alternatives to mcp-ap2
All alternatives →Connects AI assistants to Stripe through the hosted Stripe MCP server at mcp.stripe.com. It is for developers building AI-powered products and businesses on Stripe.
Gives AI assistants market data, technical analysis, backtests, options activity and news sentiment for stocks, crypto, FX and metals. Built for traders and developers using Claude, ChatGPT, Cursor or other MCP clients. Its outputs are informational, not financial advice.
CCXT is an official MCP server for market data and trading across more than 100 exchanges and prediction markets. It is aimed at developers, traders and AI agents.
Calculates over 1400 transparent financial methods from raw statements and exposes them to AI assistants through an MCP server. Suited to analysts and developers who want to see how each metric is computed.
Lets an AI assistant search x402 APIs and pay for them in USDC from a local, non-custodial wallet. Built for people and agents that need to pay APIs per call under spend caps.
Lets AI assistants explore a free database of over 300,000 symbols, including equities, ETFs, funds, indices, currencies and cryptocurrencies, categorised by sector, industry and country. It suits private investors who want to discover products rather than look up fundamentals or stock data.
Compare with mcp, TradingMCP or CCXT
mcp-ap2: common questions
Does mcp-ap2 work today?
The source marks it as deprecated with no live endpoint. Its default host returned a generic 404 page when the project tested it on 2026-09-27.
Is AP2 an API that Google hosts?
No. The source says AP2 is an open specification, not an API that Google hosts.
Which package name does mcp-ap2 use?
The npm package is @codespar/mcp-ap2. The catalog lists it as alpha and deprecated, and it is kept in the repository for reference.
How do I install mcp-ap2?
In Claude Code run claude mcp add mcp-ap2 -e AP2_API_KEY=YOUR_AP2_API_KEY -- npx -y @codespar/mcp-ap2. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is mcp-ap2 the official server?
mcp-ap2 is a community project by codespar, not verified by a company domain.
Is mcp-ap2 free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is mcp-ap2 safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mcp-ap2?
Similar MCP servers: mcp, TradingMCP, CCXT, Finance Toolkit.
Does mcp-ap2 work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
