context7
View on GitHubContext7 Platform -- Up-to-date code documentation for LLMs and AI code editors
Context7 is an MCP server and CLI that pulls version-specific, up-to-date library documentation and code examples directly into LLM prompts. It exposes resolve-library-id and query-docs tools (or ctx7 library/docs commands) so coding agents stop hallucinating outdated APIs.
Use Cases
Inject up-to-date library docs into LLM promptsResolve a library name to a Context7 library IDFetch version-specific API docs and code examplesPrevent hallucinated APIs in AI code generationAdd Context7 as an MCP server in Cursor/Claude Code/OpenCodeInstall Context7 skills via ctx7 CLI without MCPTrigger doc lookups automatically through agent rulesBuild custom tools on the Context7 TypeScript SDKQuery documentation through the REST API
Built With
- Language
- TypeScript
- Frameworks
- Model Context Protocol · Vercel AI SDK · Node.js · TypeScript · pnpm · Changesets
Tags
mcp · mcp-server · documentation · context · llm · vibe-coding · code-docs · developer-tools · typescript · cursor · claude-code · cli · vercel-ai-sdk · api-docs · upstash