Skip to main content
Clients
VS Code
Using Context7 with VS Code
The Context7 VS Code extension registers the Context7 MCP server with VS Code’s built-in MCP support, so AI features like Copilot Chat in agent mode get current library documentation instead of relying on training data.
The extension connects to the hosted server at
If you know the library ID, use it directly to skip resolution:
https://mcp.context7.com/mcp. There is no local server process to manage and nothing to update manually. The source is available at upstash/context7-vscode-extension.
Installation
Install Context7 MCP Server from the Visual Studio Marketplace, or search forUpstash.context7-mcp in the Extensions view.
Requires VS Code 1.101 or later.
The server registers automatically when the extension activates. To confirm, run the MCP: List Servers command and check that “Context7” is listed.
If you prefer to configure the MCP server yourself instead of using the extension, see All MCP Clients.
Adding an API Key
An API key gives you higher rate limits and access to private repositories. Create one in the Context7 dashboard.Using Context7
Add “use context7” to your prompts in Copilot Chat:Available Tools
The extension exposes the two Context7 tools to VS Code:resolve-library-id: Resolves a package or product name to a Context7-compatible library IDquery-docs: Fetches up-to-date documentation for a library
