Context7
🔌 MCP ServerUp-to-date, version-accurate library docs for AI
An MCP server that feeds current, version-specific official library docs and code examples to the model, cutting stale or hallucinated APIs. Just add "use context7" to your prompt.
Install / Add
npx -y @upstash/context7-mcp Why we picked it
An LLM's memory of a library freezes at its training cutoff, so it happily writes code against APIs that were renamed or removed long ago. Context7's approach is simple: at query time it pulls the current version's official docs and examples into context so the model codes against the real, latest surface.
It's open source under MIT, runs as a single local npx command, and plugs into Claude, Cursor, Cline and virtually any MCP client — with basic usage needing no sign-up. For anyone living in third-party libraries, it's one of the lowest-effort ways to squash hallucinated APIs.
Frequently Asked Questions
- Which AI clients support Context7 and how do I install it?
- Context7 works with Claude, Claude Code, Cursor, Cline, Any MCP client. Install or launch it via `npx -y @upstash/context7-mcp`.
- Is Context7 free and open source?
- Yes, Context7 is released for free under the MIT license with no ads.
- What are some related MCP servers or Agent Skills to Context7?
- Related free and open-source options include MetaMCP, shadcn/ui Official & Community MCP, 21st.dev Magic UI MCP.