npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@flamedeck/flamechart-mcp

v0.2.6

Published

MCP server for debugging and analyzing flamegraphs using Model Context Protocol

Readme

🔥 Flamechart MCP Server

Install 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


Screenshot of FlameDeck MCP in action

✨ 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)

Install MCP Server

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

Install MCP Server

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:download permissions 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 bottlenecks

Analyzing 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 >100ms

Example 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 build

Testing Locally

# Build the package
yarn build

# Test with MCP Inspector
npx @modelcontextprotocol/inspector node dist/cli.js

Publishing

  1. Update version in package.json
  2. Build the package: yarn build
  3. Publish: yarn publish

Related Packages

License

ISC