Read-only Loki MCP server for log querying, searching, and analysis
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"msrashed-loki-mcp-server","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# Loki MCP Server A read-only Model Context Protocol (MCP) server for Grafana Loki log aggregation platform. This server enables AI agents like Claude to query, search, and analyze logs from Loki for troubleshooting, incident investigation, and log analysis. ## Features ### Core Capabilities - **Log Querying**: Execute LogQL instant and range queries - **Label Discovery**: Explore available labels and their values - **Series Discovery**: Find log streams matching label selectors - **Error Analysis**: Detect error patterns and spike timelines - **Incident Investigation**: Get surrounding context, trace logs, correlate events - **Multi-Pod Analysis**: Aggregate logs across deployment replicas - **Log Volume Metrics**: Analyze traffic patterns and anomalies ### CLI Interface - **Full CLI**: Test all MCP tools directly from command line - **Command Groups**: Organized commands (query, labels, analyze, status) - **Environment Variables**: Configure via env vars or CLI options - **Multiple Transports**: stdio, HTTP, SSE, streamable-http ### Safety & Security - **Read-only**: All operations are safe and cannot modify Loki - **Authentication**: Supports Bearer token and Basic auth - **Multi-tenancy**: X-Scope-OrgID header support for multi-tenant Loki - **SSL Verification**: Configurable SSL certificate verification ## Installation ### Using pip (from PyPI) ```bash pip install msrashed-loki-mcp-server ``` ### Using uvx (Recommended for CLI) ```bash # Run directly without installation uvx msrashed-loki-mcp-server --help # Or install globally uv tool install msrashed-loki-mcp-server ``` ### From Source ```bash git clone https://github.com/msalah-eg/loki-mcp-server.git cd loki-mcp-server uv sync uv run loki-mcp-server --help ``` ## Quick Start ```bash # Set Loki URL export LOKI_URL="http://localhost:3100" # Test connection loki-mcp-server check # List available labels loki-mcp-server labels list # Query recent logs loki-mcp-server query range '{namespace="pr…
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.