Context7 MCP
Official Context7 MCP server that brings up-to-date, version-specific library documentation and code examples into AI coding prompts.
Ads
Overview
LLMs rely on outdated or generic information about the libraries you use. You get: - ❌ Code examples are outdated and based on year-old training data - ❌ Hallucinated APIs that don't even exist - ❌ Generic answers for old package versions Context7 pulls up-to-date, version-specific documentation and code examples straight from the source — and places them directly into your prompt. Context7 fetches up-to-date code examples and documentation right into your LLM's context. No tab-switching, no hallucinated APIs that don't exist, no outdated code generation.
Installation
npx ctx7 setup
Configuration
Configuration example is not available yet.
Capabilities
- Resolve library IDs
Use `resolve-library-id` to convert a library name like "Supabase" into a Context7-compatible ID for doc lookups.
- Fetch current docs
Call `query-docs` with a library ID to pull up-to-date, version-matched documentation into your prompt.
- Target specific versions
Ask for docs for a specific version (e.g., "Next.js 14") and Context7 matches the right docs automatically.
- Skip matching with IDs
Reference a library directly by its Context7 ID (e.g., `/vercel/next.js`) to retrieve docs without the lookup step.
- Get real code examples
Retrieve current code examples from source documentation to avoid hallucinated or outdated APIs.
Tags
- documentation
- knowledge-retrieval
- coding-agent
- development
Related MCP servers
Chrome DevTools MCP
OfficialOfficial Chrome DevTools MCP server for controlling and inspecting a live Chrome browser from coding agents such as Gemini, Claude, Cursor, and Copilot.
Mastra/mcp
OfficialClient implementation for Mastra, providing seamless integration with MCP-compatible AI models and tools.
GitHub MCP Server
OfficialConnect your AI assistant to GitHub repositories, issues, pull requests, and search.
Kubeshark
OfficialMCP access to cluster-wide L4 and L7 network traffic, packets, APIs, and complete payloads.