mcpbeat Sign in

Grafana MCP Server

local only

Grafana MCP runs on your own machine — the client starts it, so there is no endpoint to ping. 669 installs a week from npm. Last commit 9 Oct 2026.

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

Installs per day peak 542 · avg 18
a month agotoday
669
Installs / week
npm · grafana-mcp
0
Stars
0 open issues
9 Oct 2026
Last commit
4 releases in 90 days
MIT
License
TypeScript

What the code does

We read the source, 2 d ago · rules ccca72095570

Evidence

Things with no honest explanation: a promise that contradicts the code, code that runs at install time while hiding what it does, data leaving the machine.

Claims read-only, but the code runs commands [пакет] index.ts:296, index.ts:356
      const json = execSync(
Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

Runs an external command [пакет] index.ts:296, index.ts:356
      const json = execSync(
Dumps the whole environment index.ts:226
  for (const key of Object.keys(process.env)) {

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

We found things in this code

Code changes quietly between releases, and nobody reads the diff of a dependency. We do, on every release — watch Grafana MCP and you get told the day something new turns up.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add grafana-mcp -- npx -y grafana-mcp
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "grafana-mcp": {
      "args": [
        "-y",
        "grafana-mcp"
      ],
      "command": "npx"
    }
  }
}
~/.codex/config.toml
[mcp_servers.grafana-mcp]
command = "npx"
args = ["-y", "grafana-mcp"]
.cursor/mcp.json
{
  "mcpServers": {
    "grafana-mcp": {
      "args": [
        "-y",
        "grafana-mcp"
      ],
      "command": "npx"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "grafana-mcp": {
      "args": [
        "-y",
        "grafana-mcp"
      ],
      "command": "npx"
    }
  }
}

This one needs environment variables set before it will start: GRAFANA_TEST_URL (Grafana base URL of the test environment, e.g. https://grafana.example.com), GRAFANA_TEST_USER (Grafana username for the test environment (prefer a dedicated Viewer-role account)), GRAFANA_TEST_PASSWORD (Grafana password for the test environment), GRAFANA_PROD_URL (Grafana base URL of the production environment), GRAFANA_PROD_USER (Grafana username for the production environment), GRAFANA_PROD_PASSWORD (Grafana password for the production environment), GRAFANA_ENV (Default environment for this project (test by default)), GRAFANA_APP (App label value used to scope Loki queries for this project). The author declared them in the registry entry; get the values from the project itself.

Alternatives to Grafana MCP

same job, measured the same way
Lumin
by getlumin

Read-only access to a Lumin project's logs, metrics, uptime checks, alerts and infrastructure.

answering
Prometheus MCP
by mshegolev

Prometheus MCP — query metrics, inspect alerts, and explore scrape targets (read-only).

88 installs/wk local only
MCP K8s Ro
by your-ko

Read-only Kubernetes MCP server: inspect resources, logs, events, and metrics. Secrets are masked.

local only
Agentguard47
by bmdhodl

Read-only MCP server for coding-agent traces, alerts, costs, usage, and budget health.

28 installs/wk local only
Loki MCP Server
by igorolv

Read-only Grafana Loki for AI agents: label discovery, bounded LogQL queries, counts, exports

local only
SigNoz MCP Server
by signoz

SigNoz MCP server: access metrics, traces, logs, alerts, and dashboards via AI assistants

local only
Loggerhead
by getloggerhead

Read the logs, metrics, and traces of the app you are editing, from the Loggerhead Mac app.

local only
Quellgeist Metrics
by rajeev-shyam

Read-only MCP server: query_metrics over local metric time-series (Quellgeist triage).

89 installs/wk local only

Grafana MCP — questions

Answers built from our own checks of this server.

Why is there no uptime for Grafana MCP?
Grafana MCP runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package grafana-mcp was installed 669 times last week.
How do I connect Grafana MCP?
Copy the ready config from this page — we generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each with the file path that client actually reads. It runs locally, so the command pulls grafana-mcp straight from npm; nothing to host, nothing to sign up for.
How many people use Grafana MCP?
The npm package grafana-mcp was installed 669 times in the last week. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Grafana MCP open source?
Yes — it is published under the MIT licence, written in TypeScript and 0 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.