loki-mcp

loki-mcp

4

The Loki MCP Server is designed to facilitate querying of Grafana Loki logs through a Go-based server adhering to the Model Context Protocol (MCP). It supports both command-line and Docker environments, and integrates seamlessly with tools such as Claude Desktop and the Cursor editor, offering robust querying functionality and real-time event streaming capabilities.

Loki MCP Server

A Go-based implementation for the Model Context Protocol (MCP) with integration for Grafana Loki. It allows querying of Loki log data using CLI, Docker, and Docker Compose setups. Additionally, the server supports communication via stdin/stdout and Server-Sent Events (SSE) for real-time event streaming. Key features include:

  • Loki Query Tool: Allows querying of Grafana Loki log data with parameters for query string, URL, start and end times, and entry limits.
  • Docker Support: Provides Docker and Docker Compose configurations for easy setup and running.
  • Integration Options: Configurations available for integrating with Claude Desktop and Cursor editor.
  • Modular Architecture: Features separate modules for handling server, client, and utility functions.