Skip to content
Windsurf

Grafana MCP for Windsurf

io.github.itzhouq/grafana-mcp

Read-only project-level Grafana MCP: Loki logs, metrics, traces, alerts, test/prod switching

client:Windsurf transport:stdio runtime:npm

Install Grafana MCP in Windsurf

~/.codeium/windsurf/mcp_config.json · windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "grafana-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "grafana-mcp"
      ],
      "env": {
        "GRAFANA_TEST_URL": "<GRAFANA_TEST_URL>",
        "GRAFANA_TEST_USER": "<GRAFANA_TEST_USER>",
        "GRAFANA_TEST_PASSWORD": "<GRAFANA_TEST_PASSWORD>",
        "GRAFANA_PROD_URL": "<GRAFANA_PROD_URL>",
        "GRAFANA_PROD_USER": "<GRAFANA_PROD_USER>",
        "GRAFANA_PROD_PASSWORD": "<GRAFANA_PROD_PASSWORD>",
        "GRAFANA_ENV": "<GRAFANA_ENV>",
        "GRAFANA_APP": "<GRAFANA_APP>"
      }
    }
  }
}

Global only — Windsurf has no per-project MCP config. Refresh Cascade after saving. Windsurf docs

Grafana MCP in other clients