# uniprof [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/indragiek/uniprof  
**GitHub Stars:** 409  
**npm Downloads (last month):** 204  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/uniprof

## Description
Universal CPU profiler designed for humans and AI agents

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "uniprof": {
    "command": "npx",
    "args": ["-y","uniprof"]
  }
}
```

## Documentation

## What uniprof MCP server does

The uniprof MCP server provides an MCP entry point for CPU profiling workflows. It is designed for applications that can be launched through supported runtimes or executable commands, including Python, Node.js, Ruby, PHP, Java and other JVM applications, .NET, BEAM, and native programs on macOS or Linux.

The underlying workflow profiles a command, converts profiler-specific output into a common representation, and performs statistical analysis to identify hotspots. The command-line interface also supports saving profile data, analyzing a saved profile later, and opening a flamegraph visualization in a browser.

## How it works

When a profiling command is run, uniprof identifies the runtime or platform and chooses a matching profiler. Examples include py-spy for Python, 0x for Node.js, rbspy for Ruby, Excimer for PHP, async-profiler for the JVM, dotnet-trace for .NET, and perf for Linux native workloads and BEAM. Native macOS Mach-O programs use Apple Instruments.

The default `auto` mode prefers containers when Docker is available. Runtime-specific container images include the relevant profiling tools and receive the workspace so they can launch the target program. `--mode host` forces profilers installed on the local machine, while `--mode container` forces Docker where supported. Apple Instruments cannot run in a container, so native Mach-O profiling on macOS requires host execution.

## Setup and configuration

Install the package globally with npm:

```bash
npm install -g uniprof
```

The MCP process can be started through the stdio command `npx -y uniprof mcp run`. The package also provides automatic MCP configuration commands for several clients, including Claude Code, Cursor, and VS Code. Docker is used by default for many runtime profiles, so a working Docker installation is relevant when container mode is selected or chosen automatically.

The documented operating systems are macOS and Linux. Windows hosts are not supported directly, although Linux under WSL2 can be used for higher-level runtimes such as Python and Node.js. WSL2 cannot profile native Windows executables. The host system may also need profiler-specific permissions when host mode is used.

## Tools and capabilities

The uniprof MCP server is suitable for workflows that need to:

- Launch a supported application under a CPU profiler.
- Detect the profiler from the command and runtime.
- Produce normalized profile data across different profiler formats.
- Find likely CPU hotspots through statistical analysis.
- Save profiles for later analysis or visualization.
- Generate a browser-viewable flamegraph from profile data.

Native applications produce more useful symbol names when built with debug information. Frame pointers can also improve call-stack accuracy, especially for optimized binaries. These build settings affect the quality of the profiling results rather than the MCP connection itself.

## Limitations and notes

Support depends on the platform, runtime version, and profiler. The documented minimums include Python 3.7, Node.js 14, Ruby 2.5, PHP 7.2, Java 8, .NET 5, OTP 24, Xcode 14.3 for native macOS profiling, and Linux 2.6.31 for native Linux profiling.

Container execution is unavailable for native Mach-O binaries on macOS. Linux host profiling may require elevated privileges or additional perf configuration. The project has primarily been developed and tested on macOS, with Linux supported but subject to platform-specific issues.

_Full upstream README: https://allmcps.com/mcp/uniprof/readme_

