Loki icon

Loki

Createdscottlepp

Queries Grafana Loki logs using the Model Context Protocol.

About

Loki is a Go-based Model Context Protocol (MCP) server that enables querying of Grafana Loki logs. It provides a `loki_query` tool that allows users to execute LogQL queries against a specified Loki instance. The server communicates via stdin/stdout, making it compatible with MCP clients such as Claude Desktop and Cursor, enabling seamless integration of Loki log data into agentic workflows. Docker support simplifies deployment and local testing with a complete Docker Compose setup including Loki, Grafana, and a log generator.

Key Features

  • Implements the Model Context Protocol (MCP)
  • Offers flexible configuration via parameters and environment variables
  • Supports querying Grafana Loki log data using LogQL
  • 0 GitHub stars
  • Includes a Loki query tool (`loki_query`)
  • Provides Docker and Docker Compose support for easy deployment and testing

Use Cases

  • Querying logs directly within Claude Desktop or Cursor
  • Integrating Loki log queries into agentic workflows
  • Automating log analysis tasks using the MCP interface