feraterra-mcp
OfficialThis server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
feraterra-mcp (v4.9.5)
Zero-dependency Node.js >=20 Model Context Protocol (MCP) stdio server, Streamable HTTP proxy (--remote), 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).
Zero npm dependencies: Built strictly on Node.js
>=20built-ins (fetch,node:crypto,node:http,node:https,node:stream) —0runtime dependencies and0install scripts for instant, supply-chain-cleannpx -y feraterra-mcpexecution.Full MCP
2025-11-25&2025-06-18stdioserver +--remoteStreamable HTTP proxy (100%schema coverage): Supports protocol negotiation (2025-11-25,2025-06-18,2025-03-26,2024-11-05),14documented tools with top-leveltitle+ToolAnnotations,0missinginputSchemadescriptions,resources/list,resources/templates/list,prompts/list,--read-onlyguardrails (hiding mutating tools and prompts), and automatic credential scrubbing.Offline portable trading skill (
install-skill): Bundlesskills/feraterra-trading/SKILL.md(v4.9.5) and installs offline into.agents/,.claude/,.cursor/, or.codex/vianpx -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 viaPOST /order/preview(feraterra_preview_order/arena_preview_order) with zero API keys and zero state mutation.Headless protocol manifest (
GET /) & machine-readable terms (GET /terms): Inspect programmatic protocol disclosures, non-custodial L2 collateral vault Merkle emergency escape guarantees, and runtime posture viaferaterra_health_and_manifest,GET /terms(feraterra://protocol/terms), andclient.getTerms().Client-side cryptographic solvency audit & hardened HTTP transport: Pure-BigInt
Keccak-256andsecp256k1signature recovery (ecrecover) verifyingARENA_LEDGER_TIP_V2_1WAL state roots, stricthttps:/ loopbackhttp:URL validation,redirect: "error"HMAC leak protection, and a4 MiBresponse body cap.
Quick Start (npx — Zero Install)
Run the built-in loopback HTTP + MCP stdio + Streamable HTTP proxy + skill installer self-test:
npx -y feraterra-mcp --self-testInstall the portable feraterra-trading agent skill (v4.9.5) offline into your workspace:
# 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-botOr install as an ESM / TypeScript SDK in any Node.js >=20 project:
npm install feraterra-mcpRelated MCP server: polymarket-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.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"feraterra": {
"command": "npx",
"args": ["-y", "feraterra-mcp"],
"env": {
"FERATERRA_API_URL": "https://testnet.feraterra.app"
}
}
}
}2. Cursor (.cursor/mcp.json)
{
"mcpServers": {
"feraterra": {
"command": "npx",
"args": ["-y", "feraterra-mcp"],
"env": {
"FERATERRA_API_URL": "https://testnet.feraterra.app"
}
}
}
}3. 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"
}
}
}
}4. Direct Hosted Streamable HTTP (Zero Local Process)
{
"mcpServers": {
"feraterra-remote": {
"type": "streamable-http",
"url": "https://mcp.feraterra.app/mcp"
}
}
}Exposed MCP Tools (14)
Tool | Endpoint / Mode | Auth | Description |
|
| Public | Fetch gateway health, conservation status, |
|
| Public | List active perpetual, spot, basis spread, and bounded-claim markets with USD mark prices and BBOs. |
|
| Public | Fetch live L2/L3 order book depth, USD levels, base sizes, and top-of-book spread. |
|
| Public | Fetch recent CLOB trade executions with USD prices and base quantities. |
|
| Public | Fetch |
|
| Public | Retrieve ranked traders sorted by |
|
| Public | Verify |
|
| Public ( | Stateless zero-mutation order & Eigen-SPAN IMR/MMR simulation ( |
|
| HMAC | Inspect Eigen-SPAN equity, free/withdrawable USD, IMR/MMR, positions, and open orders. |
|
| HMAC | Submit limit or market orders ( |
|
| HMAC | Atomically replace resting two-sided maker bid and ask quotes in 1 WAL step (default |
|
| HMAC | Cancel a specific resting order by |
|
| HMAC | Batch-cancel resting orders across all markets or filtered by market, side, or tag. |
| Local Pure Math | Offline | Convert exact fixed-point |
Compatibility Aliases: For drop-in compatibility with the hosted
mcp.feraterra.appgateway,FeraTerraMcpServer.callToolalso acceptsarena_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, andarena_cancel_all.
Exposed MCP Resources (4)
Resource URI | Backing Endpoint | Description |
|
| Live CLOB perpetual, spot, basis spread, and bounded-claim market catalog. |
|
| Cryptographically verified |
|
| Machine-readable headless protocol Terms of Service, L2 collateral vault Merkle escape guarantees, and risk disclosures. |
| Local Gateway State | Active base URL, remote Streamable HTTP endpoint, credential posture, and read-only status. |
Stateless Zero-Key Order Preview (account_id: 0) & Headless 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 Headless Protocol Terms (GET /terms)
FeraTerra operates as a headless sovereign CLOB protocol (website_ui: false). 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):
curl -s https://testnet.feraterra.app/termsNode.js / TypeScript ESM SDK Usage
import {
FeraTerraClient,
PACKAGE_VERSION,
baseToLots,
lotsToBase,
strictBool,
ticksToUsd,
usdToTicks,
verifyLedgerTip,
} from "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 Flags
Variable | CLI Flag | Default | Description |
|
|
| FeraTerra HTTPS gateway URL (loopback |
|
|
| Proxy MCP |
|
|
| Target Streamable HTTP MCP URL (implies |
|
| (optional) | Optional |
|
|
| Default trader account ID ( |
|
| (optional) |
|
|
| (optional) | HMAC-SHA256 signing secret (automatically redacted from MCP outputs and errors). |
|
| (optional) | Pinned |
|
|
| Disables mutating tools and mutating prompts. |
|
|
| Per-request HTTP timeout in milliseconds ( |
Verification & Testing
node ./bin/feraterra-mcp.mjs --self-test
node --test test/mcp.test.mjsLicense
MIT — Copyright (c) 2026 FeraTerra.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Historical tick, order book and settlement data for Polymarket and Predict.fun crypto up/down markets, plus smart-money lists and backtest quotes, over a read-only MCP server.
Read-only crypto data MCP: CEX/PerpDEX markets, DEX, wallets, explorers, prediction markets & RPC.
Live prices, perps, prediction markets and a paper trading desk over one MCP.
Read-only market data: tokens, stocks, Hyperliquid perps, Polymarket, and public trader books.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables users to search, analyze, and trade on Kalshi prediction markets directly through MCP-compatible clients. It supports portfolio management, market data retrieval, and limit order execution with production-grade authentication and rate limiting.1MIT
- AlicenseAqualityCmaintenanceA read-only MCP server exposing Polymarket's public prediction-market data. Search markets, read live odds and order books, pull historical probability time-series, and inspect public wallet positions.1436 PyPIMIT
- AlicenseAqualityBmaintenanceRead-only MCP server for Blocksize real-time market data: crypto VWAP, bid/ask, FX, metals and tokenized equities, with pricing, coverage and x402 endpoint lookup. Signed-in users of the Claude, ChatGPT and Cursor connectors get 30,000 free live-data credits every month (1 credit = $0.001); subscriptions from EUR 49/month.71MIT

Lucyd MCP Serverofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents and MCP clients to browse prediction markets, inspect order books, trades and positions, and to place, cancel and manage orders, close positions and redeem winnings from a locally signing wallet. It also supports read-only operation and a hosted mode for market data only.MIT