# Context7

Context7 puts version-aware library documentation and code examples into an agent’s context. Use it when API details need a current reference.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 1447 installs
- Author: geobio
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/geobio/context7
- Updated: 2025-05-30
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/geobio-context7

## What it does

Context7 connects to an MCP client through two tools. `resolve-library-id` matches a package or product name with a Context7 library ID, while `get-library-docs` retrieves documentation for that library. This gives the coding agent concrete API material to use in its answer.

The lookup step comes first unless the prompt already contains an ID such as `/org/project` or `/org/project/version`. The remote server is `https://context7--geobio.run.tools`. A valid library ID is required before `get-library-docs` can fetch the requested documentation.

## Requirements
- Remote server: `https://context7--geobio.run.tools`
- Works with: Context7

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http context7 https://context7--geobio.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add geobio-context7 --url https://context7--geobio.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "geobio-context7": {
            "url": "https://context7--geobio.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "geobio-context7": {
            "type": "http",
            "url": "https://context7--geobio.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http geobio-context7 https://context7--geobio.run.tools
```

## When to use it
- look up the Context7 ID for a package
- fetch documentation for a specific library version
- give an agent current API examples
- check code against a library’s documented methods

## Example prompts
- Use Context7 to check the current API for `react` before changing this component.
- Resolve the library ID for `postgres`, then show the documented way to run this query.
- Review these calls against `/org/project/version` documentation and fix the API usage.

## Similar
- [context7-cli](https://affpapa.org/en/nevibecode/skills/context7-cli.md) — skill · 8900 installs
- [context7-mcp](https://affpapa.org/en/nevibecode/skills/context7-mcp.md) — skill · 7200 installs
- [setup-context7-mcp](https://affpapa.org/en/nevibecode/skills/setup-context7-mcp.md) — skill · 1200 installs
- [context7-auto-research](https://affpapa.org/en/nevibecode/skills/context7-auto-research.md) — skill · 709 installs
- [Context7-Expert](https://affpapa.org/en/nevibecode/agents/context7-expert.md) — subagent · ★ 41430 repo stars
- [context7-docs](https://affpapa.org/en/nevibecode/plugins/context7-docs.md) — plugin · ★ 2858 repo stars

## Other versions with the same name
- [Context7 · upstash](https://affpapa.org/en/nevibecode/mcp/context7.md) — 5563 installs
- [Context7 · ](https://affpapa.org/en/nevibecode/mcp/docker-context7.md)

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
