Context7: Documentation
Updated:
Connection
- Remote:
https://mcp.context7.com/mcp(Streamable HTTP), optionalCONTEXT7_API_KEYheader. - Local:
npx -y @upstash/context7-mcp.
Tools
resolve-library-id— find a library by name (e.g. "next.js").query-docs— fetch docs and examples for a specific question.
Agent flow
Before writing code against an external library: resolve-library-id → query-docs → code from fresh docs, not from memory.