Skip to main content
Glama

Grafana MCP Server

by levalhq

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
DEBUGNoEnable debug loggingfalse
GRAFANA_URLNoThe URL of your Grafana instance
TLS_CA_FILENoPath to custom CA certificate file
TLS_KEY_FILENoPath to mTLS key file
TLS_CERT_FILENoPath to mTLS certificate file
TLS_SKIP_VERIFYNoSkip TLS verificationfalse
GRAFANA_PASSWORDNoGrafana password for basic authentication
GRAFANA_USERNAMENoGrafana username for basic authentication
GRAFANA_SERVICE_ACCOUNT_TOKENNoGrafana service account token (recommended authentication method)

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
search_dashboards

Search for Grafana dashboards by a query string. Returns a list of matching dashboards with details like title, UID, folder, tags, and URL.

get_dashboard_by_uid

Retrieves the complete dashboard, including panels, variables, and settings, for a specific dashboard identified by its UID

get_dashboard_summary

Get a compact summary of a dashboard including title, panel count, panel types, variables, and other metadata

get_dashboard_property

Get specific parts of a dashboard using JSONPath expressions to minimize context window usage

get_dashboard_panel_queries

Retrieve panel queries and information from a Grafana dashboard

update_dashboard

Create or update a dashboard using either full JSON or efficient patch operations

list_datasources

List available Grafana datasources. Optionally filter by datasource type.

get_datasource_by_uid

Retrieves detailed information about a specific datasource using its UID.

get_datasource_by_name

Retrieves detailed information about a specific datasource using its name.

query_prometheus

Query Prometheus using a PromQL expression. Supports both instant and range queries.

list_prometheus_metric_names

List metric names in a Prometheus datasource. Retrieves all metric names and filters them using regex.

list_prometheus_label_names

List label names in a Prometheus datasource. Allows filtering by series selectors and time range.

list_prometheus_label_values

Get the values for a specific label name in Prometheus. Allows filtering by series selectors and time range.

list_prometheus_metric_metadata

List Prometheus metric metadata. Returns metadata about metrics currently scraped from targets.

list_loki_label_names

Lists all available label names (keys) found in logs within a specified Loki datasource and time range

list_loki_label_values

Retrieves all unique values associated with a specific labelName within a Loki datasource and time range

query_loki_logs

Executes a LogQL query against a Loki datasource to retrieve log entries or metric values

query_loki_stats

Retrieves statistics about log streams matching a given LogQL selector within a Loki datasource

find_error_pattern_logs

Searches Loki logs for elevated error patterns and returns the results

list_incidents

List Grafana incidents. Allows filtering by status and optionally including drill incidents

get_incident

Get a single incident by ID. Returns the full incident details

create_incident

Create a new Grafana incident. Requires title, severity, and room prefix

add_activity_to_incident

Add a note (userNote activity) to an existing incident's timeline

list_alert_rules

Lists Grafana alert rules, returning a summary including UID, title, current state, and labels

get_alert_rule_by_uid

Retrieves the full configuration and detailed status of a specific Grafana alert rule

list_contact_points

Lists Grafana notification contact points, returning a summary including UID, name, and type

list_oncall_schedules

List Grafana OnCall schedules, optionally filtering by team ID

list_oncall_teams

List teams configured in Grafana OnCall

list_oncall_users

List users from Grafana OnCall. Can retrieve all users, a specific user, or filter by username

get_current_oncall_users

Get the list of users currently on-call for a specific Grafana OnCall schedule

get_oncall_shift

Get detailed information for a specific Grafana OnCall shift

list_teams

Search for Grafana teams by a query string. Returns a list of matching teams with details

list_users_by_org

List users by organization. Returns a list of users with details like userid, email, role etc

list_sift_investigations

Retrieves a list of Sift investigations with an optional limit

get_sift_investigation

Retrieves an existing Sift investigation by its UUID

get_sift_analysis

Retrieves a specific analysis from an investigation by its UUID

find_slow_requests

Searches relevant Tempo datasources for slow requests and returns the results

list_pyroscope_label_names

Lists all available label names found in profiles within a Pyroscope datasource

list_pyroscope_label_values

Lists all available label values for a particular label name in profiles

list_pyroscope_profile_types

Lists all available profile types in a Pyroscope datasource

fetch_pyroscope_profile

Fetches a profile from a Pyroscope data source for a given time range

generate_deeplink

Generate deeplink URLs for Grafana resources. Supports dashboards, panels, and Explore queries

get_assertions

Get assertion summary for a given entity with its type, name, env, site, namespace, and time range

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/levalhq/mcp-grafana'

If you have feedback or need assistance with the MCP directory API, please join our Discord server