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
| Tool | Returns |
|---|---|
list_markets | Every market with mark, oracle kind, leverage, fees and open interest. |
get_book | The order book of a market. |
get_trades | Recent trades of a market. |
get_account | An account's collateral, equity, margin, positions and open orders. |
get_stats | Engine latency, throughput and settlement state. |
get_deployment | Chain id, RPC and contract addresses. |
build_order | The EIP-712 typed data for an order, ready for the client's wallet to sign with eth_signTypedData_v4. |