Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on Windows
Context7 Platform -- Up-to-date docs for AI agents
Saved setup from 1 min ago
Will it work on Windows?
Also: Docs ↗
Heads-upBuilding it yourself? It also needs 24 settings in .env (7 secret).
docs/installation.mdximport { ClaudeIcon, CursorIcon, OpenAIIcon, StoreButton, VSCodeIcon } from "/snippets/agents.jsx";
The easiest way is to paste this prompt into your coding agent:
Read https://context7.com/get-started.md and set up Context7
The agent runs npx ctx7@latest setup for your client. Then you sign in to Context7 with OAuth in the browser. You do not need an API key.
To set up the Context7 Admin MCP, paste this prompt:
Read https://context7.com/admin-mcp/get-started.md and set up the Context7 Admin MCP
Or run the setup command yourself. It finds the agents on your machine and configures Context7 for each one.
npx ctx7 setup
1. Add Context7 in the Claude directory.
2. Sign in to Context7 when Claude asks.
<Tip>
Using Claude Code? The connector works there too when you sign in with the same Claude account. Or install the plugin with `/plugin install context7@claude-plugins-official`. See the [Claude Code guide](/clients/claude-code).
</Tip>
</Tab>
<Tab title="ChatGPT" icon={<OpenAIIcon />}>
<StoreButton href="https://chatgpt.com/plugins/plugin_asdk_app_69ef18c674308191a2f952431f91ea61" icon={<OpenAIIcon />}>Add to ChatGPT</StoreButton>
1. Install the plugin from the ChatGPT plugin directory.
2. Sign in to Context7 when ChatGPT asks.
</Tab>
<Tab title="Codex" icon={<OpenAIIcon />}>
1. Add the plugin:
```bash
codex plugin marketplace add upstash/context7
codex plugin add context7@context7-marketplace
```
2. Log in to Context7 in the browser window that opens. Then start a new Codex thread so Codex loads the plugin.
For an API key, rules and Codex surfaces, see the [Codex guide](/clients/codex).
</Tab>
<Tab title="Cursor" icon={<CursorIcon />}>
<StoreButton href="https://cursor.com/marketplace/upstash/context7" icon={<CursorIcon />}>Add to Cursor</StoreButton>
1. In the Cursor Marketplace, select **Install** and choose a user or project scope.
2. When the `context7` MCP server shows **Needs authentication**, click it and sign in.
For rules, Cloud Agents and troubleshooting, see the [Cursor guide](/clients/cursor).
</Tab>
<Tab title="VS Code" icon={<VSCodeIcon />}>
<StoreButton href="https://marketplace.visualstudio.com/items?itemName=Upstash.context7-mcp" icon={<VSCodeIcon />}>Add to VS Code</StoreButton>
1. Install **Context7 MCP Server** from the Visual Studio Marketplace. It needs VS Code 1.101 or later.
2. Run the **MCP: List Servers** command and check that Context7 is listed.
To set an API key, see the [VS Code guide](/clients/vscode).
</Tab>
<Tab title="Other" icon="plug">
Run the setup command. It finds the agents on your machine and configures Context7 for each one.
```bash
npx ctx7 setup
```
Or add the MCP server URL to your client. See [All MCP Clients](/resources/all-clients) for each client's config.
```txt
https://mcp.context7.com/mcp
```
Guides for more agents: [OpenCode](/clients/opencode), [GitHub Copilot CLI](/clients/copilot-cli), [Pi](/clients/pi) and the [ctx7 CLI](/clients/cli).
</Tab>
</Tabs>Then run powershell -ExecutionPolicy Bypass -File .\setup.ps1. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: winget install Git.Git
git clone https://github.com/upstash/context7.git cd context7
Node.js 22
winget install CoreyButler.NVMforWindows nvm install 22 nvm use 22
Fill in secrets: CONTEXT7_API_KEY, OPENAI_APPS_CHALLENGE_TOKEN, MCP_CLIENT_IP_ASSERTION_KEY, MCP_OAUTH_TOKEN_VALIDATION, GITHUB_TOKEN, GH_TOKEN, AI_GATEWAY_API_KEY
Copy-Item .env.example .env
corepack enable pnpm install
pnpm test
[!NOTE] API Key Recommended: Get a free API key at context7.com/dashboard for higher rate limits.
Set up Context7 for your coding agents with a single command. The ctx7 CLI requires Node.js 22.13 or newer.
npx ctx7 setup
Authenticates via OAuth, generates an API key, and installs the appropriate skill. You can choose between CLI + Skills or MCP mode. Use --cursor, --claude, or --opencode to target a specific agent.
To remove the generated setup later, run npx ctx7 remove. If you globally installed the CLI with npm install -g ctx7, remove that package separately with npm uninstall -g ctx7.
To configure manually, use the Context7 server URL https://mcp.context7.com/mcp with your MCP client and pass your API key via the Authorization: Bearer YOUR_API_KEY header. See the link below for client-specific setup instructions.
No reports for Windows yet.
GitManual AI Agent reads the 12 key files and writes a step-by-step guide for Windows. Once written, it's saved for everyone.