Context7 MCP
officialVersion-correct library documentation for coding agents
What is Context7 MCP?
Built by Upstash, Context7 pulls version-specific documentation and code examples from source so an agent stops writing against a library version that shipped two years ago. Free, no API key, and one of the two servers most often recommended as a developer baseline.
Requirements: No credentials required. Any client that supports remote MCP servers over HTTP.
Connection URLs
Streamable HTTP (recommended)
https://mcp.context7.com/mcpSolves a specific and very common failure. Training data has a cutoff, fast-moving frameworks do not, and an agent will confidently invent API signatures that no longer exist. Context7 fetches the real current docs instead.
One quirk worth knowing: it works best when you tell the agent to consult it before coding. Left installed and never mentioned, some clients will not reliably select it. A standing rule in your client configuration that pulls Context7 docs for any code-related question fixes this.
Low-risk read-only lookup, though you are sending prompts to a third party.