Grafana MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| GRAFANA_URL | Yes | Your Grafana instance URL (e.g., https://grafana.example.com). | |
| GRAFANA_API_KEY | Yes | API key with read access to Loki. Can be set in the environment (e.g., export GRAFANA_API_KEY="your_grafana_api_key"). |
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
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_logsC | Search Grafana Loki logs using LogQL query language. Returns log entries matching the query within the specified time range. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 1 tool
With only a single tool exposed, there is no possibility of tool confusion or misselection. The one tool has a clear, specific purpose (LogQL log search).
The single name search_logs follows a clear verb_noun snake_case convention, which is a good choice for a Grafana tool. Consistency cannot be fully demonstrated with only one tool, so it falls short of a 5.
A single tool is far too thin for a server branded as a general 'Grafana MCP Server', which implies dashboards, alerts, datasources, and metrics. One narrowly scoped log-search tool does not earn the server's stated scope.
The surface covers only log search; there is no way to list or query dashboards, Prometheus metrics, alerts, or datasources. Even within logs, there is no metadata/discovery tool, leaving agents with dead ends for most Grafana workflows.