The MCP server is the only public way to drive AskFutures from code. Under
the hood it runs the exact same strategy engine, deterministic backtester, and
optimizer as the web app — so the numbers match, byte for byte.
Why use it
Stay in your editor
Build and backtest futures strategies from Claude Code, Cursor, or Codex
without leaving the tool you already work in.
Automate the loop
Script the describe → backtest → optimize → compare cycle. Generate a batch
of variations, run them, and read the results programmatically.
Same trustworthy engine
Tools call the same deterministic backtester as the app. Same rules and data
always produce the same numbers — the AI never invents performance figures.
What you can do
You describe strategies in plain English, just like in chat — the MCP tools handle the rest:- Create a strategy from a plain-English description (a market plus entry, exit, filters, and parameters).
- Backtest it on years of real CME Group data, net of modeled slippage and commission.
- Optimize — sweep parameter ranges to find better-performing settings.
- Iterate — refine an existing strategy, version it, and compare runs.
- Inspect strategies, sessions, and reference data (symbols, contract specs).
The async model: create → wait → optimize
The one thing to internalize before you write any code: the heavy work is asynchronous. Building a strategy and running a backtest can take a while — the engine is replaying years of minute-level history bar by bar. So those tools don’t block. They start a job and hand you back a task you poll until it’s done.Kick off the work
Call a tool like create a strategy or run an optimization. It returns
immediately with a task to track — not the finished result.
Wait for completion
Poll the wait-for-completion tool with that task until the job finishes. A
good agent does this in a loop, surfacing progress as it goes.
Read the results
Once complete, you get the strategy card and backtest metrics — P&L, win
rate, drawdown, and the full trade list — ready to inspect or feed into the
next step.
Before you start
You need MCP access enabled on your account. There’s no self-serve toggle yet — see Authentication for how to request it and how sign-in works.Next steps
Quickstart
Connect Claude Code, Cursor, or Codex in a couple of minutes.
Authentication
Sign-in flow, token lifetimes, and getting access enabled.
MCP tools
Every tool, what it does, and what it returns.