# Context7 MCP Documentation Server for LLM Code Editors

> Context7 by Upstash injects up-to-date, version-specific library documentation and code examples directly into AI prompts. Eliminates hallucinated APIs and outdated code generation by pulling documentation straight from the source at query time.

- Skill: `agentskillexchange/context7-mcp-documentation-server-for-llm-code-editors` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/context7-mcp-documentation-server-for-llm-code-editors`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/context7-mcp-documentation-server-for-llm-code-editors/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/context7-mcp-documentation-server-for-llm-code-editors

---


# Context7 MCP Documentation Server for LLM Code Editors

Context7 by Upstash injects up-to-date, version-specific library documentation and code examples directly into AI prompts. Eliminates hallucinated APIs and outdated code generation by pulling documentation straight from the source at query time.

## Installation

Use the upstream install or setup path that matches your environment:
- npx ctx7 setup
- To remove the generated setup later, run npx ctx7 remove. If you globally installed the CLI with npm install -g ctx7, remove that package separately with npm uninstall -g ctx7.

Basic usage or getting-started notes:
- [!NOTE]
- **API Key Recommended**: Get a free API key at [context7.com/dashboard](https://context7.com/dashboard) for higher rate limits.
- Set up Context7 for your coding agents with a single command:

- Source: https://github.com/upstash/context7
- Extracted from upstream docs: https://raw.githubusercontent.com/upstash/context7/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/context7-mcp-documentation-server-llm-code-editors/)

