1. Conduid
  2. Analytics
  3. tumf/grafana-loki-mcp
MCP server · Analytics

tumf/grafana-loki-mcp

Grafana Loki MCP Repository

Unclaimed MIT last commit 11 months ago analytics
52Fair

Scored 5 hours ago · breakdown

About tumf/grafana-loki-mcp

tumf/grafana-loki-mcp is an MCP server published by tumf in the Analytics category: grafana Loki MCP Repository. Conduid read 5 tools from its source: get_datasource_by_id, get_datasource_by_name, get_datasources, get_loki_label_values and get_loki_labels. It is published to PyPI as grafana-loki-mcp and runs with uvx.

The repository has 29 stars and 6 forks, is licensed MIT, and its last commit was on 5 Jan 2026. The latest release is v0.1.5-beta2. It follows v0.1.4-beta9, and the 5 most recent releases go back to v0.1.14-beta2. It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include analytics.

Install

Claude Code
claude mcp add grafana-loki-mcp -- uvx grafana-loki-mcp -u GRAFANA_URL -k GRAFANA_API_KEY
Run
uvx grafana-loki-mcp -u GRAFANA_URL -k GRAFANA_API_KEY
uvx
uvx grafana-loki-mcp
pip
pip install grafana-loki-mcp
From source
git clone https://github.com/tumf/grafana-loki-mcp

Tools (5)

get_datasource_by_idGet a specific datasource by ID from Grafana.
ParameterTypeDescription
datasource_id *integerID of the datasource to retrieve
get_datasource_by_nameGet a specific datasource by name from Grafana.
ParameterTypeDescription
name *stringName of the datasource to retrieve
get_datasourcesGet all datasources from Grafana.
get_loki_label_valuesGet values for a specific label from Loki.
ParameterTypeDescription
label *stringLabel name
get_loki_labelsGet all label names from Loki.

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 541 words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by uv.lock.
  • ✓No dynamic code executionScanned 7 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 and HTTP with SSEgrafana_loki_mcp/server.py:322, grafana_loki_mcp/server.py:322
Starts other programs
No calls that start other programs
Outbound network calls
6 callsgrafana_loki_mcp/server.py:129, grafana_loki_mcp/server.py:172, grafana_loki_mcp/server.py:193
Writes or deletes files
2 callsmove_e2e_files.py:21, move_e2e_files.py:27
Lockfile
uv.lock

Pattern matches on the source text of 7 files: places to read, not proof of what the code does at run time.

Releases

v0.1.5-beta2v0.1.5-beta2
v0.1.4-beta9v0.1.4-beta9
v0.1.4-beta8v0.1.4-beta8
v0.1.4v0.1.4
v0.1.14-beta2v0.1.14-beta2

README

The repository's README runs to about 541 words, fetched a month ago. The original in the repository is authoritative.

Read full README
Questions

About tumf/grafana-loki-mcp

How do I install tumf/grafana-loki-mcp?

In Claude Code, run claude mcp add grafana-loki-mcp -- uvx grafana-loki-mcp -u GRAFANA_URL -k GRAFANA_API_KEY. Other MCP clients take the command after "--" in their server configuration.

Is tumf/grafana-loki-mcp safe to use with an AI agent?

Its trust score is 52 out of 100 (fair). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Conduid's scan of 7 source files found that it serves MCP over stdio and HTTP with SSE, makes outbound network calls (6 calls) and writes or deletes files (2 calls). Its dependencies are pinned by uv.lock. It has no ConduID identity yet, so agent calls to it are not receipted.

Is tumf/grafana-loki-mcp still maintained?

The last commit was 11 months ago. That's long enough that you should check whether the maintainer is responding to issues before depending on it.

What tools does tumf/grafana-loki-mcp provide?

Conduid read 5 tools from the source: get_datasource_by_id, get_datasource_by_name, get_datasources, get_loki_label_values and get_loki_labels. 3 of them publish their parameters, listed under Tools above.

What license is tumf/grafana-loki-mcp released under?

The repository declares the MIT license. That applies to the latest release, v0.1.5-beta2, as well.