# Grafana-Loki MCP Server

> Use this tool when you need to query and format Loki logs in a customizable way, solving log analysis and visualization challenges in applications like monitoring and troubleshooting. It takes LogQL queries as input and outputs results in text, JSON, or markdown formats via the Model Context Protocol. Ideal for use in Grafana-based logging and monitoring setups, enabling efficient log data retrieval and visualization.

Canonical page: https://skillsregistry.net/skills/tumf-grafana-loki-mcp  
JSON: https://api.skillsregistry.net/v1/skills/tumf-grafana-loki-mcp

## Description

Enables querying and formatting Loki logs from Grafana via the Model Context Protocol. It supports LogQL queries, label retrieval, and provides results in text, JSON, or markdown formats.

## Trust

- **Trust score (0–1):** 0.93
- **Verification tier:** verified
- **Last scanned:** 2026-09-19

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** monitoring
- **Updated:** 2026-09-19

## Source

- **Source listing:** [Glama](https://glama.ai/mcp/servers/med4m391b6)
- **Repository:** <https://github.com/tumf/grafana-loki-mcp>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "tumf-grafana-loki-mcp"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/tumf-grafana-loki-mcp` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/tumf-grafana-loki-mcp/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
