DEV · Dev Tools · Official server
Context7
Up-to-date, version-specific library docs and code examples for coding agents.
- Transport
- Remote (HTTP)
- Status
- Official · Upstash
- Auth method
- API key recommended (Bearer header)
- Scopes / permissions
- Not documented
- Last verified
- Oct 22, 2026
- Tools (live)
- 02
§1What it does
Context7 pulls current documentation for libraries directly into the prompt, reducing hallucinated or outdated APIs.
§2Setup
{
"mcpServers": {
"context7": {
"url": "https://mcp.context7.com/mcp"
}
}
}Snippets adapted from the official documentation. Check the official page for current options and auth requirements.
§2aTools (live-checked Oct 16, 2026)
Returned by the server's own tools/list via remote https://mcp.context7.com/mcp. No credentials used; no tools were called.
resolve-library-id— Resolves a package/product name to a Context7-compatible library ID and returns matching libraries. You MUST call this function before 'Query Documentation' tool to obtain a valid Context7-compatible library ID UNLESS the user explicitly provides a library ID in the format '/org/project' or '/org/prquery-docs— Retrieves and queries up-to-date documentation and code examples from Context7 for any programming library or framework. You must call 'Resolve Context7 Library ID' tool first to obtain the exact Context7-compatible library ID required to use this tool, UNLESS the user explicitly provides a library
§3Prompts to try
- “Use context7: how do I set up middleware in Next.js 15?”
- “Show the current Supabase auth API for React.”