Back to Browse

Feraterra MCP Server

Developer ToolsLow Risk10.0MCP RegistryLocalRemote
Free

Server data from the Official MCP Registry

Sovereign CLOB perpetuals, spot, basis spreads, zero-key order preview, and solvency audit MCP.

About

Sovereign CLOB perpetuals, spot, basis spreads, zero-key order preview, and solvency audit MCP.

Remote endpoints: streamable-http: https://mcp.feraterra.app/mcp

Security Report

10.0
Low Risk10.0Low Risk

Valid MCP server (0 strong, 2 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry. Trust signals: trusted author (3/3 approved).

7 tools verified · Open access · 1 issue found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

file_system

Check that this permission is expected for this type of plugin.

Shell Command Execution

Runs commands on your machine. Be cautious — only use if you trust this plugin.

HTTP Network Access

Connects to external APIs or services over the internet.

How to Install & Connect

Available as Local & Remote

This plugin can run on your machine or connect to a hosted endpoint. during install.

Documentation

View on GitHub

From the project's GitHub README.

feraterra-mcp (v4.9.6)

Zero-dependency Node.js >=20 Model Context Protocol (MCP) stdio server, Streamable HTTP proxy (--remote), <3s live solvency & order preview CLI (demo), offline agent skill installer (install-skill), and ESM / TypeScript SDK for FeraTerra — sovereign central limit order book (CLOB) perpetuals, spot, basis spreads, stateless order simulation, and cryptographic Keccak-256 + secp256k1 solvency verification on Base (https://testnet.feraterra.app).

Surface / RegistryCoordinate / URLNotes
Live Spectator Terminalhttps://feraterra.app/terminalReal-time L2/L3 order book, trades, candles & Gladiator Leaderboard
Cryptographic Solvency Verifierhttps://feraterra.app/verifyBrowser-side ARENA_LEDGER_TIP_V2_1 Keccak-256 + secp256k1 verifier
Protocol & API Documentationhttps://feraterra.app/docsREST, MCP, fixed-point scales, Eigen-SPAN margin & 64-byte HFT wire docs
npm (Primary & Scoped Alias)feraterra-mcp / @feraterra/mcpZero-dependency Node.js >=20 CLI & ESM/TypeScript SDK (v4.9.6)
GHCR Container Imageghcr.io/feraterra/feraterra-mcp:4.9.6Non-root node:22-alpine OCI container (:4.9.6 and :latest)
Official MCP Registryio.github.FeraTerra/feraterra-mcpRegistered with stdio (npx) packages and streamable-http remote
Hosted Streamable HTTP MCPhttps://mcp.feraterra.app/mcpZero-install hosted MCP 2025-11-25 / 2025-06-18 gateway
  • Zero npm dependencies: Built strictly on Node.js >=20 built-ins (fetch, node:crypto, node:http, node:https, node:stream) — 0 runtime dependencies and 0 install scripts for instant, supply-chain-clean npx -y feraterra-mcp (or npx -y @feraterra/mcp) execution.
  • Instant <3s zero-key live demo (demo): Run npx -y feraterra-mcp --self-test to verify the live ARENA_LEDGER_TIP_V2_1 solvency root, inspect active markets & top-of-book spreads, simulate a zero-key account_id: 0 BTC-USD-PERP order preview, and sample the Gladiator Leaderboard in under 3 seconds.
  • Full MCP 2025-11-25 & 2025-06-18 stdio server + --remote Streamable HTTP proxy (100% schema coverage): Supports protocol negotiation (2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05), 14 documented tools with top-level title + ToolAnnotations, 0 missing inputSchema descriptions, resources/list, resources/templates/list, prompts/list, --read-only guardrails (hiding mutating tools and prompts), and automatic credential scrubbing.
  • Offline portable trading skill (install-skill): Bundles skills/feraterra-trading/SKILL.md (v4.9.6) and installs offline into .agents/, .claude/, .cursor/, or .codex/ via npx -y feraterra-mcp install-skill [--claude|--cursor|--codex|--dir <path>].
  • Stateless zero-key pre-trade safety (account_id: 0): Simulate fills, net fees/rebates, and standalone Eigen-SPAN initial/maintenance margin (IMR / MMR) impact via POST /order/preview (feraterra_preview_order / arena_preview_order) with zero API keys and zero state mutation.
  • Protocol manifest (GET /) & machine-readable terms (GET /terms): Inspect programmatic protocol disclosures, non-custodial L2 collateral vault Merkle emergency escape guarantees, and runtime posture via feraterra_health_and_manifest, GET /terms (feraterra://protocol/terms), and client.getTerms().
  • Client-side cryptographic solvency audit & hardened HTTP transport: Pure-BigInt Keccak-256 and secp256k1 signature recovery (ecrecover) verifying ARENA_LEDGER_TIP_V2_1 WAL state roots, strict https: / loopback http: URL validation, redirect: "error" HMAC leak protection, and a 4 MiB response body cap.

Quick Start (<3s Live Demo, npx, Scoped @feraterra/mcp & Docker)

1. Run the <3s Live Solvency & Zero-Key Order Preview Walkthrough

No wallet or API keys required — verifies the live signed WAL state root, top-of-book spread, stateless account_id: 0 order preview, and Gladiator Leaderboard in <3s:

npx -y feraterra-mcp --self-test
# Or via the scoped npm package:
npx -y @feraterra/mcp demo

2. Run the Offline Loopback Verification Suite (--self-test)

npx -y feraterra-mcp --self-test

3. Run via Docker (ghcr.io/feraterra/feraterra-mcp:4.9.6)

# <3s live demo inside non-root Alpine container:
docker run --rm ghcr.io/feraterra/feraterra-mcp:4.9.6 demo

# Offline self-test inside container:
docker run --rm ghcr.io/feraterra/feraterra-mcp:4.9.6 --self-test

4. Install the Portable feraterra-trading Agent Skill (v4.9.6)

# Default (.agents/skills/feraterra-trading/SKILL.md)
npx -y feraterra-mcp install-skill

# Agent-specific skill folders (--claude, --cursor, --codex) and explicit directory (--dir)
npx -y feraterra-mcp install-skill --claude --cursor --codex --dir ./my-trading-bot

5. Install as an ESM / TypeScript SDK (Node.js >=20)

npm install feraterra-mcp
# Or scoped alias:
npm install @feraterra/mcp

MCP Client Configurations

For read-only market discovery, order book analysis, stateless previewOrder (account_id: 0), and cryptographic solvency audits, no API keys are required. Add FERATERRA_ACCOUNT_ID, FERATERRA_API_KEY, and FERATERRA_API_SECRET only when enabling authenticated account inspection and order execution.

1. Claude Desktop (claude_desktop_config.json)

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "feraterra": {
      "command": "npx",
      "args": ["-y", "feraterra-mcp"],
      "env": {
        "FERATERRA_API_URL": "https://testnet.feraterra.app"
      }
    }
  }
}

(You may substitute "@feraterra/mcp" in "args" interchangeably.)

2. Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "feraterra": {
      "command": "npx",
      "args": ["-y", "feraterra-mcp"],
      "env": {
        "FERATERRA_API_URL": "https://testnet.feraterra.app"
      }
    }
  }
}

3. Docker / GHCR (ghcr.io/feraterra/feraterra-mcp:4.9.6)

Run isolated inside the non-root node:22-alpine container (USER node):

{
  "mcpServers": {
    "feraterra-docker": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "FERATERRA_API_URL=https://testnet.feraterra.app",
        "ghcr.io/feraterra/feraterra-mcp:4.9.6"
      ]
    }
  }
}

4. Streamable HTTP Proxy Mode (--remote / --mcp-url)

Bridge stdio-only MCP hosts (JSONL or Content-Length) to the hosted Streamable HTTP MCP gateway (https://mcp.feraterra.app/mcp) with optional FERATERRA_BEARER_TOKEN authentication:

{
  "mcpServers": {
    "feraterra-remote": {
      "command": "npx",
      "args": ["-y", "feraterra-mcp", "--remote", "--mcp-url", "https://mcp.feraterra.app/mcp"],
      "env": {
        "FERATERRA_BEARER_TOKEN": "your-optional-bearer-token"
      }
    }
  }
}

5. Direct Hosted Streamable HTTP (Zero Local Process)

{
  "mcpServers": {
    "feraterra-remote": {
      "type": "streamable-http",
      "url": "https://mcp.feraterra.app/mcp"
    }
  }
}

Exposed MCP Tools (14)

ToolEndpoint / ModeAuthDescription
feraterra_health_and_manifest (alias: arena_health_and_manifest)GET /health + GET / (+ GET /terms)PublicFetch gateway health, conservation status, wal_seq, chain_id, L2 collateral vault address, and optional terms.
feraterra_list_marketsGET /marketsPublicList active perpetual, spot, basis spread, and bounded-claim markets with USD mark prices and BBOs.
feraterra_get_orderbookGET /bookPublicFetch live L2/L3 order book depth, USD levels, base sizes, and top-of-book spread.
feraterra_get_tradesGET /tradesPublicFetch recent CLOB trade executions with USD prices and base quantities.
feraterra_get_candlesGET /candlesPublicFetch tick, 1s, or 1m OHLCV candles with formatted USD OHLC and base volume.
feraterra_get_leaderboardGET /leaderboardPublicRetrieve ranked traders sorted by equity, pnl, streak, volume, or roi.
feraterra_verify_ledger_tipGET /ledger/tip + GET /healthPublicVerify ARENA_LEDGER_TIP_V2_1 Keccak-256 digest, secp256k1 operator signature, and conservation invariants.
feraterra_preview_order (alias: arena_preview_order)POST /order/previewPublic (account_id: 0) / HMACStateless zero-mutation order & Eigen-SPAN IMR/MMR simulation (account_id: 0 or omitted = anonymous zero-key preview).
feraterra_get_accountGET /accountHMAC X-Arena-*Inspect Eigen-SPAN equity, free/withdrawable USD, IMR/MMR, positions, and open orders.
feraterra_place_orderPOST /orderHMAC X-Arena-*Submit limit or market orders (gtc, ioc, fok, post_only, reduce_only).
feraterra_replace_quotePOST /quoteHMAC X-Arena-*Atomically replace resting two-sided maker bid and ask quotes in 1 WAL step (default tif: "post_only").
feraterra_cancel_orderPOST /cancelHMAC X-Arena-*Cancel a specific resting order by order_id.
feraterra_cancel_all_ordersPOST /cancel_allHMAC X-Arena-*Batch-cancel resting orders across all markets or filtered by market, side, or tag.
feraterra_convert_unitsLocal Pure MathOfflineConvert exact fixed-point ticks ($0.01), lots (0.0001), and micro_usd (1e-6).

Compatibility Aliases: For drop-in compatibility with the hosted mcp.feraterra.app gateway, FeraTerraMcpServer.callTool also accepts arena_health_and_manifest, arena_preview_order, arena_list_markets, arena_get_orderbook, arena_get_trades, arena_get_candles, arena_get_leaderboard, arena_verify_ledger_tip, arena_get_account_portfolio, arena_place_order, arena_replace_two_sided_quote, arena_cancel_order, arena_cancel_orders, and arena_cancel_all.

Exposed MCP Resources (4)

Resource URIBacking EndpointDescription
feraterra://markets/directoryGET /marketsLive CLOB perpetual, spot, basis spread, and bounded-claim market catalog.
feraterra://ledger/tipGET /ledger/tip + GET /healthCryptographically verified ARENA_LEDGER_TIP_V2_1 state root and operator signature.
feraterra://protocol/termsGET /termsMachine-readable protocol Terms of Service, L2 collateral vault Merkle escape guarantees, and risk disclosures.
feraterra://server/configLocal Gateway StateActive base URL, remote Streamable HTTP endpoint, credential posture, and read-only status.

Stateless Zero-Key Order Preview (account_id: 0) & Machine-Readable GET /terms

1. Anonymous Zero-Key Order & IMR Simulation (POST /order/preview)

Agents can simulate resting or crossing orders, net fees/rebates, and standalone Eigen-SPAN initial/maintenance margin (IMR / MMR) before provisioning a wallet or API keys by omitting account_id or passing account_id: 0 to feraterra_preview_order (arena_preview_order):

curl -s -X POST https://testnet.feraterra.app/order/preview \
  -H "Content-Type: application/json" \
  -d '{"account_id":0,"market_id":1,"side":"bid","price_ticks":7000000,"qty_lots":1000,"tif":"post_only","stp":"cancel_resting"}'

When FERATERRA_ACCOUNT_ID (> 0), FERATERRA_API_KEY, and FERATERRA_API_SECRET are configured, omitting account_id automatically simulates against the authenticated account's live Eigen-SPAN portfolio; passing account_id: 0 explicitly still forces a clean zero-key stateless simulation without attaching X-Arena-* HMAC headers.

2. Machine-Readable Protocol Terms (GET /terms) & Web Verifier

Agents and integrators can retrieve machine-readable protocol Terms of Service, non-custodial L2 collateral vault Merkle emergency escape guarantees, and risk disclosures directly via GET /terms (or MCP resource feraterra://protocol/terms), alongside live market observation at https://feraterra.app/terminal, independent root verification at https://feraterra.app/verify, and protocol reference docs at https://feraterra.app/docs:

curl -s https://testnet.feraterra.app/terms

Node.js / TypeScript ESM SDK Usage

import {
  FeraTerraClient,
  PACKAGE_VERSION,
  baseToLots,
  lotsToBase,
  strictBool,
  ticksToUsd,
  usdToTicks,
  verifyLedgerTip,
} from "feraterra-mcp"; // or "@feraterra/mcp"

// 1. Read-only + stateless preview (zero credentials needed)
const publicClient = new FeraTerraClient({
  baseUrl: "https://testnet.feraterra.app",
});

const status = await publicClient.getHealthAndManifest({ includeTerms: true });
const markets = await publicClient.listMarkets({ activeOnly: true });
const book = await publicClient.getOrderbook({ symbol: "BTC-USD-PERP", depth: 10 });
const trades = await publicClient.getTrades({ symbol: "BTC-USD-PERP", limit: 20 });
const candles = await publicClient.getCandles({ symbol: "BTC-USD-PERP", interval: "1m", limit: 60 });
const leaderboard = await publicClient.getLeaderboard({ limit: 10, sort: "equity" });
const solvency = await publicClient.verifySolvency();

// Stateless dry-run preview with account_id: 0
const preview = await publicClient.previewOrder({
  accountId: 0,
  symbol: "BTC-USD-PERP",
  side: "buy",
  price: "70000.00",
  amount: "0.1",
  postOnly: true,
});

// Fixed-point unit helpers (1 tick = $0.01, 1 lot = 0.0001 base)
const pxTicks = usdToTicks("70000.25"); // 7000025
const pxUsd = ticksToUsd(pxTicks);      // "70000.25"
const qtyLots = baseToLots("0.25");     // 2500
const qtyBase = lotsToBase(qtyLots);    // "0.2500"

// 2. Authenticated HMAC-SHA256 trading client
const tradingClient = new FeraTerraClient({
  baseUrl: process.env.FERATERRA_API_URL ?? "https://testnet.feraterra.app",
  accountId: Number(process.env.FERATERRA_ACCOUNT_ID),
  apiKey: process.env.FERATERRA_API_KEY,
  apiSecret: process.env.FERATERRA_API_SECRET,
});

const account = await tradingClient.getAccount();
const order = await tradingClient.placeOrder({
  symbol: "BTC-USD-PERP",
  side: "buy",
  price: "69950.00",
  amount: "0.1",
  postOnly: true,
});
await tradingClient.cancelOrder({ symbol: "BTC-USD-PERP", orderId: order.order_id });

Environment Variables & CLI Subcommands / Flags

Subcommand / VariableCLI EquivalentDefaultDescription
(default)feraterra-mcpstdioRun local zero-dependency MCP stdio server against FERATERRA_API_URL.
demoferaterra-mcp demotestnetRun <3s live zero-key solvency, BBO, account_id: 0 preview & leaderboard demo.
install-skillferaterra-mcp install-skill.agents/Install bundled feraterra-trading SKILL.md (--claude, --cursor, --codex, --dir).
FERATERRA_API_URL--base-url <url>https://testnet.feraterra.appFeraTerra HTTPS gateway URL (loopback http:// also permitted for local testing).
FERATERRA_REMOTE_MCP--remotefalseProxy MCP stdio frames to Streamable HTTP gateway instead of local REST dispatch.
FERATERRA_MCP_URL--mcp-url <url>https://mcp.feraterra.app/mcpTarget Streamable HTTP MCP URL (implies --remote when --mcp-url is passed).
FERATERRA_BEARER_TOKEN--bearer-token <tok>(optional)Optional Authorization: Bearer token forwarded in --remote proxy mode.
FERATERRA_ACCOUNT_ID--account-id <id>0Default trader account ID (0 uses stateless preview; >0 required for /account and trading).
FERATERRA_API_KEY--api-key <key>(optional)X-Arena-API-Key identifier for HMAC-SHA256 authenticated requests.
FERATERRA_API_SECRET--api-secret <secret>(optional)HMAC-SHA256 signing secret (automatically redacted from MCP outputs and errors).
FERATERRA_EXPECTED_OPERATOR--expected-operator <0x...>(optional)Pinned 0x... Ethereum operator signer address for GET /ledger/tip verification.
FERATERRA_READ_ONLY--read-onlyfalseDisables mutating tools and mutating prompts.
FERATERRA_TIMEOUT_MS--timeout-ms <ms>10000Per-request HTTP timeout in milliseconds (30000 in --remote mode).

Verification & Testing

npx -y feraterra-mcp --self-test
node ./bin/feraterra-mcp.mjs --self-test
node --test test/mcp.test.mjs

License

MIT — Copyright (c) 2026 FeraTerra.

Reviews

No reviews yet

Be the first to review this server!