grafana-mcp
by ninanung
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GRAFANA_URL | No | Grafana server URL (single-instance mode, required when GRAFANA_INSTANCES is unset) | |
| GRAFANA_ORG_ID | No | Sent as X-Grafana-Org-Id header. For multi-org setups. | |
| GRAFANA_MCP_LOG | No | Log level: debug, info (default), warn, error, silent. Logs go to stderr to avoid corrupting the MCP stdio channel. | |
| GRAFANA_INSTANCES | No | JSON array for multi-instance mode. Example: [{"name":"prod","url":"...","service_account_token":"..."},{"name":"dev","url":"...","api_key":"..."}]. When set, pass instance: "prod" on any tool call to pick the target. Falls back to the first entry if omitted. | |
| GRAFANA_MCP_CACHE | No | Set to off to disable the on-disk log cache. | |
| GRAFANA_MCP_AUDIT_LOG | No | Audit log file path. Defaults to ~/.grafana-mcp/audit.log. Set to off to disable. Each line is a JSON record with tool name, args, duration, status. | |
| GRAFANA_MCP_CACHE_PATH | No | Log cache file path. Defaults to ~/.grafana-mcp/log-cache.json. | |
| GRAFANA_TLS_SKIP_VERIFY | No | true / 1 to skip TLS verification (self-signed Grafana). | |
| GRAFANA_MCP_CACHE_TTL_LABELS_MS | No | TTL for the Loki label-key cache. Default 86400000 (24h). | |
| GRAFANA_MCP_CACHE_TTL_SERVICE_MS | No | TTL for the {service → (ds_uid, label)} resolution cache. Default 3600000 (1h). | |
| GRAFANA_MCP_CACHE_TTL_DATASOURCES_MS | No | TTL for the log-datasource list cache. Default 86400000 (24h). | |
| GRAFANA_MCP_CACHE_TTL_LABEL_VALUES_MS | No | TTL for the Loki label-value cache. Default 3600000 (1h). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ninanung/grafana-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server