Context7

general MCP Server

Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors

Install Ready
generalgeneral
27 views62,603 stars3,042 forksv1.0.0MIT

Why This Matters

Discovered via unknown and last synced 3mo ago.

Install Ready
Source
unknown
Stars
62,603
Last synced
3mo ago
Install
Instructions detected

Install

1. Install the package

npx -y @upstash/context7-mcp@latest

2. Add to claude_desktop_config.json

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

Config file location: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) / %APPDATA%\Claude\claude_desktop_config.json (Windows)

2
Tools
0
Resources
0
Prompts
Standard I/O
Transport

Who Is This For?

AI engineers and developers building with Claude who need fast access to current, accurate code documentation. Backend engineers integrating Claude into applications benefit from up-to-date context about libraries and APIs. Code editor extension developers can leverage this to provide intelligent, documentation-aware suggestions to end users.

Use Cases

Keep Claude's code knowledge current

Automatically provide Claude with the latest library versions, API changes, and documentation updates. This ensures code generation and suggestions reflect current best practices rather than training data cutoffs.

Build smarter AI code assistants

Integrate real-time documentation into Claude-powered code editors and IDE extensions. Users get context-aware completions and explanations based on the actual current state of dependencies.

Improve RAG for code generation

Use Context7 as a documentation source in retrieval-augmented generation pipelines. Ground code generation in verified, up-to-date API documentation rather than hallucinated or outdated references.

Enhance code review and debugging

Feed current documentation context into Claude when analyzing pull requests or debugging issues. Claude can reference the actual current API behavior and deprecation notices while reviewing code.

Frequently Asked Questions

What code documentation does Context7 provide access to?

Context7 provides up-to-date code documentation for popular libraries, frameworks, and APIs. The specific sources and coverage are maintained by Upstash to ensure developers get current, accurate technical references.

How do I integrate this into my Claude-powered application?

Context7 is an MCP server, so it integrates with Claude through the Model Context Protocol. You configure it as a resource in your MCP client or development environment to make documentation available to Claude in your conversations and applications.

Does this update automatically when libraries release new versions?

Yes, Context7 maintains up-to-date documentation, which means Claude gets access to current API references without manual updates. This eliminates the problem of Claude referencing outdated or deprecated APIs.

Can I use this with Claude's API directly or just in Claude.ai?

As an MCP server, Context7 works with Claude through the Model Context Protocol, enabling integration with Claude API applications and Claude.ai workflows. Your implementation approach depends on your architecture and which Claude integration point you're using.

Available Tools (2)

resolve-library-id

Resolve a package or product name to a Context7-compatible library ID.

query-docs

Retrieve current documentation and code examples for a Context7 library ID.

Related Combinations

See how Context7 fits into curated workflow stacks, not just adjacent tools.

1 stack