SkillTide Submit
Official description10 sourcesMCP servers8d ago
tumf/grafana-loki-mcp

tumf/grafana-loki-mcp

๐Ÿ ๐Ÿ  - Query Loki logs through the Grafana API
View on GitHub โ†—Direct link ยท no redirect page
Config template (adjust for your client)
claude mcp add grafana-loki-mcp -- npx -y grafana-loki-mcp
A pasteable skeleton generated from the repository name. Check the project README for the exact package and arguments.
Star count
29 โ˜… ยท tumf/grafana-loki-mcp ยท read from the repository page ยท (checked 2026-10-16 20:00:20)
Source
collected from the punkpeye/awesome-mcp-servers list ยท type: MCP server
Harvest history
first seen 2026-10-09 ยท last seen 2026-10-16 ยท seen 32ร— ยท listed by 10 sources
Score
score 1,003 ยท 29 โ˜… ยท 10 sources ยท mcp
FAQ (answers come from our records)
How do I install it?
We did not find an install command for this repository (our install coverage is only about 4%). Check its README or releases page.
Who is it for?
We filed it under these tags: MCP ๆœๅŠก. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository tumf/grafana-loki-mcp๏ผ›first catalogued 2026-10-09๏ผ›last seen 2026-10-16ใ€‚There is no official certification or quality rating here โ€” we record sources and dates only.
Third-party quality signals

Grafana-Loki MCP Server

ไปฅไธ‹ๆ‘˜ๅฝ•่‡ช่ฏฅไป“ๅบ“็š„ README๏ผˆ็‰‡ๆฎต๏ผ‰ ยท ๅœจ GitHub ่ฏปๅฎŒๆ•ด README โ†’

A FastMCP server that allows querying Loki logs from Grafana.
MCP Server Settings
- GRAFANA_URL: URL of your Grafana instance
- GRAFANA_API_KEY: Grafana API key with appropriate permissions
Features
- Query Loki logs through Grafana API
- Get Loki labels and label values
- Format query results in different formats (text, JSON, markdown)
- Support for both stdio and SSE transport protocols
Requirements
- Python 3.10+
- FastMCP
- Requests
Installation
Using pip
Development Setup
1. Clone this repository
2. Install dependencies using uv:
Usage
Environment Variables
Set the following environment variables:
- GRAFANA_URL: URL of your Grafana instance
- GRAFANA_API_KEY: Grafana API key with appropriate permissions
Command Line Arguments
You can also provide these values as command line arguments:
Additional options:
- --transport: Transport protocol to use (stdio or sse, default: stdio)
Running the Server
Development
Testing
Run the test suite:
Run with coverage:
Linting and Formatting
Available Tools
query_loki
Query Loki logs through Grafana.
Parameters:
- query: Loki query string
- start: Start time (ISO format, Unix timestamp, or Grafana-style relative time like 'now-1h', default: 1 hour ago)
- end: End time (ISO format, Unix timestamp, or Grafana-style relative time like 'now', default: now)
- limit: Maximum number of log lines to return (default: 100)
- direction: Query direction ('forward' or 'backward', default: 'backward')
- max_per_line: Maximum characters per log line (0 for unlimited, default: 100)
get_loki_labels
Get all label names from Loki.
get_loki_label_values
Get values for a specific label from Loki.
Parameters:
- label: Label name
format_loki_results
Format Loki query results in a more readable format.
Parameters:
- results: Loki query results from query_loki
- format_type: Output format ('text', 'json', or 'markdown', default: 'text')
- max_per_line: Maximum characters per log line (0 for unlimited, default: 0)
Source
awesome ยท https://github.com/tumf/grafana-loki-mcp
Browse by field
MCP servers
Traction
29 โ˜…
added
yesterday

More in MCP servers

All 5,525 in MCP servers โ†’

Filed under

Every tag opens the full list for that filter. Counts are the live catalogue figures.

Browse all fields โ†’

โ† Back to index