Context7 MCP server
Version-specific library documentation and code examples, fetched on demand so an agent stops guessing at an API from a stale training set.
- Version:
- hosted
- Publisher:
- Upstash
Why you would use it
Most wrong code an agent writes is right for a version you are not running. Context7 answers "how does this call look in the version in my lockfile" instead.
Context7 resolves a library name to its documentation and returns the pages that match the question, pinned to the version the agent names. It is the difference between an agent that reads the docs and one that remembers them.
Install
Generated from the server’s transport data — never hand-written. Placeholders in angle brackets are yours to fill.
Hosted — https://mcp.context7.com/mcp
claude mcp add --transport http context7 https://mcp.context7.com/mcp --header 'CONTEXT7_API_KEY: <CONTEXT7_API_KEY>'What it can do
No capability summary yet — the publisher has not declared one and it has not been verified.
Setup gotchas
- The hosted endpoint works without a key at a low rate; add a Context7 API key as the header when a coding agent runs long sessions.
- Ask for a library by its package name, not its marketing name — `next` finds Next.js, `Next` may not.