Grafana Cloud Observability
MCP Server Key RequiredDashboards, alerting, Loki logs, Tempo traces, Prometheus metrics via Grafana's official MCP
Use with AI AssistantsMCP
Connect Claude, Cursor, or any MCP-compatible client — then call tools directly
① Add This MCP Server
Paste into your AI client config — then all its tools are available instantly.
{
"mcpServers": {
"grafana-cloud-observability": {
"url": "https://mcp.aerostack.dev/s/aerostack/mcp-grafana",
"headers": {
"Authorization": "Bearer YOUR_AEROSTACK_TOKEN"
}
}
}
}Replace YOUR_AEROSTACK_TOKEN with your API token from the dashboard.
② Call a Tool
Ask your AI assistant to call a specific tool, or send raw JSON-RPC:
Natural Language Prompt
“Use the list_dashboards tool to list all grafana dashboards with title, folder, tags, and url for quick navigation”
Using a Workspace?
Add this MCP to your Workspace — your team shares one token, secrets are stored securely, and every AI agent in the workspace can call it without per-user setup.
Grafana Cloud Observability MCP
Official proxy MCP — Dashboards, alerting, Loki logs, Tempo traces, Prometheus metrics via Grafana's official MCP
Live endpoint: https://mcp.aerostack.dev/s/aerostack/mcp-grafana
Overview
Grafana Cloud Observability is a proxy MCP server that forwards requests directly to the official Grafana MCP endpoint at https://mcp.grafana.com/mcp. All tools are maintained by Grafana Labs — new tools are available immediately without any Aerostack update.
Type: Proxy (hosted by Grafana Cloud)
Auth: Bearer token via GRAFANA_API_TOKEN
Self-hosted Grafana? Use your instance-specific endpoint:
https://<stack-id>.grafana.net/api/mcp
Available Tools
- list_dashboards — List all dashboards with title, folder, tags, and URL for quick navigation
- get_dashboard — Retrieve a specific dashboard by UID with all panels, variables, and data sources
- query_loki_logs — Query logs from Loki using LogQL with label and line filters
- list_alerts — List all alerting rules with status, labels, and notification channels
- query_prometheus — Execute PromQL queries for metric analysis with time range support
Configuration
| Variable | Required | Description | How to Get |
|---|---|---|---|
GRAFANA_API_TOKEN | Yes | Grafana Cloud API Token or Service Account Token | grafana.com → My Account → Access Policies → Create token |
Setup
Add to Aerostack Workspace
- Go to app.aerostack.dev/workspaces → Create Workspace
- Inside your workspace → Add Server → search "Grafana Cloud Observability"
- Enter your
GRAFANA_API_TOKENwhen prompted — stored encrypted, injected automatically
Once added, every AI agent in your workspace can query Grafana tools automatically.
Usage
Example Prompts
"Show me all dashboards tagged with 'kubernetes'"
"Query Loki for error logs from the payment service in the last hour"
"List all firing alerts and summarize what's broken"
Direct API Call
curl -X POST https://mcp.aerostack.dev/s/aerostack/mcp-grafana \
-H 'Content-Type: application/json' \
-H 'X-Mcp-Secret-GRAFANA-API-TOKEN: your-token' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query_loki_logs","arguments":{"query":"{app=\"nginx\"} |= \"error\""}}}'
License
MIT
Details
Publisher
@aerostack
Pre-built functions for the most common MCP tool patterns. Clone, extend, and deploy.