loki-mcp-server
loki-mcp-server is an MCP server, listed under cloud & infrastructure. It reaches grafana and loki. It needs LOKI_PASSWORD to authenticate. Its repository has 7 GitHub stars and is licensed under MIT; we last read it on 2026-10-22.
This server allows direct querying of Grafana Loki using a discovery-first workflow, including labels, values, series, and LogQL queries, without needing Grafana.
Install
Read from loki-mcp-server’s own README, close to verbatim -- not written by us, and not guessed.
LOKI_URL=http://loki:3100 MCP_HTTP_ADDR=:8080 loki-mcp-server
What it reaches, and what it needs
Maintenance
An MCP server for querying Grafana Loki directly with a discovery-first workflow — labels, values, series, and LogQL queries without requiring Grafana.
loki-mcp-server compared with similar servers
| Server | Reaches | Needs | Stars | Last update | Licence |
|---|---|---|---|---|---|
| loki-mcp-server (this page) | grafana, loki | LOKI_PASSWORD | 7 | 2026-09-11 | MIT |
| loki-mcp | grafana, loki(2 shared) | LOKI_PASSWORD, LOKI_TOKEN | 176 | 2026-10-23 | — |
| grafana-loki-mcp | grafana(1 shared) | GRAFANA_API_KEY | 29 | 2026-01-05 | MIT |
| memora | cloudflare, memora, openai | CLOUDFLARE_API_TOKEN, MEMORA_EMBEDDING_API_KEY, OPENAI_API_KEY | 744 | 2026-10-24 | MIT |
| mcp-for-argocd | argocd | ARGOCD_API_TOKEN, MCP_AUTH_TOKEN | 596 | 2026-10-16 | Apache-2.0 |
| prometheus-mcp-server | prometheus | PROMETHEUS_PASSWORD | 519 | 2026-10-19 | MIT |
Ranked by services in common with loki-mcp-server, then by stars. Figures are from each repository when we last read it.
Common questions about loki-mcp-server
- What does loki-mcp-server do?
- This server allows direct querying of Grafana Loki using a discovery-first workflow, including labels, values, series, and LogQL queries, without needing Grafana.
- How do I install loki-mcp-server?
- Its own README gives this command: LOKI_URL=http://loki:3100 MCP_HTTP_ADDR=:8080 loki-mcp-server. Run it where your MCP client can launch the server, and check the README for any settings it asks for.
- What does loki-mcp-server connect to, and what does it need?
- It reaches grafana and loki. The credentials we found in its source are LOKI_PASSWORD.
- Is loki-mcp-server official and is it maintained?
- We found nothing naming it as a vendor’s official server. Its repository has 7 GitHub stars and its state in our directory is listed. Its last commit we recorded was on 2026-09-11.
- What licence does loki-mcp-server use?
- The repository declares the MIT licence.
More MCP servers for cloud & infrastructure
- memora744 stars
- mcp-for-argocd596 stars
- prometheus-mcp-server519 stars
- agenticmail239 stars
- opik-mcp225 stars
- loki-mcp176 stars