Monitoring · Developer Tools

Loki MCP logo

Loki MCP

scottlepp/loki-mcp

A Go-based server implementation for the Model Context Protocol (MCP) with Grafana Loki integration.

Install

docker run --rm -i loki-mcp-server

Client configuration

{
  "mcpServers": {
    "loki-mcp-server": {
      "command": "docker",
      "args": [
        "run",
        "--rm",
        "-i",
        "-e",
        "LOKI_URL=http://host.docker.internal:3100",
        "-e",
        "LOKI_ORG_ID=your-default-org-id",
        "-e",
        "LOKI_USERNAME=your-username",
        "-e",
        "LOKI_PASSWORD=your-password",
        "-e",
        "LOKI_TOKEN=your-bearer-token",
        "loki-mcp-server:latest"
      ]
    }
  }
}

Environment variables

LOKI_URLLOKI_ORG_IDLOKI_USERNAMELOKI_PASSWORDLOKI_TOKEN
GitHub stars
2
Category
Monitoring, Developer Tools
License
MIT
Updated
Oct 6, 2026

Tools (5)

  • query

    LogQL query string

  • start

    Start time for the query (default: 1h ago)

  • end

    End time for the query (default: now)

  • limit

    Maximum number of entries to return (default: 100)

  • org

    Organization ID for the query (sent as X-Scope-OrgID header)

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
Cursor logo

Cursor

Desktop · Freemium · Proprietary

The first agentic IDE. The Cursor editor truly merges how developers and AI work together, delivering a magical coding experience.

WindowsMacOSLinux

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