LogoSTMCP
Download
mcp-grafana

Grafana MCP server

A Model Context Protocol server for Grafana providing AI assistants access to dashboards, datasources, alerting, incidents, and monitoring tools with RBAC support and context window optimization.

Tools

1. list_teams

List all teams in Grafana.

2. list_users_by_org

List all users in an organization in Grafana.

3. search_dashboards

Search for dashboards by title or other metadata.

4. get_dashboard_by_uid

Get a dashboard by its unique identifier.

5. update_dashboard

Update or create a new dashboard.

6. get_dashboard_panel_queries

Get panel title, queries, datasource UID and type from a dashboard.

7. get_dashboard_property

Extract specific parts of a dashboard using JSONPath expressions.

8. get_dashboard_summary

Get a compact summary of a dashboard without full JSON.

9. list_datasources

List all configured datasources.

10. get_datasource_by_uid

Get a datasource by its unique identifier.

11. get_datasource_by_name

Get a datasource by its name.

12. query_prometheus

Execute a query against a Prometheus datasource.

13. list_prometheus_metric_metadata

List metric metadata from a Prometheus datasource.

14. list_prometheus_metric_names

List available metric names from a Prometheus datasource.

15. list_prometheus_label_names

List label names matching a selector from a Prometheus datasource.

16. list_prometheus_label_values

List values for a specific label from a Prometheus datasource.

17. list_incidents

List incidents in Grafana Incident.

18. create_incident

Create an incident in Grafana Incident.

19. add_activity_to_incident

Add an activity item to an incident in Grafana Incident.

20. get_incident

Get a single incident by ID in Grafana Incident.

21. query_loki_logs

Query and retrieve logs using LogQL against a Loki datasource.

22. list_loki_label_names

List all available label names in logs from a Loki datasource.

23. list_loki_label_values

List values for a specific log label from a Loki datasource.

24. query_loki_stats

Get statistics about log streams from a Loki datasource.

25. list_alert_rules

List alert rules in Grafana.

26. get_alert_rule_by_uid

Get alert rule by UID in Grafana.

27. list_contact_points

List notification contact points in Grafana.

28. list_oncall_schedules

List schedules from Grafana OnCall.

29. get_oncall_shift

Get details for a specific OnCall shift.

30. get_current_oncall_users

Get users currently on-call for a specific schedule.

31. list_oncall_teams

List teams from Grafana OnCall.

32. list_oncall_users

List users from Grafana OnCall.

33. get_sift_investigation

Retrieve an existing Sift investigation by its UUID.

34. get_sift_analysis

Retrieve a specific analysis from a Sift investigation.

35. list_sift_investigations

Retrieve a list of Sift investigations with an optional limit.

36. find_error_pattern_logs

Find elevated error patterns in Loki logs using Sift.

37. find_slow_requests

Find slow requests using Sift from Tempo datasources.

38. list_pyroscope_label_names

List label names matching a selector from a Pyroscope datasource.

39. list_pyroscope_label_values

List label values matching a selector for a label name from a Pyroscope datasource.

40. list_pyroscope_profile_types

List available profile types from a Pyroscope datasource.

41. fetch_pyroscope_profile

Fetch a profile in DOT format for analysis from a Pyroscope datasource.

42. get_assertions

Get assertion summary for a given entity in Grafana Asserts.

Generate accurate deeplink URLs for Grafana resources.

Open Graph image for Grafana MCP server

JSON Config

{
  "mcpServers": {
    "grafana": {
      "command": "mcp-grafana",
      "args": [],
      "env": {
        "GRAFANA_URL": "http://localhost:3000",
        "GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your service account token>"
      }
    }
  }
}

Useful Links

Information