# Install context7-mcp with Homebrew, Nix

Up-to-date code documentation for LLMs and AI code editors. Version 3.2.3 via Homebrew; verified 2026-07-07.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Package facts

- **Package key:** brew:context7-mcp
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/context7-mcp>
- **Version:** 3.2.3
- **Source summary:** Up-to-date code documentation for LLMs and AI code editors
- **Homepage:** <https://context7.com>
- **Repository:** <https://github.com/upstash/context7>
- **Upstream docs:** <https://context7.com/docs>
- **License:** MIT
- **Source archive:** <https://registry.npmjs.org/@upstash/context7-mcp/-/context7-mcp-3.2.3.tgz>
- **Last updated:** 2026-07-07T15:32:03Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- context7-mcp (cli)
- context7-mcp (alias)

## Dependencies

- node

## Install behavior

- Post-install hook: not defined
- Bottle: available on all

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.2.3
- Package-manager updated: 2026-07-07
- Local data: ok
- Upstream repository: https://context7.com
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

No matching local secret-handling manifest was found for context7-mcp. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** context7-mcp
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- 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


## Related links

- [MCP tool packages](https://www.automicvault.com/pkg/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [node](https://www.automicvault.com/pkg/brew/node/) - Runtime dependency declared by Homebrew.
- [ctx7](https://www.automicvault.com/pkg/brew/ctx7/) - Shares the same upstream homepage.
- [gptscript](https://www.automicvault.com/pkg/brew/gptscript/) - Shares av.db curated category or tags: ai, cli, developer-tools, llm.
- [fabric-ai](https://www.automicvault.com/pkg/brew/fabric-ai/) - Shares av.db curated category or tags: ai, cli, developer-tools, llm.
- [gollama](https://www.automicvault.com/pkg/brew/gollama/) - Shares av.db curated category or tags: ai, cli, developer-tools, llm.
- [gptme](https://www.automicvault.com/pkg/brew/gptme/) - Shares av.db curated category or tags: ai, cli, developer-tools, llm.
- [localai](https://www.automicvault.com/pkg/brew/localai/) - Shares av.db curated category or tags: ai, cli, developer-tools, llm.
- [mcphost](https://www.automicvault.com/pkg/brew/mcphost/) - Shares av.db curated category or tags: ai, cli, developer-tools, llm, mcp.
- [mcptools](https://www.automicvault.com/pkg/brew/mcptools/) - Shares av.db curated category or tags: ai, cli, developer-tools, mcp.
- [repomix](https://www.automicvault.com/pkg/brew/repomix/) - Both packages touch the same language runtime or ecosystem. Shared terms: ai, cli, code, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/context7-mcp.yml](https://github.com/automic-vault/db/blob/main/combined/context7-mcp.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
