Getting started
- Claude Code
- Claude Desktop
- Cursor
- Windsurf
- VS Code (Copilot)
Add the CodSpeed marketplace and install the plugin:Alternatively, you can add the MCP server directly:Claude Code will open a browser window to authenticate with CodSpeed via
OAuth on first use.
Example prompts
Once connected, you can ask your AI assistant questions like:- “Explain the regression on the
feat/my-great-featurebranch.” - “Make my
foo_barfunction faster.” - “What are the hottest functions in the
bench_foobenchmark?” - “Analyze the flamegraph for
bench_parseand refactor the hot path.” - “Compare the flamegraphs of
bench_serializebetweenmainandfeat/new-encoderand explain what changed.” - “Find the bottleneck in
bench_api_handlerand open a PR to fix it.”
Available tools
The CodSpeed MCP server exposes four tools:| Tool | Description |
|---|---|
list_repositories | List all CodSpeed-enabled repositories you have access to, including visibility and descriptions. |
list_runs | List recent performance runs for a repository, with optional filters for branch, event type, and status. |
compare_runs | Compare two performance runs and return a detailed report with regressions, improvements, and new benchmarks. |
query_flame_graph | Query flamegraph profiling data for a specific benchmark in a run, showing hot spots and the call tree. |
Authentication
The CodSpeed MCP server uses OAuth for authentication. When you first connect, your MCP client will open a browser window where you log in to CodSpeed and authorize access. The client stores the resulting token and refreshes it automatically — no API keys to manage.The MCP server has access to the same repositories and data as your CodSpeed
account.