About Loki
Loki is an MCP server published by grafana-cold-storage in the Developer Tools category: an MCP ( Model Context Protocol ) Server for Grafana Loki. Conduid read 3 tools from its source: loki_label_names, loki_label_values and loki_query. No package is published for it, so it installs from a source checkout.
The repository has 176 stars and 43 forks, and its last commit was on 25 Oct 2026. The latest release is v0.6.0 (2 Jul 2025). It follows v0.5.0 (1 Jul 2025), and the 5 most recent releases go back to v0.2.0 (19 Jun 2025). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass License declared and Scoped permissions. Its topics include loki.
Install
git clone https://github.com/grafana-cold-storage/loki-mcpTools (3)
loki_label_namesGet all label names from Grafana Loki| Parameter | Type | Description |
|---|---|---|
| end | string | End time for the query (default: now) |
| format | string | Output format: raw, json, or text (default: raw) |
| org | string | |
| password | string | |
| start | string | Start time for the query (default: 1h ago) |
| token | string | |
| url | string | |
| username | string |
loki_label_valuesGet all values for a specific label from Grafana Loki| Parameter | Type | Description |
|---|---|---|
| end | string | End time for the query (default: now) |
| format | string | Output format: raw, json, or text (default: raw) |
| label * | string | Label name to get values for |
| org | string | |
| password | string | |
| start | string | Start time for the query (default: 1h ago) |
| token | string | |
| url | string | |
| username | string |
loki_queryRun a query against Grafana Loki| Parameter | Type | Description |
|---|---|---|
| end | string | End time for the query (default: now) |
| format | string | Output format: raw, json, or text (default: raw) |
| limit | number | Maximum number of entries to return (default: 100) |
| org | string | |
| password | string | |
| query * | string | LogQL query string |
| start | string | Start time for the query (default: 1h ago) |
| token | string | |
| url | string | |
| username | string |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.8K words.
- !License declaredNo license file. Legally you have no right to use it in a product.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by go.sum.
- ✓No dynamic code executionScanned 4 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEcmd/server/main.go:86, cmd/server/main.go:54, cmd/server/main.go:48
- Starts other programs
- 1 callcmd/client/main.go:56
- Outbound network calls
- 6 callsinternal/handlers/loki.go:314, internal/handlers/loki.go:334, internal/handlers/loki.go:801
- Writes or deletes files
- No file writes or deletes
- Lockfile
- go.sum
Pattern matches on the source text of 4 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.8K words, fetched a month ago. The original in the repository is authoritative.
Read full README