claude mcp add context7 -- npx -y @upstash/context7-mcp
Or with remote HTTP transport (no local Node required):
claude mcp add --transport http context7 https://mcp.context7.com/mcp
Add --scope user for global install across all projects.
Usage: Append use context7 to your prompt to fetch up-to-date docs. Example: "How do I configure NSubstitute returns? use context7"
API key: Optional but recommended for higher limits - get one at context7.com/dashboard, then:
claude mcp add context7 -- npx -y @upstash/context7-mcp --api-key ctx7sk_xxx
Sources:
claude mcp add context7 -- npx -y @upstash/context7-mcp
Or with remote HTTP transport (no local Node required):
claude mcp add --transport http context7 https://mcp.context7.com/mcp
Add --scope user for global install across all projects.
Usage: Append use context7 to your prompt to fetch up-to-date docs. Example: "How do I configure NSubstitute returns? use context7"
API key: Optional but recommended for higher limits - get one at context7.com/dashboard, then:
claude mcp add context7 -- npx -y @upstash/context7-mcp --api-key ctx7sk_xxx
Sources: