MCP

A read-only Model Context Protocol server at /mcp, so an agent can read markets and build orders. It never signs and never holds a key.

Connect

Streamable HTTP, JSON-RPC 2.0, POST to /mcp.

{
  "mcpServers": {
    "el3": { "type": "http", "url": "https://<this site>/mcp" }
  }
}
curl -s https://<this site>/mcp -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_book","arguments":{"market":1}}}'

Tools

ToolReturns
list_marketsEvery market with mark, oracle kind, leverage, fees and open interest.
get_bookThe order book of a market.
get_tradesRecent trades of a market.
get_accountAn account's collateral, equity, margin, positions and open orders.
get_statsEngine latency, throughput and settlement state.
get_deploymentChain id, RPC and contract addresses.
build_orderThe EIP-712 typed data for an order, ready for the client's wallet to sign with eth_signTypedData_v4.