Monitoring · Developer Tools

Grafana Loki MCP logo

Grafana Loki MCP

tumf/grafana-loki-mcp

A FastMCP server that allows querying Loki logs from Grafana.

Install

uvx grafana-loki-mcp -u GRAFANA_URL -k GRAFANA_API_KEY

Client configuration

{
  "mcpServers": {
    "loki": {
      "command": "uvx",
      "args": [
        "grafana-loki-mcp",
        "-u",
        "GRAFANA_URL",
        "-k",
        "GRAFANA_API_KEY"
      ]
    }
  }
}

Environment variables

GRAFANA_URLGRAFANA_API_KEY
GitHub stars
4
Author
@tumf
Category
Monitoring, Developer Tools
License
MIT
Updated
Oct 6, 2026

Features

  • Query Loki logs through Grafana API

  • Get Loki labels and label values

  • Format query results in different formats (text, JSON, markdown)

  • Support for both stdio and SSE transport protocols

Tools (4)

  • query_loki

    Query Loki logs through Grafana.

  • get_loki_labels

    Get all label names from Loki.

  • get_loki_label_values

    Get values for a specific label from Loki.

  • format_loki_results

    Format Loki query results in a more readable format.

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

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