
Investigating a regression usually means switching between your editor, the CodSpeed dashboard, and a flamegraph viewer. The CodSpeed MCP server and agent skills bring all of that into your AI assistant, so you can go from "this function is slow" to a fix without leaving your workflow.
The MCP server gives your AI assistant direct access to your performance data through five tools:
Skills teach your assistant how to act on the data. Two skills ship today:
codspeed-optimize:
turns your assistant into an autonomous performance engineer. Point it at a slow
function or a regression and it loops: measure, analyze the flamegraph, make a
targeted change, re-measure, compare, until there is nothing left to gain.
codspeed-setup-harness:
handles the initial benchmark setup. It detects your project structure, picks
the right framework for your language, writes benchmarks, and verifies
everything works. Supports Rust, Python, Node.js, Go, C/C++, and more.
Install the CodSpeed plugin in Claude Code to get the MCP server and skills in one step:
/plugin marketplace add CodSpeedHQ/codspeed
/plugin install codspeed
Or add the MCP server to any compatible tool separately:
npx add-mcp https://mcp.codspeed.io/mcp --name CodSpeed
And install the agent skills:
npx skills add CodSpeedHQ/codspeed
Then ask your assistant something like:
parse_input function faster."feat/parser, investigate and fix it."Learn more about the MCP server and agent skills.