Enterprise DNA Enterprise DNA
M MCP Servers Developer low

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

#ai-agents #claude-code #grafana-loki #java #llm-tools #logql #logs #loki

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
Free 27-page guide

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.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks