# 使用 Homebrew, Nix 安装 context7-mcp

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install context7-mcp
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## 软件包事实

- **软件包键:** brew:context7-mcp
- **软件包管理器:** Homebrew
- **版本:** 3.2.5
- **来源摘要:** Up-to-date code documentation for LLMs and AI code editors
- **主页:** <https://context7.com>
- **最后更新:** 2026-07-26T06:33:29Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- context7-mcp (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Context7 MCP is Upstash's Model Context Protocol server for giving AI coding agents current, version-specific library documentation at prompt time.

### 项目历史

The public Context7 repository was created in March 2025 and describes itself as the source for the MCP server, while noting that supporting backend, parsing, and crawling components are private. The `@upstash/context7-mcp` npm package followed in April 2025; a separate `ctx7` CLI package appeared in January 2026.

### 采用历史

Context7 grew with the MCP and AI-editor packaging wave. Official docs and the README document setup paths for MCP clients, CLI-plus-skill workflows, and multiple editor integrations, while package metadata shows distribution through npm and the input package facts record Homebrew and Nix packaging.

### 使用方式

Users either register `https://mcp.context7.com/mcp` with an MCP client or run `npx ctx7 setup` to install a CLI/skill workflow. The README recommends an API key for higher rate limits but does not document a fixed local credential file for the Homebrew package.

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

The formula is notable because it packages an MCP server, not a traditional standalone Unix tool. It reflects a newer class of developer-tool packages whose main job is to bridge local editors and remote documentation indexes.

### 时间线

- 2025-03-26: Public Context7 repository created.
- 2025-04-08: `@upstash/context7-mcp` npm package created.
- 2026-01-21: `ctx7` npm CLI package created.
- 2026-06-22: `@upstash/context7-mcp@3.2.2` release published.

### Related projects

- The README lists related official packages including `ctx7`, `@upstash/context7-sdk`, and Context7 tools for the Vercel AI SDK.

### 来源

- <https://context7.com/docs>
- <https://github.com/upstash/context7>
- <https://www.npmjs.com/package/@upstash/context7-mcp>
- <https://www.npmjs.com/package/ctx7>
- <https://github.com/upstash/context7/releases/tag/%40upstash/context7-mcp%403.2.2>
- <https://formulae.brew.sh/formula/context7-mcp>


## 安全说明

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


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

- Nix - context7-mcp: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/context7-mcp/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/context7-mcp.yml](https://github.com/mxcl/pkgdb/blob/main/combined/context7-mcp.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
