Monitoring · Developer Tools

Loki MCP Server logo

Loki MCP Server

ghrud92/simple-loki-mcp

Loki MCP Server is a Model Context Protocol (MCP) interface for querying Grafana Loki logs using logcli. The server enables AI assistants to access and analyze log data from Loki directly.

Install

npx -y simple-loki-mcp

Client configuration

{
  "mcpServers": {
    "simple-loki": {
      "command": "npx",
      "args": [
        "-y",
        "simple-loki-mcp"
      ],
      "env": {
        "LOKI_ADDR": "<LOKI_ADDR>"
      }
    }
  }
}

Environment variables

LOKI_ADDR
Author
@ghrud92
Category
Monitoring, Developer Tools
License
MIT
Updated
Oct 6, 2026

Features

  • Query Loki logs with full LogQL support

  • Get label values and metadata

  • Authentication and configuration support via environment variables or config files

  • Provides formatted results in different output formats (default, raw, JSON lines)

  • Automatic fallback to HTTP API when logcli is not available in the environment

Tools (3)

  • query-loki

    Query logs from Loki with filtering options.

  • get-label-values

    Retrieve all values for a specific label.

  • get-labels

    Retrieve all available labels.

Details on this page are taken from the project's README. Open README

Supported clients

Clients mentioned in this server's README:

View all
Claude Desktop logo

Claude Desktop

Desktop · Freemium · Proprietary

Anthropic's official Claude AI desktop application. Supports MCP servers to extend functionality.

WindowsMacOS

Related MCP servers

More servers
2344 logo

2344

comet-ml/opik

7k

Opik is the open-source LLM observability and evaluation platform for AI agent tracing, LLM evaluation, prompt management, and production monitoring. Built by Comet. Apache-2.0 licensed, free to self-host the full platform, with 20,000+ GitHub stars.

Monitoring
MCP Grafana logo

MCP Grafana

grafana/mcp-grafana

612

A Model Context Protocol (MCP) server for Grafana.

Monitoring
Vite Plugin Vue MCP logo

Vite Plugin Vue MCP

webfansplz/vite-plugin-vue-mcp

407

Vite plugin that enables a MCP server for your Vue app to provide information about the component tree, state, routes, and pinia tree and state.

Monitoring
api200 logo

api200

API-200/api200

169

API 200 is all-in-one gateway for managing third-party APIs efficiently. Integrate third-party APIs or setup MCP server in minutes with auto-generated code, docs, auth, caching and error handling – so you can focus on what really matters.

Monitoring
WireMCP (Wireshark) logo

WireMCP (Wireshark)

0xkoda/wiremcp

98

WireMCP is a Model Context Protocol (MCP) server designed to empower Large Language Models (LLMs) with real-time network traffic analysis capabilities.

Monitoring
gospy logo

gospy

monsterxx03/gospy

90

A tool for inspecting and analyzing running Go processes, including goroutine states, memory statistics, and binary information.

Monitoring