Grafana MCP Server config
Add this to your MCP client's config, or use the install line.
Part of Grafana MCP Server by Admin
claude mcp add-json grafana '{"command":"uvx","args":["mcp-grafana"],"env":{"GRAFANA_URL":"http://localhost:3000","GRAFANA_SERVICE_ACCOUNT_TOKEN":"YOUR-SERVICE-ACCOUNT-TOKEN"}}'
Check it before you connect it. An MCP server runs with your permissions. Replace placeholder keys with your own and never share them.
{
"mcpServers": {
"grafana": {
"command": "uvx",
"args": [
"mcp-grafana"
],
"env": {
"GRAFANA_URL": "http://localhost:3000",
"GRAFANA_SERVICE_ACCOUNT_TOKEN": "YOUR-SERVICE-ACCOUNT-TOKEN"
}
}
}
}