This project provides the Context7 MCP Server for seamless integration with LLMs and AI code editors. Context7 MCP Server enables up-to-date code documentation and context management for various AI-powered development tools. It supports easy installation and configuration across popular editors and platforms, including VS Code, Cursor, Zed, JetBrains, and more. By using the @upstash/context7-mcp package, developers can connect their clients to Context7’s remote or local server, ensuring efficient access to code documentation and context-aware features for enhanced productivity in AI-assisted coding environments.
resolve-library-idResolves a general library name into a Context7-compatible library ID
Parameters:
libraryName (required): The name of the library to search forFunctionality:
/org/project)get-library-docsFetches documentation for a library using a Context7-compatible library ID
Parameters:
context7CompatibleLibraryID (required): Exact Context7-compatible library ID (e.g., /mongodb/docs, /vercel/next.js)topic (optional): Focus the docs on a specific topic (e.g., "routing", "hooks")tokens (optional, default 10000): Max number of tokens to return. Values less than the default are automatically increased to 10000{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
}
}
}