Skip to main content
Glama
mcp-server-feraterra

mcp-server-feraterra

Official
by FeraTerra

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

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

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


Related MCP server: Hyperliquid MCP Server

Quick Setup

Option A: One-Line uvx Config (Cursor / Claude Desktop)

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

Example Prompts Inside Cursor / Claude Code

  • "Run feraterra_simulate_strategy on polymarket_news_shock at 25ms vs 160ms cancel latency and explain why Naive Paper PnL diverges from L3 FIFO PnL."

  • "Write a wider inventory-skewing Polymarket market maker in my_bot.py and test it with feraterra_replay_trace until cancel-lag snipes drop below 5."

  • "Compare half_spread_ticks=1 vs half_spread_ticks=3 on Hyperliquid whipsaw_funding_squeeze using Fera Terra."

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Local-first backtesting engine with built-in overfitting detection (PBO, deflated Sharpe, bootstrap CI, walk-forward) and a native MCP server for AI agents to validate trading strategies.
      4
      Apache 2.0
    • A
      license
      B
      quality
      D
      maintenance
      Enables auditing and verification of algorithmic trading backtests from coding agents like Claude Code, Cursor, and Windsurf, including look-ahead bias detection, overfitting checks, and sealed audit proof verification.
      3
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to paper-trade on Polymarket against live order books with realistic fees and fill mechanics, including market search, portfolio tracking, and strategy backtesting.
      33
      178 PyPI
      506
      MIT