# Pyrimid Protocol

An MCP server for agent commerce: browse paid MCP tools and AI APIs, buy them over x402, and settle affiliate commissions in USDC on Base.

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

## What it does

Pyrimid Protocol links three sides — vendors list paid MCP tools and AI APIs, agents find and buy them over x402, and smart contracts on Base settle commissions in USDC. Agents get `pyrimid_browse` to search the catalog, `pyrimid_preview` to see the commission split before paying, and `pyrimid_buy` to complete a purchase with affiliate attribution.

The split works like this: 1% goes to the protocol treasury, the affiliate gets 0–50% depending on the rate the vendor sets, and the vendor keeps the rest. With no affiliate, the vendor receives 99%. Registry, Catalog, Router and Treasury contracts are deployed and verified on Base Mainnet using the ERC-1967 proxy pattern.

Read access to the API is free and rate-limited to 60 requests per minute. Paid endpoints such as `/api/v1/paid/signals` answer with HTTP 402 and x402 `accepts[]` metadata first; you retry with an `X-PAYMENT` or `X-PAYMENT-TX` header. No Base wallet and no working x402 payment means `pyrimid_buy` goes nowhere.

## Requirements
- Remote server: `https://pyrimid.ai/api/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http pyrimid https://pyrimid.ai/api/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add pyrimid-protocol --url https://pyrimid.ai/api/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "pyrimid-protocol": {
            "url": "https://pyrimid.ai/api/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "pyrimid-protocol": {
            "type": "http",
            "url": "https://pyrimid.ai/api/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http pyrimid-protocol https://pyrimid.ai/api/mcp
```

## When to use it
- find a paid MCP tool for a specific job
- check the commission split before paying
- buy an API endpoint over x402 with affiliate attribution
- register as an affiliate and earn USDC commissions
- list your own API with a price and affiliate rate

## Example prompts
- Search the Pyrimid catalog for trading signal tools and show me the prices
- Preview the commission split for `signals_latest` before I buy
- Buy `/api/v1/paid/agentzone-search?q=agent-commerce` over x402

## Similar
- [databroker](https://affpapa.org/en/nevibecode/mcp/databroker.md) — MCP server
- [mcp-x402](https://affpapa.org/en/nevibecode/mcp/mcp-x402.md) — MCP server · ★ 274
- [x402](https://affpapa.org/en/nevibecode/skills/starchild-x402.md) — skill · 1200 installs
- [payanagent](https://affpapa.org/en/nevibecode/mcp/payanagent.md) — MCP server · ★ 6
- [BotsRated (beta)](https://affpapa.org/en/nevibecode/mcp/botsrated-beta.md) — MCP server
- [okx-agent-payments-protocol](https://affpapa.org/en/nevibecode/skills/okx-agent-payments-protocol.md) — skill · 13700 installs

---
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
