# Arbitrage-AnyPrice Quant & Firewall MCP

> Arbitrage-AnyPrice Quant & Firewall MCP is a freemium MCP server for trading tools. Read-only MCP server for cross-market prediction spreads, resolution-rule checks. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Starting price:** $99 a month
- **Platforms:** API, CLI, Self-hosted
- **Website:** https://pjrpjr.github.io/arbitrage-anyprice/
- **Repository:** https://github.com/pjrpjr/arbitrage-anyprice
- **MCP Registry name:** io.github.pjrpjr/arbitrage-anyprice
- **Categories:** [trading tools](https://ai-powered.com/categories/trading-tools)
- **Listing updated:** 2026-12-04

## About

Arbitrage-AnyPrice pulls public pricing data from prediction markets, GPU rental marketplaces and LLM price lists, then scores price gaps after fees, slippage and risk-free carry. Its main safeguard is a resolution-rule check that flags contracts whose settlement wording differs enough to make an apparent spread misleading, so those pairs are held back rather than shown as opportunities.

The same ledger also compares the cost of running open-weight models on rented GPUs against paying per token for hosted models, using VRAM and utilization limits to keep the comparison realistic. Each polling cycle is chained with SHA-256 hashes in a local SQLite database, and a verification command recomputes those digests from stored rows.

The project is aimed at quantitative analysts and engineers who want auditable market data inside their own AI clients. It exposes six read-only tools over stdio or HTTP JSON-RPC, and the hosted version offers pay-per-query access in USDC or monthly subscriptions.

## Features

- **Resolution-rule firewall:** Checks whether two contracts settle on equivalent criteria before treating a price gap as real.
- **Net spread scoring:** Deducts venue fees, order-book depth limits and FRED-based carry from gross price differences.
- **GPU versus API cost comparison:** Estimates break-even between renting GPU capacity and paying per token for open-weight models.
- **Hash-chained ledger:** Stores each collection cycle in SQLite with SHA-256 linkage and a verification command.
- **Six read-only MCP tools:** Exposes spreads, quarantined traps, backtests and integrity checks to MCP-compatible clients.

## Good for

- Scan prediction-market contracts for price gaps that survive fee and settlement checks
- Compare hosted LLM token prices with self-run GPU costs for a given model
- Give an AI assistant read-only access to cross-market spread data
- Audit a stored market-data ledger for tampering before using it in analysis

## Install

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

```sh
claude mcp add arbitrage-anyprice -- docker run -i --rm ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0
```

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": {
    "arbitrage-anyprice": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "arbitrage-anyprice": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "arbitrage-anyprice": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "arbitrage-anyprice": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0"
      ]
    }
  }
}
```

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 arbitrage-anyprice -- docker run -i --rm ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0
```

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

```toml
[mcp_servers.arbitrage-anyprice]
command = "docker"
args = ["run", "-i", "--rm", "ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0"]
```

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

```json
{
  "mcpServers": {
    "arbitrage-anyprice": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user arbitrage-anyprice docker -- run -i --rm ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0

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

```json
{
  "mcpServers": {
    "arbitrage-anyprice": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "arbitrage-anyprice": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0"
      ]
    }
  }
}
```

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": {
    "arbitrage-anyprice": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "arbitrage-anyprice": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0"
      ]
    }
  }
}
```

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": {
    "arbitrage-anyprice": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "arbitrage-anyprice": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "arbitrage-anyprice": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0"
      ]
    }
  }
}
```

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": {
    "arbitrage-anyprice": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0"
      ]
    }
  }
}
```

## Tools

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

- `get_verified_spreads` (name suggests: reads): Returns cross-market spreads net of fees and carry.
- `get_quarantined_traps` (name suggests: reads): Lists candidate pairs blocked by the resolution-rule firewall.
- `get_backtest_summary` (name suggests: reads): Summarises historical spread-decay observations.
- `audit_resolution_equivalence`: Audits whether two contracts resolve equivalently.
- `calculate_gpu_vs_api_arbitrage`: Compares GPU compute cost with hosted token pricing.
- `verify_ledger_integrity`: Recomputes ledger hashes to detect row tampering.

## FAQ

### Does Arbitrage-AnyPrice Quant & Firewall MCP place trades?

No. The project describes itself as read-only and does not custody client capital or execute trades on restricted venues.

### How do I run the MCP server locally?

Launch the arbitrage-anyprice-mcp command with a path to a local SQLite ledger, or run the container image over stdio and set the optional database path variable.

### What does the x402 endpoint charge?

The spreads endpoint returns an HTTP 402 manifest for unpaid requests, with a per-query price of $0.01 in USDC on Base.

### Is Arbitrage-AnyPrice Quant & Firewall MCP free?

Arbitrage-AnyPrice Quant & Firewall MCP has a free plan, with paid plans for more usage or features. Paid plans start at $99 a month.

### How do I add Arbitrage-AnyPrice Quant & Firewall MCP to Claude Code?

Run this command in your terminal: claude mcp add arbitrage-anyprice -- docker run -i --rm ghcr.io/pjrpjr/arbitrage-anyprice:0.2.0

### What are the best alternatives to Arbitrage-AnyPrice Quant & Firewall MCP?

The closest alternatives to Arbitrage-AnyPrice Quant & Firewall MCP are AegisZero prop-firm research, ProofPerps, bckstage, Calder Markets and Alpha Factory by FinzData.

## Where this comes from

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

## Alternatives

- [AegisZero prop-firm research](https://ai-powered.com/mcp/aegiszero-prop-firm-research): AegisZero prop-firm research is an MCP server for trading tools.
- [ProofPerps](https://ai-powered.com/mcp/proofperps): ProofPerps is an MCP server for trading tools.
- [bckstage](https://ai-powered.com/mcp/bckstage): bckstage is an MCP server for trading tools.
- [Calder Markets](https://ai-powered.com/mcp/calder-markets): Calder Markets is an MCP server for trading tools.
- [Alpha Factory by FinzData](https://ai-powered.com/mcp/alpha-factory-by-finzdata): Alpha Factory by FinzData is a freemium MCP server for finance and payments.
- [QuantForge Studio](https://ai-powered.com/mcp/quantforge-studio): QuantForge Studio is a freemium MCP server for trading tools.
- [TrueGuard Quant Regime Oracle](https://ai-powered.com/mcp/trueguard-quant-regime-oracle): TrueGuard Quant Regime Oracle is a paid MCP server for trading tools.
- [Dispatch Cash](https://ai-powered.com/mcp/dispatch-cash): Dispatch Cash is a paid MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/arbitrage-anyprice-quant-and-firewall-mcp
