pack-mcp-grafana
MCP Server para consulta de logs do Grafana via Loki API com autenticação por Service Account Token.
Instalação
pip install pack-mcp-grafana
Configuração
Defina as variáveis de ambiente antes de executar:
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
python -m mcp_grafana
Ou via entry point:
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
{
"mcpServers": {
"mcp-grafana": {
"command": "pack-mcp-grafana",
"env": {
"GRAFANA_URL": "https://grafana.sua-empresa.com",
"GRAFANA_SA_TOKEN": "glsa_xxxxxxxxxxxx"
}
}
}
}
Metadata
Release files for pack-mcp-grafana 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pack_mcp_grafana-0.3.0.tar.gz | 38.3 kB | Without provenance | Details for pack_mcp_grafana-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pack_mcp_grafana-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for pack_mcp_grafana-0.3.0-py3-none-any.whl |
Total release size: 71.3 kB
Release files / pack_mcp_grafana-0.3.0.tar.gz
| Download URL | pack_mcp_grafana-0.3.0.tar.gz |
|---|---|
| Size | 38.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6941aea14b6f09d3a8b83f6043dab69fb1945ea80e111c02641f475fa7d09d19
|
|
BLAKE2b-256 checksum How to use checksums |
964c9f446b21045c7dd79b470aae1e080f54cb47fd1e45bebb2432429956bec8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / pack_mcp_grafana-0.3.0-py3-none-any.whl
| Download URL | pack_mcp_grafana-0.3.0-py3-none-any.whl |
|---|---|
| Size | 33.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0e3972696b6ebfa5f2c211cb4fa110be89bd581810826db131d754c59e3028f6
|
|
BLAKE2b-256 checksum How to use checksums |
a15b3ae08e33fb1dc5d132171b855e9e6417387656e7329156d63e46c55e9ceb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for pack-mcp-grafana 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.