Repository avatar
Developer Tools
v1.0.1
active

mcp-server-feraterra

io.github.FeraTerra/mcp-server-feraterra

C++23 L3 FIFO orderbook backtester & paper-trading simulator for Polymarket and Hyperliquid.

Documentation

mcp-server-feraterra — Polymarket & Hyperliquid Backtesting MCP Server

MCP Server Stdio & C++23 Engine CI PyPI - feraterra License: MIT

FeraTerra/mcp-server-feraterra MCP server

Model Context Protocol (stdio JSON-RPC 2.0) server giving Claude Code, Cursor, Claude Desktop, and Windsurf direct access to Fera Terra's local C++23 L3 FIFO order-book matching engine (pip install feraterra).

Instead of letting coding agents validate trading bots with naive mid-price fill assumptions, mcp-server-feraterra lets your AI coding agent test Polymarket ($0.001 binary claim books) and Hyperliquid (BTC-PERP, ETH-PERP, SOL-PERP ALO perps) strategies against real resting queue priority, taker sweeps, and cancel-window latency — 100% locally on your machine with zero API keys.


Exposed MCP Tools

Tool NameDescription
feraterra_doctorRun <1s preflight diagnostics on the local C++23 Shadow-CLOB engine, Python environment, license tier, and localhost ports.
feraterra_list_crash_packsList deterministic 5-sigma microstructure stress scenarios (polymarket_news_shock, whipsaw_funding_squeeze, flash_crash_5sigma, liquidity_vacuum_cascade).
feraterra_simulate_strategyRun a deterministic C++23 L3 FIFO vs. Naive Paper simulation with configurable scenario, steps, order_latency_ms, cancel_latency_ms, half_spread_ticks, and quote_size_lots. Works free on the $0 Hobby tier.
feraterra_replay_traceReplay any local .trace.jsonl order-book & trade-sweep tape against a custom Python ArenaTwinBot file (bot_path).

Quick Setup (uvx / Claude Code / Cursor)

Option A: Cursor / Claude Desktop JSON (uvx)

Add to .cursor/mcp.json or claude_desktop_config.json:

{
  "mcpServers": {
    "feraterra": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/FeraTerra/mcp-server-feraterra.git",
        "mcp-server-feraterra"
      ]
    }
  }
}

Option B: Claude Code CLI

claude mcp add feraterra -- uvx --from git+https://github.com/FeraTerra/mcp-server-feraterra.git mcp-server-feraterra

Option C: Local pip Install

pip install "git+https://github.com/FeraTerra/mcp-server-feraterra.git"
mcp-server-feraterra

Glama MCP Server Listing & Online Inspector

View FeraTerra/mcp-server-feraterra on Glama to:

  • Browse the server's exposed tools, schemas, and quality score.
  • Test the server online using the MCP Inspector.

Links

OCI
ghcr.io/feraterra/mcp-server-feraterra:1.0.1
Install Command
docker pull ghcr.io/feraterra/mcp-server-feraterra:1.0.1:undefined
MCPB
https://github.com/FeraTerra/mcp-server-feraterra/releases/download/v1.0.1/mcp-server-feraterra.mcpb
Install Command
# mcpb: https://github.com/FeraTerra/mcp-server-feraterra/releases/download/v1.0.1/mcp-server-feraterra.mcpb