> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coderabbit.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# MCP Servers

> Use MCP servers as a knowledge source to give CodeRabbit additional context from your documentation systems, design tools, and project management platforms during reviews and chat.

export const ProPlusPlanBadge = ({tip = "This feature is available as part of the Pro+ plan and Enterprise plan. Please refer to our pricing page for more information about our plans and features.", title = "Pro+ Plan", cta = "Read more", href = "https://coderabbit.ai/pricing", disabled = false}) => {
  return <Tooltip tip={tip} cta={cta} href={href}>
        <Badge icon="shield-plus" disabled={disabled || undefined}>
            {title}
        </Badge>
    </Tooltip>;
};

export const ProPlanBadge = ({tip = "This feature is available as part of the Pro, Pro+ and Enterprise plans. Please refer to our pricing page for more information about our plans and features.", title = "Pro Plan", cta = "Read more", href = "https://coderabbit.ai/pricing", disabled = false}) => {
  return <Tooltip tip={tip} cta={cta} href={href}>
        <Badge icon="shield-check" disabled={disabled || undefined}>
            {title}
        </Badge>
    </Tooltip>;
};

export const AllPlatformsBadge = ({tip = "This feature is available on all supported platforms: GitHub, GitLab, Azure DevOps, and Bitbucket.", title = "All Platforms", cta, href, disabled = false}) => {
  return <Tooltip tip={tip} cta={cta} href={href}>
        <Badge icon="globe" disabled={disabled || undefined}>
            {title}
        </Badge>
    </Tooltip>;
};

<AllPlatformsBadge /> | <ProPlanBadge /> <ProPlusPlanBadge />

MCP (Model Context Protocol) servers are a knowledge source that CodeRabbit can query during reviews and chat. By connecting MCP servers to CodeRabbit, you give it access to context from your external tools — such as documentation systems, design files, and project management platforms — so that review comments and chat responses reflect your organization's full context.

<Info>
  The number of MCP server connections depends on your plan: **Pro** supports up to 5 MCP servers, **Pro+** supports up to 15, and **Enterprise** supports up to 20.
</Info>

## What MCP servers add to reviews

When MCP servers are connected, CodeRabbit can draw on external context beyond the code itself. Supported integrations include:

* **Documentation and knowledge bases** — Internal docs, wikis, and reference material
* **Project management tools** — Issues, tickets, and project specs
* **Design tools** — Figma designs and related design assets
* **Any tool with an MCP server** — If a tool publishes an MCP server, CodeRabbit can connect to it without waiting for a formal integration

This makes review comments more relevant to your team's standards and project context.

## How CodeRabbit uses MCP during analysis

CodeRabbit acts as the MCP **client** — it ingests data from your connected MCP servers, not the other way around. During a code review or chat interaction, CodeRabbit:

<CardGroup cols={2}>
  <Card title="Gathers context">
    Automatically calls relevant MCP tools to collect additional review context from your connected data sources
  </Card>

  <Card title="Enhances comments">
    Validates and enriches suggested review comments with the information retrieved
  </Card>

  <Card title="Supports chat">
    Accesses your organization's knowledge bases and documentation when responding to PR chat questions
  </Card>

  <Card title="Stays transparent">
    Lists the tools it used under **"Additional context used"** in the review walkthrough
  </Card>
</CardGroup>

CodeRabbit searches your connected MCP tools automatically, but some tools organize their resources in ways that hard to be discovered without a hint—for example, Jenkins Organization Folders or SonarQube projects with custom key formats. In those cases you can supply **user guidance**: URL patterns with placeholders like `{repo}` or `{pr}` that tell CodeRabbit exactly where to look for each pull request. See [User guidance](/integrations/mcp-servers#user-guidance) for the full reference and examples.

## Examples of MCP server types

Based on the integrations described in the CodeRabbit documentation, common categories of MCP servers you can connect include:

| Category              | Examples                                         |
| --------------------- | ------------------------------------------------ |
| Documentation systems | Internal wikis, Confluence spaces, Context7      |
| Design tools          | Figma files and design assets                    |
| Project management    | Issue trackers, project boards                   |
| Knowledge bases       | Team knowledge bases and reference documentation |

<Info>
  This approach unlocks integrations without waiting for formal CodeRabbit support. If a tool has an MCP server, CodeRabbit can connect to it.
</Info>

## Configuration

<Info>
  MCP servers must be added through the CodeRabbit web interface before they can be used. Go to [app.coderabbit.ai/integrations](https://app.coderabbit.ai/integrations?tab=mcp), and click **Add MCP Integration**. For full setup instructions, see [Integrate MCP servers](/integrations/mcp-servers).
</Info>

Once an MCP server is connected, control its usage with the `knowledge_base.mcp` section of your [`.coderabbit.yaml`](/getting-started/yaml-configuration) file:

```yaml .coderabbit.yaml theme={null}
knowledge_base:
  mcp:
    usage: auto
    disabled_servers:
      - my-disabled-server
```

* The `usage` field (`auto` | `enabled` | `disabled`) Controls whether MCP servers are used as a knowledge source. `auto` disables MCP for public repositories. Use `enabled` to activate for all repositories, or `disabled` to turn off entirely.
* The `disabled_servers` field allows you to selectively disable specific servers by name.

For instructions on connecting and configuring MCP servers in the CodeRabbit app, see [Integrate MCP servers](/integrations/mcp-servers).

## What's next

<CardGroup cols={1}>
  <Card title="Set up MCP servers" icon="plug" href="/integrations/mcp-servers" horizontal>
    Connect and configure MCP servers in the CodeRabbit app
  </Card>

  <Card title="Knowledge base overview" icon="brain" href="/knowledge-base" horizontal>
    Learn about all knowledge sources available to CodeRabbit
  </Card>

  <Card title="Web search" icon="globe" href="/knowledge-base/web-search" horizontal>
    Use web search as an additional knowledge source
  </Card>
</CardGroup>
