From mcp-loki
Connects Claude to Grafana Loki to run LogQL queries, discover labels, explore series, and get index statistics. Runs locally via Docker and supports token or username/password auth.
Ships in mcp-loki. Installing the plugin adds it to Claude Code.
Copy this JSON into your .mcp.json to enable this server
Add to your .mcp.json:
{
"mcpServers": {
"loki": {
"command": "docker",
"args": [
"run",
"--rm",
"-i",
"-e",
"LOKI_URL",
"-e",
"LOKI_USERNAME",
"-e",
"LOKI_PASSWORD",
"-e",
"LOKI_TOKEN",
"-e",
"LOKI_ORG_ID",
"ghcr.io/lexfrei/mcp-loki:latest"
]
}
}
}Declared capabilities of this MCP server
Command-line arguments passed to the server process
Server configuration and connection parameters
dockerFirst indexed Apr 12, 2026
npx claudepluginhub lexfrei/ccc --plugin mcp-loki