McpMux
Back to Registry

Grafana (Docker) MCP Server

Community

Contributed by Grafana Labs

Search dashboards, query Prometheus and Loki datasources, manage alerts, and investigate incidents on any Grafana instance (self-hosted or Grafana Cloud) via Docker.

About the Grafana (Docker) MCP Server

The Grafana (Docker) MCP server is a local (stdio) Model Context Protocol server available in the McpMux registry. Search dashboards, query Prometheus and Loki datasources, manage alerts, and investigate incidents on any Grafana instance (self-hosted or Grafana Cloud) via Docker. This is a community-contributed MCP server by Grafana Labs.

Install the Grafana (Docker) MCP server with one click using McpMux. It works with Cursor, Claude Desktop, Claude Code, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible AI client. This server requires an API key — McpMux securely stores your credentials with AES-256-GCM encryption.

Transport Configuration

Transport Configuration
{
  "type": "stdio",
  "command": "docker",
  "args": [
    "run",
    "-i",
    "--rm",
    "-e",
    "GRAFANA_URL",
    "-e",
    "GRAFANA_SERVICE_ACCOUNT_TOKEN",
    "-e",
    "GRAFANA_USERNAME",
    "-e",
    "GRAFANA_PASSWORD",
    "-e",
    "GRAFANA_ORG_ID",
    "grafana/mcp-grafana",
    "-t",
    "stdio"
  ],
  "env": {
    "GRAFANA_URL": "${input:GRAFANA_URL}",
    "GRAFANA_SERVICE_ACCOUNT_TOKEN": "${input:GRAFANA_SERVICE_ACCOUNT_TOKEN}",
    "GRAFANA_USERNAME": "${input:GRAFANA_USERNAME}",
    "GRAFANA_PASSWORD": "${input:GRAFANA_PASSWORD}",
    "GRAFANA_ORG_ID": "${input:GRAFANA_ORG_ID}"
  },
  "metadata": {
    "inputs": [
      {
        "id": "GRAFANA_URL",
        "label": "Grafana URL",
        "description": "URL of your Grafana instance. Use http://localhost:3000 for local, or https://myinstance.grafana.net for Grafana Cloud.",
        "type": "url",
        "required": true,
        "secret": false,
        "placeholder": "http://localhost:3000"
      },
      {
        "id": "GRAFANA_SERVICE_ACCOUNT_TOKEN",
        "label": "Grafana Service Account Token",
        "description": "Service account token with appropriate permissions. Create a service account with the Editor role for full read/write access.",
        "type": "text",
        "required": true,
        "secret": true,
        "placeholder": "glsa_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        "obtain": {
          "url": "https://grafana.com/docs/grafana/latest/administration/service-accounts/",
          "instructions": "1. Go to your Grafana instance\n2. Navigate to Administration > Service accounts\n3. Click 'Add service account'\n4. Assign the 'Editor' role\n5. Click 'Add service account token'\n6. Copy the generated token (starts with glsa_)",
          "button_label": "Learn More"
        }
      },
      {
        "id": "GRAFANA_USERNAME",
        "label": "Grafana Username",
        "description": "Username for basic authentication. Use as an alternative to service account token authentication.",
        "type": "text",
        "required": false,
        "secret": false,
        "placeholder": "admin"
      },
      {
        "id": "GRAFANA_PASSWORD",
        "label": "Grafana Password",
        "description": "Password for basic authentication. Used together with GRAFANA_USERNAME.",
        "type": "text",
        "required": false,
        "secret": true
      },
      {
        "id": "GRAFANA_ORG_ID",
        "label": "Grafana Organization ID",
        "description": "Organization ID for multi-org Grafana setups. Leave empty for single-org instances.",
        "type": "text",
        "required": false,
        "secret": false,
        "default": "1",
        "placeholder": "1"
      }
    ]
  }
}
Details
TransportLocal (stdio)
Hostinglocal
AuthAPI Key
Capabilities
Tools

Categories

Tags

grafanagrafana-cloudmonitoringdashboardsprometheuslokialertsobservabilitymetricsincidentsoncall

Supported AI Clients

The Grafana (Docker) MCP server works with all MCP-compatible AI clients through McpMux:

CursorClaude DesktopClaude CodeVS CodeChatGPTWindsurfJetBrainsZedClineGemini CLIAmazon Q

Related MCP Servers

Install Grafana (Docker) with McpMux

One-click install from the McpMux desktop app. Auto-configures for Cursor, Claude, VS Code, ChatGPT, Windsurf, JetBrains, and any MCP-compatible client.