Context7 MCP Server

Popular
AI & Reasoning
stdio
Featured

Provides AI agents with up-to-date documentation for libraries and frameworks. Instead of relying on training data, Context7 fetches current documentation in real-time, preventing hallucinated APIs and outdated patterns.

Quick Install

$ npx -y @upstash/context7-mcp

Configuration by Client

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

Need a different client? Use the Config Generator for Windsurf, Cline, Antigravity, and more.

Available Tools (2)

resolve-library-idget-library-docs

Context7 FAQ

What is the Context7 MCP server?

Provides AI agents with up-to-date documentation for libraries and frameworks. Instead of relying on training data, Context7 fetches current documentation in real-time, preventing hallucinated APIs and outdated patterns.

How do I install the Context7 MCP server?

Run: npx -y @upstash/context7-mcp

Which AI clients support the Context7 MCP server?

The Context7 MCP server works with Claude Desktop, Cursor, Codex CLI, Antigravity, Windsurf, and any MCP-compatible client using stdio transport.

What tools does the Context7 MCP server provide?

The server provides 2 tools: resolve-library-id, get-library-docs.