Tool connections (MCP)
Context7
Give AI current library documentation and examples before it writes code.
Install
System terminalTerminal commands
- Install Node.js and npm first; follow the project’s required version.
- A service account is required; check its available plan and permissions.
- The installer asks which assistant to configure. Select the one you actually use.
- Save the configuration, then restart or reload your assistant or editor.
System terminal
npx ctx7 setupRequirements, costs and detailed steps
Context7 setup and requirements
- What you need
- The assistant needs internet access for documentation queries.
- Prepare a Context7 account for the selected setup; local installation also needs Node.js 18 or newer.
- Costs
- Free account quotas are available. Check Context7 for current limits and paid plans; assistant usage is separate.
- Required permissions
- Library names and queries are sent to Context7. Documentation lookup does not require uploading a whole private project or repository write access.
CodexOfficial setup documented
Context7 documents setup for Codex.
Setup steps
- Open the installation guide for your assistant and choose MCP.
- Connect Context7 as documented and complete any required browser sign-in.
- Reopen the assistant and check for Context7 documentation tools.
Check that setup worked
Name a library and version, ask for an API example, and check the documentation source and version.
Official sources
Claude CodeOfficial setup documented
Context7 documents setup for Claude Code.
Setup steps
- Open the installation guide for your assistant and choose MCP.
- Connect Context7 as documented and complete any required browser sign-in.
- Reopen the assistant and check for Context7 documentation tools.
Check that setup worked
Name a library and version, ask for an API example, and check the documentation source and version.
Official sources
CursorOfficial setup documented
Context7 documents setup for Cursor.
Setup steps
- Open the installation guide for your assistant and choose MCP.
- Connect Context7 as documented and complete any required browser sign-in.
- Reopen the assistant and check for Context7 documentation tools.
Check that setup worked
Name a library and version, ask for an API example, and check the documentation source and version.
Official sources
Official sources
Setup guidance reviewed 2026-10-12 · Based on public documentation; not individually installed and tested here.
What is Context7?
Context7 brings relevant library and framework documentation into the conversation instead of leaving the assistant to rely on its training data. It is useful when adopting a library, upgrading a project, or checking API usage; include the library name and version in your question. The project documents MCP and other setup options, with access and rate limits governed by its current service guidance.
Context7 use cases
- Look up relevant library and framework documentation
- Retrieve version-specific code examples
- Include the library, version, and question in your request
Official project & documentation
Alternatives to Context7 for similar tasks
Compare plugins for similar tasks and check their setup requirements.
- Agno Docs MCP — Search official Agno documentation from an MCP-compatible coding assistant.
- MarkItDown MCP — Let AI convert PDF, Word, and spreadsheet files into text it can work with.
- Graphify — Map code and document relationships to help AI find relevant context.