# MCP Ap2

> MCP Ap2 is an open-source MCP server. DEPRECATED: no live endpoint (AP2 is a spec; ap2.googleapis.com serves no API). It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/codespar/mcp-dev-latam/tree/HEAD/packages/payments/ap2
- **MCP Registry name:** io.github.codespar/mcp-ap2
- **Listing updated:** 2026-11-13

## About

DEPRECATED: no live endpoint (AP2 is a spec; ap2.googleapis.com serves no API)

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-ap2 --env AP2_API_KEY='<AP2_API_KEY>' -- npx -y @codespar/mcp-ap2
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-ap2": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-ap2"
      ],
      "env": {
        "AP2_API_KEY": "<AP2_API_KEY>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-ap2": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-ap2"
      ],
      "env": {
        "AP2_API_KEY": "<AP2_API_KEY>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp-ap2": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-ap2"
      ],
      "env": {
        "AP2_API_KEY": "<AP2_API_KEY>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-ap2": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-ap2"
      ],
      "env": {
        "AP2_API_KEY": "<AP2_API_KEY>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-ap2": {
      "command": "npx",
      "args": [
        "-y",
        "@codespar/mcp-ap2"
      ],
      "env": {
        "AP2_API_KEY": "<AP2_API_KEY>"
      }
    }
  }
}
```

## FAQ

### Is MCP Ap2 free?

Yes. MCP Ap2 is open source, so you can use and self-host it for free.

### How do I add MCP Ap2 to Claude Code?

Run this command in your terminal: claude mcp add mcp-ap2 --env AP2_API_KEY='<AP2_API_KEY>' -- npx -y @codespar/mcp-ap2

## Where this comes from

- Description: from the official MCP Registry entry.
- Install steps: from the official MCP Registry entry.

---
Source: https://ai-powered.com/mcp/mcp-ap2
