A Model Context Protocol (MCP) server for Grafana
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"grafana": {
"env": {
"GRAFANA_HOST": "https://your-grafana-instance.com",
"GRAFANA_API_KEY": "your-grafana-api-key-here",
"GRAFANA_SSL_VERIFY": "true"
},
"args": [
"run",
"--rm",
"-i",
"-e",
"GRAFANA_HOST",
"-e",
"GRAFANA_API_KEY",
"-e",
"GRAFANA_SSL_VERIFY",
"drdroidlab/grafana-mcp-server",
"-t",
"stdio"
],
"command": "docker"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
The following tools are available via the MCP server:
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in analytics / devops
MCP server for using the GitLab API
MCP Server for GCP environment for interacting with various Observability APIs.
⚡ A Simple / Speedy / Secure Link Shortener with Analytics, 100% run on Cloudflare.
Enhanced MCP server for GitLab: group projects listing and activity tracking
MCP Security Weekly
Get CVE alerts and security updates for Grafana Mcp Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
The following tools are available via the MCP server:
glsa_)uv venv .venv
source .venv/bin/activate
uv sync
uv run -m src.grafana_mcp_server.mcp_server
uv to run any other entrypoint scripts as needed.config.yaml is in the same directory as mcp_server.py or set the required environment variables (see Configuration section).grafana-mcp-server/src/grafana_mcp_server/config.yaml with your Grafana details (host, API key).docker compose up -d
The server loads configuration in the following order of precedence:
GRAFANA_HOST: Grafana instance URL (e.g. https://your-grafana-instance.com)GRAFANA_API_KEY: Grafana Service Account Token (required)GRAFANA_SSL_VERIFY: true or false (default: true)MCP_SERVER_PORT: Port to run the server on (default: 8000)MCP_SERVER_DEBUG: true or false (default: true)config.yaml):
grafana:
host: "https://your-grafana-instance.com"
api_key: "your-grafana-api-key-here"
ssl_verify: "true"
server:
port: 8000
debug: true
You can integrate this MCP server with any tool that supports the MCP protocol. Here are the main options: