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 mcp add grafana-loki-mcp -- uvx grafana-loki-mcp -u GRAFANA_URL -k GRAFANA_API_KEYuvx grafana-loki-mcp -u GRAFANA_URL -k GRAFANA_API_KEYuvx grafana-loki-mcppip install grafana-loki-mcpgit clone https://github.com/tumf/grafana-loki-mcpTools (5)
get_datasource_by_idGet a specific datasource by ID from Grafana.| Parameter | Type | Description |
|---|---|---|
| datasource_id * | integer | ID of the datasource to retrieve |
get_datasource_by_nameGet a specific datasource by name from Grafana.| Parameter | Type | Description |
|---|---|---|
| name * | string | Name of the datasource to retrieve |
get_datasourcesGet all datasources from Grafana.get_loki_label_valuesGet values for a specific label from Loki.| Parameter | Type | Description |
|---|---|---|
| label * | string | Label 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
README
The repository's README runs to about 541 words, fetched a month ago. The original in the repository is authoritative.
Read full README