strategy-lab — Claude Code MCP server: stress-test trading strategies
Stress-tests lowcap, perp and LP strategies over thousands of simulated paths and returns the whole distribution plus a seed that reproduces the run.
claude mcp add --transport http strategy-lab https://kellyruns.xyz/mcpWhat strategy-lab does
You hand the server a strategy as parameters, not prose. It runs that strategy across many simulated trajectories and returns the full distribution instead of a single backtest figure, so the tail where losses pile up stays visible. Five tools ship with it: agent state, the certification thresholds, a lab summary, a filtered strategy list with certification rollups, and one strategy in full.
Connection goes over HTTP with no key and no auth, protocol 2025-06-18. The endpoint is read-only on purpose. Nothing in it submits a strategy, pays for a run or moves funds, since an unauthenticated address is the wrong place for that.
The PRNG seed is the part that matters. Feed it back and the run repeats exactly, which lets you argue with a verdict by rerunning it. Execution is still paper mode, so fills are simulated and the EVM path sits wired but unarmed. A certification describes a distribution. It does not forecast returns, and none of this is financial advice.
What it helps with
- run a perp strategy across thousands of paths and inspect the tail
- reproduce a past run exactly from its saved seed
- check whether a strategy clears the certification thresholds
- rank several strategies by median PnL and worst case
- see how many more runs the testing pool can fund
Example prompts for the agent
- Pull the certification thresholds with
get_certification_gateand tell me what clearing them actually means. - List LP strategies with status passed and show their certification rollup.
- Give me one strategy in full with the seed from its last run so I can repeat it.
How to install strategy-lab
Platform CLI: remote server
claude mcp add --transport http strategy-lab https://kellyruns.xyz/mcpPlatform CLI: remote server
codex mcp add strategy-lab --url https://kellyruns.xyz/mcpConfig file
{
"mcpServers": {
"strategy-lab": {
"url": "https://kellyruns.xyz/mcp"
}
}
}Config file
{
"servers": {
"strategy-lab": {
"type": "http",
"url": "https://kellyruns.xyz/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http strategy-lab https://kellyruns.xyz/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about strategy-lab
How do I install strategy-lab in Claude Code?
Run claude mcp add --transport http strategy-lab https://kellyruns.xyz/mcp.
What does strategy-lab do?
It simulates a trading strategy over many paths and hands back the full result distribution. A seed comes with each run so you can reproduce it later.
Can the server place a trade or submit a strategy?
No. Every tool reads only. Submitting strategies, funding runs and moving funds need a wallet session, which is why the public endpoint stays read-only.