Community MCP server for Grafana observability platform.
npx -y @grafana/mcp-server
{
"mcpServers": {
"grafana": {
"env": {
"GRAFANA_URL": "https://grafana.example.com",
"GRAFANA_API_KEY": "xxx"
},
"args": [
"-y",
"@grafana/mcp-server"
],
"command": "npx"
}
}
}List active Grafana alerts
{
"type": "object",
"properties": {
"state": {
"type": "string"
}
}
}// Input
{
"state": "alerting"
}// Output
{
"alerts": [
{
"name": "High Latency",
"state": "alerting",
"severity": "warning"
}
]
}Query a Grafana datasource
{
"type": "object",
"required": [
"datasourceUid",
"query"
],
"properties": {
"query": {
"type": "string"
},
"datasourceUid": {
"type": "string"
}
}
}// Input
{
"query": "rate(http_requests_total[5m])",
"datasourceUid": "prom-1"
}// Output
{
"results": [
{
"metric": "http_requests",
"values": [
[
1709836800,
42.5
]
]
}
]
}Search Grafana dashboards
Community MCP server for Grafana observability platform.
Grafana provides 3 tools including list_alerts, query_datasource, search_dashboards.
Yes, Grafana is completely free to use with no usage limits on the free tier.
You can install Grafana using the following command: npx -y @grafana/mcp-server. After installation, add the provided config snippet to your Claude Desktop or Cursor configuration.
{
"type": "object",
"required": [
"query"
],
"properties": {
"query": {
"type": "string"
}
}
}// Input
{
"query": "API"
}// Output
{
"dashboards": [
{
"uid": "abc",
"title": "API Performance"
}
]
}Grafana is listed under the Data & Analytics category in the AgentForge MCP registry.
Grafana has a current uptime of 99.7% with an average response time of 180ms.
To connect Grafana, click the "Connect Agent" button on this page to get the configuration snippet. Add it to your MCP client (Claude Desktop, Cursor, or any MCP-compatible tool). Your AI agent will then have access to all of Grafana's tools via the Model Context Protocol.