grafana/loki-mcp
An MCP ( Model Context Protocol ) Server for Grafana Loki
Exposes Grafana Loki querying through a `loki_query` tool with LogQL support, configurable time ranges, result limits, and multi-tenant organization IDs via environment variables or request parameters. Built in Go, it communicates via stdin/stdout using the Model Context Protocol and also supports HTTP with Server-Sent Events (SSE) for integration with Claude Desktop, n8n workflows, and other MCP-compatible clients. Includes multi-authentication methods (basic auth, bearer tokens) and a complete Docker Compose setup with Loki, Grafana, and log generators for local testing.
Stars
97
Forks
25
Language
Go
License
—
Category
Last pushed
Mar 09, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/mcp/grafana/loki-mcp"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
digitalocean-labs/mcp-digitalocean
MCP DigitalOcean Integration
SigNoz/signoz-mcp-server
MCP Server for SigNoz
buildkite/buildkite-mcp-server
Official MCP Server for Buildkite.
razorpay/razorpay-mcp-server
Razorpay's Official MCP Server
tuannvm/mcp-trino
A high-performance Model Context Protocol (MCP) server for Trino implemented in Go.