Context7 Clone
About
An MCP server for providing up-to-date documentation for LLMs and AI code editors
Details
- Author
- Suprjack
- Downloads
- 223
- Categories
- Other
Jump to
- Provides up-to-date documentation for popular libraries and frameworks
- Integrates with AI coding assistants via the Model Context Protocol
- Supports topic-specific documentation retrieval
- Allows token limiting to fit within context windows
- Includes a simple web interface for testing
Install Node.js >=14.0.0, clone the repository, run npm install, npm build, then npm start. The web interface is available at http://localhost:3000. For integration with AI assistants like Cursor or Claude Desktop, add the server configuration to their MCP JSON config files. Use the provided MCP tools (resolve-library-id, get-library-docs) to resolve library names and fetch documentation.
Context7 Clone
An MCP (Model Context Protocol) server for providing up-to-date documentation for LLMs and AI code editors, inspired by Context7.
Features
- Provides up-to-date documentation for popular libraries and frameworks
- Integrates with AI coding assistants via the Model Context Protocol (MCP)
- Supports topic-specific documentation retrieval
- Token limiting to fit within context windows
- Simple web interface for testing
Getting Started
Prerequisites
- Node.js >= 14.0.0
Installation
1. Clone the repository:
git clone https://github.com/Suprjack/context7-clone.git
cd context7-clone
2. Install dependencies:
npm install
3. Build the project:
npm run build
4. Start the server:
npm start
The server will be running at http://localhost:3000.
Usage
Web Interface
Visit http://localhost:3000 in your browser to use the web interface for testing the documentation retrieval.
Integration with AI Coding Assistants
Cursor
Add this to your ~/.cursor/mcp.json file:
{
"mcpServers": {
"context7-clone": {
"command": "node",
"args": ["path/to/context7-clone/dist/index.js"]
}
}
}
Claude Desktop
Add this to your Claude Desktop configuration:
{
"mcpServers": {
"context7-clone": {
"command": "node",
"args": ["path/to/context7-clone/dist/index.js"]
}
}
}
API
The server implements the Model Context Protocol (MCP) and provides the following tools:
resolve-library-id
Resolves a general library name into a Context7-compatible library ID.
Parameters:
- libraryName (string): The name of the library to resolve
get-library-docs
Fetches documentation for a library using a Context7-compatible library ID.
Parameters:
- context7CompatibleLibraryID (string, required): The Context7-compatible library ID
- topic (string, optional): Focus the docs on a specific topic (e.g., "routing", "hooks")
- tokens (number, optional, default 5000): Max number of tokens to return
Development
Running in Development Mode
npm run dev
This will start the server with hot reloading enabled.
License
MIT
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



