Enterprise DNA
M MCP Servers Developer low

incu6us/loki-mcp-server

by Various

An MCP server for querying Grafana Loki directly with a discovery-first workflow — labels, values, series, and LogQL queries without requiring Grafana.

I

MCP

incu6us/loki-mcp-server

Added 1 June 2026

Overview

An MCP server that queries Grafana Loki directly. It supports discovering labels, values, series, and running LogQL queries without requiring a Grafana instance.

Best for

Best for
Developers using MCP-based AI tools who need direct, code-driven access to Loki logs

Use cases

  • Explore Loki labels and values during incident investigation
  • Run LogQL queries programmatically from an MCP client
  • Integrate Loki log data into an AI assistant's context for debugging

How to use

Install

go install github.com/incu6us/loki-mcp-server/cmd/loki-mcp-server@latest

Tools exposed

  • query_range
  • query
  • labels
  • label_values
  • series

Tested with

Claude Code, Claude Desktop

Example client config

{\n  "mcpServers": {\n    "loki-mcp-server": {\n      "type": "stdio",\n      "command": "/path/to/loki-mcp-server",\n      "args": [],\n      "env": {\n        "LOKI_URL": "http://loki:3100",\n        "LOKI_USERNAME": "admin",\n        "LOKI_PASSWORD": "secret"\n      }\n    }\n  }\n}

Notes

An MCP server that queries Grafana Loki directly. It supports discovering labels, values, series, and running LogQL queries without requiring a Grafana instance.

3 stars on GitHub. Last updated 2026-03-25. Licensed MIT.

Use cases

  • Explore Loki labels and values during incident investigation
  • Run LogQL queries programmatically from an MCP client
  • Integrate Loki log data into an AI assistant’s context for debugging

Pros

  • Works without Grafana, reducing external dependencies
  • Written in Go for efficient execution
  • Follows the MCP standard for easy integration with compatible clients

Cons

  • Low star count (3) indicates early-stage or limited adoption
  • Requires an MCP-enabled client, narrowing the audience
  • No built-in visualization; results are text-only

Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.

Pros

  • Works without Grafana, reducing external dependencies
  • Written in Go for efficient execution
  • Follows the MCP standard for easy integration with compatible clients

Cons

  • Low star count (3) indicates early-stage or limited adoption
  • Requires an MCP-enabled client, narrowing the audience
  • No built-in visualization; results are text-only
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