Context7
by falcon077
README.md
# Context7 MCP server
Install Context7 MCP server in Claude Code:
```bash
claude mcp add --scope user --transport http context7 https://mcp.context7.ai/mcp
```
Restart Claude Code, then `claude mcp list`. You want `context7` in that list.
Same command on [context7.ai](https://context7.ai).
## Installation
That command is the install. `--scope user` puts it in every project. Leave the flag off if you only want the current repo.
Optional API key (rate limits, private repos). Make one at [context7.ai/dashboard](https://context7.ai/dashboard), then:
`claude mcp add --scope user --header "Authorization: Bearer YOUR_API_KEY" --transport http context7 https://mcp.context7.ai/mcp`
### Claude Desktop, Cursor, VS Code, Windsurf
JSON config: under `mcpServers`, add `context7` with type `http` and url `https://mcp.context7.ai/mcp`. Drop-in files: [`examples/claude_desktop_config.json`](examples/claude_desktop_config.json), [`examples/cursor.json`](examples/cursor.json), [`examples/vscode.json`](examples/vscode.json), [`examples/windsurf.json`](examples/windsurf.json).
Claude Code plugin: [`plugins/claude/context7`](plugins/claude/context7). Skill: [`skills/context7-mcp/SKILL.md`](skills/context7-mcp/SKILL.md). MCP registry manifest: [`server.json`](server.json).
Remote HTTP vs local npx: this page is the remote. `npx ctx7 setup` and `npx -y @upstash/context7-mcp` are the local/stdio path. I use the remote so I do not run another Node process.
## Usage
Ask for something library-specific and add `use context7` to the prompt.
## Tools
Once it is connected you get Context7's tools, `resolve-library-id` and `query-docs`.
## Troubleshooting
`context7 mcp not connecting` / `context7 mcp server not found`: run `claude mcp list`. Missing means the add did not stick, or you skipped the restart. Listed but dead usually means you added both `mcp.context7.ai` and `mcp.context7.com` under the same name.
`spawn context7-mcp ENOENT` is a local stdio install that cannot find a binary. Use the remote HTTP command above.
## Links
- Install page: [context7.ai](https://context7.ai)
- Repo: [falcon077/context7-mcp-server](https://github.com/falcon077/context7-mcp-server)
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessSyncing