AITeamGuide Hub · MCP server
Grafana MCP
Grafana's MCP server for searching dashboards, querying metrics and logs and looking at incidents.
MCP server★ 3.7k starsArchived on GitHubApache-2.0Ops & IT
Short answer: how to install Grafana MCP
Grafana MCP is an Apache-2.0-licensed, open-source MCP server on GitHub (grafana/mcp-grafana) with 3,726 stars as of December 2, 2026. Its last push was on December 2, 2026. To install it in Claude Code, run claude mcp add --transport stdio grafana --env GRAFANA_URL=http://localhost:3000 --env GRAFANA_SERVICE_ACCOUNT_TOKEN='<your service account token>' -- uvx mcp-grafana. Replace the placeholder API keys or tokens with your own. It works with Any MCP client, Claude Code, Cursor; steps for each are below.
Key facts
- Type
- MCP server
- Jobs it fits
- Investigate outages and alerts
- Fields
- Ops & IT
- Works with
- Any MCP client, Claude Code, Cursor
- GitHub
- grafana/mcp-grafana
- Licence
- Apache-2.0
- Stars
- 3,726 as of December 2, 2026
- Last updated
- December 2, 2026 (last push to GitHub)
- Author
- @grafana
- Submitted by
- @aiteamguide
- Added to the Hub
- October 21, 2026
Install / Use it
Apache-2.0Local MCP server
Cursor
Replace the placeholder values (API keys, tokens) with your own after adding it.
Or paste into ~/.cursor/mcp.json
{
"mcpServers": {
"grafana": {
"command": "uvx",
"args": [
"mcp-grafana"
],
"env": {
"GRAFANA_URL": "http://localhost:3000",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your service account token>"
}
}
}
}Claude Code
Run in your terminal
claude mcp add --transport stdio grafana --env GRAFANA_URL=http://localhost:3000 --env GRAFANA_SERVICE_ACCOUNT_TOKEN='<your service account token>' -- uvx mcp-grafanaReplace the placeholder values (API keys, tokens) with your own after adding it.
Claude Desktop
Add to claude_desktop_config.json (Settings → Developer → Edit Config), then restart Claude
{
"mcpServers": {
"grafana": {
"command": "uvx",
"args": [
"mcp-grafana"
],
"env": {
"GRAFANA_URL": "http://localhost:3000",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "<your service account token>"
}
}
}
}Replace the placeholder values (API keys, tokens) with your own after adding it.
VS Code
Replace the placeholder values (API keys, tokens) with your own after adding it.
Or from the command line
code --add-mcp '{"name":"grafana","type":"stdio","command":"uvx","args":["mcp-grafana"],"env":{"GRAFANA_URL":"http://localhost:3000","GRAFANA_SERVICE_ACCOUNT_TOKEN":"<your service account token>"}}'Codex
Run in your terminal
codex mcp add grafana --env GRAFANA_URL=http://localhost:3000 --env GRAFANA_SERVICE_ACCOUNT_TOKEN='<your service account token>' -- uvx mcp-grafanaReplace the placeholder values (API keys, tokens) with your own after adding it.
Safety: Runs code from a third-party repo. Review the source and the permissions before installing.
Commands and configs are taken from the project's README and re-wrapped in each app's documented format. If they differ, the README wins.
How to add MCP servers in your app, step by step: Claude Code · Cursor · VS Code · Claude Desktop · Codex · Gemini CLI · Copilot CLI · OpenCode · Cline · Roo Code · Kilo Code · Zed · LM Studio · Antigravity · Windsurf · Hermes Agent · ChatGPT.
FAQ
How do I add Grafana MCP to Claude Code?
Run claude mcp add --transport stdio grafana --env GRAFANA_URL=http://localhost:3000 --env GRAFANA_SERVICE_ACCOUNT_TOKEN='<your service account token>' -- uvx mcp-grafana in your terminal.
How do I add Grafana MCP to Codex?
Run codex mcp add grafana --env GRAFANA_URL=http://localhost:3000 --env GRAFANA_SERVICE_ACCOUNT_TOKEN='<your service account token>' -- uvx mcp-grafana in your terminal.
How do I add Grafana MCP to Cursor?
Use the Add to Cursor button in the install panel on this page, or paste this entry under mcpServers in ~/.cursor/mcp.json: {"grafana":{"command":"uvx","args":["mcp-grafana"],"env":{"GRAFANA_URL":"http://localhost:3000","GRAFANA_SERVICE_ACCOUNT_TOKEN":"<your service account token>"}}}.
Does Grafana MCP need an API key?
Yes. The README's setup passes GRAFANA_SERVICE_ACCOUNT_TOKEN as environment variable; replace the placeholder value with your own.
Is Grafana MCP free?
The code is open source under the Apache-2.0 licence, so it's free to use. Any account or API key the connected service needs is billed by that service, not by the project; see the README.
Is Grafana MCP still maintained?
Its last push to GitHub was on December 2, 2026, and it had 3,726 stars as of December 2, 2026. We re-check GitHub daily.
Get new open-source AI tools like Grafana MCP in one weekly email
One email a week: new open-source agents, skills, MCP servers and playbooks from the Hub, plus AI agent price changes and new free plans. Free; unsubscribe anytime.
Free, no signup needed: the AI agent pricing cheat sheet, the cheapest listed plan for every job on one printable page.
More from the Hub
-
Agent
n8n
A fair-code workflow automation tool with AI agent steps and hundreds of integrations; self-host or use their cloud.
Ops & IT · Sales★ 213k
-
Agent
AutoGPT Platform
A platform for building, deploying and running agents that automate multi-step workflows, from the team behind the original AutoGPT.
Ops & IT · Marketing★ 188k
-
MCP server
Playwright MCP
Microsoft's MCP server that lets an assistant drive a browser through Playwright using the page's accessibility tree.
Software development · Ops & IT★ 40k
-
MCP server
AWS MCP servers
AWS Labs' collection of MCP servers for AWS docs, costs, infrastructure, databases and more.
Ops & IT · Software development★ 10k
Summary written by AITeamGuide in our own words. GitHub numbers come from the public GitHub API and refresh daily. Maintainer and want a correction or removal? Tell us. Got something similar? Submit it to the Hub.