1. Conduid
  2. Developer Tools
  3. Loki
MCP server · Developer Tools

Loki

An MCP ( Model Context Protocol ) Server for Grafana Loki

Unclaimed lokimcp
60Good

Scored 3 hours ago · breakdown

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

From source
git clone https://github.com/grafana-cold-storage/loki-mcp

Tools (3)

loki_label_namesGet all label names from Grafana Loki
ParameterTypeDescription
endstringEnd time for the query (default: now)
formatstringOutput format: raw, json, or text (default: raw)
orgstring
passwordstring
startstringStart time for the query (default: 1h ago)
tokenstring
urlstring
usernamestring
loki_label_valuesGet all values for a specific label from Grafana Loki
ParameterTypeDescription
endstringEnd time for the query (default: now)
formatstringOutput format: raw, json, or text (default: raw)
label *stringLabel name to get values for
orgstring
passwordstring
startstringStart time for the query (default: 1h ago)
tokenstring
urlstring
usernamestring
loki_queryRun a query against Grafana Loki
ParameterTypeDescription
endstringEnd time for the query (default: now)
formatstringOutput format: raw, json, or text (default: raw)
limitnumberMaximum number of entries to return (default: 100)
orgstring
passwordstring
query *stringLogQL query string
startstringStart time for the query (default: 1h ago)
tokenstring
urlstring
usernamestring

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

v0.6.0v0.6.0 · 2 Jul 2025What's Changed support multiple results formats by @scottlepp in https://github.com/grafana/loki-mcp/pull/11 Full Changelog: https://github.com/grafana/loki-mcp/compare/v0.5.0...v0.6.0
v0.5.0v0.5.0 · 1 Jul 2025What's Changed add labels tools by @scottlepp in https://github.com/grafana/loki-mcp/pull/10 Full Changelog: https://github.com/grafana/loki-mcp/compare/v0.4.0...v0.5.0
v0.4.0v0.4.0 · 27 Jun 2025What's Changed add streamable by @scottlepp in https://github.com/grafana/loki-mcp/pull/9 Full Changelog: https://github.com/grafana/loki-mcp/compare/v0.3.0...v0.4.0
v0.3.0v0.3.0 · 19 Jun 2025What's Changed allow default env vars for credentials and org by @scottlepp in https://github.com/scottlepp/loki-mcp/pull/8 Full Changelog: https://github.com/scottlepp/loki-mcp/compare/v0.2.0...v0.3.0
v0.2.0v0.2.0 · 19 Jun 2025What's Changed support orgID by @scottlepp in https://github.com/scottlepp/loki-mcp/pull/7 Full Changelog: https://github.com/scottlepp/loki-mcp/compare/v0.1.0...v0.2.0

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
Questions

About Loki

How do I install Loki?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Loki safe to use with an AI agent?

Its trust score is 60 out of 100 (good). It passes 4 of the 6 static checks Conduid ran on the repository; it does not pass License declared and Scoped permissions. Conduid's scan of 4 source files found that it serves MCP over stdio, Streamable HTTP and HTTP with SSE, starts other programs (1 call) and makes outbound network calls (6 calls). Its dependencies are pinned by go.sum. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Loki still maintained?

Yes — the last commit was a month ago. The repository has 176 stars and 43 forks and 10 open issues.

What tools does Loki provide?

Conduid read 3 tools from the source: loki_label_names, loki_label_values and loki_query. 3 of them publish their parameters, listed under Tools above.