Getting started
Claude Code
Cursor
Windsurf
Codex
VS Code
Claude Desktop
Install the plugin from the official Claude plugins marketplace:Alternatively, you can add the MCP server directly:
Alternative: auto-detect with add-mcp
If your tool supports it, you can use
add-mcp to automatically detect
installed agents and configure them:
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 six tools:list_repositories
List all CodSpeed-enabled repositories that you have access to. Returns
repository names, visibility, and descriptions.
Sample input & output
Sample input & output
Input
Output
list_runs
List recent performance runs for a repository. Returns run IDs, commit hashes,
status, event type, branch, and PR information.
Sample input & output
Sample input & output
Input
Output
get_run
Inspect a single performance run and its benchmark results. Shows benchmark
names, identifiers, and values. Accepts a run ID, branch, or defaults to the
latest run.
Sample input & output
Sample input & output
Input
Output
compare_runs
Compare two performance runs and return a markdown performance report. Shows
benchmark-level comparisons including improvements, regressions, and new or
missing benchmarks. When the two runs ran in different environments (CPU, OS,
runtime version, linked libraries), an “Environment Differences” section is
added first.
Sample input & output
Sample input & output
Input
Output
get_benchmark_result
Retrieve the full structured result of a single benchmark in a performance
run: the instrument metrics (wall-time distribution, simulated time breakdown,
or memory allocation breakdown), known issues, and whether a flamegraph is
available.
Sample input & output
Sample input & output
Input
Output
query_flamegraph
Query and summarize a flame graph from a performance run. Returns hot spots
(functions with highest self time), the call tree, and timing information for
each function.
Sample input & output
Sample input & output
Input
Output
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.