CPU Performance Engineering
Lets your AI agent answer CPU performance questions from a vetted reading list, benchmarks and cited source passages.
1.2k stars on GitHubby usamahzLicense MITUpdated 2 months ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add cpu-perf -- uvx cpu-perf
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Explain why my loop is slow and cite the sources.
What should I read first to understand cache misses?
What it is
This is a reading path for CPU performance engineering, from one instruction up to running a model on CPU, using primary sources only. The MCP server turns that list into a knowledge source inside your AI client, so answers quote the linked sources and cite them. It covers x86 and Arm server parts.
What it can do
- Look up the reading order of the guide
- See rejected candidates with the rule each one failed
- Browse the runnable benchmarks
- Search an index of the linked sources, built on your own machine
- Get answers that quote sources and cite them
When to use
- βΊWhen you are tuning code and want answers tied to primary sources
- βΊWhen you want to learn CPU caches, branch prediction or top-down analysis in a sensible order
- βΊWhen you want a benchmark you can run yourself to check a claim
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
android-profilerHelps your agent record and analyze Android performance data, such as system traces, CPU stacks and memory heaps, to find bottlenecks.loopx-performance-diagnosisTeaches your agent to find why a program is slow or uses too much CPU, memory or disk, using controlled measurements and profiling tools.perf-lighthouseHelps your agent run Lighthouse speed audits on a website, read the report and set performance budgets.Frequently asked questions
Is it free?
The repository is open source with a LICENSE file. The first book and sixth entry in the reading list are paid books, but the server itself is added with one free command.
What does it cover?
x86 and Arm server parts, from one instruction through to serving a model on CPU. It does not cover language runtimes or database internals.
Where do the numbers come from?
Only primary sources are used, and any number carries seven fields listed in the readme or it is not quoted.
Are there benchmarks?
Yes. Fourteen sections end in a runnable benchmark with C source, the build line, the machine, raw numbers and analysis.
Which AI clients work?
The readme gives commands for Claude Code and Codex, and says Claude Desktop, Cursor and VS Code take a few lines of config.
Does it send my code anywhere?
The readme says the source index is built on the reader's own machine.
If it does not work
- βΊCheck that uv is installed, since the server starts through uvx cpu-perf.
- βΊRestart your AI app fully after adding the server.
- βΊSee misc/mcp/README.md in the repository for the config lines for Claude Desktop, Cursor and VS Code.
5 new skills a week. 1 minute to read.