context7  by upstash

MCP server for up-to-date code documentation in AI code editors

created 4 months ago
23,234 stars

Top 1.8% on sourcepulse

GitHubView on GitHub
Project Summary

Context7 MCP Server provides up-to-date, version-specific code documentation and examples directly into AI coding assistants, addressing the common LLM issues of outdated information, non-existent APIs, and generic answers. It targets developers using AI code editors like Cursor, Windsurf, and Claude Desktop, enabling them to receive accurate, context-aware code suggestions without manual research.

How It Works

Context7 MCP acts as a Model Context Protocol (MCP) server, fetching current documentation and code snippets from source repositories. When a user prompts their AI assistant to "use context7," the MCP server is invoked. It resolves library identifiers, retrieves relevant documentation for specified topics and versions, and injects this information into the LLM's context window, ensuring responses are based on the latest available information.

Quick Start & Requirements

Highlighted Details

  • Integrates with multiple AI coding assistants: Cursor, Windsurf, Claude Desktop, VS Code, Zed.
  • Supports various execution environments: npx, bunx, deno, and Docker.
  • Includes tools for resolving library IDs and fetching documentation with optional topic filtering.
  • Offers troubleshooting tips for common module resolution and ESM issues.

Maintenance & Community

  • Developed by Upstash.
  • Mentions in various media outlets highlighting its utility for AI coding.
  • Community support channels are not explicitly listed in the README.

Licensing & Compatibility

  • License: MIT.
  • Compatibility: Permissive MIT license allows for commercial use and integration with closed-source projects.

Limitations & Caveats

The README includes a disclaimer stating that Context7 projects are community-contributed, and while efforts are made to maintain quality, accuracy and completeness of documentation cannot be guaranteed. Users acknowledge they use it at their own discretion and risk.

Health Check
Last commit

1 day ago

Responsiveness

1 day

Pull Requests (30d)
41
Issues (30d)
80
Star History
17,942 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.