---
title: "Grafana MCP Server for ToolPiper · ModelPiper"
description: "Query dashboards, datasources, and alerts from Grafana. Grafana Labs' MCP server lets the assistant reach into your observability stack: find dashboards, read their panels, query Prometheus and Loki datasources, and insp"
canonical: "https://modelpiper.com/mcp-tools/grafana"
---

# Grafana MCP Server for ToolPiper · ModelPiper

> Query dashboards, datasources, and alerts from Grafana. Grafana Labs' MCP server lets the assistant reach into your observability stack: find dashboards, read their panels, query Prometheus and Loki datasources, and insp

G

# Grafana MCP Server

✓ verified

Query dashboards, datasources, and alerts from Grafana.

Install Grafana in ToolPiper

Don't have ToolPiper? We'll take you to the download.

[Open repository →](https://github.com/grafana/mcp-grafana)

Publisher

[Grafana Labs](https://github.com/grafana/mcp-grafana)

License

Apache-2.0

Transport

Local subprocess

Tools

5

## What this server does

Grafana Labs' MCP server lets the assistant reach into your observability stack: find dashboards, read their panels, query Prometheus and Loki datasources, and inspect alert rules and their current state. During an incident the model can pull the relevant dashboard, run the query behind a panel, and correlate a firing alert with the metrics that drove it. Scope the service account token to viewer so the assistant reads without changing anything. Runs as a Docker container.

## Tools included

-   search\_dashboards
    
    Search dashboards by title or tag.
    
-   get\_dashboard
    
    Fetch a dashboard definition.
    
-   query\_prometheus
    
    Run a PromQL query against a Prometheus datasource.
    
-   list\_datasources
    
    List configured datasources.
    
-   list\_alert\_rules
    
    List alert rules and their state.
    

The authoritative list comes from the server's tools/list at runtime. This catalog entry may lag the upstream until the next ToolPiper release.

## Install in ToolPiper

ToolPiper handles the JSON configuration. Click Install, fill in any required tokens, and the server is ready in your chat.

Install Grafana in ToolPiper

Don't have ToolPiper? We'll take you to the download.

## Install in another client

Install in another MCP client (Claude Desktop, Cursor, Continue, Cline)

Claude Desktop Cursor Continue Cline

Add this to ~/Library/Application Support/Claude/claude\_desktop\_config.json.

```
{
  "mcpServers": {
    "grafana": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GRAFANA_URL",
        "-e",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN",
        "grafana/mcp-grafana:0.14.0"
      ]
    }
  }
}
```

Copy

## Example prompts

-   "Find the dashboard for the payments service and tell me which panels show error rate."
    
    Copy
-   "Run a PromQL query for the 95th percentile request latency over the last hour."
    
    Copy
-   "Which alert rules are currently firing?"
    
    Copy

## Security notes

Use a service account token scoped to viewer so the assistant cannot edit dashboards or silence alerts. The token grants read access to whatever that service account can see, which may include sensitive operational data; treat it as a credential and rotate it if it leaks. Requires a working Docker install. The token is forwarded into the container via an environment variable, not baked into the image.

## Related tools

-   [
    
    G
    
    ### GitHub
    
    ✓ verified
    
    Create issues, manage pull requests, and search repositories from your AI assistant.
    
    Developer ToolsLocal subprocess5 tools
    
    
    
    
    
    ](/mcp-tools/github)
-   [
    
    G
    
    ### GitHub (Remote)
    
    ✓ verified MAX
    
    OAuth-protected GitHub MCP. Manage repos, issues, and pull requests with no token to copy.
    
    Developer ToolsRemote HTTP5 tools
    
    
    
    
    
    ](/mcp-tools/github-remote)
-   [
    
    G
    
    ### Git
    
    ✓ verified
    
    Read, search, and manipulate Git repositories on disk.
    
    Developer ToolsLocal subprocess5 tools
    
    
    
    
    
    ](/mcp-tools/git)
-   [
    
    E
    
    ### Everything
    
    ✓ verified
    
    Reference test server exercising every MCP feature.
    
    Developer ToolsLocal subprocess5 tools
    
    
    
    
    
    ](/mcp-tools/everything)

[← Back to all MCP tools](/mcp-tools)
