技能潮 SkillTide 提交收录
官方说明10 个来源MCP 服务8 天前
tumf/grafana-loki-mcp

tumf/grafana-loki-mcp

🐍 🏠 - Query Loki logs through the Grafana API
在 GitHub 查看 ↗直链 · 无中转页
配置模板(请按你的客户端调整)
claude mcp add grafana-loki-mcp -- npx -y grafana-loki-mcp
这是根据仓库名生成的可粘贴骨架,命令行参数与包名请以该项目 README 为准。
★ 数取值
29 ★ · tumf/grafana-loki-mcp · 取自该仓库的 GitHub 页面 · (2026-10-16 20:00:20 核对)
来源明细
收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
收录与活跃
收录于 2026-10-09 · 最近见到 2026-10-16 · 共见到 32 次 · 被 10 个来源列出
评分构成
综合分 1,003 · 29 ★ · 10 个来源 · mcp
常见问题(答案都来自我们的记录)
怎么安装?
我们【没有】从该仓库取到安装命令(我们的 install 覆盖率只有约 4%)。请看它的 README 或 releases 页。
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库 tumf/grafana-loki-mcp;我们收录于 2026-10-09;最近见到 2026-10-16。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。
第三方质量标记

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)
来源
awesome · https://github.com/tumf/grafana-loki-mcp
按领域浏览
MCP 服务
Traction
29 ★
收录于
昨天

更多MCP 服务

查看MCP 服务全部 5,525 条 →

所属领域与标签

每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。

浏览全部领域 →

← 返回索引