Skip to content

Grafana MCP: alerts, annotations and weekly numbers

With Whenever's MCP server connected to Claude Code, Cursor or Codex, you can ask your agent for a Grafana job and have it built, tested and deployed as a workflow: a morning summary of firing alerts, a deploy annotation every time the main pipeline succeeds, a weekly sheet of latency figures. The deployed workflow reaches Grafana through Whenever's managed Grafana connection and runs on a schedule, on a webhook or on demand, without the chat.

No credit card needed.

Connect Whenever to Claude Code

claude mcp add --transport http whenever https://mcp.whenever.dev

Using Cursor, Codex or another client? See the setup for every client.

Grafana maintains an open-source MCP server, mcp-grafana, that lets an AI client search dashboards, query data sources and look at alerts during an investigation. Whenever's Grafana connection works through Grafana's API and through its MCP server, where the available tools and permissions support the job. The investigation happens in your chat; the summary that has to land every morning, and the annotation that has to be written on every deploy, run on Whenever.

Grafana's HTTP API covers dashboards, annotations, alert rules and the alerts currently firing, and it can run a query against a configured data source such as Prometheus through the same endpoint the dashboards use. A workflow authenticates with a service account token, and the token's role decides what it may do: Viewer is enough to read alerts and query data, while writing annotations needs Editor on the dashboards involved.

Grafana Cloud stacks are reachable over the internet; a self-hosted Grafana must be reachable from Whenever for a workflow to call it. Name the stack URL, the data source, the dashboard and the exact query in your brief, such as the p95 of http_request_duration_seconds for one service, so the weekly figures match what your dashboard shows. Figures should come from the query, not from an AI summary.

Grafana jobs to ask your agent for

Starter briefs to configure with your accounts, not preconfigured workflows.

Morning summary of firing alerts

Reads what is firing right now and posts one grouped message.

Build this workflow

Annotate dashboards on every deploy

A pipeline webhook that marks each deploy on the service dashboard.

Build this workflow

Weekly latency figures in a sheet

Runs one fixed query per day of the week and writes the numbers down.

Build this workflow

Grafana MCP FAQs

Is Whenever the official Grafana MCP server?

No. Whenever is not affiliated with Grafana and is not its MCP server. Whenever's MCP server lets your coding agent build, test and deploy workflows. Each workflow reaches Grafana through Whenever's managed Grafana connection. Grafana has its own MCP server for working with your data in a chat.

Does the Grafana workflow keep running after I close the chat?

Yes. Once deployed, it runs on Whenever on its schedule, webhook or when you start it. No chat open, laptop closed. Connection requirements, Grafana permissions and any AI usage still apply.

What role does the Grafana service account need?

Viewer to read alerts and run queries. Creating annotations needs Editor on the dashboards the workflow writes to. Give the token the lowest role its job uses.

Does it work with self-hosted Grafana?

Yes, if the Grafana instance is reachable from the internet so the workflow can call its API. Grafana Cloud stacks work without extra network setup.

More about Grafana on Whenever