Quick Start
1. Install the MCP server
- Cursor
- Claude Desktop
2. Start Analyzing
Try this prompt in your AI assistant (use the absolute local file path to your trace file):Working with Remote Traces
Setting Up FlameDeck Integration
1
Create an API Key
- Go to FlameDeck Settings
- Create a new key with
trace:downloadpermissions - Copy the generated key
Using Remote Traces
Once configured, you can analyze traces directly from FlameDeck URLs:Example Workflows
Debugging Slow React Rendering
API Performance Investigation
Supported Trace Formats
The MCP server supports a wide range of profiling formats, including pprof, chrome, pyinstrument, etc.Automatic Format Detection - The server automatically detects trace formats and handles gzipped files transparently.
Available Tools
get_top_functions
Identifies the slowest functions in your trace, helping you find performance bottlenecks. Example Usage:generate_flamegraph_screenshot
Creates a visual flamegraph showing the timeline of function execution. Example Usage:generate_sandwich_flamegraph_screenshot
Creates a “sandwich view” focusing on a specific function, showing both its callers and callees. Example Usage:Performance Features
Smart Caching
The MCP server includes intelligent caching to improve performance:- Remote URLs: Cached for 5 minutes to avoid repeated API calls
- Local Files: Cached until file modification detected
- Memory Management: Automatic cleanup with 50 profile limit
- Cache Invalidation: Smart invalidation based on file changes
Troubleshooting
Common Issues
MCP Server Not Starting
MCP Server Not Starting
- Ensure Node.js is installed (version 16+ recommended)
- Try running with
npx -y @flamedeck/flamechart-mcpto force latest version
API Key Authentication Errors
API Key Authentication Errors
- Verify your API key has
trace:downloadpermissions - Check that the key is correctly set in environment variables
- Ensure the FlameDeck URL format is correct:
https://www.flamedeck.com/traces/{id}
Trace File Not Found
Trace File Not Found
- Use absolute file paths for local traces
- Verify file exists and is readable
- Check that the trace format is supported
Performance Issues
Performance Issues
- Large traces (>100MB) may take longer to process
- Consider using time-based zooming for very long traces
- Clear cache if memory usage becomes excessive

