MCP Integration

Let Claude analyze your metrics

Connect Flux to Claude Code via MCP. Track events, query metrics, and detect anomalies with natural language.

Quick Setup

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

MCP Tools

flux_track

Track a custom event

params: name, properties, value

flux_query

Query events with filters

params: filters, time_range, limit

flux_metric

Get metric values and time series

params: name, aggregation, time_range

flux_anomalies

List detected anomalies

params: severity, time_range