mcp-grafana MCP
A Model Context Protocol server for Grafana that enables agents to search and edit dashboards, query datasources using PromQL, LogQL, or SQL, and inspect alerts. It features a safe-by-default access model with read-only, read-write, and admin modes, along with safeguards like dry-run validation and audit logging.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Search for dashboards and folders by name or tag
- Query datasources using PromQL, LogQL, or SQL
- Inspect Grafana-managed alert rules and annotations
- Create, update, or delete dashboards and folders
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
@dockndevai/mcp-grafana 0.3.3
{
"version": "0.3.3",
"transport": "stdio",
"identifier": "@dockndevai/mcp-grafana",
"registryType": "npm",
"registryBaseUrl": "https://registry.npmjs.org",
"environmentVariables": [
{
"name": "GRAFANA_URL",
"description": "Base URL of the Grafana instance (e.g. http://localhost:3000)."
},
{
"name": "GRAFANA_TOKEN",
"isRequired": true,
"description": "Grafana service-account token (Bearer). Use a Viewer-role account for read-only use."
},
{
"name": "GRAFANA_MODE",
"description": "Access mode: read-only | read-write | admin. Starts read-only; writes need read-write."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"mcp-grafana-mcp": {
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-grafana@0.3.3"
],
"env": {
"GRAFANA_URL": "<YOUR_GRAFANA_URL>",
"GRAFANA_TOKEN": "<YOUR_GRAFANA_TOKEN>",
"GRAFANA_MODE": "<YOUR_GRAFANA_MODE>"
}
}
}
}Cline
{
"mcpServers": {
"mcp-grafana-mcp": {
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-grafana@0.3.3"
],
"env": {
"GRAFANA_URL": "<YOUR_GRAFANA_URL>",
"GRAFANA_TOKEN": "<YOUR_GRAFANA_TOKEN>",
"GRAFANA_MODE": "<YOUR_GRAFANA_MODE>"
}
}
}
}VS Code
{
"servers": {
"mcp-grafana-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-grafana@0.3.3"
],
"env": {
"GRAFANA_URL": "<YOUR_GRAFANA_URL>",
"GRAFANA_TOKEN": "<YOUR_GRAFANA_TOKEN>",
"GRAFANA_MODE": "<YOUR_GRAFANA_MODE>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"mcp-grafana-mcp": {
"command": "npx",
"args": [
"-y",
"@dockndevai/mcp-grafana@0.3.3"
],
"env": {
"GRAFANA_URL": "<YOUR_GRAFANA_URL>",
"GRAFANA_TOKEN": "<YOUR_GRAFANA_TOKEN>",
"GRAFANA_MODE": "<YOUR_GRAFANA_MODE>"
}
}
}
}Let your agent find its tools
Find servers like mcp-grafana MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.