Sai MCP
The Sai Model Context Protocol (MCP) server lets your agent read Sai markets and account data, preview a trade, and submit trading intents when a Sai session is available. Your MCP client launches sai mcp serve as a local process and communicates with it over standard input and output.
Register Your Client
Section titled “Register Your Client”Install the Sai CLI first. Run the line for your client.
sai mcp install claudesai mcp install codexsai mcp install cursorRegistration uses the installed sai executable on your PATH. Restart or reconnect your client after registering it. In Cursor, enable Sai in the MCP settings if prompted. Run sai mcp list to check the registration.
Read a Market
Section titled “Read a Market”Ask your agent to call mcp_info first and report the network. Then ask it to call market_list and market_prices. This works without a wallet or session.
Use the Sai MCP to check the network and list the markets with their latest indexed oracle prices. Show the price timestamp when available.
Check the Keeper endpoint in mcp_info to identify the network. If the price timestamp is missing or at the Unix epoch, report the block height instead.
| Task | Tools | What You Need |
|---|---|---|
| Read markets and prices | market_list, market_prices | No session |
| Read an account | account_overview, account_positions, account_balances, account_history | An explicit EVM address, or a session to resolve the active account |
| Preview a trade | preview_open, preview_close | preview_open can estimate without an account. A preview for a specific account requires its session. |
| Follow an intent | intent_wait | An intent key and its account address |
| Submit an intent | trade_open, trade_close | An active session for the target account and the preview digest |
mcp_info reports whether the server can submit through its session. The client can list trade_* tools while signed out. Those tools check for a valid session before submitting. Use Trading With the CLI and MCP to connect, preview, and confirm.
Check the Network
Section titled “Check the Network”The MCP server resolves its endpoints at startup. If you change your CLI configuration or MCP launcher, reconnect and call mcp_info again. An important check before any preview is that the Keeper network and the account match what the trader expects.
See the Sai skill MCP reference for per-client configuration and the tool list. AI tools overview