The MCP for performance engineering
Introducing Remote MCP Support in Polar Signals Cloud
Picture this: You're staring at a flame graph, trying to decipher why your application is running slower in production. The data is all there, but translating those colorful rectangles into actionable insights requires expertise and time. What if you could simply ask, "Why is my service slow?" and get an answer backed by real profiling data?
Today we're excited to announce that Polar Signals Cloud now supports the Model Context Protocol (MCP), bringing the power of AI to performance analysis. This integration transforms how developers interact with profiling data, making performance optimization as simple as having a conversation.
What is the Model Context Protocol?
The Model Context Protocol is an open standard that enables AI assistants like Claude to connect directly with external data sources and tools. Think of it as a universal adapter that lets AI applications speak fluently with your performance data. With MCP, Claude doesn't just theorize about performance issues - it analyzes your actual production profiles.
Two Game-Changing Capabilities
1. Performance Analysis using Natural Language
With MCP, you can ask questions in plain English:
- "What's consuming the most CPU in my payment service?"
- "Show me memory allocations in the authentication module over the last 24 hours"
- "Which functions in database.go are the biggest bottlenecks?"
Claude Code or Cursor, or really any other LLM now understands your intent and translates it into precise queries against your profiling data. Here's what a typical interaction from Claude Code looks like:
The great thing about the MCP server is that it'll try to find and query the data on different dimensions. If it fires off a query that doesn't work, it'll think about what went wrong and try again with a new query.
2. AI-Driven Code Optimization
This is where things get really exciting. Claude can analyze your profiling data alongside your actual code to suggest specific optimizations. Using MCP with Claude Code or Cursor, you can:
- Identify bottlenecks: Claude examines your profiles to find hot spots
- Analyze the code: It reads the actual source code of problematic functions
- Suggest improvements: Get specific, actionable code changes based on real data
Here is an example using Cursor with the Polar Signals Remote MCP. We prompted Cursor with:
We are looking at Thanos. We want to improve the performance of the Thanos query component. Check the last hour's parca agent profiling data on Polar Signals Cloud and make suggestions on where in our code you would improve things.
Followed by a second prompt:
Where is the most time spent allocating memory? Maybe make an easy improvement in the code.
Getting Started
Setting up Remote MCP with Polar Signals Cloud is straightforward:
First, go to your project's settings and generate a new token.
Second, configure Claude Code or Cursor by adding the Polar Signals MCP server to your configuration:
For Claude Code using the following command:
For Cursor open the MCP settings and add the config below:
Note, it is important to keep the trailing slash at the end of the URL.
Third, start asking questions - Claude now has access to your profiling data through four powerful tools:
profile_types: Discover available profile typeslabels: Explore metadata labels in your profilesvalues: Get specific label valuesget_profile: Query profiles with PromQL
The future of performance engineering
By combining the analytical power of AI with real production profiling data, we're making performance engineering accessible to every developer, not just performance experts.
Whether you're debugging a CPU bottleneck, tracking down memory leaks, you now have an intelligent assistant that understands your performance data as well as your code. The future of performance engineering isn't just about collecting more data - it's about making that data work for you through intelligent analysis and actionable insights.
Are you ready to revolutionize how you optimize performance? Sign up for Polar Signals Cloud to start a free 14-day trial and experience the power of AI-assisted profiling today. The MCP integration is available now for all users, and we can't wait to see how you'll use it to build faster, more efficient applications.
Have questions or feedback about MCP support? Join our community Discord or reach out to us on Twitter/X and LinkedIn. We'd love to hear about your experience with AI-assisted performance analysis.
Read more
Optimizing SLO Performance at Scale: How We Solved Pyrra’s Query Performance on Thanos
Learn how we optimized Pyrra’s SLO monitoring to handle high-cardinality metrics at scale, reducing cross-zone traffic and query times while maintaining 99% accuracy.
The Cost of Go's Interfaces and How to Fix It
Why dynamic dispatch is necessary and how to fix it with devirtualizing and PGO.

Keep up with Polar Signals
Receive new posts, product updates, and insights on performance engineering straight to your inbox.