Deploy MCP Server
Monitoring API Key

Grafana REST API

Query, visualize, and alert on metrics and logs

Grafana is an open-source analytics and interactive visualization platform. Developers use the Grafana REST API to programmatically manage dashboards, data sources, alerts, and organizations, enabling automated monitoring infrastructure deployment and configuration as code workflows.

Base URL https://your-grafana-instance.com/api

API Endpoints

MethodEndpointDescription
GET/dashboards/uid/:uidGet a dashboard by its unique identifier
POST/dashboards/dbCreate or update a dashboard in the database
DELETE/dashboards/uid/:uidDelete a dashboard by UID
GET/datasourcesGet all configured data sources
POST/datasourcesCreate a new data source
PUT/datasources/:idUpdate an existing data source by ID
DELETE/datasources/:idDelete a data source by ID
GET/alertsGet all alerts
GET/alert-notificationsGet all notification channels
POST/alert-notificationsCreate a new alert notification channel
GET/org/usersGet users in the current organization
POST/org/usersAdd a user to the current organization
GET/foldersGet all folders in the organization
POST/foldersCreate a new folder
GET/searchSearch for dashboards and folders

Code Examples

curl -X GET 'https://your-grafana-instance.com/api/dashboards/uid/cIBgcSjkk' \
  -H 'Authorization: Bearer glsa_HOruNAb7SOiCdshU9algkdIloRHXeGFi7'

Connect Grafana to AI

Deploy a Grafana MCP server on IOX Cloud and connect it to Claude, ChatGPT, Cursor, or any AI client. Your AI assistant gets direct access to Grafana through these tools:

create_grafana_dashboard Create or update a Grafana dashboard with panels, queries, and visualizations based on natural language requirements
query_grafana_metrics Query metrics from configured data sources and return time-series data for analysis
manage_alert_rules Create, update, or delete alert rules with conditions and notification channels
configure_data_source Add or update data source configurations for Prometheus, Elasticsearch, or other supported backends
search_dashboards Search for dashboards by name, tag, or folder and retrieve their configuration

Deploy in 60 seconds

Describe what you need, AI generates the code, and IOX deploys it globally.

Deploy Grafana MCP Server →

Related APIs