Context7

Community

Up-to-date code documentation for LLMs and AI code editors.

About Context7 MCP Server

Context7 is an MCP server in the RAG & Knowledge category. It exposes up-to-date code docs, for llms/ai editors to connected AI applications, enabling them to interact with context7 capabilities through the standardized Model Context Protocol.

Features

Up-to-date code docs
For LLMs/AI editors

Category

RAG & Knowledge
Getting Started

To use the Context7 MCP server in your AI application, follow these steps:

  1. Install the MCP client SDK for your platform
  2. Connect to the Context7 MCP server
  3. Authenticate with your Context7 credentials
  4. Start using the tools, resources, and prompts provided by the server

Example Code


// Connect to the Context7 MCP server
const server = await mcp.connect("context7");

// List available tools
const tools = await server.tools.list();

// List available resources
const resources = await server.resources.list();

// List available prompts
const prompts = await server.prompts.list();
                      
Installation

npm

npm install @mcp/server-context7

pip

pip install mcp-server-context7
Compatible With
Claude Desktop
Cursor
Windsurf
Zed
Any MCP-compatible client