Skip to main content
Glama
ninanung
by ninanung

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
GRAFANA_URLNoGrafana server URL (single-instance mode, required when GRAFANA_INSTANCES is unset)
GRAFANA_ORG_IDNoSent as X-Grafana-Org-Id header. For multi-org setups.
GRAFANA_MCP_LOGNoLog level: debug, info (default), warn, error, silent. Logs go to stderr to avoid corrupting the MCP stdio channel.
GRAFANA_INSTANCESNoJSON 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_CACHENoSet to off to disable the on-disk log cache.
GRAFANA_MCP_AUDIT_LOGNoAudit 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_PATHNoLog cache file path. Defaults to ~/.grafana-mcp/log-cache.json.
GRAFANA_TLS_SKIP_VERIFYNotrue / 1 to skip TLS verification (self-signed Grafana).
GRAFANA_MCP_CACHE_TTL_LABELS_MSNoTTL for the Loki label-key cache. Default 86400000 (24h).
GRAFANA_MCP_CACHE_TTL_SERVICE_MSNoTTL for the {service → (ds_uid, label)} resolution cache. Default 3600000 (1h).
GRAFANA_MCP_CACHE_TTL_DATASOURCES_MSNoTTL for the log-datasource list cache. Default 86400000 (24h).
GRAFANA_MCP_CACHE_TTL_LABEL_VALUES_MSNoTTL for the Loki label-value cache. Default 3600000 (1h).

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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