What are the prerequisites to run Loki MCP Server?
Go 1.18 or later and access to a running Grafana Loki instance are required.
@scottlepp
Basic information
No overview available yet
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryExecute LogQL queries and retrieve matching log entries
Retrieve all label names available in the logs
Get all values for a specific label
Analyze log volume over time
A Model Context Protocol (MCP) server for Grafana Loki that provides AI agents with access to log data. It implements the MCP protocol to expose tools and resources for querying and analyzing logs stored in a Loki instance, giving Large Language Models (LLMs) additional context.
Clone the repository, build with Go 1.18+, and start the server with a --loki-url flag or LOKI_URL environment variable. Then configure an MCP-compatible AI agent (e.g., Claude Desktop) to connect to the server using the provided JSON configuration examples.
Go 1.18 or later and access to a running Grafana Loki instance are required.
Authentication can be set via command-line flags or environment variables: `--username`/`LOKI_USERNAME`, `--password`/`LOKI_PASSWORD`, `--api-key`/`LOKI_API_KEY`, and `--tenant-id`/`LOKI_TENANT_ID` for multi-tenant setups.
The default query timeout is 30 seconds, configurable with the `--query-timeout` flag or `QUERY_TIMEOUT` environment variable.
Add a “loki” entry to `claude_desktop_config.json` with the server’s command and any needed environment variables, as shown in the examples directory.
All log data is stored in the externally provided Grafana Loki instance; the server itself does not store logs.

Run advanced phishing, voice phishing, deepfake fraud simulations, and cybersecurity awareness training from your AI assistant.

Model Context Protocol Servers

See and control a real Windows PC you own — from any MCP client, locally or remotely. Observe (UIA + screenshots), click/type/drag/scroll, launch apps, owner Live View. BYOH: your machine, your key.

A good sequence diagram can solve almost any communication problem in engineering. Volley lets your agent write them as plain text, with the real request and response payloads on every arrow. It checks its own syntax wi

Your AI assistant logs your meals and workouts, then plans your week from what you did. iPhone, Android and Garmin.
Comments