Set up the Grafana MCP server
The Grafana Cloud MCP server gives agents access to your whole observability stack — dashboards, Prometheus metrics, Loki logs, Pyroscope profiles, alerting, incidents, and OnCall. This guide covers connecting it to MintMCP using per-user OAuth.
Prerequisites
- A MintMCP admin account
- A Grafana Cloud account and your instance URL (e.g.
https://<instance>.grafana.net) - Connecting users need the Assistant Cloud MCP User role (or the
grafana-assistant-app.cloud-mcp:accesspermission) and must have accepted the Grafana Assistant terms
Add Grafana to MintMCP
Grafana is pre-listed as a recommended server in the MintMCP MCP store. Each team member authorizes with their own Grafana Cloud account through per-user OAuth. Grafana's MCP server supports dynamic client registration, so MintMCP registers automatically.
- In MintMCP, go to MCP store > Manage store.
- Find Grafana in the recommended servers list.
- Click Install.
Connect as a user
The first time a user connects, Grafana asks for the Grafana Cloud instance URL, then shows a consent page with two permission levels:
- Read — view dashboards, alerts, and incidents, and query data sources. Always available.
- Write — create and modify dashboards, alerts, incidents, and Assistant investigations. Optional; if left unchecked, write tools stay unavailable for that user. Organization admins can grant write access by default; other users need the Assistant Admin role.
What the connector exposes
| Area | What users can do |
|---|---|
| Dashboards and navigation | Search dashboards and folders, retrieve and update dashboards, create folders, generate deeplinks |
| Metrics | Run Prometheus queries, discover metrics and explore labels |
| Logs | Run Loki queries, detect log patterns, get statistics |
| Profiling | Query Pyroscope profiling data |
| Data sources | List and inspect data source configurations, run ClickHouse SQL queries, fetch AWS CloudWatch metrics |
| Alerting | Manage alert rules and notification routing |
| Incident response | Create and track incidents, manage OnCall schedules and shifts |
| Investigations | Create and inspect Grafana Assistant investigations |
| Rendering | Export panel images and infrastructure summaries |
Security considerations
- Every request runs as the signed-in Grafana Cloud user, so existing RBAC roles and data source permissions apply unchanged, and MintMCP's audit log attributes each tool call to that user.
- Keep the write scope unchecked for users who only need to query and explore. Write access can modify production dashboards and alert rules.
- OAuth tokens expire after 30 days, after which users re-authorize — a stolen token has a bounded lifetime.
- Use tool customization to expose read-only tools to roles that shouldn't be editing dashboards or alerts.
Troubleshooting
- Authorization fails or access is denied — Confirm the user has the Assistant Cloud MCP User role (or the
grafana-assistant-app.cloud-mcp:accesspermission) and has accepted the Grafana Assistant terms in their Grafana Cloud instance. - Write tools are missing — The user left the write scope unchecked at consent, or lacks the rights to grant it (org admin or Assistant Admin role). Reconnect and check write access.
- Connection stops working after a month — Grafana Cloud MCP tokens expire after 30 days. Reconnect to re-authorize.
- Self-hosted Grafana — The hosted server at
mcp.grafana.comworks with Grafana Cloud only. For an instance you run yourself, see Set up the Grafana MCP server (self-hosted).
Next steps
- Tool customization — Control which Grafana tools are exposed to users
- MCP gateway administration — Manage access and permissions