mcp-grafana
The package builds from the project's official GitHub source, which is normal for AUR packages; the only concern is low due to few votes and recent upload, but the code is transparent and the usage stats disclosure is informative, not malicious.
Triggered rules
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is LOW (confidence 95%): The package builds from the project's official GitHub source, which is normal for AUR packages; the only concern is low due to few votes and recent upload, but the code is transparent and the usage stats disclosure is informative, not malicious.
PKGBUILD
# Maintainer: agony <27015 at riseup dot net>
pkgname=mcp-grafana
pkgver=2.2.0
pkgrel=1
pkgdesc='MCP server for Grafana'
arch=('x86_64' 'aarch64')
url='https://github.com/grafana/mcp-grafana'
license=('Apache-2.0')
depends=('glibc')
makedepends=('go')
install=mcp-grafana.install
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('245cc4bb90ed3af887a7abe45118fcc83af810022f61069d737274638b2b262e')
prepare() {
cd "${pkgname}-${pkgver}"
export GOPATH="${srcdir}/gopath"
go mod download -x -modcacherw
}
build() {
cd "${pkgname}-${pkgver}"
export GOPATH="${srcdir}/gopath"
export CGO_CPPFLAGS="${CPPFLAGS}"
export CGO_CFLAGS="${CFLAGS}"
export CGO_CXXFLAGS="${CXXFLAGS}"
export CGO_LDFLAGS="${LDFLAGS}"
export GOFLAGS='-buildmode=pie -trimpath -buildvcs=false -mod=readonly -modcacherw'
go build -v -ldflags="-linkmode=external -X github.com/grafana/mcp-grafana/v2.version=${pkgver}" -o mcp-grafana ./cmd/mcp-grafana
}
check() {
cd "${pkgname}-${pkgver}"
export GOPATH="${srcdir}/gopath"
export GOFLAGS='-buildvcs=false -mod=readonly -modcacherw'
go test -tags unit ./...
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm755 mcp-grafana -t "${pkgdir}/usr/bin"
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-04 10:06:54 | Low | 2 |