Back to MCP Servers

Grafana Server

Query Grafana dashboards, alerts, and datasources for observability and monitoring workflows

monitoringgrafanaobservabilitydashboardscommunity

Installation

npm install -g @grafana/mcp-server

Configuration

{
  "mcpServers": {
    "grafana": {
      "command": "npx",
      "args": ["-y", "@grafana/mcp-server"],
      "env": {
        "GRAFANA_URL": "http://localhost:3000",
        "GRAFANA_API_KEY": "your-grafana-api-key"
      }
    }
  }
}

How to use

  1. Run the installation command above (if needed)
  2. Open your Claude Code settings file (~/.claude/settings.json)
  3. Add the configuration to the mcpServers section
  4. Restart Claude Code to apply changes
View source on GitHub