mcp-read-only-grafana
v0.4.1MCP server for Grafana with a read-only default and a separate write-capable command
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_connections
List all available Grafana connections with their configuration details. Returns: JSON string with connection details including name, url, and description.
get_health
Check Grafana instance health and version information. Args: connection_name: Name of the Grafana connection to check Returns: JSON string with health status and version information.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string |
get_current_org
Get current organization information. Args: connection_name: Name of the Grafana connection Returns: JSON string with organization details.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string |
search_dashboards
Search for dashboards by name or tag. Args: connection_name: Name of the Grafana connection query: Optional search query for dashboard names tag: Optional tag to filter dashboards limit: Optional maximum number of results per page page: Optional page number (1-indexed) fields: Optional subset of Grafana search fields to return (for example: id,orgId,uid,title,uri,url,slug,type,tags,isStarred,folderId,folderUid,folderTitle,folderUrl) Returns: JSON string with list of matching dashboard…
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
fields | ||
limit | ||
page | ||
query | ||
tag |
get_dashboard_info
Get lightweight dashboard metadata and panel list (without full panel definitions). This is the RECOMMENDED first step for exploring dashboards, especially large ones. Returns dashboard metadata, variables, and a list of all panels with basic info (id, title, type). Use get_dashboard_panel() to get full details for specific panels of interest. Args: connection_name: Name of the Grafana connection dashboard_uid: UID of the dashboard Returns: JSON string with dashboard metadata and panel summary list.…
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
dashboard_uid * | string |
get_dashboard_panel
Get full configuration for a single panel from a dashboard. Use this after get_dashboard_info() to explore specific panels in detail. Returns complete panel definition including queries, transforms, and display settings. Args: connection_name: Name of the Grafana connection dashboard_uid: UID of the dashboard panel_id: ID of the specific panel to retrieve Returns: JSON string with complete panel configuration.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
dashboard_uid * | string | |
panel_id * | integer |
get_dashboard
Get full dashboard definition including all panels and settings. WARNING: Large dashboards (>50 panels) will likely exceed MCP response limits (25,000 tokens). For large dashboards, use this workflow instead: 1. get_dashboard_info() - Get overview and panel list 2. get_dashboard_panel() - Get details for specific panels of interest Args: connection_name: Name of the Grafana connection dashboard_uid: UID of the dashboard to retrieve Returns: JSON string with complete dashboard definition.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
dashboard_uid * | string |
get_dashboard_panels
Get simplified panel information from a dashboard. Use this instead of get_dashboard() for large dashboards to avoid MCP size limits. Returns only essential panel information without full query definitions. Args: connection_name: Name of the Grafana connection dashboard_uid: UID of the dashboard Returns: JSON string with list of panels and their basic properties.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
dashboard_uid * | string |
list_folders
List all folders in the Grafana instance. Args: connection_name: Name of the Grafana connection Returns: JSON string with list of folders and their properties.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string |
list_folder_dashboards
List all dashboards in a specific folder. Args: connection_name: Name of the Grafana connection folder_uid: UID of the folder limit: Optional maximum results per page page: Optional page number fields: Optional subset of Grafana search fields to return (for example: id,orgId,uid,title,uri,url,slug,type,tags,isStarred,folderId,folderUid,folderTitle,folderUrl) Returns: JSON string with list of dashboards in the folder.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
folder_uid * | string | |
fields | ||
limit | ||
page |
get_dashboard_versions
Get version history of a dashboard. Args: connection_name: Name of the Grafana connection dashboard_uid: UID of the dashboard Returns: JSON string with list of dashboard versions.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
dashboard_uid * | string |
list_datasources
List all configured data sources in Grafana. Args: connection_name: Name of the Grafana connection Returns: JSON string with list of data sources and their configuration.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string |
get_datasource_health
Run the health check for a specific datasource. Args: connection_name: Name of the Grafana connection datasource_uid: UID of the datasource to probe Returns: JSON string with health information reported by Grafana. If Grafana returns 404, the tool returns a structured `unsupported` or `not_found` result instead of a raw error.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
datasource_uid * | string |
query_prometheus
Execute a PromQL query against a Prometheus datasource. Args: connection_name: Name of the Grafana connection datasource_uid: UID of the Prometheus datasource query: PromQL query to execute time_from: Start time (e.g., 'now-1h' or timestamp) time_to: End time (e.g., 'now' or timestamp) step: Query resolution step (e.g., '15s') Returns: JSON string with query results.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
datasource_uid * | string | |
query * | string | |
step | ||
time_from | ||
time_to |
query_loki
Execute a LogQL query against a Loki datasource. Args: connection_name: Name of the Grafana connection datasource_uid: UID of the Loki datasource query: LogQL query to execute time_from: Start time in nanoseconds or relative time time_to: End time in nanoseconds or relative time limit: Maximum number of log lines to return Returns: JSON string with query results.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
datasource_uid * | string | |
query * | string | |
limit | ||
time_from | ||
time_to |
explore_query
Execute a Grafana Explore query via the /api/ds/query endpoint. Args: connection_name: Name of the Grafana connection queries: List of Explore query definitions to execute range_from: Optional relative or absolute start time (e.g., 'now-6h') range_to: Optional end time (e.g., 'now') max_data_points: Optional maximum number of datapoints to request interval_ms: Optional query interval in milliseconds additional_options: Extra fields to merge into the request body Returns: J…
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
queries * | array | |
additional_options | ||
interval_ms | ||
max_data_points | ||
range_from | ||
range_to |
list_alerts
List alert rules, optionally filtered by folder. Args: connection_name: Name of the Grafana connection folder_uid: Optional folder UID to filter alerts Returns: JSON string with list of alert rules and their status.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
folder_uid |
get_alert_rule_by_uid
Get detailed information about a specific alert rule. Args: connection_name: Name of the Grafana connection alert_uid: UID of the alert rule Returns: JSON string with alert rule details.
| Parameter | Type | Description |
|---|---|---|
alert_uid * | string | |
connection_name * | string |
get_ruler_rules
Get all alert rules from the Ruler API. Returns a dict mapping namespace (folder) to list of rule groups. Each rule group contains rules and evaluation configuration. This is the non-admin alternative to the Provisioning API. Args: connection_name: Name of the Grafana connection Returns: JSON string with all rule groups organized by namespace.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string |
get_ruler_namespace_rules
Get all rule groups for a specific namespace (folder). Args: connection_name: Name of the Grafana connection namespace: The namespace/folder name Returns: JSON string with dict mapping namespace to rule groups.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
namespace * | string |
get_ruler_group
Get a specific alert rule group from a namespace. Args: connection_name: Name of the Grafana connection namespace: The namespace/folder name group_name: The rule group name Returns: JSON string with rule group configuration including all rules.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
group_name * | string | |
namespace * | string |
get_alert_rules_with_state
Get all alert rules with their current evaluation state. This endpoint returns rules organized by namespace with their current state (Normal, Pending, Alerting, NoData, Error). It's the same endpoint used by Grafana's Alert List panel - useful for checking if an alert is working after creation. Args: connection_name: Name of the Grafana connection state: Optional filter by state (e.g., "firing", "pending", "inactive") rule_name: Optional filter by rule name (partial match) Returns: JSON string w…
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
rule_name | ||
state |
get_firing_alerts
Get currently firing alert instances from Alertmanager. Returns alerts that have transitioned from Pending to Firing state. Use this to see which alerts are actively firing and their details. Args: connection_name: Name of the Grafana connection filter_labels: Optional label matchers (e.g., ["alertname=HighCPU", "severity=critical"]) silenced: Include silenced alerts (default: true) inhibited: Include inhibited alerts (default: true) active: Include active alerts (default: true) Returns:…
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
active | ||
filter_labels | ||
inhibited | ||
silenced |
get_alert_state_history
Get alert state transition history. Returns the history of state changes for alert rules, including transitions between Normal, Pending, Alerting, NoData, and Error states. Useful for debugging alert behavior and understanding evaluation patterns. Args: connection_name: Name of the Grafana connection rule_uid: Optional filter by specific rule UID labels: Optional label matchers to filter history from_time: Start time (ISO 8601 or relative like "now-1h") to_time: End time (ISO 8601 or relative…
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
from_time | ||
labels | ||
limit | ||
rule_uid | ||
to_time |
get_current_user
Get profile information for the authenticated Grafana user. Note: This endpoint only works with session-based authentication. API keys are service account tokens and are not associated with a user profile. When using API key auth, this will return a 404 error. Args: connection_name: Name of the Grafana connection Returns: JSON string describing the current user (id, login, email, role, etc.). When the connection uses API key auth, returns a structured explanation instead of surfacing Grafana's r…
| Parameter | Type | Description |
|---|---|---|
connection_name * | string |
get_user_permissions
Get permissions granted to the authenticated user. Lists the permissions granted to the signed-in user. Returns a map of action names to their authorized scopes. Useful for checking what the current API key or session can access. Note: Requires Grafana 8.0+ with RBAC enabled. May return 404 on older versions or instances without fine-grained access control. Args: connection_name: Name of the Grafana connection Returns: JSON string mapping action names to authorized scopes.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string |
list_users
List all users in the current organization. Args: connection_name: Name of the Grafana connection page: Optional page number (1-indexed) per_page: Optional page size fields: Optional subset of Grafana org-user fields (for example: orgId,userId,avatarUrl,email,name,login,role,lastSeenAt,lastSeenAtAge,authLabels) Returns: JSON string with list of users.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
fields | ||
page | ||
per_page |
list_teams
List all teams in the organization. Args: connection_name: Name of the Grafana connection page: Optional page number per_page: Optional page size fields: Optional subset of Grafana team fields (for example: id,orgId,uid,name,avatarUrl,email,memberCount) Returns: JSON string with list of teams.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
fields | ||
page | ||
per_page |
list_annotations
List annotations for a time range. Args: connection_name: Name of the Grafana connection time_from: Start time for annotations time_to: End time for annotations dashboard_id: Filter by dashboard ID tags: Filter by tags Returns: JSON string with list of annotations.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
dashboard_id | ||
tags | ||
time_from | ||
time_to |
list_provisioned_alert_rules
[WRITE] Fetch all provisioned alert rules via the read-only provisioning API. Args: connection_name: Name of the Grafana connection Returns: JSON string with the complete ProvisionedAlertRules payload.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string |
get_provisioned_alert_rule
[WRITE] Get a specific alert rule by UID from the provisioning API. Args: connection_name: Name of the Grafana connection alert_uid: UID of the alert rule Returns: JSON string with alert rule configuration.
| Parameter | Type | Description |
|---|---|---|
alert_uid * | string | |
connection_name * | string |
export_alert_rule
[WRITE] Export a specific alert rule in provisioning format. Args: connection_name: Name of the Grafana connection alert_uid: UID of the alert rule to export Returns: JSON string with alert rule in provisioning format.
| Parameter | Type | Description |
|---|---|---|
alert_uid * | string | |
connection_name * | string |
export_all_alert_rules
[WRITE] Export all alert rules in provisioning format. Args: connection_name: Name of the Grafana connection Returns: JSON string with all alert rules in provisioning format.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string |
get_rule_group
[WRITE] Get a specific alert rule group. Args: connection_name: Name of the Grafana connection folder_uid: UID of the folder group: Name of the rule group Returns: JSON string with rule group configuration.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
folder_uid * | string | |
group * | string |
export_rule_group
[WRITE] Export a specific rule group in provisioning format. Args: connection_name: Name of the Grafana connection folder_uid: UID of the folder group: Name of the rule group Returns: JSON string with rule group in provisioning format.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
folder_uid * | string | |
group * | string |
list_contact_points
[WRITE] Get all contact points. Args: connection_name: Name of the Grafana connection Returns: JSON string with list of contact point configurations.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string |
get_notification_policies
[WRITE] Get the notification policy tree. Args: connection_name: Name of the Grafana connection Returns: JSON string with notification policy tree configuration.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string |
list_notification_templates
[WRITE] Get all notification templates. Args: connection_name: Name of the Grafana connection Returns: JSON string with list of notification template configurations.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string |
get_notification_template
[WRITE] Get a specific notification template by name. Args: connection_name: Name of the Grafana connection name: Name of the template Returns: JSON string with notification template configuration.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
name * | string |
list_mute_timings
[WRITE] Get all mute timings. Args: connection_name: Name of the Grafana connection Returns: JSON string with list of mute timing configurations.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string |
get_mute_timing
[WRITE] Get a specific mute timing by name. Args: connection_name: Name of the Grafana connection name: Name of the mute timing Returns: JSON string with mute timing configuration.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
name * | string |
save_dashboard
[WRITE] Create or update a dashboard from raw Grafana dashboard JSON. If the dashboard UID already exists, the tool fetches the live dashboard first and reuses its current id/version. Unless you explicitly pass `folder_uid` or `folder_id`, it also preserves the dashboard's current folder instead of moving it to the root level. Args: connection_name: Name of the Grafana connection dashboard: Raw Grafana dashboard model JSON (for example a repo dashboard file) folder_uid: Optional folder UID override for the s…
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
dashboard * | object | |
folder_id | ||
folder_uid | ||
message | ||
overwrite | boolean |
create_folder
[WRITE] Create a new folder in Grafana. Args: connection_name: Name of the Grafana connection title: The title of the folder uid: Optional unique identifier for the folder parent_uid: Optional parent folder UID (requires nested folders feature) Returns: JSON string with created folder details (uid, title, url, etc.).
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
title * | string | |
parent_uid | ||
uid |
create_alert_rule
[WRITE] Create a new alert rule. Args: connection_name: Name of the Grafana connection rule: Alert rule configuration (requires: title, ruleGroup, folderUID, condition, data, noDataState, execErrState) editable_in_ui: Keep the created alert editable in the Grafana UI. Defaults to True. Set to False to keep Grafana's provisioned behavior. Returns: JSON string with the created alert rule (including UID).
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
rule * | object | |
editable_in_ui | boolean |
update_alert_rule
[WRITE] Update an existing alert rule. Args: connection_name: Name of the Grafana connection alert_uid: UID of the alert rule to update rule: Updated alert rule configuration editable_in_ui: Keep the updated alert editable in the Grafana UI. Defaults to True. Set to False to keep Grafana's provisioned behavior. Returns: JSON string with the updated alert rule.
| Parameter | Type | Description |
|---|---|---|
alert_uid * | string | |
connection_name * | string | |
rule * | object | |
editable_in_ui | boolean |
delete_alert_rule
[WRITE] Delete an alert rule. Args: connection_name: Name of the Grafana connection alert_uid: UID of the alert rule to delete editable_in_ui: Keep related provisioning resources editable in the Grafana UI. Defaults to True. Set to False to keep Grafana's provisioned behavior. Returns: JSON string confirming deletion.
| Parameter | Type | Description |
|---|---|---|
alert_uid * | string | |
connection_name * | string | |
editable_in_ui | boolean |
update_rule_group
[WRITE] Update a rule group's configuration (interval, rules). Args: connection_name: Name of the Grafana connection folder_uid: UID of the folder group: Name of the rule group config: Rule group configuration (folderUid, interval, rules, title) editable_in_ui: Keep the rule group and its alerts editable in the Grafana UI. Defaults to True. Set to False to keep Grafana's provisioned behavior. Returns: JSON string with the updated rule group.
| Parameter | Type | Description |
|---|---|---|
config * | object | |
connection_name * | string | |
folder_uid * | string | |
group * | string | |
editable_in_ui | boolean |
create_contact_point
[WRITE] Create a new contact point. Args: connection_name: Name of the Grafana connection contact_point: Contact point configuration (requires: name, type, settings) editable_in_ui: Keep the contact point editable in the Grafana UI. Defaults to True. Set to False to keep Grafana's provisioned behavior. Returns: JSON string with the created contact point (including UID).
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
contact_point * | object | |
editable_in_ui | boolean |
update_contact_point
[WRITE] Update an existing contact point. Args: connection_name: Name of the Grafana connection uid: UID of the contact point to update contact_point: Updated contact point configuration editable_in_ui: Keep the contact point editable in the Grafana UI. Defaults to True. Set to False to keep Grafana's provisioned behavior. Returns: JSON string with the updated contact point.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
contact_point * | object | |
uid * | string | |
editable_in_ui | boolean |
delete_contact_point
[WRITE] Delete a contact point. Args: connection_name: Name of the Grafana connection uid: UID of the contact point to delete editable_in_ui: Keep related provisioning resources editable in the Grafana UI. Defaults to True. Set to False to keep Grafana's provisioned behavior. Returns: JSON string confirming deletion.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
uid * | string | |
editable_in_ui | boolean |
set_notification_policies
[WRITE] Set the notification policy tree. Args: connection_name: Name of the Grafana connection policies: Notification policy tree configuration (Route object) editable_in_ui: Keep the notification policy tree editable in the Grafana UI. Defaults to True. Set to False to keep Grafana's provisioned behavior. Returns: JSON string with the updated notification policies.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
policies * | object | |
editable_in_ui | boolean |
delete_notification_policies
[WRITE] Clear the notification policy tree (reset to defaults). Args: connection_name: Name of the Grafana connection editable_in_ui: Keep the notification policy tree editable in the Grafana UI. Defaults to True. Set to False to keep Grafana's provisioned behavior. Returns: JSON string confirming deletion.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
editable_in_ui | boolean |
create_mute_timing
[WRITE] Create a new mute timing. Args: connection_name: Name of the Grafana connection mute_timing: Mute timing configuration (requires: name, time_intervals) editable_in_ui: Keep the mute timing editable in the Grafana UI. Defaults to True. Set to False to keep Grafana's provisioned behavior. Returns: JSON string with the created mute timing.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
mute_timing * | object | |
editable_in_ui | boolean |
update_mute_timing
[WRITE] Update an existing mute timing. Args: connection_name: Name of the Grafana connection name: Name of the mute timing to update mute_timing: Updated mute timing configuration editable_in_ui: Keep the mute timing editable in the Grafana UI. Defaults to True. Set to False to keep Grafana's provisioned behavior. Returns: JSON string with the updated mute timing.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
mute_timing * | object | |
name * | string | |
editable_in_ui | boolean |
delete_mute_timing
[WRITE] Delete a mute timing. Args: connection_name: Name of the Grafana connection name: Name of the mute timing to delete editable_in_ui: Keep related provisioning resources editable in the Grafana UI. Defaults to True. Set to False to keep Grafana's provisioned behavior. Returns: JSON string confirming deletion.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
name * | string | |
editable_in_ui | boolean |
set_notification_template
[WRITE] Create or update a notification template. Args: connection_name: Name of the Grafana connection name: Name of the template template: Template configuration (requires: template field with content) editable_in_ui: Keep the notification template editable in the Grafana UI. Defaults to True. Set to False to keep Grafana's provisioned behavior. Returns: JSON string with the created/updated template.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
name * | string | |
template * | object | |
editable_in_ui | boolean |
delete_notification_template
[WRITE] Delete a notification template. Args: connection_name: Name of the Grafana connection name: Name of the template to delete editable_in_ui: Keep related provisioning resources editable in the Grafana UI. Defaults to True. Set to False to keep Grafana's provisioned behavior. Returns: JSON string confirming deletion.
| Parameter | Type | Description |
|---|---|---|
connection_name * | string | |
name * | string | |
editable_in_ui | boolean |