# A2apay

> A2apay is an open-source MCP server. Pay-per-call AI query and versioned task memory for agents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/groundhogday2011-byte/a2apay
- **MCP Registry name:** io.github.groundhogday2011-byte/a2apay
- **Listing updated:** 2026-11-13

## About

Pay-per-call AI query and versioned task memory for agents. No account, no API key, via x402.

## Install

### Claude Code (Terminal)

```sh
claude mcp add a2apay --env A2APAY_PRIVATE_KEY='<A2APAY_PRIVATE_KEY>' -- uvx a2apay-io
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "a2apay": {
      "command": "uvx",
      "args": [
        "a2apay-io"
      ],
      "env": {
        "A2APAY_PRIVATE_KEY": "<A2APAY_PRIVATE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "a2apay": {
      "command": "uvx",
      "args": [
        "a2apay-io"
      ],
      "env": {
        "A2APAY_PRIVATE_KEY": "<A2APAY_PRIVATE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "a2apay": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "a2apay-io"
      ],
      "env": {
        "A2APAY_PRIVATE_KEY": "<A2APAY_PRIVATE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "a2apay": {
      "command": "uvx",
      "args": [
        "a2apay-io"
      ],
      "env": {
        "A2APAY_PRIVATE_KEY": "<A2APAY_PRIVATE_KEY>"
      }
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "a2apay": {
      "command": "uvx",
      "args": [
        "a2apay-io"
      ],
      "env": {
        "A2APAY_PRIVATE_KEY": "<A2APAY_PRIVATE_KEY>"
      }
    }
  }
}
```

## FAQ

### Is A2apay free?

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

### How do I add A2apay to Claude Code?

Run this command in your terminal: claude mcp add a2apay --env A2APAY_PRIVATE_KEY='<A2APAY_PRIVATE_KEY>' -- uvx a2apay-io

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