Connects MCP clients to Grafana for dashboards, alerting, incidents, datasources, logs, metrics, and traces.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
This server is confirmed live โ we successfully called its tools/list endpoint directly (see the verified badge above). We haven't yet sandbox-tested the stdio install command below specifically, which is a separate, ongoing check.
๐ก Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by MCP Grafana.
add_activity_to_incidentAdd a note (userNote activity) to an existing incident's timeline using its ID. The note body can include URLs which will be attached as context. Use this to add context to an incident.
alerting_manage_routingManage Grafana alerting routing configuration, including notification policies, contact points and time intervals. Notification policies define how alerts are grouped, routed, and which contact points receive them. Time intervals define active/mute periods for alert notifications. When to use: - Understanding how alerts are routed to contact points/receivers - Debugging why an alert went to a specific receiver - Checking grouping, timing, or mute interval settings When NOT to use: - Checking alert rule configuration or state (use alerting_manage_rules)
alerting_manage_rulesManage Grafana alert rules with full CRUD capabilities and filtering. When to use: - Understanding why an alert is or isn't firing - Auditing alert rule configuration (queries, conditions, labels, notification settings) - Finding alert rules by state, folder, group, or name - Creating, updating, or deleting alert rules - Comparing rule versions to see what changed When NOT to use: - Checking how alerts are routed to receivers (use alerting_manage_routing)
analyze_loki_labelsAudits a Loki label strategy and optionally diagnoses query performance. Returns per-label verdicts, missing base labels, normalisation issues, and a recommended set. Pass datasourceUid for live cardinality or labels for static scoring; both may be combined.
check_datasources_healthCheck datasource health. Filter by type or UIDs; omit both to check all.
create_annotationCreate a new annotation on a dashboard or panel. Set format to 'graphite' and provide 'what' for Graphite-format annotations.
grafana/mcp-grafana MCP server gives MCP clients access to Grafana dashboards, datasources, alerting, incidents, annotations, OnCall information, and selected observability analysis workflows. It can retrieve a complete dashboard by UID, or return a smaller summary or selected properties when full dashboard JSON would use too much context. Dashboard tools also expose panel queries and datasource details, and the server supports dashboard creation, updates, patches, annotations, folders, snapshots, deeplinks, and rendered panel images.
Operational tools cover alert rules and alert routing separately. Agents can inspect or change rule configuration, compare rule versions, and filter rules by state, folder, group, or name. Routing tools cover notification policies, contact points, and time intervals. Incident tools can create or retrieve incidents and add timeline notes, while OnCall tools provide alert group, schedule, shift, and currently on-call user information.
The server runs locally as an MCP process and communicates with Grafana using the configured instance URL and service account token. Grafana remains the source of datasource credentials for supported backends such as Snowflake; the README states that those credentials are not exposed to the MCP server.
Query and investigation capabilities span Prometheus, Loki, InfluxDB, ClickHouse, CloudWatch, Graphite, Athena, Snowflake, Elasticsearch, and OpenSearch, subject to the relevant Grafana datasource and enabled tool group. It can query metrics, logs, traces, and datasource metadata, and includes targeted analysis for Loki error patterns and Tempo slow requests. It can also generate Explore links with embedded time ranges and queries.
The recommended configuration uses uvx with the mcp-grafana package. Set GRAFANA_URL to the Grafana address and GRAFANA_SERVICE_ACCOUNT_TOKEN to a service account token. Grafana Cloud instances use their instance URL in place of a local address. The README also documents Docker, binary, and Helm installation paths, but the MCP client example uses uvx.
The server requires Grafana 9.0 or newer for full functionality. Add runpanelquery to the --enabled-tools setting to enable panel query execution. Query examples require examples; InfluxDB, ClickHouse, CloudWatch, Graphite, Athena, Snowflake, and Elasticsearch/OpenSearch each have their own enablement value.
Key capabilities of grafana/mcp-grafana MCP server include:
Datasource query tools support datasource-specific features such as PromQL, LogQL, InfluxQL or Flux, SQL, Graphite render queries, Lucene or Elasticsearch Query DSL, and Grafana macro or variable substitution where documented.
Large dashboards can consume substantial context because complete dashboard retrieval returns the full model. Use the summary or property tools when only an overview or selected fields are needed. Creating or updating a dashboard requires the full dashboard JSON, while patching is intended for narrower changes.
Panel query execution and several datasource query families are disabled by default and need explicit enablement. Image rendering requires Grafana Image Renderer. Datasource operations may not work correctly on Grafana versions earlier than 9.0. Creating an incident can notify or alert many people, so the tool documentation requires confirmation and judicious use. Datasource creation must be performed in two calls: first obtain the field schema, then collect required values from the user before creating the datasource.
Factual signals from GitHub, npm, and our automated checks โ not a rating.
No reviews yet โ be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/grafana-mcp-grafana)<a href="https://allmcps.com/mcp/grafana-mcp-grafana"><img src="https://allmcps.com/api/badge/grafana-mcp-grafana?style=directory" alt="MCP Grafana on AllMCPs" /></a>