Universal CPU profiler designed for humans and AI agents
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
uniprofuniprof simplifies CPU profiling for humans and AI agents. Profile any application without code changes or added dependencies.
uniprof implements a common interface over multiple profilers that specialize in different platforms and runtimes. It automatically detects which profiler to use based on the command being executed, runs the profiler, transforms the varying output formats into a single format, and runs statistical analysis on the data to identify hotspots.
| Platform | Profiler | Container | Host | Min Version |
|---|---|---|---|---|
| Python | py-spy | β | β | Python 3.7+ |
| Node.js | 0x | β | β | Node 14+ |
| Ruby | rbspy | β | β | Ruby 2.5+ |
| PHP | Excimer | β | β | PHP 7.2+ |
| JVM | async-profiler | β | β | Java 8+ |
| .NET | dotnet-trace | β | β | .NET 5+ |
| BEAM | perf | β | β * | OTP 24+ |
| Native (macOS) | Instruments | β | β | Xcode 14.3+ |
| Native (Linux) | perf | β | β | Linux 2.6.31+ |
* Linux only for host mode
tl;dr: macOS or Linux with Docker installed
uniprof is designed to run on macOS and Linux but has primarily been developed & tested on macOS. If you find any bugs when running on Linux, please report them. Running on a Windows host is currenly not supported, but you can run on Linux installed on Windows via WSL2. Note that when using uniprof via WSL2, profiling native Windows executables is not supported, but you can still use the profilers for the higher level language runtimes like Python and Node.js.
Profiling tools are often non-trivial to set up correctly and can require elevated privileges. To simplify set up and provide better isolation for the profiled code, uniprof defaults to using Docker containers for each runtime that are pre-configured to run specific profiling tools. uniprof mounts your workspace in the container and executes the program with the profiler attached. uniprof also supports profiling outside the container if the host system has the profiling tools installed by running with the --mode host flag. The only case where containerized execution is not supported is when profiling a native Mach-O binary on macOS, since Apple Instruments cannot run inside a container.
Supported clients for auto-installation: amp, claudecode, codex, cursor, gemini, vscode, zed
If auto-installation is not supported for your client, add an MCP server using the stdio transport with the command npx -y uniprof mcp run.
For detailed MCP documentation see docs/mcp.md.
Profile and analyze in one step:
Save profiles to analyze and visualize later:
For detailed command line options documentation see docs/cli.md.
Use the --mode option to control how profiling runs:
auto (default): Prefer container mode when Docker is available; otherwise use host.
host: Force host-installed profilers.container: Force Docker containers (not supported for macOS Instruments/Mach-O binaries).Native profiling requires debug information for meaningful results. Debug symbols enable the profiler to map memory addresses to function names, providing readable output instead of just hexadecimal addresses. Additionally, frame pointers improve call stack accuracy, especially for optimized code.
| Compiler | DWARF Debug Info | Frame Pointers | Notes |
|---|---|---|---|
| gcc | gcc -g -o myapp main.c | gcc -fno-omit-frame-pointer -o myapp main.c | Use -g3 for maximum debug info, -ggdb for GDB-specific extensions |
| clang | clang -g -o myapp main.cpp | clang -fno-omit-frame-pointer -o myapp main.cpp | Use -gfull on macOS for complete debug info |
| swift | swiftc -g main.swift | swiftc -Xcc -fno-omit-frame-pointer main.swift | Debug builds include symbols by default with swift build |
| cargo | cargo build (debug mode)cargo build --release + [profile.release]debug = true | RUSTFLAGS="-C force-frame-pointers=yes" cargo build | Debug builds include DWARF by default; for release builds, add debug = true to Cargo.toml |
| go | go build -gcflags=all="-N -l" | Built-in, always enabled | Go includes debug info by default; -gcflags disables optimizations for better debugging |
| zig | zig build-exe -O Debug main.zig | zig build-exe -fno-omit-frame-pointer main.zig | Use -O ReleaseSafe with debug info for optimized builds with symbols |
| ghc | ghc -g -rtsopts main.hs | ghc -fno-omit-frame-pointer main.hs | Use -prof for profiling builds; -rtsopts enables runtime profiling options |
All uniprof source code in this repository is licensed under the MIT License. See LICENSE.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/uniprof)<a href="https://allmcps.com/mcp/uniprof"><img src="https://allmcps.com/api/badge/uniprof?style=directory" alt="Uniprof on AllMCPs" /></a>