# Grafana MCP server > Search dashboards, query data sources, list alert rules; add annotations in Grafana. A hosted remote MCP server by usefulapi.io, an independent service (not affiliated with Grafana). - Server URL: https://grafana.usefulapi.io/mcp - Transport: Streamable HTTP, OAuth sign-in - Status: live - Page: https://usefulapi.io/grafana/ ## Connect - Claude (claude.ai, Desktop): Customize → Connectors → Add custom connector, name Grafana, URL https://grafana.usefulapi.io/mcp. Prefilled dialog: https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=Grafana&connectorUrl=https%3A%2F%2Fgrafana.usefulapi.io%2Fmcp - Claude Code: `claude mcp add --transport http grafana https://grafana.usefulapi.io/mcp`, then run `/mcp` to log in. As a plugin: `claude plugin marketplace add https://usefulapi.io/claude/marketplace.json`, then `claude plugin install grafana@usefulapi`. - Codex: `codex mcp add grafana --url https://grafana.usefulapi.io/mcp`, then `codex mcp login grafana`. - ChatGPT: Plugins → Add custom MCP server, authentication OAuth. - Perplexity (Pro, Max, Enterprise): Plugins → Add custom → Add MCP connector → Remote, URL https://grafana.usefulapi.io/mcp, Advanced: OAuth, Streamable HTTP. - Cursor, VS Code and other MCP clients: add the URL as a remote MCP server. Add only the URL. Do not add an `Authorization` header or an API key to the client config. The server signs you in with OAuth: the login page asks for your **Grafana Cloud stack name** and **Service account token**. If the config has such a header, remove it: some clients then send that header instead of the login token, and every call fails with 401. ## Before you connect Stack name: the part before **.grafana.net** in your Grafana address. Token: create it in your stack under **Administration → Users and access → Service accounts**, then **Add token**. The token is used only to call the API for you; it is never shown to anyone. Self-hosted Grafana is not supported yet. ## Example requests - Which of our dashboards mention the checkout service? - Show the CPU panel data for the api-gateway dashboard for the last 6 hours. - Which alert rules are in the production folder? - Add an annotation 'deploy v2.3' to the API dashboard now. ## Pricing - Free: $0, 50 tool calls / month - Pro: $9/mo · $90/yr per user, 10,000 tool calls / month - Pro+: $39/mo · $390/yr per user, 100,000 tool calls / month Each paid plan covers this Grafana server only. ## Tools (17) ### Read only (12) - `grafana_get_current_user`: Get the signed-in user. Return the user or service account behind the token: id, login, name, the current orgId and the Grafana admin flag. Use it to check which token is in use. - `grafana_get_current_org`: Get the current organization. Return the organization the token belongs to: id, name and address. - `grafana_search`: Search dashboards and folders. Search dashboards and folders by title, tag or folder. Each result has uid, title, type, url and folderUid. Good first call to find a dashboard uid. - `grafana_get_dashboard`: Get a dashboard. Return one dashboard by uid: its JSON model (panels, queries, variables) and metadata (version, folder, updated). Large dashboards return a large result. - `grafana_list_folders`: List folders. List dashboard folders: uid, title and url. Use parent\_uid to list nested folders. - `grafana_list_datasources`: List data sources. List the data sources of the stack: uid, name, type (for example prometheus or loki) and default flag. Use a uid with grafana\_query\_data. - `grafana_get_datasource`: Get a data source. Return one data source by uid: name, type, url and settings (secrets are not returned). - `grafana_query_data`: Query data sources. Run one or more queries against data sources (metrics, logs, traces) and return the frames. Each query names its datasource uid and the query text for that type, for example {refId, datasource:{uid}, expr} for Prometheus. - `grafana_list_org_users`: List organization users. List users and their roles in the current organization. Filter by text with query. - `grafana_list_teams`: Search teams. Search teams by name: id, uid, name, memberCount and email. - `grafana_list_annotations`: List annotations. List annotations (events on graphs) in a time range, optionally for one dashboard or tag. Times are epoch ms. - `grafana_list_alert_rules`: List alert rules. List all alert rules of the stack with uid, title, folder, rule group, condition and labels. ### Changes data (1) - `grafana_create_annotation`: Create an annotation. Add an event to a dashboard or to the stack: text, time, optional end time, tags and an optional dashboard uid and panel id. Writes data. ### Your usefulapi plan (4) - `grafana_usage_status`: Usage status (free-tier meter). Report the caller's current usage: the plan, calls used this month, the limit of the plan (the free monthly cap or the Pro fair use limit), remaining, and whether the limit is reached. Read-only; does not count against the meter. - `grafana_request_feature`: Request a missing feature. Tell usefulapi that the user needs something the Grafana tools cannot do yet (a missing tool, field or filter). Call it only when the user asks for something none of the tools can do, and tell the user that you send the request. Do not call it for errors or for normal requests. Do not include personal data, credentials or customer records. Stored with the product name and the client type (for example Claude or Cursor), without the user's account. At most 5 requests per day. Does not count against the meter. - `grafana_upgrade`: Upgrade to Pro or Pro+. Get a paid plan for Grafana (the free tier caps monthly usage). Pro: 10,000 tool calls a month, for normal use — plan "monthly" ($9/month) or "yearly" ($90/year, 2 months free). Pro+: 100,000 tool calls a month, for automations and heavy use — plan "plus" ($39/month) or "plus\_yearly" ($390/year). Without a plan, a free account gets both Pro and Pro+, each with a payment link, for the user to choose, and a Pro subscriber gets the Pro+ link; with a plan, one link. An existing Pro subscription changes to Pro+ in place: the reply gives a link to Stripe's page, which shows the exact charge (the price difference for the rest of the period; in a free Pro trial the full Pro+ price, as the trial ends) and changes the plan only when the user confirms there. This tool never charges. Cancel any time: the plan then runs to the end of the paid period, so it also suits a one-time job. A link opens Stripe Checkout in the browser; after payment the account upgrades automatically. Does not count against the meter. - `grafana_cancel_subscription`: Cancel the Pro subscription. Cancel the caller's Grafana Pro subscription at the end of the paid period (no refund for the current period; Pro continues until then, then the free tier applies). Requires confirm: true. Run grafana\_upgrade later to undo the cancel before the period ends. Does not count against the meter. ## FAQ ### What can I do with Grafana in Claude or ChatGPT? Find a dashboard and read its panels. Run a metrics or log query. Review alert rules by folder. Add a deploy marker to a dashboard. Check the token owner and team members. See [what you can do](https://usefulapi.io/grafana/#uses) for the details. ### Is this an official Grafana product? No. usefulapi is an independent service. It is not affiliated with or endorsed by Grafana. The server calls the Grafana API with your own Grafana access, so it sees only the data that your account can see. ### Can I connect Grafana to Claude or ChatGPT? Yes. In Claude, add this server's URL as a custom connector. In ChatGPT, add it as a custom MCP server in Plugins. Then log in once. Cursor, VS Code, Claude Code and Codex work too. See [the setup steps](https://usefulapi.io/grafana/#connect). ### What do I need to connect? The login page asks for your **Grafana Cloud stack name** and **Service account token**. See [Before you connect](https://usefulapi.io/grafana/#setup) for where to find them. ### Do I put my Grafana key or an Authorization header in the client config? No. Add only the URL. Do not add an `Authorization` header or an API key to the client config. The server signs you in with OAuth: the login page asks for your **Grafana Cloud stack name** and **Service account token**. If the config has such a header, remove it: some clients then send that header instead of the login token, and every call fails with 401. ### How do you keep my Grafana credentials? The login stores them encrypted in the authorization grant of your connection. The server uses them to call the Grafana API for you and to derive a private account id for usage metering. usefulapi does not show them on any page or in any reply. To stop all access, remove the connector and change or delete these credentials in Grafana. ### Can the AI change my Grafana data? Yes, if you approve it. 1 of the 13 Grafana tools can create or change data. The other 12 are marked read-only. Most MCP clients ask you to approve a tool call before it runs. ### What does it cost? The Free plan gives 50 tool calls / month. Pro costs $9/mo or $90/yr, with 10,000 tool calls / month. Pro+ costs $39/mo or $390/yr, with 100,000 tool calls / month. Each subscription covers this Grafana server only. Cancel any time: your paid plan then runs to the end of the paid period. Run `grafana_usage_status` to see how many calls you used. ### How do I subscribe or cancel? Ask the AI to run `grafana_upgrade` and choose Pro or Pro+, billed monthly or yearly: it returns a Stripe Checkout link. If you already have Pro, ask to change it to Pro+. After you confirm, your existing subscription changes in place, keeps its billing interval and charges the price difference for the rest of the period immediately. To cancel, run `grafana_cancel_subscription`. Your paid plan continues to the end of the paid period. ### What if a Grafana tool that I need is missing? Tell the AI what you wanted to do. It can send the request with `grafana_request_feature`. We store the text with the server name, the type of AI client and the tool you tried, not with your account, and read every request when we plan new tools. You can send up to 5 requests per day. ### Which AI clients can I use? Any client that supports remote MCP servers (Streamable HTTP) with OAuth login: Claude (web and desktop), Claude Code, ChatGPT, Codex, Perplexity, Cursor, VS Code, Windsurf and others. ## Links - [Grafana MCP server page](https://usefulapi.io/grafana/) - [All servers](https://usefulapi.io/llms.txt) - [Terms of Service](https://usefulapi.io/terms/) - [Privacy Policy](https://usefulapi.io/privacy/) - Support: support@usefulapi.io