context7

context7

1

Context7 MCP is a tool designed to provide up-to-date, version-specific code documentation directly into various development environments, ensuring accurate code examples and reducing reliance on outdated or generic data. This facilitates seamless integration into platforms like Cursor, Claude Desktop, and more, optimizing the developer experience.

Context7 MCP - Up-to-date Code Docs For Any Prompt

Context7 MCP pulls up-to-date, version-specific documentation and code examples from the source directly into your prompt, providing accurate and relevant information without outdated code or hallucinated APIs. Simply add use context7 to your prompt in various LLM contexts to benefit from real-time documentation without the need for tab-switching.

Features

  • Fetches real-time, version-specific documentation and code examples.
  • Supports multiple environments: Node.js, Cursor, Windsurf, Claude Desktop, VS Code, Zed, Claude Code, and Docker.
  • Offers customizable settings such as minimum token count for documentation retrieval.
  • Includes tools like resolve-library-id and get-library-docs.

Getting Started

  • Node.js >= v18.0.0 is required.
  • Installation guides provided for multiple platforms including Cursor, Claude Desktop, VS Code, Windsurf, and Docker.

Installation

  • Install through Smithery for Claude Desktop.
  • Configurations available for Cursor, VS Code, Windsurf, Zed, and Claude Desktop.
  • Docker setup instructions are provided for containerized implementation.