← Claude MCP Servers Directory

📚

Context7 MCP Server

Community

About

Up-to-date code documentation for LLMs and AI code editors. Dynamically fetches version-specific documentation and code examples from official sources.

Features

  • Fetches current official documentation
  • Version-specific code examples
  • Integrates directly into context window
  • Prevents deprecated API usage

Installation

Using Claude Desktop

Add this configuration to your Claude Desktop config file:

{
  "mcpServers": {
    "context7": {
      "command": "npx",
      "args": [
        "-y",
        "@upstash/context7-mcp"
      ]
    }
  }
}

Using Cursor

Configure in your Cursor settings (Settings > MCP):

{
  "context7": {
    "command": "npx",
    "args": [
      "-y",
      "@upstash/context7-mcp"
    ]
  }
}

How to Use

Once installed, you can ask your AI assistant to:

  • "Get up-to-date library documentation"
  • "Find current API examples"
  • "Avoid deprecated methods"
  • "Access version-specific guides"