Enable AI assistants to analyze performance traces and generate flamegraph visualizations
The Flamechart MCP (Model Context Protocol) server enables AI assistants to analyze performance traces and generate flamegraph visualizations. It works with both local trace files and remote traces stored on FlameDeck, across all major trace formats. Here’s a quick demo of the MCP server in action:
Best Model Performance - For optimal flamegraph analysis, we recommend using AI models with strong image understanding capabilities such as OpenAI’s o3. These models can better interpret the visual flamegraph outputs and provide more detailed insights about performance bottlenecks.
Once configured, you can analyze traces directly from FlameDeck URLs:
Copy
Analyze this production trace and find performance bottlenecks:https://www.flamedeck.com/traces/98508d02-1f2a-4885-9607-ecadceb3d734Focus on database operations and API endpoints.
I have a React app that's rendering slowly. Analyze this Chrome DevTools profile:/Users/dev/profiles/react-slow-render.jsonPlease:1. Show me the top functions taking the most time2. Generate a flamegraph to visualize the call stack3. Look for any React-specific bottlenecks like expensive re-renders4. Focus on functions in my application code vs React internals
Our API endpoints are slow. Help me analyze this production trace:https://www.flamedeck.com/traces/5e538693-a0b6-40a0-a932-8a6b48c2f269Investigation goals:1. Identify the slowest endpoints2. Find database vs application time breakdown3. Look for N+1 query patterns4. Generate a visual report I can share with the team
Create focused visualizations by specifying time ranges:
Copy
Generate a flamegraph focusing on the 500ms-1500ms time range of this trace:/path/to/long-running-profile.jsonI want to see what happened during that specific slow period.
Analyze this performance trace and then look through my codebase to understand the bottlenecks:/path/to/slow-api.cpuprofileFocus on the slowest functions and help me understand:1. What those functions actually do in the code2. Why they might be slow3. Potential optimization strategies