@flamedeck/flamechart-mcp v0.2.6
🔥 Flamechart MCP Server
MCP server for analyzing performance profiles (Go, JavaScript, Python, etc.) using flamegraphs. Works entirely offline for local traces or with FlameDeck's hosted storage.
📖 Documentation • 🎥 Demo Video • 🔑 Get API Key

✨ Features
- 🔍 Generate Visual Flamegraphs - Use the strong vision capabilities of reasoning llms to debug performance issues
- 🌐 Multi-Format Support - Chrome, Firefox, Node.js, pprof, stackprof and more
- 🔌 Works Offline - Only requires an API key if using flamedeck.com for trace hosting
🚀 Quick Start
Local Files Only (No API Key)
Allows you to reference traces stored on your local file system (e.g. /Users/johnsmith/etc)
Manual Installation:
{
"mcpServers": {
"flamechart-debug": {
"command": "npx",
"args": ["-y", "@flamedeck/flamechart-mcp"]
}
}
}Remote FlameDeck Traces (API Key Required)
Allows you to reference remote traces hosted at flamedeck.com
Manual Installation:
{
"mcpServers": {
"flamechart-debug": {
"command": "npx",
"args": ["-y", "@flamedeck/flamechart-mcp"],
"env": {
"FLAMEDECK_API_KEY": "your_api_key_here"
}
}
}
}You will need to create an API key with
trace:downloadpermissions in your Flamedeck settings.
Practical Examples for Cursor/AI Assistants
Analyzing Local Trace Files
Example prompt for Cursor:
Analyze this trace file and find out why my React app's rendering is slow:
/Users/developer/profiles/react-app-slow.cpuprofile
Focus on any React-related functions that might be causing bottlenecksAnalyzing Remote Flamedeck Traces
Example prompt for team collaboration:
My teammate shared this performance trace from production. Analyze it and help me understand the bottlenecks:
https://www.flamedeck.com/traces/98508d02-1f2a-4885-9607-ecadceb3d734
Focus on:
1. Database query performance
2. Any functions taking >100msExample prompt for API performance investigation:
Our API response times spiked yesterday. Root cause with this production trace:
https://www.flamedeck.com/traces/abc123...🛠️ Available Tools
| Tool | Description | Use Case |
|---|---|---|
get_top_functions | Find slowest functions by self/total time | Identify bottlenecks |
generate_flamegraph_screenshot | Create visual flamegraph PNG | Share insights, reports |
generate_sandwich_flamegraph_screenshot | Focus on specific function callers/callees | Deep-dive analysis |
📁 Supported Formats
FlameDeck builds on top of the incredible Speedscope project, and support all trace formats listed here. Because the code is forked, this may diverge in the future.
Development
Building
yarn buildTesting Locally
# Build the package
yarn build
# Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/cli.jsPublishing
- Update version in
package.json - Build the package:
yarn build - Publish:
yarn publish
Related Packages
@flamedeck/upload- Client library for uploading traces
License
ISC