ctx7 setup, or install the Context7 plugin.
Installation
Run the setup command to configure Context7 for Claude Code:Using Context7
Withctx7 setup, a skill is installed that triggers automatically when you ask about libraries — no need to say “use context7”. You can also invoke it explicitly:
The Context7 Plugin
The Context7 plugin connects Claude Code to the hosted Context7 MCP server (https://mcp.context7.com/mcp). It adds the resolve-library-id and query-docs tools, with no local Node.js, npm, or npx required.
Installing the Plugin
The plugin is available from the Context7 marketplace. Run these commands in Claude Code:Signing In
After installing the plugin, restart Claude Code and run/mcp. Select Context7 and follow the browser sign-in flow. No API key is required.
The plugin does not read
CONTEXT7_API_KEY. To use an API key, for example on a headless, SSH, or CI host, run npx ctx7 setup --claude or add the MCP server manually as described in All MCP Clients.