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
基本信息
暂无概览
Execute 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.

Yuppsy MCP: build and publish real estate websites from your AI assistant. Yuppsy lets your AI assistant create live websites for real estate agents and individual property listings. You don't need a designer or any code

Couples therapist Figs O'Sullivan (LMFT, 17 years, endorsed by Sue Johnson, creator of EFT) inside your AI. Ask relationship questions answered from his clinical writing, name the pattern in a fight, get a three-step rep
A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
🚀 The fast, Pythonic way to build MCP servers and clients.

Request dedicated senior developers to work on your project, write job descriptions, and prep technical interviews — all without leaving your Claude chat. Just describe what you need, and Lemon.io MCP does the rest. 1–3
评论