loki-query-mcp
v0.1.5MCP server for querying Grafana Loki logs in plain English
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add loki-query-mcp -- uvx loki-query-mcp==0.1.5Add to
claude_desktop_config.json{
"mcpServers": {
"loki-query-mcp": {
"args": [
"loki-query-mcp==0.1.5"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"loki-query-mcp": {
"args": [
"loki-query-mcp==0.1.5"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"loki-query-mcp": {
"args": [
"loki-query-mcp==0.1.5"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.loki-query-mcp]
command = "uvx"
args = ["loki-query-mcp==0.1.5"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: query_loki_logs, find_service_logs, find_error_patterns, list_label_values, list_label_names, count_service_logs, find_log_streams.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json