# clicksprotocol

> clicksprotocol is an open-source MCP server for agent payments. MCP server for verifying and inspecting agent commerce settlements on Base. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API, Self-hosted
- **Repository:** https://github.com/clicks-protocol/clicks-protocol/tree/HEAD/mcp-server
- **MCP Registry name:** io.github.clicksprotocol/mcp-server
- **Categories:** [agent payments](https://ai-powered.com/categories/agent-payments)
- **Listing updated:** 2026-11-21

## About

This server gives AI clients a set of tools for checking agent payment settlements on the Base network. Receipts can be checked for internal integrity, settlement state can be read from chain evidence, and a local ledger can be searched for earlier versions of a receipt's history.

Most tools are read-only and accept a receipt JSON object directly, so they need no wallet. Write operations such as registering, depositing and withdrawing require a private key supplied through an environment variable, and the README advises keeping such write-enabled instances away from public or untrusted clients. The registry entry also describes treasury setup, payment splits, yield and attribution, which are not detailed in the README.

It suits developers building agent-to-agent commerce on Base who need to audit or debug settlement flows before trusting a payment outcome.

## Features

- **Receipt integrity verification:** Checks that a Receipt V2 object is internally consistent by verifying its deterministic hash.
- **Settlement status reads:** Reports a settlement's state, witnesses and retry policy.
- **On-chain reconciliation:** Compares Base chain evidence with a receipt and proposes a fail-closed state without submitting transactions.
- **Policy hash replay:** Checks whether an exact policy definition matches the policy hash bound to a receipt.
- **Local receipt trail:** Reads matching receipt versions from a configured append-only local ledger.

## Good for

- Auditing whether an agent payment settled as expected on Base
- Debugging failed or unclear settlement flows without risking a retry
- Confirming a receipt's policy matches the terms it claims to enforce
- Reviewing the version history of a receipt from a local ledger

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-server --env CLICKS_PRIVATE_KEY='<CLICKS_PRIVATE_KEY>' -- npx -y @clicks-protocol/mcp-server
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@clicks-protocol/mcp-server"
      ],
      "env": {
        "CLICKS_PRIVATE_KEY": "<CLICKS_PRIVATE_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@clicks-protocol/mcp-server"
      ],
      "env": {
        "CLICKS_PRIVATE_KEY": "<CLICKS_PRIVATE_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@clicks-protocol/mcp-server"
      ],
      "env": {
        "CLICKS_PRIVATE_KEY": "<CLICKS_PRIVATE_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@clicks-protocol/mcp-server"
      ],
      "env": {
        "CLICKS_PRIVATE_KEY": "<CLICKS_PRIVATE_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-server --env CLICKS_PRIVATE_KEY='<CLICKS_PRIVATE_KEY>' -- npx -y @clicks-protocol/mcp-server
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@clicks-protocol/mcp-server"]
env = { CLICKS_PRIVATE_KEY = "<CLICKS_PRIVATE_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@clicks-protocol/mcp-server"
      ],
      "env": {
        "CLICKS_PRIVATE_KEY": "<CLICKS_PRIVATE_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e CLICKS_PRIVATE_KEY='<CLICKS_PRIVATE_KEY>' mcp-server npx -- -y @clicks-protocol/mcp-server

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@clicks-protocol/mcp-server"
      ],
      "env": {
        "CLICKS_PRIVATE_KEY": "<CLICKS_PRIVATE_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@clicks-protocol/mcp-server"
      ],
      "env": {
        "CLICKS_PRIVATE_KEY": "<CLICKS_PRIVATE_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@clicks-protocol/mcp-server"
      ],
      "env": {
        "CLICKS_PRIVATE_KEY": "<CLICKS_PRIVATE_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@clicks-protocol/mcp-server"
      ],
      "env": {
        "CLICKS_PRIVATE_KEY": "<CLICKS_PRIVATE_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@clicks-protocol/mcp-server"
      ],
      "env": {
        "CLICKS_PRIVATE_KEY": "<CLICKS_PRIVATE_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@clicks-protocol/mcp-server"
      ],
      "env": {
        "CLICKS_PRIVATE_KEY": "<CLICKS_PRIVATE_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@clicks-protocol/mcp-server"
      ],
      "env": {
        "CLICKS_PRIVATE_KEY": "<CLICKS_PRIVATE_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

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

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@clicks-protocol/mcp-server"
      ],
      "env": {
        "CLICKS_PRIVATE_KEY": "<CLICKS_PRIVATE_KEY>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 2 of 5 tools read data; 3 names don't say. From the server's own tool labels and tool names; not verified by us.

- `clicks_verify_receipt`: Verifies deterministic Receipt V2 integrity.
- `clicks_get_settlement_status` (name suggests: reads): Reads state, witnesses and retry policy.
- `clicks_reconcile_settlement`: Reads Base evidence and proposes a fail-closed state. Never submits or retries a transaction.
- `clicks_replay_policy`: Compares an exact policy definition with the policy hash bound to a receipt.
- `clicks_get_receipt_trail` (name suggests: reads): Reads matching versions from a configured local append-only ledger.

## FAQ

### Does the server need a private key to run?

No. Read-only Receipt V2 tools work without one. Only write tools such as register, deposit and withdraw require CLICKS_PRIVATE_KEY.

### Can the server retry or submit transactions?

The reconciliation tool never submits or retries a transaction. A bounded retry is only permitted for the failed_before_transfer state when established with independent evidence.

### Which network does clicksprotocol use?

It targets Base. The RPC URL defaults to https://mainnet.base.org and can be changed with CLICKS_RPC_URL.

### Is clicksprotocol free?

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

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

Run this command in your terminal: claude mcp add mcp-server --env CLICKS_PRIVATE_KEY='<CLICKS_PRIVATE_KEY>' -- npx -y @clicks-protocol/mcp-server

### What are the best alternatives to clicksprotocol?

The closest alternatives to clicksprotocol are Agent Transaction Trust, Payagent MCP, Coreguard Agent Commerce, Check Before You Pay and Clawpay.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Agent Transaction Trust](https://ai-powered.com/mcp/agent-transaction-trust): Agent Transaction Trust is an MCP server for agent payments.
- [Payagent MCP](https://ai-powered.com/mcp/payagent-mcp): Payagent MCP is an open-source MCP server for agent payments.
- [Coreguard Agent Commerce](https://ai-powered.com/mcp/coreguard-agent-commerce): Coreguard Agent Commerce is an open-source MCP server for agent payments.
- [Check Before You Pay](https://ai-powered.com/mcp/check-before-you-pay): Check Before You Pay is an MCP server for agent payments.
- [Clawpay](https://ai-powered.com/mcp/clawpay): Clawpay is an open-source MCP server for finance and payments.
- [X402 Payagent MCP](https://ai-powered.com/mcp/x402-payagent-mcp): X402 Payagent MCP is an open-source MCP server for finance and payments.
- [Xap](https://ai-powered.com/mcp/xap): Xap is a freemium MCP server for agent payments.
- [Logicnodes MCP](https://ai-powered.com/mcp/logicnodes-mcp): Logicnodes MCP is a paid MCP server for crypto and web3.

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