MCP Server para consulta de logs do Grafana via Loki API
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"pack-mcp-grafana","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# pack-mcp-grafana MCP Server para consulta de logs do Grafana via Loki API com autenticação por Service Account Token. ## Instalação ```bash pip install pack-mcp-grafana ``` ## Configuração Defina as variáveis de ambiente antes de executar: ```bash export GRAFANA_URL="https://grafana.sua-empresa.com" export GRAFANA_SA_TOKEN="glsa_xxxxxxxxxxxx" # Opcional: UID do datasource Loki (default: "loki") export GRAFANA_LOKI_DATASOURCE_UID="loki" ``` Para gerar o token: Administration → Users and access → Service Accounts → Add token (permissão Viewer). ## Uso ```bash python -m mcp_grafana ``` Ou via entry point: ```bash pack-mcp-grafana ``` ## Ferramentas MCP | Ferramenta | Descrição | |---|---| | `grafana_query_logs` | Consulta logs de um serviço via Loki | | `grafana_list_datasources` | Lista datasources disponíveis no Grafana | | `grafana_analyze_logs` | Analisa logs com contagens, distribuição por nível e top erros | ## Configuração no Kiro / Claude Desktop ```json { "mcpServers": { "mcp-grafana": { "command": "pack-mcp-grafana", "env": { "GRAFANA_URL": "https://grafana.sua-empresa.com", "GRAFANA_SA_TOKEN": "glsa_xxxxxxxxxxxx" } } } } ```
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.