# Arena Exchange Headless Trading & Risk MCP

> Arena Exchange Headless Trading & Risk MCP is an open-source MCP server for finance and payments. Headless trading and risk MCP gateway for Arena Exchange spot and perps markets. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** API, CLI, Linux, macOS, Windows, Web
- **Website:** https://testnet.feraterra.app
- **Repository:** https://github.com/feraterra/feraterra-sdk
- **MCP Registry name:** io.github.FeraTerra/feraterra-sdk
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments), [developer tools](https://ai-powered.com/categories/developer-tools), [crypto and web3](https://ai-powered.com/categories/crypto-and-web3)
- **Listing updated:** 2026-11-27

## About

This package gives AI assistants and scripts a set of 24 MCP tools for placing, previewing and monitoring orders on the Arena Exchange trading venue. It runs over stdio from PyPI or as an MCPB bundle, and a hosted Streamable HTTP endpoint is also offered for clients that prefer no local install.

Beyond the MCP server, the repository ships a zero-dependency Python client, a CCXT-style camelCase adapter, optional LangChain and PydanticAI toolkits, and a C++23 header-only client for the wire protocol. Stateless order previews let an agent check margin and fill outcomes before committing capital.

The SDK targets quant developers and agent builders who want to script trading or risk checks on Arena's public Base Sepolia testnet. Wallet login uses EIP-191 signatures, and the README points to a testnet faucet for collateral.

## Features

- **Stateless order previews:** Dry-run an order to see margin requirements and simulated fills without changing account state.
- **Local MCP gateway:** Run the 24-tool server over stdio via pip, uvx or the MCPB bundle for desktop AI clients.
- **Hosted remote endpoint:** Connect to a Streamable HTTP MCP endpoint without installing anything locally.
- **CCXT-style adapter:** Use camelCase market and order methods familiar from CCXT-based trading code.
- **Agent framework toolkits:** Generate LangChain tools or a PydanticAI toolset from the client.
- **Wallet-based testnet onboarding:** Create a local wallet, sign in with EIP-191 and deposit testnet margin in one flow.

## Good for

- Letting an AI assistant preview and place perpetual or spot orders on testnet
- Running pre-trade margin checks before submitting orders from a script
- Building a quoting bot with two-sided quotes and inventory skew
- Monitoring leaderboard standings and account state from an agent session
- Testing trading logic against a public testnet before any live use

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add --transport http feraterra-sdk https://mcp.feraterra.app/mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "feraterra-sdk": {
      "type": "http",
      "url": "https://mcp.feraterra.app/mcp"
    }
  }
}
```

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
https://mcp.feraterra.app/mcp
```

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "feraterra-sdk": {
      "url": "https://mcp.feraterra.app/mcp"
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "feraterra-sdk": {
      "type": "http",
      "url": "https://mcp.feraterra.app/mcp"
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
https://mcp.feraterra.app/mcp
```

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add feraterra-sdk --url https://mcp.feraterra.app/mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.feraterra-sdk]
url = "https://mcp.feraterra.app/mcp"
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "feraterra-sdk": {
      "httpUrl": "https://mcp.feraterra.app/mcp"
    }
  }
}
```

Or run: gemini mcp add -s user --transport http feraterra-sdk https://mcp.feraterra.app/mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "feraterra-sdk": {
      "serverUrl": "https://mcp.feraterra.app/mcp"
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "feraterra-sdk": {
      "url": "https://mcp.feraterra.app/mcp",
      "transport": "http"
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "feraterra-sdk": {
      "type": "streamableHttp",
      "url": "https://mcp.feraterra.app/mcp"
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "feraterra-sdk": {
      "url": "https://mcp.feraterra.app/mcp"
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "feraterra-sdk": {
      "url": "https://mcp.feraterra.app/mcp"
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "feraterra-sdk": {
      "url": "https://mcp.feraterra.app/mcp"
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "feraterra-sdk": {
      "url": "https://mcp.feraterra.app/mcp"
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
https://mcp.feraterra.app/mcp
```

Enter a Name (for example "Arena Exchange Headless Trading & Risk MCP"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "feraterra-sdk": {
      "type": "http",
      "url": "https://mcp.feraterra.app/mcp"
    }
  }
}
```

## Tools

The server marks all 7 tools read-only. From the server's own tool labels and tool names; not verified by us.

- `arena_health_and_manifest` (says read-only): Check Arena Exchange daemon liveness, double-entry conservation status, monotonic WAL sequence, insurance reserve health, and public protocol manifest via GET /health and GET /. Read-only diagnostics; use this for venue connectivity and manifest discovery, whereas arena_verify_ledger_tip cryptographically verifies the operator-signed Keccak-256 ledger commitment.
- `arena_list_markets` (says read-only): List Arena Exchange markets (Spot, LinearPerpetual, FormulaPerpetual, BoundedClaim, SpreadBook) with unified symbols, fixed-point tick/lot precision (`1 tick = $0.01`, `1 lot = 1e-4` base), mark prices, and top-of-book BBOs (`null` when resting book side is empty). Read-only market catalog; use arena_get_orderbook instead for multi-level L2/L3 depth on a single market.
- `arena_get_orderbook` (says read-only): Fetch a live L2/L3 resting orderbook snapshot (bids, asks, mark price, and WAL sequence) for one Arena market. Read-only; use this to inspect multi-level resting liquidity before sizing orders, whereas arena_list_markets scans top-of-book BBOs across all markets and arena_get_trades_and_candles retrieves historical executions. Provide either `symbol` or `market_id` (mutually exclusive market selec
- `arena_get_trades_and_candles` (says read-only): Fetch recent matched trade prints and OHLCV candlestick bars (`1 tick = $0.01`, `1 lot = 1e-4` base) for a single Arena market. Read-only; use this for historical price action and realized volume, whereas arena_get_orderbook inspects current resting L2/L3 bid/ask liquidity. Provide either `symbol` or `market_id` (mutually exclusive market selectors).
- `arena_get_leaderboard` (says read-only): Fetch the public Gladiator Leaderboard ranking active accounts by total equity, net PnL, maker BBO uptime streak, notional volume, or ROI. Read-only public benchmark; use arena_get_account_portfolio instead to inspect private positions, balances, and open orders for your authenticated account.
- `arena_verify_ledger_tip` (says read-only): Fetch GET /ledger/tip and cryptographically verify its ARENA_LEDGER_TIP_V2_1 Keccak-256 digest and secp256k1 operator signature locally. Read-only solvency verifier; use this to verify the global WAL chain hash and state root, whereas arena_get_withdrawals_and_escape_proof verifies per-account L2 collateral vault Merkle escape proofs.
- `arena_preview_order` (says read-only): Run a stateless, zero-mutation order simulation via POST /order/preview (never mutates WAL, L3 book, or balances; supports `account_id=0` anonymous zero-key preview as well as authenticated Eigen-SPAN IMR/MMR/free-margin checks). Always call this to verify fill price, net fee/rebate, and margin impact before calling arena_place_order to execute live. Provide mutually exclusive market (`symbol` vs 

## FAQ

### How do I connect an MCP client to Arena Exchange Headless Trading & Risk MCP?

Add a local stdio server launched with uvx feraterra-sdk --testnet, or point a streamable-http client at https://mcp.feraterra.app/mcp.

### Which network does Arena Exchange Headless Trading & Risk MCP connect to by default?

The registry entry and examples use the public Base Sepolia testnet at testnet.feraterra.app, selected with ARENA_NETWORK=testnet.

### What license is the SDK under?

The repository's LICENSE file is MIT for the public client connectors.

### Is there a way to test without placing real orders?

Yes. The order preview endpoint is a stateless dry-run that does not mutate the account.

### Is Arena Exchange Headless Trading & Risk MCP free?

Yes. Arena Exchange Headless Trading & Risk MCP is open source, so you can use and self-host it for free.

### How do I add Arena Exchange Headless Trading & Risk MCP to Claude Code?

Run this command in your terminal: claude mcp add --transport http feraterra-sdk https://mcp.feraterra.app/mcp

### What are the best alternatives to Arena Exchange Headless Trading & Risk MCP?

The closest alternatives to Arena Exchange Headless Trading & Risk MCP are CoinCryptoRank MCP, CCXT, Openmm MCP, Gate Exchange MCP and Cluster MCP.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.
- Status and tools: checked automatically by AIPoweredBot on 29 November 2026.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [CoinCryptoRank MCP](https://ai-powered.com/mcp/coincryptorank-mcp): CoinCryptoRank MCP is a freemium MCP server for finance and payments.
- [CCXT](https://ai-powered.com/mcp/ccxt): CCXT is an open-source MCP server for finance and payments.
- [Openmm MCP](https://ai-powered.com/mcp/openmm-mcp): Openmm MCP is an open-source MCP server for finance and payments.
- [Gate Exchange MCP](https://ai-powered.com/mcp/gate-exchange-mcp): Gate Exchange MCP is an open-source MCP server for finance and payments.
- [Cluster MCP](https://ai-powered.com/mcp/cluster-mcp): Cluster MCP is an open-source MCP server for finance and payments.
- [web3agent](https://ai-powered.com/mcp/web3agent): web3agent is an open-source MCP server for finance and payments.
- [Openmm MCP](https://ai-powered.com/mcp/openmm-mcp-2): Openmm MCP is an open-source MCP server for finance and payments.
- [Universal Blockchain MCP](https://ai-powered.com/mcp/universal-blockchain-mcp): Universal Blockchain MCP is an open-source MCP server for finance and payments.

---
Source: https://ai-powered.com/mcp/arena-exchange-headless-trading-and-risk-mcp
