Grafana (local)
Two Official cards share the name Grafana. This page is the card whose description says it runs locally, for any Grafana instance. Willow starts Grafana's open source server on each person's computer with uvx mcp-grafana.
The other Official card is Grafana's hosted server at https://mcp.grafana.com/mcp. That server is Grafana Cloud only, and people sign in with OAuth. Use this card for self-managed Grafana, or for Grafana Cloud when each call should run as a service account. See Open source Grafana MCP server and Grafana Cloud MCP server.
This server is Local. Each person connects over STDIO. See Local MCP.
Before you start
On every computer that will use the server:
- uv, so
uvxis on the PATH.uvxrunsmcp-grafanawithout installing the binary yourself. See Install with uvx. - Node.js, so Willow's local client can start with
npx. - A Grafana instance that computer can reach. Grafana 9.0 or later is required for full functionality. Datasource tools can fail on earlier versions because those API endpoints are missing.
Service account token
The server authenticates with a service account token. By default, an organization administrator creates it. A service account works only in the organization where it was created. Calls run as that service account.
- In Grafana, open Administration → Users and access → Service accounts → Add service account.
- Enter a display name and click Create.
- Open the service account and assign a role with the role picker. The built-in Editor role covers most MCP operations. Use finer-grained permissions when you want less access. Grafana Incident reads need Viewer; writes need Editor. See Introduction.
- Click Add service account token, enter a name, optionally set an expiration, and click Generate token.
- Copy the token. People paste that token alone, with no
Bearerprefix.
Set up Willow
- Go to MCP Servers → + Add MCP server. Open the Grafana card with the Official badge that runs locally, and click + Use.
- Set Grafana URL to the instance base URL, such as
https://yourcompany.grafana.netorhttps://grafana.yourcompany.com. - Under Authentication, keep Personal API keys. Each person pastes a service account token when they connect. Willow sets
GRAFANA_SERVICE_ACCOUNT_TOKEN. - Assign groups and Publish.
Grafana leaves several tool categories off unless the server is started with --enabled-tools. This card runs uvx mcp-grafana with no extra arguments, so those categories stay off. See Configure.
Each person
- Confirm
uvxruns on that computer, and that the computer can open the Grafana URL. - On the MCP Servers page, open this server and click Use. Copy the STDIO configuration into the AI client. The first time they connect, they paste the service account token. The client runs
mcp-grafanalocally.
The token is sent to that computer with the rest of the server configuration. See Local MCP.
Troubleshooting
uvx is not found
Cause: uv is not installed, or uvx is not on the PATH.
Solution: Install uv and connect again.
Datasource tools fail
Cause: The Grafana instance is older than 9.0. Grafana says datasource operations can fail on earlier versions because API endpoints are missing.
Solution: Use Grafana 9.0 or later.
A call is denied
Cause: The service account does not have the RBAC permissions that tool needs.
Solution: Assign Editor, or the finer permissions for that tool, and connect again. The token stays bound to the organization where the service account was created.