# Grafana

**Type:** Official

**Source Type:** Repository

**Source:** [GitHub](https://github.com/grafana/mcp-grafana)

**Description:** Grafana MCP server provides AI assistants with access to your Grafana instance. It enables querying dashboards, panels, datasources, alerts, and folder structures.

**Configuration Parameters:**

* **Grafana URL** \* - Grafana base URL (e.g. `https://myinstance.grafana.net` or `http://localhost:3000`).
* **Grafana Service Account Token** (sensitive) (optional) - Recommended. Generated in **Administration → Service accounts**.
* **Grafana Username** (optional) - Use only if you can't create a service account; pair with **Grafana Password**.
* **Grafana Password** (sensitive) (optional) - Use with **Grafana Username** as a fallback to service-account auth.
* **Grafana Org ID** (optional) - Optional. Set for multi-org Grafana instances.

**Setup Steps:**

1. Log in to Grafana.
2. Navigate to **Administration → Service accounts → Add service account** and assign the lowest role you need (`Viewer` for read-only).
3. Open the new service account and click **Add service account token** — copy the token.
4. When creating the connection in Natoma, paste the URL and token and save. (Or fall back to username/password if you can't create a service account.)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.natoma.ai/apps/grafana.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
