Context7 MCP
CommunityRegionGlobal
/Context7 MCP, explained
Context7 is an MCP server by Upstash that gives AI coding agents access to current, version-specific documentation and code examples for software libraries and frameworks. Instead of relying on outdated training data, agents can query Context7 to retrieve docs straight from the source, reducing hallucinated APIs and stale code generation.
It works in two modes: a CLI + Skills mode where an installed skill guides the agent to fetch docs using ctx7 CLI commands, and an MCP mode where the agent calls documentation tools natively. It integrates with clients like Claude, ChatGPT, Cursor, and VS Code, and can be set up with a single npx command.
An API key from context7.com is recommended for higher rate limits, and requests are authenticated via a Bearer token. The MCP server source is open source under the MIT license, while the API backend, parsing engine, and crawling engine are private.
Context7 library projects are community-contributed, and the maintainers note they cannot guarantee the accuracy or security of all documentation.
AI-generated listing based on the project's public information. It may contain errors: check the original source.
/What Context7 MCP is for
/What Context7 MCP can do once connected
What your assistant can call once connected.
| Tool | What it does |
|---|---|
| resolve-library-id | Resolves a general library name into a Context7-compatible library ID, ranking results by relevance to the user's question or task. |
| query-docs | Retrieves up-to-date documentation and code examples for a library using a Context7-compatible library ID, with optional language ranking. |
/Context7 MCP: frequently asked questions
Do I need a key or an account?
No. It connects without a key.
Which assistants does it work with?
Claude, ChatGPT, Gemini, Grok
Which countries does it work in?
Any country.
