StrataDocs

Strata MCP

Give a compatible AI client a direct, read-only connection to Strata markets and Sonar quotes. The official MCP server uses the same strict SDK and live capability policy as every other public client.

Connect

Run the local stdio server:

Terminal
npx -y @stratabook/mcp

Add it to your MCP client:

Terminal
{
  "mcpServers": {
    "strata": {
      "command": "npx",
      "args": ["-y", "@stratabook/mcp"]
    }
  }
}

Remote clients can use Streamable HTTP at https://api.stratabook.app/mcp.

Put an agent to work

Try prompts with an actual objective:

  • “Find the live Strata market for SOL/USDC, then quote selling 0.25 SOL. Return exact atomic output, both labelled fees, minimum output, price impact, and milliseconds until expiry.”
  • “Compare Sonar sell quotes for 0.1, 1, and 10 SOL. Show effective output per SOL and flag any quote that expires before the comparison is complete.”
  • “For every quote-ready USDC market, quote selling one whole base token using its discovered decimals. Rank the results by price impact and keep unlike output assets clearly separated.”
  • “Request a fresh quote for my saved market and amount. Stop if the capability is disabled, the market is paused, or the quote expires.”

Available tools

  • strata_capabilities — inspect the current public contract and policy.
  • strata_markets — list markets currently visible to agents.
  • strata_quote — request a short-lived Sonar quote.

The tool list follows Strata's live public policy. An operator pause takes effect without waiting for an MCP or SDK update.

Execution tolerance

strata_quote defaults to zero execution tolerance. Most read-only calls can omit it. Set slippageBps explicitly only when the task is willing to accept a lower minimum output. Price impact remains a separate measure of current market depth.

Safe by design

Every MCP result is checked against the official Strata contract. The server never requests or returns wallet material, signing material, private diagnostics, or details behind a Sonar result.