Grafana Mcp Server
Pricing
Pay per usage
Grafana Mcp Server
Connect AI agents to Grafana via MCP. Search dashboards, query Prometheus/Loki, manage alerts, create dashboards, and monitor data sources. 25+ tools for complete Grafana control through natural language.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Quadruped
Actor stats
0
Bookmarked
1
Total users
1
Monthly active users
14 days ago
Last modified
Categories
Share
Connect AI agents to your Grafana instance via the Model Context Protocol (MCP). Monitor dashboards, query data sources, manage alerts, and more through a standardized interface.
Features
- Dashboard Management: Search, view, create, and delete dashboards
- Data Source Operations: List, test, create, and query data sources (Prometheus, Loki, InfluxDB, PostgreSQL, MySQL, Elasticsearch)
- Alert Monitoring: View alert rules, check alert states, pause/unpause alerts
- Folder Organization: Create and manage folders for dashboard organization
- Annotations: Create time-based annotations for events and deployments
- User & Org Info: Access user and organization details
Input Configuration
| Field | Type | Required | Description |
|---|---|---|---|
grafanaUrl | string | Yes | Your Grafana instance URL (e.g., https://mycompany.grafana.net) |
grafanaApiToken | string | Yes | Service account token with Editor or Admin role |
grafanaOrgId | integer | No | Organization ID for multi-org setups |
Getting a Grafana API Token
- Go to Administration > Service Accounts
- Click Add service account
- Give it a name and select Editor or Admin role
- Click Add token and copy the generated token
Available Tools
Health & Status
grafana_health- Check instance health, version, and database status
Dashboards
grafana_search_dashboards- Search dashboards by query, tag, or foldergrafana_get_dashboard- Get full dashboard configuration by UIDgrafana_create_dashboard- Create a new dashboard with panelsgrafana_delete_dashboard- Delete a dashboard
Data Sources
grafana_list_datasources- List all configured data sourcesgrafana_get_datasource- Get data source details by UID or namegrafana_test_datasource- Test data source connectivitygrafana_create_datasource- Add a new data sourcegrafana_delete_datasource- Remove a data sourcegrafana_query_datasource- Execute queries (PromQL, LogQL, SQL)
Alerts
grafana_list_alert_rules- List all alert rulesgrafana_get_alert_rule- Get alert rule detailsgrafana_list_alert_instances- View current alert statesgrafana_pause_alert- Pause or unpause an alert
Folders
grafana_list_folders- List all foldersgrafana_get_folder- Get folder detailsgrafana_create_folder- Create a new foldergrafana_delete_folder- Delete a folder
Annotations
grafana_list_annotations- List annotations with filtersgrafana_create_annotation- Create an annotationgrafana_delete_annotation- Delete an annotation
Users & Organization
grafana_get_current_user- Get authenticated user infografana_list_org_users- List organization membersgrafana_get_current_org- Get organization details
Resources
The server exposes these MCP resources:
grafana://dashboards- All dashboardsgrafana://datasources- All data sourcesgrafana://folders- All foldersgrafana://alerts- Current alert statesgrafana://health- Instance health
Prompts
Pre-built prompts for common tasks:
dashboard-overview- Get an overview of all dashboardsalert-status- Check current alert statusdatasource-health- Verify data source connectivitycreate-dashboard-template- Template for new monitoring dashboards
Example Usage
Query Prometheus Metrics
{"tool": "grafana_query_datasource","arguments": {"datasourceUid": "prometheus-uid","query": "rate(http_requests_total[5m])","from": 1703980800000,"to": 1704067200000}}
Create a Dashboard
{"tool": "grafana_create_dashboard","arguments": {"title": "Service Monitoring","tags": ["production", "api"],"panels": [{"title": "Request Rate","type": "timeseries","datasource": "Prometheus","targets": [{"expr": "rate(http_requests_total[5m])"}]}]}}
Check Alert Status
{"tool": "grafana_list_alert_instances","arguments": {}}
Output
The Actor logs tool calls to its dataset with:
timestamp- When the call was madetool- Tool namesuccess- Whether it succeededduration- Execution time in mserror- Error message if failed
Pricing
Pay-per-event pricing:
- Tool Call: $0.001 per call
- Query Execution: $0.005 per query
- Dashboard Creation: $0.01 per dashboard
Requirements
- Grafana instance (Cloud or self-hosted)
- Service account token with appropriate permissions
- Network access to your Grafana instance
Support
For issues or feature requests, please open an issue on the repository.


