mcp-grafana MCP Server

A [Model Context Protocol][mcp] (MCP) server for Grafana.

Local serverstdio

What is the mcp-grafana MCP Server?

mcp-grafana is an MCP project maintained in the grafana/mcp-grafana repository. The maintainer describes its purpose as “A [Model Context Protocol][mcp] (MCP) server for Grafana”. Read the project documentation for the complete scope.

Installation

The documented pypi package is mcp-grafana. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares GRAFANA_URL, GRAFANA_SERVICE_ACCOUNT_TOKEN. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
list_teamsAdmin
list_users_by_orgAdmin
list_all_rolesAdmin
get_role_detailsAdmin
get_role_assignmentsAdmin
list_user_rolesAdmin
list_team_rolesAdmin
get_resource_permissionsAdmin
get_resource_descriptionAdmin
user_infoUser
search_dashboardsSearch
get_dashboard_by_uidDashboard
list_dashboard_versionsDashboard
update_dashboardDashboard
get_dashboard_panel_queriesDashboard
run_panel_queryRunPanelQuery
get_dashboard_propertyDashboard
get_dashboard_summaryDashboard
list_datasourcesDatasources
get_datasourceDatasources
get_query_examplesExamples
query_prometheusPrometheus
list_prometheus_metric_metadataPrometheus
list_prometheus_metric_namesPrometheus
list_prometheus_label_namesPrometheus
list_prometheus_label_valuesPrometheus
query_prometheus_histogramPrometheus
list_incidentsIncident
create_incidentIncident
add_activity_to_incidentIncident
update_incidentIncident
get_incidentIncident
list_incident_custom_fieldsIncident
query_loki_logsLoki
list_loki_label_namesLoki
list_loki_label_valuesLoki
query_loki_statsLoki
query_loki_patternsLoki
analyze_loki_labelsLoki
suggest_loki_alloy_label_configConfig
query_influxdbInfluxDB
list_sql_databasesSQL
list_sql_tablesSQL
describe_sql_tableSQL
query_sqlSQL
list_cloudwatch_namespacesCloudWatch
list_cloudwatch_metricsCloudWatch
list_cloudwatch_dimensionsCloudWatch
list_cloudwatch_dimension_valuesCloudWatch
query_cloudwatchCloudWatch
list_cloud_logging_projectsCloud Logging
list_cloud_logging_bucketsCloud Logging
list_cloud_logging_viewsCloud Logging
query_cloud_loggingCloud Logging
query_elasticsearchElasticsearch/OpenSearch
query_quickwitQuickwit
alerting_rules_readAlerting
alerting_rules_writeAlerting
alerting_manage_routingAlerting
alerting_routing_writeAlerting
alerting_silences_readAlerting
alerting_silences_writeAlerting
list_oncall_schedulesOnCall
get_oncall_shiftOnCall
get_current_oncall_usersOnCall
list_oncall_teamsOnCall
list_oncall_usersOnCall
list_alert_groupsOnCall
get_alert_groupOnCall
update_alert_groupOnCall
list_pyroscope_label_namesPyroscope
list_pyroscope_label_valuesPyroscope
list_pyroscope_profile_typesPyroscope
query_pyroscopePyroscope
get_assertionsAsserts
agento11y_manage_conversationsAgent Observability
agento11y_manage_generationsAgent Observability
agento11y_manage_agentsAgent Observability
agento11y_manage_evaluatorsAgent Observability
agento11y_manage_eval_rulesAgent Observability
agento11y_manage_eval_collectionsAgent Observability
agento11y_manage_experimentsAgent Observability
agento11y_manage_test_suitesAgent Observability
ask_assistantAssistant
generate_deeplinkNavigation
get_annotationsAnnotations
create_annotationAnnotations
update_annotationAnnotations
delete_annotationAnnotations
get_annotation_tagsAnnotations
list_snapshotsSnapshot
get_snapshotSnapshot
create_snapshotSnapshot
delete_snapshotSnapshot
get_panel_imageRendering
list_provisioning_repositoriesProvisioning
validate_provisioning_fileProvisioning
search_docsDocs
get_docDocs

How to install the mcp-grafana MCP Server

{
  "mcpServers": {
    "grafana": {
      "command": "uvx",
      "args": [
        "mcp-grafana"
      ],
      "env": {
        "GRAFANA_URL": "http://localhost:3000",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "YOUR_GRAFANA_SERVICE_ACCOUNT_TOKEN"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
GRAFANA_URLDeclared in the maintainer’s client configuration.Check documentation
GRAFANA_SERVICE_ACCOUNT_TOKENDeclared in the maintainer’s client configuration.Check documentation