feraterra-mcp
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
feraterra-mcp
Zero-dependency Node.js >=20 Model Context Protocol (MCP) stdio server 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:stream) —0runtime dependencies and0install scripts for instant, supply-chain-cleannpx -y github:FeraTerra/feraterra-mcpexecution.Full MCP
2025-11-25&2025-06-18stdioserver: Supports protocol negotiation (2025-11-25,2025-06-18,2025-03-26,2024-11-05),ToolAnnotations, structured tool outputs, resources, prompts,--read-onlyguardrails, and automatic credential scrubbing.Stateless pre-trade safety (
account_id: 0): Simulate fills, fees, and Eigen-SPAN portfolio margin impact viaPOST /order/previewwith zero state mutation.Client-side cryptographic solvency audit: Pure-BigInt
Keccak-256andsecp256k1signature recovery (ecrecover) verifyingARENA_LEDGER_TIP_V2_1WAL state roots without external elliptic-curve packages.
Quick Start (npx — Zero Install)
Verify your local Node.js >=20 runtime and run the built-in loopback HTTP + MCP stdio self-test directly from GitHub:
npx -y github:FeraTerra/feraterra-mcp --self-testOr install as an ESM / TypeScript SDK in any Node.js project:
npm install github:FeraTerra/feraterra-mcpRelated MCP server: polymarket-mcp
MCP Client Configurations (npx -y github:FeraTerra/feraterra-mcp)
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", "github:FeraTerra/feraterra-mcp"],
"env": {
"FERATERRA_API_URL": "https://testnet.feraterra.app"
}
}
}
}2. Cursor (.cursor/mcp.json)
{
"mcpServers": {
"feraterra": {
"command": "npx",
"args": ["-y", "github:FeraTerra/feraterra-mcp"],
"env": {
"FERATERRA_API_URL": "https://testnet.feraterra.app"
}
}
}
}3. Windsurf (~/.codeium/windsurf/mcp_config.json)
{
"mcpServers": {
"feraterra": {
"command": "npx",
"args": ["-y", "github:FeraTerra/feraterra-mcp"],
"env": {
"FERATERRA_API_URL": "https://testnet.feraterra.app"
}
}
}
}4. Cline (cline_mcp_settings.json)
{
"mcpServers": {
"feraterra": {
"command": "npx",
"args": ["-y", "github:FeraTerra/feraterra-mcp"],
"disabled": false,
"autoApprove": [
"feraterra_list_markets",
"feraterra_get_orderbook",
"feraterra_get_trades",
"feraterra_get_candles",
"feraterra_get_leaderboard",
"feraterra_verify_ledger_tip",
"feraterra_preview_order",
"feraterra_convert_units"
],
"env": {
"FERATERRA_API_URL": "https://testnet.feraterra.app"
}
}
}
}5. Antigravity (mcp_config.json)
{
"mcpServers": {
"feraterra": {
"command": "npx",
"args": ["-y", "github:FeraTerra/feraterra-mcp"],
"env": {
"FERATERRA_API_URL": "https://testnet.feraterra.app"
}
}
}
}6. Mastra (@mastra/mcp)
import { MCPClient } from "@mastra/mcp";
export const feraterraMcp = new MCPClient({
servers: {
feraterra: {
command: "npx",
args: ["-y", "github:FeraTerra/feraterra-mcp"],
env: {
FERATERRA_API_URL: "https://testnet.feraterra.app",
},
},
},
});Hosted Streamable HTTP Alternative (Zero Local Process)
Any MCP host supporting Streamable HTTP can also connect directly to the public FeraTerra MCP gateway:
{
"mcpServers": {
"feraterra-remote": {
"type": "streamable-http",
"url": "https://mcp.feraterra.app/mcp"
}
}
}Exposed MCP Tools (13)
Tool | Endpoint / Mode | Auth | Description |
|
| 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 pre-trade order simulation returning estimated fills, fees, and margin impact. |
|
| 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. |
|
| 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 |
Node.js / TypeScript ESM SDK Usage
import {
FeraTerraClient,
baseToLots,
lotsToBase,
ticksToUsd,
usdToTicks,
verifyLedgerTip,
} from "feraterra-mcp";
// 1. Read-only + stateless preview (zero credentials needed)
const publicClient = new FeraTerraClient({
baseUrl: "https://testnet.feraterra.app",
});
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 ( |
|
|
| Default trader account ID ( |
|
| (optional) |
|
|
| (optional) | HMAC-SHA256 signing secret (automatically redacted from MCP outputs and errors). |
|
| (optional) | Pinned |
|
|
| Disables mutating tools ( |
|
|
| Per-request HTTP timeout in milliseconds. |
Verification & Testing
node ./bin/feraterra-mcp.mjs --self-test
node --test test/*.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.
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.
Read-only market data on derivatives: digital asset and US stock perpetuals, liquidations, options.
1
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.27 PyPI1MIT
- 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