MCP server
grafana-loki-mcp
Runs locallyMITUpdated on Jan 5, 202629GitHub starsNeeds an API key
A Python MCP server built with FastMCP that queries Loki logs through a Grafana instance's API rather than talking to Loki directly.
What it does
A Python MCP server built with FastMCP that queries Loki logs through a Grafana instance's API rather than talking to Loki directly. It is installed from PyPI as grafana-loki-mcp or run with uvx, and takes the Grafana URL and a Grafana API key as arguments or environment variables. It can run log queries, list Loki labels and their values, and return results as text, JSON or Markdown, over stdio or SSE.
Capabilities
- Query Loki logs through the Grafana API
- List Loki labels and label values
- Format results as text, JSON or Markdown
About
- Publisher
- tumf
- Tool
- Grafana
Install
- Run this to add it to Any client:
pip install grafana-loki-mcp
MCP servers and skills can run code on your computer and act on your data. Review the source before installing.
Details
| Fact | Value | Source |
|---|---|---|
| Type | MCP server | |
| Tool | Grafana | |
| Publisher | tumf | source |
| Official status | Community (not published by the tool's vendor) | source |
| Connection | Local (runs on your computer) | source |
| Can change data | No | source |
| Needs an API key or sign-in | Yes | source |
| Platforms | Not stated in its documentation | |
| AI clients | Not stated in its documentation | |
| Licence | MIT | source |
| Pricing | Not stated in its documentation | |
| Activity | Last commit Jan 5, 2026Version 0.1.429 GitHub starsDownload data not available (not on npm or PyPI) | source |
| Links | Repository pypi: grafana-loki-mcp |
Sources
- GitHub repositorygithub.com/tumf/grafana-loki-mcp · Backs: Connection, Needs an API key or sign-in, Official status, Publisher, Activity, LicenceNov 11, 2026
- Licence file (LICENSE)github.com/tumf/grafana-loki-mcp · Backs: LicenceNov 12, 2026
- PyPI package recordpypi.org/project/grafana-loki-mcpNov 10, 2026