> ## Documentation index
> Fetch the complete documentation index at: https://context7.com/docs/llms.txt
> Ask it with GET https://context7.com/docs/ask?q=<keywords or question>. Short keywords rank best.
> Use these to discover all available pages before exploring further.
> Feature requests: https://context7.com/docs/resources/feature-requests.md lists what users asked for and how to vote for a request or add one.
> Page rating: `GET https://context7.com/docs/feedback?path=/docs/installation&helpful=true` (or `false`) records whether this page helped. An optional `comment` (URL-encoded, at most 500 characters) says what was missing or wrong. It is anonymous and needs no key. Comments hold no code, secrets or personal data.

# Installation

> Add Context7 to your coding agent. It gives the agent current docs for the libraries you use.

<Tabs>
  <Tab title="Claude" icon={<ClaudeIcon />}>
    <StoreButton href="https://claude.ai/directory/37153cd7-b17c-470e-8b46-007e2859e0f3" icon={<ClaudeIcon />}>Add to Claude</StoreButton>

    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>
