Data as of
Context7 for Claude Code: Setup & Config
Context7 retrieves current library documentation and code examples for Claude Code.
Context7 Claude Code configuration
Choose Claude Code configuration scope
For Context7, open Project scope: .mcp.json at the repository root. Project JSON: merge into mcpServers; user scope: use the CLI.
Add Context7 to Claude Code
Use the context7-mcp entry below in mcpServers. Keep Context7's documented http connection fields and your other Claude Code entries.
Check Context7 in Claude Code
Context7: Inspect claude mcp list and /mcp status.
Config file · Project scope: .mcp.json at the repository root
{
"mcpServers": {
"context7-mcp": {
"type": "http",
"url": "https://mcp.context7.com/mcp"
}
}
}claude mcp add-json --scope project 'context7-mcp' '{"type":"http","url":"https://mcp.context7.com/mcp"}'Context7 in Claude Code: http checks
- Inspect claude mcp list, then Context7's connection to mcp.context7.com in /mcp. Complete Claude Code authentication only for a trusted service.
- Context7: check http connectivity to mcp.context7.com from Claude Code; a stdio command is not a replacement for this endpoint.
- Catalog transports
- stdio
- Tools
- resolve-library-id, query-docs
Context7 — details. Claude Code guide
Frequently asked questions
Register Context7 with the displayed claude mcp add-json --scope project command, or merge the JSON into .mcp.json at the repository root.
Claude Code's context7-mcp example uses http. The Context7 catalog lists stdio; these instructions follow the stored configuration instead.
Claude Code connects Context7 to mcp.context7.com using url.
Context7's stored list contains 2 tools, including resolve-library-id, query-docs. Compare those names with Claude Code's connected tool list; the stored list is not a live check.