LogoVibeCodingHunt

MCP Server

Context7

MCP server that fetches up-to-date, version-specific documentation and code examples directly from library sources

Documentation
Development Tools
Remote HTTP

What is Context7?

Context7 is a production-ready MCP server developed by Upstash that revolutionizes how AI coding assistants access library documentation. Unlike traditional approaches that rely on outdated training data, Context7 dynamically retrieves current documentation and code examples directly from the source, eliminating hallucinated APIs and deprecated patterns. The server operates in two modes: a CLI-based skill system that doesn't require MCP infrastructure, and a native MCP server that exposes documentation tools through the Model Context Protocol. Both approaches use the Context7 API to search and retrieve library-specific documentation with version matching capabilities. The server supports over 30 different AI coding clients including Cursor, Claude Code, and VS Code extensions, making it a versatile solution for keeping coding assistants synchronized with the latest library releases. Context7's free tier provides basic access while authenticated users with API keys receive higher rate limits and priority access to the documentation index.

Key capabilities

Dynamic Library Documentation Retrieval

Fetches up-to-date documentation and code examples directly from library sources using the resolve-library-id and query-docs MCP tools, with support for version-specific queries and automatic library matching based on user context.

Dual-Mode Operation with CLI and MCP

Supports both CLI-based skill installation using ctx7 commands and native MCP server integration via https://mcp.context7.com/mcp, allowing developers to choose between no-MCP skill workflows or protocol-native tool exposure.

OAuth Authentication with API Key Management

Implements OAuth-based setup flow via npx ctx7 setup command that generates API keys, which are passed through CONTEXT7_API_KEY HTTP header for rate limit upgrades and authenticated access to the documentation index.

Version-Specific Documentation Matching

Automatically resolves library versions mentioned in natural language prompts (e.g., 'Next.js 14 middleware') and retrieves documentation for the exact requested version using Context7's library ID system.

Use cases

Eliminating Hallucinated APIs in Code Generation

Prevents AI coding assistants from generating code using deprecated or non-existent APIs by injecting current library documentation into the context before code generation, ensuring generated code matches the latest stable release.

Version-Aware Library Integration

Enables developers to request specific library versions in prompts (e.g., 'show me Supabase 2.x auth patterns') and receive accurate documentation for that exact version, avoiding confusion between breaking changes across releases.

Cross-Client Documentation Access

Provides consistent documentation retrieval across 30+ AI coding clients through standardized MCP tools or CLI skills, supporting workflows in Cursor, Claude Desktop, VS Code, Zed, and other MCP-compatible environments.

Rate-Limited Free Tier with Upgrade Path

Offers immediate access through unauthenticated endpoints with basic rate limits, while providing a frictionless OAuth upgrade path for developers who need higher throughput or priority access to the documentation index.

MCP capabilities

Tools

resolve-library-id

query-docs

Connection and auth

Remote streamable HTTP
Context7 API key
  • Node.js 18 or newer for CLI installation
  • Optional API key from context7.com/dashboard for higher rate limits
  • MCP client with HTTP transport support for remote server mode

Client configuration

Claude Code

{ "type": "http", "url": "https://mcp.context7.com/mcp" }

FAQs