Skip to content

Context7 Platform -- Up-to-date docs for AI agents

docs: add --scope user to Claude Code install commands (#1812)

milosz-l22057ba0f0ac
diff --git a/README.md b/README.md
index 537876f4..50d1540e 100644
--- a/README.md
+++ b/README.md
@@ -90,15 +90,17 @@ Run this command. See [Claude Code MCP docs](https://code.claude.com/docs/en/mcp
#### Claude Code Local Server Connection
```sh
-claude mcp add context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEY
+claude mcp add --scope user context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEY
```
#### Claude Code Remote Server Connection
```sh
-claude mcp add --header "CONTEXT7_API_KEY: YOUR_API_KEY" --transport http context7 https://mcp.context7.com/mcp
+claude mcp add --scope user --header "CONTEXT7_API_KEY: YOUR_API_KEY" --transport http context7 https://mcp.context7.com/mcp
```
+> Remove `--scope user` to install for the current project only.
+
</details>
<details>
diff --git a/packages/mcp/README.md b/packages/mcp/README.md
index f37dbec8..efc10bd6 100644
--- a/packages/mcp/README.md
+++ b/packages/mcp/README.md
@@ -139,15 +139,17 @@ Run this command. See [Claude Code MCP docs](https://docs.anthropic.com/en/docs/
#### Claude Code Local Server Connection
```sh
-claude mcp add context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEY
+claude mcp add --scope user context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEY
```
#### Claude Code Remote Server Connection
```sh
-claude mcp add --header "CONTEXT7_API_KEY: YOUR_API_KEY" --transport http context7 https://mcp.context7.com/mcp
+claude mcp add --scope user --header "CONTEXT7_API_KEY: YOUR_API_KEY" --transport http context7 https://mcp.context7.com/mcp
```
+> Remove `--scope user` to install for the current project only.
+
</details>
<details>