mcp-grafana MCP Server
Search & edit Grafana dashboards, query datasources (PromQL/LogQL/SQL), inspect alerts.
About
A safe-by-default MCP server for Grafana. Search dashboards and folders, read the dashboard JSON model, list and query datasources (Prometheus/Loki/SQL via Grafana's unified /api/ds/query), and inspect alert rules and annotations. In higher modes it can create/update dashboards and folders, write annotations, and delete. Safe by default: starts read-only with only the 11 read tools registered — edits need read-write, deletes need admin plus GRAFANA_ALLOW_DELETE. Access modes, folder allowlist + protected folders, datasource allowlist, dry-run and a JSON audit log are enforced by a pure policy engine on top of the service-account token's role; datasource secrets are always redacted. Ships a bundled skill capturing the dashboard JSON model and query conventions so agents build to a consistent standard.
Security Report
This is a well-engineered MCP server with a strong security-first design. Authentication is properly enforced via Grafana service account tokens, capabilities are gated by configurable access modes, and sensitive data (datasource secrets) is systematically redacted. The code is clean, well-tested, and implements defense-in-depth with folder allowlists, protected folders, datasource filtering, and comprehensive audit logging. Minor code quality observations exist but do not materially affect security. Package verification found 1 issue.
7 files analyzed · 5 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"mcp-grafana": {
"args": [
"-y",
"@dockndevai/mcp-grafana"
],
"command": "npx"
}
}
}Getting Started
Once installed, try these example prompts and explore these capabilities:
- 1Ask: "Show request rate and p95 latency for the API" — runs PromQL via query_datasource
- 2Tool: search — find a dashboard's UID
- 3Tool: get_dashboard — read the JSON model to edit
- 4Tool: create_or_update_dashboard — save a versioned dashboard to a folder
Reviews
No reviews yet
Be the first to review this server!
More Data & Analytics MCP Servers
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
mcp-creator-python
Freeby mcp-marketplace · Developer Tools
Create, build, and publish Python MCP servers to PyPI — conversationally.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
MarkItDown
Freeby Microsoft · Content & Media
Convert files (PDF, Word, Excel, images, audio) to Markdown for LLM consumption
FinAgent
Freeby mcp-marketplace · Finance
Free stock data and market news for any MCP-compatible AI assistant.
Google Workspace MCP
Freeby Taylorwilsdon · Productivity
Control Gmail, Calendar, Docs, Sheets, Drive, and more from your AI