Grafana
Official Grafana MCP for dashboards, datasources, alerting, incidents, service accounts, and Grafana Cloud or self-managed observability.
Installation path
Choose Add Server, select Local MCP, use uvx as the command, add mcp-grafana as the argument, and provide GRAFANA_URL plus GRAFANA_SERVICE_ACCOUNT_TOKEN.
Setup steps
- 01
Install uv
uv ships uvx: install with brew install uv or pipx install uv.
- 02
Open Add Server
Configuration → MCP Registry → Add Server in Cosmos.
- 03
Pick the Local MCP tab
- 04
Set the command
Command
uvx - 05
Add the arguments
Args
mcp-grafana - 06
Set environment variables
GRAFANA_URL
GRAFANA_URL=https://your-grafana-hostGRAFANA_SERVICE_ACCOUNT_TOKEN
GRAFANA_SERVICE_ACCOUNT_TOKEN=<glsa_token> - 07
Click Add, then enable
Toggle on Cosmos Agent or CLI.
Local command
Suggested name: grafana
uvx mcp-grafanaSet GRAFANA_URL to your Grafana or Grafana Cloud URL and GRAFANA_SERVICE_ACCOUNT_TOKEN to a scoped service account token.
Authentication
Service account token via env (GRAFANA_SERVICE_ACCOUNT_TOKEN).
| Variable | Example | Required |
|---|---|---|
| GRAFANA_URL | https://your-grafana-host | Yes |
| GRAFANA_SERVICE_ACCOUNT_TOKEN | <glsa_token> | Yes |