MCP Integration

Let Claude optimize your app

Connect Pulse to Claude Code via MCP. Find slow queries, identify bottlenecks, and get optimization suggestions automatically.

AI-powered optimization

Claude can analyze your app's performance metrics, identify the slowest endpoints, find N+1 queries, and suggest concrete optimizations based on your actual data.

  • Find slow endpoints and bottlenecks
  • Detect N+1 queries automatically
  • Get optimization recommendations
claude

user: Why is /api/orders so slow?

claude: Analyzing the last 1000 requests to /api/orders...

Found the issue: An N+1 query is loading order items individually.

Average: 847ms (423ms in DB)

# Add eager loading:
Order.includes(:items, :user)

This should reduce response time to ~120ms.

Setup in 2 minutes

Connect Pulse to Claude Code

1

Install the MCP server

npm install -g @brainzlab/pulse-mcp
2

Add to your Claude Code config

// ~/.claude/config.json
{
  "mcpServers": {
    "pulse": {
      "command": "pulse-mcp",
      "args": ["--api-key", "YOUR_API_KEY"]
    }
  }
}
3

Start optimizing with Claude

Open Claude Code and ask about performance:

"What are the slowest endpoints and how can I speed them up?"

What you can ask

Natural language performance optimization

What's slowing down my app the most?

Find top performance bottlenecks

Are there any N+1 queries I should fix?

Automatic query analysis

Compare performance before and after the last deploy

Deployment impact analysis

Which background jobs are taking too long?

Job performance monitoring

Show me the request trace for this slow endpoint

Detailed request breakdown

What database queries are running on this endpoint?

SQL analysis and optimization

MCP Tools

Tools available to Claude

pulse_slow_endpoints

Find slowest endpoints by percentile

params: percentile, time_range, limit

pulse_get_trace

Get detailed request trace

params: trace_id

pulse_n1_queries

Detect N+1 query patterns

params: endpoint, time_range

pulse_compare

Compare performance between time ranges

params: endpoint, before, after

pulse_db_analysis

Analyze database query patterns

params: endpoint, time_range

pulse_throughput

Get throughput and latency stats

params: endpoint, time_range

Make your app faster

Get started with Pulse and Claude Code today.