Context7
ActiveDescription
Context7 is Upstash's context-engineering toolkit for agents, helping applications manage long context windows, retrieval injection, and history compression.
Key Features
- Real-time documentation retrieval — pulls latest version-specific library docs and code examples via MCP or CLI, injected directly into LLM context
- Dual-mode integration — supports CLI + Skills (ctx7 commands) and MCP Server, compatible with Cursor/Claude Code/OpenCode and other major agents
- Library version matching — automatically resolves library names and versions to fetch precise, version-appropriate docs
- Context injection — embeds retrieved documentation directly into prompts without tab-switching, reducing hallucination
- CLI toolchain — ctx7 library search and ctx7 docs query commands, scriptable for pipeline integration
- TypeScript SDK — provides @upstash/context7-sdk and Vercel AI SDK tool extensions
Use Cases
Tags
Categories
Quick Start
npx ctx7 setup