Skip to main content
Glama
0xteamhq

Grafana MCP Server

by 0xteamhq

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)

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription
search_dashboardsB

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_uidB

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

get_dashboard_summaryB

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

get_dashboard_propertyB

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

get_dashboard_panel_queriesC

Retrieve panel queries and information from a Grafana dashboard

update_dashboardC

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

list_datasourcesB

List available Grafana datasources. Optionally filter by datasource type.

get_datasource_by_uidC

Retrieves detailed information about a specific datasource using its UID.

get_datasource_by_nameB

Retrieves detailed information about a specific datasource using its name.

query_prometheusA

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

list_prometheus_metric_namesC

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

list_prometheus_label_namesB

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

list_prometheus_label_valuesB

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

list_prometheus_metric_metadataC

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

list_loki_label_namesA

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

list_loki_label_valuesB

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

query_loki_logsB

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

query_loki_statsC

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

find_error_pattern_logsC

Searches Loki logs for elevated error patterns and returns the results

list_incidentsB

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

get_incidentA

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

create_incidentC

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

add_activity_to_incidentB

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

list_alert_rulesB

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

get_alert_rule_by_uidB

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

list_contact_pointsB

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

list_oncall_schedulesB

List Grafana OnCall schedules, optionally filtering by team ID

list_oncall_teamsB

List teams configured in Grafana OnCall

list_oncall_usersB

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

get_current_oncall_usersB

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

get_oncall_shiftC

Get detailed information for a specific Grafana OnCall shift

list_teamsC

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

list_users_by_orgB

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

list_sift_investigationsC

Retrieves a list of Sift investigations with an optional limit

get_sift_investigationC

Retrieves an existing Sift investigation by its UUID

get_sift_analysisC

Retrieves a specific analysis from an investigation by its UUID

find_slow_requestsC

Searches relevant Tempo datasources for slow requests and returns the results

list_pyroscope_label_namesB

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

list_pyroscope_label_valuesC

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

list_pyroscope_profile_typesB

Lists all available profile types in a Pyroscope datasource

fetch_pyroscope_profileC

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

generate_deeplinkB

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

get_assertionsC

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

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/0xteamhq/mcp-grafana'

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