# 使用 Homebrew, Nix 安装 mcp-grafana

查看 mcp-grafana 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:mcp-grafana
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install mcp-grafana
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#mcp-grafana
```

  证据: nixpkgs package indexes: pkgs/by-name/mc/mcp-grafana/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:mcp-grafana
- **软件包管理器:** Homebrew
- **版本:** 1.0.0
- **来源摘要:** MCP server for Grafana
- **主页:** <https://github.com/grafana/mcp-grafana>
- **仓库:** <https://github.com/grafana/mcp-grafana>
- **最后更新:** 2026-07-29T17:04:51+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- mcp-grafana (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.0.0
## 项目历史与用法

mcp-grafana is Grafana Labs' Model Context Protocol server for Grafana. It exposes Grafana instances and related observability workflows to MCP-compatible clients through tools for dashboards, datasources, incidents, alerting, on-call data, snapshots, and more.

### 项目历史

The official GitHub repository was created in December 2024 and is maintained under the grafana organization with Apache-2.0 licensing. The project has first-party Grafana documentation as well as a GitHub README, Go package documentation, Docker image usage, binary releases, uvx startup, and a Helm chart route.

The release stream grew quickly through 2025 and 2026, with GitHub releases such as v0.12.0 in April 2026 and v0.17.0 in June 2026. The README shows the server expanding beyond basic dashboard access into richer Grafana ecosystem coverage.

### 采用历史

By July 2026, official GitHub metadata showed thousands of stars and hundreds of forks, while the supplied package-manager facts list Homebrew and Nix packaging. Its placement under the Grafana organization gives it first-party visibility that most MCP servers do not have.

The project reflects a broader shift in observability tooling: instead of only exposing dashboards through browser UI and APIs, Grafana can be queried and modified through AI clients using a local or hosted MCP server.

### 使用方式

The README quick start configures an MCP client to run mcp-grafana with GRAFANA_URL and GRAFANA_SERVICE_ACCOUNT_TOKEN. It also documents token-file support through GRAFANA_SERVICE_ACCOUNT_TOKEN_FILE, username/password alternatives, organization selection, custom headers, Docker, binary, Helm, and transport options.

Documented tools cover dashboard retrieval and patching, datasource queries, Prometheus/Loki/CloudWatch/Athena/ClickHouse/Snowflake-related workflows, incidents, Sift investigations, alerting, OnCall, teams, roles, annotations, snapshots, rendering, and provisioning repository validation.

### 为什么软件包爱好者会关心

mcp-grafana is significant because it is a first-party MCP server from a major observability vendor, not just a community adapter. For package managers, that means a fast-moving operational tool with real deployment modes: uvx for local clients, Docker for containers, binaries for PATH installs, and Helm for clusters.

It also shows how MCP packages can grow beyond simple CRUD wrappers into opinionated context-management tools, such as compact dashboard summaries and JSONPath dashboard property extraction to control model context size.

### 时间线

- 2024-12: GitHub repository created under grafana.
- 2026-04: v0.12.0 release published.
- 2026-06: v0.17.0 release published.
- 2026-07: Repository metadata showed active maintenance and broad GitHub adoption.

### Related projects

- Related projects include Grafana, Grafana Cloud, Grafana OnCall, Grafana Incident, the Grafana Helm charts, and other observability-focused MCP servers.

### 来源

- <https://github.com/grafana/mcp-grafana>
- <https://github.com/grafana/mcp-grafana#readme>
- <https://github.com/grafana/mcp-grafana/releases>
- <https://grafana.com/docs/grafana/latest/developer-resources/mcp>
- <https://pkg.go.dev/github.com/grafana/mcp-grafana>
- source_facts.package-manager


## 安全说明

没有找到 mcp-grafana 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 其他软件包管理器记录

- Nix - mcp-grafana: normalized package name match | nixpkgs package indexes: pkgs/by-name/mc/mcp-grafana/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/mcp-grafana.yml](https://github.com/mxcl/pkgdb/blob/main/combined/mcp-grafana.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
