
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
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 Name | Description |
|---|---|
feraterra_doctor | Run <1s preflight diagnostics on the local C++23 Shadow-CLOB engine, Python environment, license tier, and localhost ports. |
feraterra_list_crash_packs | List deterministic 5-sigma microstructure stress scenarios (polymarket_news_shock, whipsaw_funding_squeeze, flash_crash_5sigma, liquidity_vacuum_cascade). |
feraterra_simulate_strategy | Run 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_trace | Replay 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
- Website & Interactive Sandbox: https://feraterra.app
- Free Execution Fee & Slippage Calculators: https://feraterra.app/tools
- Polymarket Starter Repo: https://github.com/FeraTerra/polymarket-paper-trading
- Hyperliquid Starter Repo: https://github.com/FeraTerra/hyperliquid-backtest-sim
ghcr.io/feraterra/mcp-server-feraterra:1.0.1docker pull ghcr.io/feraterra/mcp-server-feraterra:1.0.1:undefinedhttps://github.com/FeraTerra/mcp-server-feraterra/releases/download/v1.0.1/mcp-server-feraterra.mcpb# mcpb: https://github.com/FeraTerra/mcp-server-feraterra/releases/download/v1.0.1/mcp-server-feraterra.mcpb