> ## Documentation Index
> Fetch the complete documentation index at: https://context7-ctx7-1846-helm-manifests.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CodeRabbit

> AI-powered code review tool

[CodeRabbit](https://coderabbit.ai) is an AI-powered code review tool that automatically reviews pull requests. By connecting Context7 as an MCP server, CodeRabbit can access up-to-date library documentation during reviews, helping it verify implementations against the latest API references and best practices.

## Setup

<Steps>
  <Step title="Navigate to MCP Servers">
    Go to your [CodeRabbit dashboard](https://app.coderabbit.ai) and navigate to **Integrations** → **MCP Servers**.

    <img src="https://mintcdn.com/context7-ctx7-1846-helm-manifests/Nsi_UvGaKb3A6Xzm/images/integrations/coderabbit/integrations-tab.png?fit=max&auto=format&n=Nsi_UvGaKb3A6Xzm&q=85&s=95ee9ecc46972596f0bdca19ac0c7d9c" alt="Integrations tab" width="2292" height="1582" data-path="images/integrations/coderabbit/integrations-tab.png" />
  </Step>

  <Step title="Add Context7">
    Click the **Add** button next to **Context7** MCP server.

    Add the following header for higher rate limits:

    | Header             | Value                                                                      |
    | ------------------ | -------------------------------------------------------------------------- |
    | `CONTEXT7_API_KEY` | Your API key from the [Context7 dashboard](https://context7.com/dashboard) |

    ```json theme={null}
    {
      "CONTEXT7_API_KEY": "YOUR_API_KEY"
    }
    ```

    <img src="https://mintcdn.com/context7-ctx7-1846-helm-manifests/Nsi_UvGaKb3A6Xzm/images/integrations/coderabbit/add-server-modal.png?fit=max&auto=format&n=Nsi_UvGaKb3A6Xzm&q=85&s=3ed80847218fcac158f9a656c6978e78" alt="Add server modal" width="1766" height="1840" data-path="images/integrations/coderabbit/add-server-modal.png" />
  </Step>

  <Step title="Connect">
    Click the **Connect** button to connect the server.

    <img src="https://mintcdn.com/context7-ctx7-1846-helm-manifests/Nsi_UvGaKb3A6Xzm/images/integrations/coderabbit/server-connected.png?fit=max&auto=format&n=Nsi_UvGaKb3A6Xzm&q=85&s=4fe48d4f4a29b7a0e4405753db9a7830" alt="Server connected" width="2100" height="1640" data-path="images/integrations/coderabbit/server-connected.png" />
  </Step>

  <Step title="Enable for Public Repos">
    To use Context7 with public repositories, go to **Organization Settings** → **Configuration** → **Knowledge Base**. In the MCP section, select **Enabled** instead of **Auto** and click **Apply Changes**.

    <img src="https://mintcdn.com/context7-ctx7-1846-helm-manifests/Nsi_UvGaKb3A6Xzm/images/integrations/coderabbit/update-mcp-settings.png?fit=max&auto=format&n=Nsi_UvGaKb3A6Xzm&q=85&s=da8c48f36dcbb4274108d00e645aa6bf" alt="Update MCP settings" width="2118" height="966" data-path="images/integrations/coderabbit/update-mcp-settings.png" />
  </Step>
</Steps>

## Usage Guidance

In the **Usage Guidance** field, you can instruct CodeRabbit on how to use Context7 during reviews. For example:

```
Use Context7 to look up documentation for any libraries used in the code being reviewed.
Verify that API usage matches the latest documentation and flag any deprecated patterns.
```

## How It Works

Once connected, CodeRabbit will query Context7 for relevant library documentation when reviewing pull requests. This helps CodeRabbit:

* Verify correct API usage against the latest documentation
* Identify deprecated methods or patterns
* Suggest improvements based on library best practices
* Provide more accurate and informed review comments
