igorolv/loki-mcp-server
by Various
Read-only MCP server for Grafana Loki: lets AI agents (Claude Code, Cursor, Copilot) discover labels, read bounded LogQL pages, count lines by label or time, and export logs — acro
MCP
igorolv/loki-mcp-server
Added 8 Oct 2026
Overview
Read-only MCP server for Grafana Loki that lets AI agents like Claude Code, Cursor, and Copilot discover labels, read bounded LogQL pages, count lines by label or time, and export logs across several Loki stands. It is written in Java and exposes these capabilities through the Model Context Protocol.
Best for
Best for
Developers using AI agents to query and analyze Grafana Loki logs read-only.
Use cases
- Discover available labels in a Loki instance
- Read bounded LogQL query results for log analysis
- Count log lines by label or time range
How to use
Tested with
Claude Code
Notes
Read-only MCP server for Grafana Loki that lets AI agents like Claude Code, Cursor, and Copilot discover labels, read bounded LogQL pages, count lines by label or time, and export logs across several Loki stands. It is written in Java and exposes these capabilities through the Model Context Protocol.
0 stars on GitHub. Last updated 2026-10-01. Licensed Apache-2.0.
Use cases
- Discover available labels in a Loki instance
- Read bounded LogQL query results for log analysis
- Count log lines by label or time range
Pros
- Read-only design reduces risk of accidental mutations
- Works with multiple AI agent tools
- Supports bounded queries to avoid unbounded log scans
Cons
- No write or mutation operations
- Requires Java runtime
- No public stars yet, suggesting limited community adoption
Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.
Pros
- Read-only design reduces risk of accidental mutations
- Works with multiple AI agent tools
- Supports bounded queries to avoid unbounded log scans
Cons
- No write or mutation operations
- Requires Java runtime
- No public stars yet, suggesting limited community adoption
Get the free Developer’s Field Guide
A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.
Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.
