Grafana
Search dashboards, query Prometheus and Loki, and work with incidents and alerts in Grafana.
- Checks
- 8 of 9 passed
- License
- Apache License 2.0
- Last commit
- today
- GitHub stars
- 3.7k
- Reviewed at
5629871· Dec 4, 2026
Install
Container · mcp/grafana
Needs GRAFANA_URL, GRAFANA_SERVICE_ACCOUNT_TOKEN.
claude mcp add grafana -e GRAFANA_URL=... -e GRAFANA_SERVICE_ACCOUNT_TOKEN=... -- docker run -i --rm -e GRAFANA_URL -e GRAFANA_SERVICE_ACCOUNT_TOKEN mcp/grafana -t stdio{
"mcpServers": {
"grafana": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GRAFANA_URL",
"-e",
"GRAFANA_SERVICE_ACCOUNT_TOKEN",
"mcp/grafana",
"-t",
"stdio"
],
"env": {
"GRAFANA_URL": "...",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "..."
}
}
}
}Tools
65 tools listed by mcp-grafana (devel) in our sandbox on Dec 4, 2026.
add_activity_to_incidentAdd a note (userNote activity) to an existing incident's timeline using its ID.
alerting_manage_routingRead-onlyManage Grafana alerting routing configuration, including notification policies, contact points and time intervals.
alerting_manage_rulesDestructiveManage Grafana alert rules with full CRUD capabilities and filtering.
analyze_loki_labelsRead-onlyAudits a Loki label strategy and optionally diagnoses query performance.
check_datasources_healthRead-onlyCheck datasource health.
create_annotationCreate a new annotation on a dashboard or panel.
create_datasourceCreate a datasource.
create_folderCreate a Grafana folder.
create_incidentCreate a new Grafana incident.
create_snapshotCreate a Grafana snapshot from a full dashboard payload.
delete_snapshotDestructiveDelete a Grafana snapshot by snapshot key.
find_error_pattern_logsRead-onlySearches Loki logs for elevated error patterns compared to the last day's average, waits for the analysis to complete, and returns the results including any patterns found.
find_slow_requestsRead-onlySearches relevant Tempo datasources for slow requests, waits for the analysis to complete, and returns the results.
generate_deeplinkGenerate deeplink URLs for Grafana resources.
get_alert_groupRead-onlyGet a specific alert group from Grafana OnCall by its ID.
get_annotation_tagsRead-onlyReturns annotation tags with optional filtering by tag name.
get_annotationsRead-onlyFetch Grafana annotations using filters such as dashboard UID, time range and tags.
get_assertionsRead-onlyGet assertion summary for a given entity with its type, name, env, site, namespace, and a time range
get_current_oncall_usersRead-onlyGet the list of users currently on-call for a specific Grafana OnCall schedule ID.
get_dashboard_by_uidRead-onlyRetrieves the complete dashboard, including panels, variables, and settings, for a specific dashboard identified by its UID.
get_dashboard_panel_queriesRead-onlyRetrieve panel queries from a Grafana dashboard.
get_dashboard_propertyRead-onlyGet specific parts of a dashboard using JSONPath expressions to minimize context window usage.
get_dashboard_summaryRead-onlyGet a compact summary of a dashboard including title\, panel count\, panel types\, variables\, and other metadata without the full JSON.
get_datasourceRead-onlyRetrieves detailed information about a specific datasource by UID or name.
get_incidentRead-onlyGet a single incident by ID.
get_oncall_shiftRead-onlyGet detailed information for a specific Grafana OnCall shift using its ID.
get_panel_imageRead-onlyRender a Grafana dashboard panel or full dashboard as a PNG image.
get_pluginRead-onlyCheck whether a Grafana plugin is installed and retrieve its details (name, version, type, enabled status).
get_sift_analysisRead-onlyRetrieves a specific analysis from an investigation by its UUID.
get_sift_investigationRead-onlyRetrieves an existing Sift investigation by its UUID.
get_snapshotRead-onlyGet a Grafana snapshot by key, including snapshot metadata and dashboard payload.
grafana_api_requestMake an authenticated HTTP request to the Grafana API.
install_pluginDestructiveInstall a Grafana plugin by its plugin ID.
list_alert_groupsRead-onlyList alert groups from Grafana OnCall with filtering options.
list_datasourcesRead-onlyList all configured datasources in Grafana.
list_incidentsRead-onlyList Grafana incidents.
list_loki_label_namesRead-onlyLists all available label/field names (keys) found in logs within a specified Loki or VictoriaLogs datasource and time range.
list_loki_label_valuesRead-onlyRetrieves all unique values associated with a specific `labelName` within a Loki or VictoriaLogs datasource and time range.
list_oncall_schedulesRead-onlyList Grafana OnCall schedules, optionally filtering by team ID.
list_oncall_teamsRead-onlyList teams configured in Grafana OnCall.
list_oncall_usersRead-onlyList users from Grafana OnCall.
list_prometheus_label_namesRead-onlyList label names in a PromQL-compatible datasource (Prometheus, Thanos, Mimir, Cloud Monitoring, etc.).
list_prometheus_label_valuesRead-onlyUse after list_prometheus_metric_names to find label values for filtering queries.
list_prometheus_metric_metadataRead-onlyList Prometheus metric metadata.
list_prometheus_metric_namesRead-onlyDISCOVERY: Call this first to find available metrics before querying.
list_provisioning_repositoriesRead-onlyList provisioning repositories (e.g.
list_pyroscope_label_namesRead-onlyLists all available label names (keys) found in profiles within a specified Pyroscope datasource, time range, and optional label matchers.
list_pyroscope_label_valuesRead-onlyLists all available label values for a particular label name found in profiles within a specified Pyroscope datasource, time range, and optional label matchers.
list_pyroscope_profile_typesRead-onlyLists all available profile types available in a specified Pyroscope datasource and time range.
list_sift_investigationsRead-onlyRetrieves a list of Sift investigations with an optional limit.
list_snapshotsRead-onlyList Grafana dashboard snapshots with optional query and result limit filters.
query_loki_logsRead-onlyExecutes a log query against a Loki or VictoriaLogs datasource and returns matching log entries (or metric samples on Loki).
query_loki_patternsRead-onlyRetrieves detected log patterns from a Loki datasource for a given stream selector and time range.
query_loki_statsRead-onlyRetrieves index-level statistics about log streams matching a given selector within a Loki or VictoriaLogs datasource and time range.
query_prometheusRead-onlyWORKFLOW: list_prometheus_metric_names -> list_prometheus_label_values -> query_prometheus.
query_prometheus_histogramRead-onlyQuery Prometheus histogram percentiles.
query_pyroscopeRead-onlyUnified Pyroscope query tool for fetching profiles or metrics from Pyroscope.
search_dashboardsRead-onlySearch for Grafana dashboards by a query string.
search_foldersRead-onlySearch for Grafana folders by a query string.
search_plugin_informationRead-onlySearch the Grafana plugin catalog by keyword to discover available plugins before installing or getting plugin details on a specific instance.
suggest_loki_alloy_label_configRead-onlyGenerates an Alloy loki.process snippet enforcing an approved label set via stage.label_keep, with optional log-level normalisation and soft-enforcement placeholders.
update_annotationDestructiveUpdates the provided properties of an annotation by ID.
update_dashboardDestructiveCreate or update a dashboard.
update_datasourceUpdate non-secret datasource fields by UID.
validate_provisioning_fileRead-onlyValidate a file in a provisioning repository at a given branch or commit by dry-run applying it.
Related MCP servers
More observabilityCloudflare
OfficialCloudflare's hosted servers for docs, Workers bindings, observability, Radar and more.
Terraform
OfficialHashiCorp's server for Terraform Registry providers and modules, plus HCP Terraform workspaces.
Heroku
OfficialManage Heroku apps, dynos, add-ons and Postgres through the Heroku CLI.
Supabase
OfficialManage Supabase projects: run SQL, apply migrations, read logs, deploy edge functions.