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.