# clawpay

This MCP server gives AI agents wallet operations, x402 payments, and token actions. Use it when an agent must pay for requests or move funds.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 8
- Author: up2itnow0822
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/up2itnow0822/agentpay-mcp
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/clawpay

## What it does

clawpay runs as a stdio MCP server and exposes tools for wallet management, x402 payments, spending policies, tokens, swaps, and transaction history. An agent can deploy or inspect a wallet, send a payment, check a budget, and work with token transfers through the connected client.

The setup uses `AGENT_PRIVATE_KEY`; wallet operations also need a wallet address, while `BASE_RPC_URL` can be supplied for the RPC endpoint. The signing key is loaded into the local Node.js process, and spending checks are enforced at the application layer. Keep the owner key separate from the agent key when human approval must remain meaningful, and test fund-moving actions on Base Sepolia first.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `AGENT_PRIVATE_KEY`, `BASE_RPC_URL` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env AGENT_PRIVATE_KEY=<AGENT_PRIVATE_KEY> --env BASE_RPC_URL=<BASE_RPC_URL> --transport stdio clawpay -- npx -y clawpay-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add clawpay --env AGENT_PRIVATE_KEY=<AGENT_PRIVATE_KEY> --env BASE_RPC_URL=<BASE_RPC_URL> -- npx -y clawpay-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "clawpay": {
            "command": "npx",
            "args": [
                "-y",
                "clawpay-mcp"
            ],
            "env": {
                "AGENT_PRIVATE_KEY": "<AGENT_PRIVATE_KEY>",
                "BASE_RPC_URL": "<BASE_RPC_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "clawpay": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "clawpay-mcp"
            ],
            "env": {
                "AGENT_PRIVATE_KEY": "<AGENT_PRIVATE_KEY>",
                "BASE_RPC_URL": "<BASE_RPC_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e AGENT_PRIVATE_KEY=<AGENT_PRIVATE_KEY> -e BASE_RPC_URL=<BASE_RPC_URL> clawpay npx -y clawpay-mcp
```
Replace <…> with your own values

## When to use it
- configure a wallet for an AI agent
- send an x402 payment
- check a spending budget before a transfer
- read wallet transaction history
- swap or transfer tokens

## Example prompts
- Connect `clawpay` and show the wallet balance.
- Pay for this request through x402 using the configured wallet.
- Check the spending budget before sending the transfer and stop if the policy blocks it.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 392262
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33989
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89609
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81163
- [Front-End Checklist](https://affpapa.org/en/nevibecode/mcp/front-end-checklist.md) — MCP server · ★ 74569
- [Scrapling MCP Server](https://affpapa.org/en/nevibecode/mcp/scrapling-mcp-server.md) — MCP server · ★ 89899

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
