# AgentPay

> AgentPay is an open-source MCP server. x402 micropayments MCP: Xiaohongshu notes and paid APIs settled in USDC on Base. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/yyxqqq777/mcp-server-agentpay
- **MCP Registry name:** io.github.yyxqqq777/agentpay
- **Listing updated:** 2026-11-13

## About

x402 micropayments MCP: Xiaohongshu notes and paid APIs settled in USDC on Base.

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http agentpay https://agentpay-xhs-production.up.railway.app/mcp
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://agentpay-xhs-production.up.railway.app/mcp
```

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

```json
{
  "mcpServers": {
    "agentpay": {
      "url": "https://agentpay-xhs-production.up.railway.app/mcp"
    }
  }
}
```

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

```json
{
  "servers": {
    "agentpay": {
      "type": "http",
      "url": "https://agentpay-xhs-production.up.railway.app/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "agentpay": {
      "serverUrl": "https://agentpay-xhs-production.up.railway.app/mcp"
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "agentpay": {
      "type": "http",
      "url": "https://agentpay-xhs-production.up.railway.app/mcp"
    }
  }
}
```

## FAQ

### Is AgentPay free?

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

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

Run this command in your terminal: claude mcp add --transport http agentpay https://agentpay-xhs-production.up.railway.app/mcp

## 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/agentpay-7
