Context7 MCP Server
The Context7 MCP Server solves a very specific pain: AI often writes code with outdated APIs, or invents methods that don't exist. Context7 pulls the latest official docs for the library you're using and feeds them to the AI before it answers.
Usage is simple — add "use context7" to your prompt, and the AI checks the latest docs before writing code. It's especially useful for fast-moving libraries (Next.js, various SDKs).
What it does for you
Feeds your AI up-to-date, accurate library docs — no more outdated APIs; it pulls the latest official docs while coding.
Capabilities
- Pull latest official docs by library
- Get version-specific API usage
Once installed, try asking your AI
Say this directly in Claude / Cursor or any client with this server connected
- ›“Set up a middleware using the latest Next.js 15 API”
- ›“Look up this library's currently recommended setup”
Install / Connect
claude mcp add context7-mcp -- npx -y @upstash/context7-mcpFollow the official README; env and args vary per server.
Works with these clients
- Claude Desktopnpx
- Claude Codenpx
- Cursornpx
- VS Codenpx
- Windsurfnpx
Derived from the registry manifest (package type and transport) — we have not installed it ourselves. Check the official README before relying on it.
Why use it
Good for: developers writing code in Cursor / Claude Code who keep getting burned by outdated APIs.
It's one of the highest-TrustScore servers on this site — actively maintained and widely adopted. Full health data is shown below.
Similar / alternative servers
ai.smithery/docfork-mcp
@latest documentation and code examples to 9000+ libraries for LLMs and AI code
ai.smithery/renCosta2025-context7fork
Get up-to-date, version-specific documentation and code examples from official s
sentry-mcp
An MCP server for interacting with Sentry via LLMs.
com.vibgrate/ai-context
Local-first MCP server: version-correct library docs, code map, and offline drif
Frequently Asked Questions
Which libraries does Context7 support?
It covers official docs for a large set of popular open-source libraries and frameworks, continuously updated. Check a specific library's site to confirm support.
Does it cost money?
The MCP server itself is open-source and free to use.