Context7 Platform -- Up-to-date docs for AI agents
docs updates
enesakar853003de2434
diff --git a/docs/api-guide.mdx b/docs/api-guide.mdxindex 048bde54..46b67677 100644--- a/docs/api-guide.mdx+++ b/docs/api-guide.mdx@@ -155,7 +155,7 @@ npm install @upstash/context7-mcp- Type-safe library resolution- Optimized for AI workflows-See the [Installation guide](/installation) for detailed setup instructions.+See the [Installation guide](https://github.com/upstash/context7#installation) for detailed setup instructions.### Direct API Integrationdiff --git a/docs/contact.mdx b/docs/contact.mdxindex dfb3d9f9..50ea5d7b 100644--- a/docs/contact.mdx+++ b/docs/contact.mdx@@ -45,8 +45,7 @@ For enterprise customers and custom solutions:Explore our comprehensive documentation:- [Getting Started](/overview) - Quick introduction to Context7-- [Installation Guide](/installation) - Setup instructions for all platforms-- [Usage Guide](/usage) - Tips and best practices+- [Installation Guide](https://github.com/upstash/context7#installation) - Setup instructions for all platforms- [API Reference](/api) - Complete API documentation- [Troubleshooting](/troubleshooting) - Common issues and solutions- [Security & Privacy](/security) - Security practices and compliancediff --git a/docs/dashboard/billing.mdx b/docs/dashboard/billing.mdxindex f8628c4d..2a49a939 100644--- a/docs/dashboard/billing.mdx+++ b/docs/dashboard/billing.mdx@@ -35,4 +35,4 @@ Add payment methods and manage your Context7 subscription on the [billing page](## Plans-To learn more about our plans and see the FAQ, visit [Plans](/plans-pricing).+To learn more about our plans and see the FAQ, visit [Plans](https://context7.com/plans).diff --git a/docs/docs.json b/docs/docs.jsonindex 577a1921..340e3cbc 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -17,10 +17,15 @@"group": "Overview","pages": ["overview",- "installation",- "usage",+ {+ "title": "Installation",+ "url": "https://github.com/upstash/context7?tab=readme-ov-file#%EF%B8%8F-installation"+ },"adding-libraries",- "plans-pricing",+ {+ "title": "Plans & Pricing",+ "url": "https://context7.com/plans"+ },"api-guide"]},diff --git a/docs/installation.mdx b/docs/installation.mdxdeleted file mode 100644index d931ca6e..00000000--- a/docs/installation.mdx+++ /dev/null@@ -1,1024 +0,0 @@-----title: Installation-sidebarTitle: Installation------Get the Context7 MCP up and running in your favorite AI coding assistant in minutes.--## Requirements--Before you begin:--- **MCP Client**: Cursor, Claude Code, VS Code, Windsurf, or another MCP-compatible IDE-- **API Key (Recommended)**: For higher rate limits and private repositories. Get yours at [context7.com/dashboard](https://context7.com/dashboard)--<Warning>-**SSE Protocol Removed**--The Server-Sent Events (SSE) transport protocol has been removed and is no longer available. Please use HTTP or stdio transport methods instead.--</Warning>--<Tip>-**Recommended Post-Setup: Add a Rule to Auto-Invoke Context7**--After installing Context7 (see instructions below), enhance your workflow by adding a rule so you don't have to type `use context7` in every prompt. Define a simple rule in your MCP client's rule section to automatically invoke Context7 on any code question:--- For Windsurf, in `.windsurfrules` file-- For Cursor, from `Cursor Settings > Rules` section-- For Claude Code, in `CLAUDE.md` file-- Or the equivalent in your MCP client--**Example Rule:**--```txt-Always use context7 when I need code generation, setup or-configuration steps, or library/API documentation. This means-you should automatically use the Context7 MCP tools to resolve-library id and get library docs without me having to-explicitly ask.-```--From then on, you'll get Context7's docs in any related conversation without typing anything extra. You can alter the rule to match your use cases.--</Tip>--## Recommended Setup--For most users, we recommend:--- **Remote Server** (HTTP) - Easier setup with no local dependencies-- **With API Key** - Higher rate limits and access to private repositories--## Quick Install--### Via Smithery--Install the Context7 MCP automatically for any client via [Smithery](https://smithery.ai/server/@upstash/context7-mcp):--```bash-npx -y @smithery/cli@latest install @upstash/context7-mcp --client <CLIENT_NAME> --key <YOUR_SMITHERY_KEY>-```--Get your Smithery key from your account at [smithery.ai](https://smithery.ai/server/@upstash/context7-mcp).--## Client-Specific Installation--<AccordionGroup>- <Accordion title="Cursor" icon="code">- Go to: `Settings` → `Cursor Settings` → `MCP` → `Add new global MCP server`-- In Cursor 1.0 and later, use the one-click button below or manually edit `~/.cursor/mcp.json`.-- **Remote Server (Recommended)**:-- [](https://cursor.com/en/install-mcp?name=context7&config=eyJ1cmwiOiJodHRwczovL21jcC5jb250ZXh0Ny5jb20vbWNwIn0%3D)-- ```json- {- "mcpServers": {- "context7": {- "url": "https://mcp.context7.com/mcp",- "headers": {- "CONTEXT7_API_KEY": "YOUR_API_KEY"- }- }- }- }- ```-- **Local Server**:-- [](https://cursor.com/en/install-mcp?name=context7&config=eyJjb21tYW5kIjoibnB4IC15IEB1cHN0YXNoL2NvbnRleHQ3LW1jcCJ9)-- ```json- {- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- </Accordion>-- <Accordion title="Claude Code" icon="code">- **Remote Server**:- ```bash- claude mcp add --transport http context7 https://mcp.context7.com/mcp \- --header "CONTEXT7_API_KEY: YOUR_API_KEY"- ```-- **Local Server**:- ```bash- claude mcp add context7 -- npx -y @upstash/context7-mcp --api-key YOUR_API_KEY- ```-- </Accordion>-- <Accordion title="VS Code" icon="code">- Add to your VS Code MCP config:-- **Remote Server**:- ```json- "mcp": {- "servers": {- "context7": {- "type": "http",- "url": "https://mcp.context7.com/mcp",- "headers": {- "CONTEXT7_API_KEY": "YOUR_API_KEY"- }- }- }- }- ```-- **Local Server**:- ```json- "mcp": {- "servers": {- "context7": {- "type": "stdio",- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- </Accordion>-- <Accordion title="Windsurf" icon="wind">- **Remote Server**:- ```json- {- "mcpServers": {- "context7": {- "serverUrl": "https://mcp.context7.com/mcp",- "headers": {- "CONTEXT7_API_KEY": "YOUR_API_KEY"- }- }- }- }- ```-- **Local Server**:- ```json- {- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- </Accordion>-- <Accordion title="Amp" icon="terminal">- **Without API Key**:- ```sh- amp mcp add context7 https://mcp.context7.com/mcp- ```-- **With API Key**:- ```sh- amp mcp add context7 --header "CONTEXT7_API_KEY=YOUR_API_KEY" https://mcp.context7.com/mcp- ```-- </Accordion>-- <Accordion title="Cline" icon="robot">- Install through the [Cline MCP Server Marketplace](https://cline.bot/mcp-marketplace):-- 1. Open **Cline**- 2. Click the hamburger menu (☰) → **MCP Servers**- 3. Search for **Context7** in the **Marketplace** tab- 4. Click **Install**-- Or manually edit the configuration:- ```json- {- "mcpServers": {- "context7": {- "url": "https://mcp.context7.com/mcp",- "type": "streamableHttp",- "headers": {- "Authorization": "Bearer YOUR_API_KEY"- }- }- }- }- ```-- </Accordion>-- <Accordion title="Zed" icon="text">- Install via [Zed Extensions](https://zed.dev/extensions?query=Context7) or add to `settings.json`:-- ```json- {- "context_servers": {- "Context7": {- "source": "custom",- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- </Accordion>-- <Accordion title="Augment Code" icon="a">- **Via UI**:- 1. Hamburger menu → **Settings** → **Tools**- 2. Click **+ Add MCP**- 3. Enter command: `npx -y @upstash/context7-mcp@latest`- 4. Name: **Context7**-- **Manual Configuration**:- ```json- "augment.advanced": {- "mcpServers": [- {- "name": "context7",- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- ]- }- ```-- </Accordion>-- <Accordion title="Roo Code" icon="code">- **Remote Server**:- ```json- {- "mcpServers": {- "context7": {- "type": "streamable-http",- "url": "https://mcp.context7.com/mcp",- "headers": {- "CONTEXT7_API_KEY": "YOUR_API_KEY"- }- }- }- }- ```-- **Local Server**:- ```json- {- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- </Accordion>-- <Accordion title="Kilo Code" icon="code">- You can configure the Context7 MCP server in **Kilo Code** using either the UI or by editing your project's MCP configuration file.-- Kilo Code supports two configuration levels:- - **Global MCP Configuration** — stored in `mcp_settings.json`- - **Project-level MCP Configuration** — stored in `.kilocode/mcp.json` (recommended)-- **Via Kilo Code UI:**- 1. Open **Kilo Code**- 2. Click the **Settings** icon in the top-right corner- 3. Navigate to **Settings → MCP Servers**- 4. Click **Add Server**- 5. Choose **HTTP Server** (Streamable HTTP Transport)- 6. Enter URL: `https://mcp.context7.com/mcp`- 7. Add Header - Key: `Authorization`, Value: `Bearer YOUR_API_KEY`- 8. Click **Save**-- **Manual Configuration** (`.kilocode/mcp.json`):- ```json- {- "mcpServers": {- "context7": {- "type": "streamable-http",- "url": "https://mcp.context7.com/mcp",- "headers": {- "Authorization": "Bearer YOUR_API_KEY"- },- "alwaysAllow": [],- "disabled": false- }- }- }- ```-- </Accordion>-- <Accordion title="Google Antigravity" icon="google">- **Remote Server**:- ```json- {- "mcpServers": {- "context7": {- "serverUrl": "https://mcp.context7.com/mcp",- "headers": {- "CONTEXT7_API_KEY": "YOUR_API_KEY"- }- }- }- }- ```-- **Local Server**:- ```json- {- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- </Accordion>-- <Accordion title="Gemini CLI" icon="google">- Open `~/.gemini/settings.json` and add:-- **Remote Server**:- ```json- {- "mcpServers": {- "context7": {- "httpUrl": "https://mcp.context7.com/mcp",- "headers": {- "CONTEXT7_API_KEY": "YOUR_API_KEY",- "Accept": "application/json, text/event-stream"- }- }- }- }- ```-- **Local Server**:- ```json- {- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- </Accordion>-- <Accordion title="Claude Desktop" icon="message">- **Remote Server**:- Settings → Connectors → Add Custom Connector- - Name: `Context7`- - URL: `https://mcp.context7.com/mcp`-- **Local Server** (`claude_desktop_config.json`):- ```json- {- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- </Accordion>-- <Accordion title="Opencode" icon="code">- **Remote Server**:- ```json- "mcp": {- "context7": {- "type": "remote",- "url": "https://mcp.context7.com/mcp",- "headers": {- "CONTEXT7_API_KEY": "YOUR_API_KEY"- },- "enabled": true- }- }- ```-- **Local Server**:- ```json- {- "mcp": {- "context7": {- "type": "local",- "command": ["npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],- "enabled": true- }- }- }- ```-- </Accordion>-- <Accordion title="OpenAI Codex" icon="openai">- **Remote Server**:- ```toml- [mcp_servers.context7]- url = "https://mcp.context7.com/mcp"- http_headers = { "CONTEXT7_API_KEY" = "YOUR_API_KEY" }- ```-- **Local Server**:- ```toml- [mcp_servers.context7]- args = ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- command = "npx"- ```-- **Windows**: Use full paths if you encounter timeout errors:- ```toml- [mcp_servers.context7]- command = "C:\\Program Files\\nodejs\\node.exe"- args = [- "C:\\Users\\yourname\\AppData\\Roaming\\npm\\node_modules\\@upstash\\context7-mcp\\dist\\index.js",- "--transport", "stdio", "--api-key", "YOUR_API_KEY"- ]- ```-- **macOS**: Use full Node.js path if needed:- ```toml- [mcp_servers.context7]- command = "/Users/yourname/.nvm/versions/node/v22.14.0/bin/node"- args = [- "/Users/yourname/.nvm/versions/node/v22.14.0/lib/node_modules/@upstash/context7-mcp/dist/index.js",- "--transport", "stdio", "--api-key", "YOUR_API_KEY"- ]- ```-- </Accordion>-- <Accordion title="JetBrains AI Assistant" icon="code">- 1. Go to `Settings` → `Tools` → `AI Assistant` → `Model Context Protocol (MCP)`- 2. Click `+ Add`- 3. Select `As JSON` from the top-left dropdown- 4. Add configuration:-- ```json- {- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- 5. Click `Apply`-- </Accordion>-- <Accordion title="Kiro" icon="k">- 1. Navigate `Kiro` → `MCP Servers`- 2. Click `+ Add`- 3. Add configuration:-- ```json- {- "mcpServers": {- "Context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],- "env": {},- "disabled": false,- "autoApprove": []- }- }- }- ```-- </Accordion>-- <Accordion title="Trae" icon="robot">- **Remote Server**:- ```json- {- "mcpServers": {- "context7": {- "url": "https://mcp.context7.com/mcp"- }- }- }- ```-- **Local Server**:- ```json- {- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- </Accordion>-- <Accordion title="LM Studio" icon="microchip">- [](https://lmstudio.ai/install-mcp?name=context7&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkB1cHN0YXNoL2NvbnRleHQ3LW1jcCJdfQ%3D%3D)-- Or manually: `Program` → `Install` → `Edit mcp.json`:-- ```json- {- "mcpServers": {- "Context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- </Accordion>-- <Accordion title="Visual Studio 2022" icon="microsoft">- **Remote Server**:- ```json- {- "inputs": [],- "servers": {- "context7": {- "type": "http",- "url": "https://mcp.context7.com/mcp",- "headers": {- "CONTEXT7_API_KEY": "YOUR_API_KEY"- }- }- }- }- ```-- **Local Server**:- ```json- {- "mcp": {- "servers": {- "context7": {- "type": "stdio",- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- }- ```-- </Accordion>-- <Accordion title="Crush" icon="terminal">- **Remote Server**:- ```json- {- "$schema": "https://charm.land/crush.json",- "mcp": {- "context7": {- "type": "http",- "url": "https://mcp.context7.com/mcp",- "headers": {- "CONTEXT7_API_KEY": "YOUR_API_KEY"- }- }- }- }- ```-- **Local Server**:- ```json- {- "$schema": "https://charm.land/crush.json",- "mcp": {- "context7": {- "type": "stdio",- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- </Accordion>-- <Accordion title="BoltAI" icon="bolt">- Open Settings → Plugins, then add:-- ```json- {- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- Use `get-library-docs` in the chat with your Context7 documentation ID.-- </Accordion>-- <Accordion title="Rovo Dev CLI" icon="terminal">- Edit your config:- ```bash- acli rovodev mcp- ```-- **Remote Server**:- ```json- {- "mcpServers": {- "context7": {- "url": "https://mcp.context7.com/mcp"- }- }- }- ```-- **Local Server**:- ```json- {- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- </Accordion>-- <Accordion title="Zencoder" icon="code">- 1. Go to Zencoder menu (...)- 2. Select **Agent tools**- 3. Click **Add custom MCP**- 4. Add configuration:-- ```json- {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- ```-- </Accordion>-- <Accordion title="Qodo Gen" icon="code">- 1. Open the Qodo Gen chat panel- 2. Click **Connect more tools**- 3. Click **+ Add new MCP**-- **Local Server**:- ```json- {- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- **Remote Server**:- ```json- {- "mcpServers": {- "context7": {- "url": "https://mcp.context7.com/mcp"- }- }- }- ```-- </Accordion>-- <Accordion title="Qwen Coder" icon="code">- See [Qwen Coder MCP Configuration](https://qwenlm.github.io/qwen-code-docs/en/tools/mcp-server/#how-to-set-up-your-mcp-server) for details.-- 1. Open the Qwen Coder settings file. The location is `~/.qwen/settings.json` (where `~` is your home directory).- 2. Add the following to the `mcpServers` object in your `settings.json` file:-- **Remote Server**:- ```json- {- "mcpServers": {- "context7": {- "httpUrl": "https://mcp.context7.com/mcp",- "headers": {- "CONTEXT7_API_KEY": "YOUR_API_KEY",- "Accept": "application/json, text/event-stream"- }- }- }- }- ```-- **Local Server**:- ```json- {- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```-- If the `mcpServers` object does not exist, create it.-- </Accordion>-- <Accordion title="Perplexity Desktop" icon="search">- 1. Navigate to `Perplexity` → `Settings` → `Connectors`- 2. Click `Add Connector` → `Advanced`- 3. Server Name: `Context7`- 4. Add configuration:-- ```json- {- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],- "command": "npx",- "env": {}- }- ```-- </Accordion>-- <Accordion title="Warp" icon="terminal">- 1. Navigate to `Settings` → `AI` → `Manage MCP servers`- 2. Click `+ Add`- 3. Add configuration:-- ```json- {- "Context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],- "env": {},- "working_directory": null,- "start_on_launch": true- }- }- ```-- </Accordion>-- <Accordion title="Copilot Coding Agent" icon="github">- Add the following to your Copilot configuration at:-- Repository → Settings → Copilot → Coding agent → MCP configuration-- ```json- {- "mcpServers": {- "context7": {- "type": "http",- "url": "https://mcp.context7.com/mcp",- "headers": {- "CONTEXT7_API_KEY": "YOUR_API_KEY"- },- "tools": ["get-library-docs", "resolve-library-id"]- }- }- }- ```-- </Accordion>-- <Accordion title="Copilot CLI" icon="github">- 1. Open the Copilot CLI MCP config file. The location is `~/.copilot/mcp-config.json` (where `~` is your home directory).- 2. Add the following to the `mcpServers` object in your `mcp-config.json` file:-- **Remote Server**:- ```json- {- "mcpServers": {- "context7": {- "type": "http",- "url": "https://mcp.context7.com/mcp",- "headers": {- "CONTEXT7_API_KEY": "YOUR_API_KEY"- },- "tools": [- "get-library-docs",- "resolve-library-id"- ]- }- }- }- ```-- **Local Server**:- ```json- {- "mcpServers": {- "context7": {- "type": "local",- "command": "npx",- "tools": [- "get-library-docs",- "resolve-library-id"- ],- "args": [- "-y",- "@upstash/context7-mcp",- "--api-key",- "YOUR_API_KEY"- ]- }- }- }- ```-- If the `mcp-config.json` file does not exist, create it.-- </Accordion>-- <Accordion title="Amazon Q Developer CLI" icon="amazon">- ```json- {- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }- }- ```- </Accordion>-- <Accordion title="Windows Configuration" icon="windows">- On Windows, configuration differs slightly. Use `cmd` with `/c`:-- ```json- {- "mcpServers": {- "context7": {- "command": "cmd",- "args": ["/c", "npx", "-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],- "disabled": false,- "autoApprove": []- }- }- }- ```-- </Accordion>-- <Accordion title="Factory" icon="terminal">- Factory's droid supports MCP servers through its CLI. See [Factory MCP docs](https://docs.factory.ai/cli/configuration/mcp) for more info.-- **Remote Server Connection (HTTP)**:-- Run this command in your terminal:-- ```sh- droid mcp add context7 https://mcp.context7.com/mcp --type http --header "CONTEXT7_API_KEY: YOUR_API_KEY"- ```-- Or without an API key (basic usage with rate limits):-- ```sh- droid mcp add context7 https://mcp.context7.com/mcp --type http- ```-- **Local Server Connection (Stdio)**:-- Run this command in your terminal:-- ```sh- droid mcp add context7 "npx -y @upstash/context7-mcp" --env CONTEXT7_API_KEY=YOUR_API_KEY- ```-- Once configured, Context7 tools will be available in your droid sessions. Type `/mcp` within droid to manage servers, authenticate, and view available tools.-- </Accordion>-- <Accordion title="Emdash" icon="layer-group">- [Emdash](https://github.com/generalaction/emdash) is an orchestration layer for running multiple coding agents in parallel. Provider-agnostic, worktree-isolated, and local-first.-- **What Emdash provides:**- - Global toggle: Settings → MCP → "Enable Context7 MCP"- - Per-workspace enable: The Context7 button in the ProviderBar (off by default). First click enables it for that workspace. Clicking again disables it.- - ProviderBar: The Context7 button shows status, a short explanation, and a link to docs-- **What you still need to do:**- Configure your coding agent (Codex, Claude Code, Cursor, etc.) to connect to Context7 MCP. Emdash does not modify your agent's config. See the respective MCP configuration sections above for your agent.-- See the [Emdash repository](https://github.com/generalaction/emdash) for more information.-- </Accordion>-</AccordionGroup>--## Alternative Runtimes--### Using Bun--```json-{- "mcpServers": {- "context7": {- "command": "bunx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"]- }- }-}-```--### Using Deno--```json-{- "mcpServers": {- "context7": {- "command": "deno",- "args": [- "run",- "--allow-env=NO_DEPRECATION,TRACE_DEPRECATION",- "--allow-net",- "npm:@upstash/context7-mcp"- ]- }- }-}-```--## Using Docker--Create a `Dockerfile`:--```dockerfile-FROM node:18-alpine-WORKDIR /app-RUN npm install -g @upstash/context7-mcp-CMD ["context7-mcp"]-```--Build and configure:--```bash-docker build -t context7-mcp .-```--```json-{- "mcpServers": {- "context7": {- "command": "docker",- "args": ["run", "-i", "--rm", "context7-mcp"]- }- }-}-```--## Desktop Extension--Install the [context7.mcpb](https://github.com/upstash/context7/blob/master/mcpb/context7.mcpb) file. See [MCP bundles docs](https://github.com/anthropics/mcpb#mcp-bundles-mcpb) for details.--## Verify Installation--Test your setup with the MCP Inspector:--```bash-npx -y @modelcontextprotocol/inspector npx @upstash/context7-mcp-```--<Tip>- Having trouble? Check our [Troubleshooting Guide](/troubleshooting) for common issues and- solutions.-</Tip>--## Next Steps--Now that Context7 is installed:--- **Learn usage patterns** - See the [How-To Guides](/usage) to master Context7 features like auto-invoke, specific library IDs, and token control-- **Get an API key** - Visit the [Dashboard](https://context7.com/dashboard) to create an API key for higher rate limits and access to private repositories-- **Explore the API** - Read the [API Guide](/api-guide) for direct API integration and best practicesdiff --git a/docs/overview.mdx b/docs/overview.mdxindex ba89d9f9..efd55fc4 100644--- a/docs/overview.mdx+++ b/docs/overview.mdx@@ -38,11 +38,11 @@ No tab-switching, no hallucinated APIs that don't exist, no outdated code genera## Next Steps<CardGroup cols={1}>- <Card title="Install Context7" icon="download" href="/installation">+ <Card title="Install Context7" icon="download" href="https://github.com/upstash/context7#installation">Get set up in 2 minutes with your preferred AI coding assistant</Card>- <Card title="Learn Best Practices" icon="book" href="/usage">- Master Context7 features and usage patterns+ <Card title="Troubleshooting" icon="wrench" href="/troubleshooting">+ Common issues and solutions</Card><Card title="Get an API Key" icon="key" href="https://context7.com/dashboard">Unlock higher rate limits and use yourprivate repositoriesdiff --git a/docs/plans-pricing.mdx b/docs/plans-pricing.mdxdeleted file mode 100644index deeeb7ec..00000000--- a/docs/plans-pricing.mdx+++ /dev/null@@ -1,153 +0,0 @@-----title: Plans & Pricing------Choose a plan that fits your workflow today, and scale as your needs grow.--<Note>To change your plan, visit [context7.com/plans](https://context7.com/plans).</Note>--## Compare Plans--| Feature | Free | Pro | Enterprise |-| --------------------------- | ----------- | ---------------------- | ------------- |-| **Price** | $0 | $7 per seat/month | Custom |-| **Public Repositories** | ✓ | ✓ | ✓ |-| **Private Repositories** | ✗ | ✓ | ✓ |-| **Team Collaboration** | ✗ | ✓ (up to 20 members) | ✓ (unlimited) |-| **API Rate Limit** | 60 req/hour | 60 req/hour per member | Custom |-| **Parse Token Cost** | N/A | $15 per 1M tokens | Custom |-| **Access Control** | Basic | Full | Advanced |-| **SOC-2 Compliance** | ✗ | ✗ | ✓ |-| **SSO (SAML, OAuth, OIDC)** | ✗ | ✗ | ✓ |-| **Support** | Community | Email | Dedicated |-| **Usage Analytics** | Basic | ✓ | Advanced |-| **Custom Rate Limits** | ✗ | ✗ | ✓ |-| **Priority Features** | ✗ | ✗ | ✓ |-| **Custom SLA** | ✗ | ✗ | ✓ |--## Understanding Costs--### Free Plan--The Free plan is always **$0**. Perfect for individual developers using public libraries.--### Pro Plan--Pro plan costs consist of two components:--**1. Team Seats: $7 per member per month**--Each team member (Owner, Admin, or Developer) counts as one seat. Learn more about team roles in the [Team Management](/dashboard/team#roles) guide.--**Example**:--- 1 member (you): $7/month-- 4 members: $28/month--**2. Parse Tokens: $15 per 1M tokens**--Parse tokens are charged when adding or refreshing private repositories:--- **Adding a new private repo**: Charged for all parsed content-- **Refreshing a repo**: Only charged for new or changed content (cached pages are free)-- **Querying documentation**: Free (covered by seat cost)--**Example**:--- Add a 500K token private repo: $7.50 one-time-- Refresh with 100K tokens of changes: $1.50--See [Private Repositories](/dashboard/private-repositories) for setup instructions and [Usage Statistics](/dashboard/usage) to monitor your token usage.--**Total Monthly Cost = (Seats × $7) + Parse Token Charges**--**Example**:--- Team: 4 members = $28/month-- Parsing: 800K tokens this month = $12-- **Total: $40**--### Enterprise Plan--Custom pricing based on your needs. Contact us at [[email protected]](mailto:[email protected]) for details.--## Frequently Asked Questions--### General Questions--<AccordionGroup>- <Accordion title="What's included in the Free plan?" icon="gift">- The Free plan includes access to public repositories, basic access control, and API usage with rate limits. It's perfect for individual developers who don't need private repositories or team collaboration.- </Accordion>--<Accordion title="How does the Pro plan pricing work?" icon="credit-card">- The Pro plan costs $7 per seat per month. Each team member counts as a seat, and you're billed- based on the number of members in your team. You also pay for parse tokens used when adding or- refreshing private repositories.-</Accordion>--<Accordion title="How much does parsing private libraries cost?" icon="dollar-sign">- In addition to \$7 per seat per month, you are charged \$15 per 1M tokens for parsing private- repositories. This charge applies when you add a new private repository or refresh an existing- one. The cached pages (while refreshing private repositories) are free.-</Accordion>-- <Accordion title="Can I access private repositories on the Free plan?" icon="lock">- No, private repository access is only available on Pro and Enterprise plans. You'll need to upgrade to work with private repositories and collaborate with your team.- </Accordion>-</AccordionGroup>--### Plan Management--<AccordionGroup>- <Accordion title="How do I downgrade from Pro to Free?" icon="arrow-down">- To downgrade, you must first remove all team members and private repositories from your account. Once done, you can switch to the Free plan from the Plans page.- </Accordion>--<Accordion title="Can I cancel my Pro subscription at any time?" icon="xmark">- Yes, you can downgrade to the Free plan at any time. A prorated charge will apply based on the- number of days used in your current billing period.-</Accordion>--<Accordion title="What's the difference between Pro and Enterprise?" icon="building">- Enterprise plans include additional features like SOC-2 compliance, SSO (Single Sign-On),- dedicated support, and custom rate limits. Contact us to discuss your specific enterprise needs.-</Accordion>-- <Accordion title="How much does the Enterprise plan cost?" icon="envelope">- Enterprise pricing is customized based on your specific needs and usage requirements. Please contact us at [[email protected]](mailto:[email protected]) to discuss pricing and features.- </Accordion>-</AccordionGroup>--### Security & Privacy--<AccordionGroup>- <Accordion title="How do you keep the privacy of my queries?" icon="shield">- The MCP client sends only generic topics to our servers, not your actual queries. Your prompts and code remain private on your local machine.- </Accordion>--<Accordion title="How do you ensure the code snippets are safe?" icon="check">- We follow several processes to ensure safety:--- Run an LLM-based model to detect injection attempts before storing code-- Assign a source reputation to repository authors-- Allow users to filter trusted libraries by organization and repository-- Regular security audits and monitoring--</Accordion>-- <Accordion title="What are your security practices?" icon="lock">- We are part of Upstash Inc., based in Silicon Valley since 2020. Review our certifications and practices on our [Trust page](https://trust.upstash.com). We follow SOC-2 compliance standards and industry best practices.- </Accordion>-</AccordionGroup>--### API Usage--<AccordionGroup>- <Accordion title="Is API usage unlimited?" icon="infinity">- No, we have different rate limits for each plan. The Free plan has lower rate limits, while the- Pro plan offers higher limits per team member. If you need custom rate limits for high-volume- usage, please contact us at [[email protected]](mailto:[email protected]) to discuss- Enterprise plan options.- </Accordion>-</AccordionGroup>diff --git a/docs/troubleshooting.mdx b/docs/troubleshooting.mdxindex 3601259e..71d7249b 100644--- a/docs/troubleshooting.mdx+++ b/docs/troubleshooting.mdx@@ -256,18 +256,50 @@ If you get `404 Not Found` errors:- Check logs with `claude mcp logs context7`- Try removing and re-adding the server-## Proxy Issues+## Configure HTTPS Proxy-If you're behind a corporate proxy:+If you're behind a corporate proxy, configure Context7 to route through it.-1. **Set environment variables** before starting your MCP client:+### Set Environment Variables-```bash-export https_proxy=http://proxy.example.com:8080-export HTTPS_PROXY=http://proxy.example.com:8080-```+<AccordionGroup>+ <Accordion title="Linux/macOS" icon="terminal">+ ```bash+ export https_proxy=http://proxy.example.com:8080+ export HTTPS_PROXY=http://proxy.example.com:8080+ ```++ With authentication:+ ```bash+ export https_proxy=http://username:[email protected]:8080+ ```++ </Accordion>++ <Accordion title="Windows (Command Prompt)" icon="windows">+ ```cmd+ set https_proxy=http://proxy.example.com:8080+ set HTTPS_PROXY=http://proxy.example.com:8080+ ```-2. **Or add to your MCP configuration**:+ With authentication:+ ```cmd+ set https_proxy=http://username:[email protected]:8080+ ```++ </Accordion>++ <Accordion title="Windows (PowerShell)" icon="windows">+ ```powershell+ $env:https_proxy = "http://proxy.example.com:8080"+ $env:HTTPS_PROXY = "http://proxy.example.com:8080"+ ```+ </Accordion>+</AccordionGroup>++### Or Configure in MCP Settings++Add proxy directly to your MCP configuration:```json{@@ -284,7 +316,12 @@ export HTTPS_PROXY=http://proxy.example.com:8080}```-See [Usage Guide - Configure HTTPS Proxy](/usage#configure-https-proxy) for more details.+Both lowercase and uppercase environment variables are supported.++<Tip>+ After updating proxy settings, run `curl https://mcp.context7.com/mcp/ping` to confirm outbound+ connectivity before restarting your IDE.+</Tip>## Debugging Tips@@ -342,6 +379,6 @@ If these solutions don't resolve your issue:## Additional Resources- [Getting Started Guide](/overview)-- [Installation Instructions](/installation)+- [Installation Instructions](https://github.com/upstash/context7#installation)- [API Documentation](/api)- [Security & Privacy](/security)diff --git a/docs/usage.mdx b/docs/usage.mdxdeleted file mode 100644index 38b99863..00000000--- a/docs/usage.mdx+++ /dev/null@@ -1,239 +0,0 @@-----title: How-To Guides------Practical techniques for using Context7 effectively.--## Quick Wins--- [Auto-invoke Context7](#auto-invoke-context7) so you never forget to pull fresh docs-- [Target the exact library ID](#use-specific-library-ids) to skip search steps-- [Tune networking and proxies](#configure-https-proxy) for locked-down environments-- [Bring in private repositories](#work-with-private-repositories) for internal docs--## Auto-Invoke Context7--Stop adding `use context7` to every prompt by setting up an automatic rule.--### Add a Rule to Your MCP Client--<AccordionGroup>- <Accordion title="Cursor" icon="code">- 1. Open `Cursor Settings` → `Rules`- 2. Add this rule:-- ```txt- Always use context7 when I need code generation, setup steps, or library documentation.- Automatically use Context7 MCP tools without me having to ask.- ```-- </Accordion>-- <Accordion title="Windsurf" icon="wind">- Create or edit `.windsurfrules` in your project root:-- ```txt- Use context7 for all code generation and API documentation questions.- ```-- </Accordion>-- <Accordion title="Claude Code" icon="code">- Create or edit `CLAUDE.md` in your project root:-- ```txt- Automatically use context7 for code generation and library documentation.- ```-- </Accordion>-</AccordionGroup>--<Tip>- Customize the rule for your workflow. Examples: "Auto-invoke only for Next.js questions" or "Use- context7 when the prompt mentions 'API' or 'documentation'."-</Tip>--## Use Specific Library IDs--Skip the search step and get documentation instantly by specifying exact library IDs.--### How to Find Library IDs--1. Visit [context7.com](https://context7.com)-2. Search for your library-3. The ID is shown in the format `/owner/repository`--### Use in Your Prompts--```txt-Implement JWT auth with Supabase. use library /supabase/supabase-```--```txt-Build a rate limiter. use library /upstash/ratelimit-```--```txt-Set up Next.js middleware. use library /vercel/next.js/v15.1.0-```--<Note>You can even specify versions: `/owner/repo/v1.0.0`</Note>--### Benefits--- **Faster**: No library resolution needed-- **Precise**: Get docs for the exact library and version-- **Reliable**: No ambiguity about which library to use--## Configure HTTPS Proxy--If you're behind a corporate proxy, configure Context7 to route through it.--### Set Environment Variables--<AccordionGroup>- <Accordion title="Linux/macOS" icon="terminal">- ```bash- export https_proxy=http://proxy.example.com:8080- export HTTPS_PROXY=http://proxy.example.com:8080- ```-- With authentication:- ```bash- export https_proxy=http://username:[email protected]:8080- ```-- </Accordion>-- <Accordion title="Windows (Command Prompt)" icon="windows">- ```cmd- set https_proxy=http://proxy.example.com:8080- set HTTPS_PROXY=http://proxy.example.com:8080- ```-- With authentication:- ```cmd- set https_proxy=http://username:[email protected]:8080- ```-- </Accordion>-- <Accordion title="Windows (PowerShell)" icon="windows">- ```powershell- $env:https_proxy = "http://proxy.example.com:8080"- $env:HTTPS_PROXY = "http://proxy.example.com:8080"- ```- </Accordion>-</AccordionGroup>--### Or Configure in MCP Settings--Add proxy directly to your MCP configuration:--```json-{- "mcpServers": {- "context7": {- "command": "npx",- "args": ["-y", "@upstash/context7-mcp", "--api-key", "YOUR_API_KEY"],- "env": {- "https_proxy": "http://proxy.example.com:8080",- "HTTPS_PROXY": "http://proxy.example.com:8080"- }- }- }-}-```--Both lowercase and uppercase environment variables are supported.--<Tip>- After updating proxy settings, run `curl https://mcp.context7.com/mcp/ping` to confirm outbound- connectivity before restarting your IDE.-</Tip>--## Work with Private Repositories--Add your private GitHub, GitLab, or Bitbucket repositories to make internal documentation available through Context7. Requires a Pro or Enterprise plan.--For complete instructions on adding, refreshing, and managing private repositories, see the [Private Repositories](/dashboard/private-repositories) guide.--**Cost**: $15 per 1M tokens when parsing. See [Plans & Pricing](/plans-pricing) for details.--## Set Up Team Collaboration--Share Context7 access with your team. Create a team, invite members with different roles (Owner, Admin, Developer), and manage permissions from your dashboard.--For complete instructions on creating teams, inviting members, and managing roles, see the [Team Management](/dashboard/team) guide.--**Cost**: $7 per team member per month on Pro plan. See [Plans & Pricing](/plans-pricing) for details.--## Refresh Library Documentation--Keep your documentation up to date.--### Web Interface--1. Go to [context7.com/refresh-library](https://context7.com/refresh-library)-2. Enter library ID (e.g., `/vercel/next.js`)-3. Submit--### API--```bash-POST https://context7.com/api/v1/refresh-Content-Type: application/json-Authorization: Bearer YOUR_API_KEY--{- "docsRepoUrl": "https://github.com/vercel/next.js"-}-```--### When to Refresh--- After major version releases-- When documentation is updated-- When you notice outdated information--<Note>For private repos, you only pay for new/changed content during refresh.</Note>--## Monitor Usage--Track your API usage, parse tokens, and costs from the dashboard. View metrics for search requests, query tokens, parse tokens, and total monthly costs with detailed breakdowns.--For complete details on usage statistics and cost calculations, see the [Usage Statistics](/dashboard/usage) guide.--## Best Practices--### Security--- Never commit API keys to version control. Use `.env` files and add them to `.gitignore`.-- Use environment variables for keys, like: `export CONTEXT7_API_KEY=your_key_here`.-- Rotate keys regularly -- every 90 days or immediately if compromised.-- Grant only the permissions a team member needs. Use the "Developer" role for non-admins.--See [Security](/security) for comprehensive security guidelines.--### Performance--- Use specific library IDs such as `/vercel/next.js` instead of general phrases like "next.js docs" when possible.-- Focus results using topic filtering. Try adding specific topics like "authentication" or "routing".-- Use pagination when you need more context — the API supports up to 10 pages per topic. Check the `hasNext` field in responses to know when more pages are available.-- Cache frequently used documentation locally for 6-24 hours to reduce API calls.--### Library Management--- Keep the `context7.json` file in your repositories up to date. Update it when adding new docs or changing structure.-- Exclude unnecessary folders, such as tests and build artifacts: `excludeFolders: ["test", "dist", "node_modules"]`.-- Add helpful rules for AI agents, such as "Always validate user input" or "Use TypeScript strict mode".-- Maintain version tags for important releases. For example, keep v1.x docs available even after releasing v2.x.--See [Library Owners](/adding-libraries) for configuration details.--## Need Help?--- **Troubleshooting**: [Common issues and solutions](/troubleshooting)-- **API Reference**: [Complete API documentation](/api)-- **MCP Details**: [Technical MCP server info](/mcp)-- **Community**: [Join our Discord](https://upstash.com/discord)