This page is about your AI agent calling CodeRabbit. It isnât Connections in CodeRabbitâs settings, where CodeRabbit calls your own MCP servers during reviews and chat. For that, see Connect MCP servers.
coderabbit for the CodeRabbit MCP server and coderabbit-docs for the docs MCP server.
The MCP server suits interactive work: your agent acts with your own CodeRabbit account, in one organization, after you sign in through your browser. It doesnât suit unattended jobs, such as CI pipelines or scheduled scripts, because every connection starts with a person signing in. It doesnât suit managing users and seats across an Enterprise SSO workspace either, because each connection reaches one organization. For those jobs, use the API with a key; Authentication says which key fits which job.
How it works
Most tools come from the CodeRabbit API: an API operation becomes a tool with the same name as its
operationId, such as get_me or create_code_task, the operationâs summary and description as its title and description, and the same inputs and outputs. Tools run the same permission checks as the API and the CodeRabbit app, so the agent can only do what your role, repository access, and plan already allow. See MCP tools for the full list.
Availability
- Plan: the MCP server has no plan requirement of its own. Each tool applies the plan and access checks of the operation behind it; see Plans.
- Region: the MCP server serves organizations in CodeRabbitâs US region. If your organization is in the EU region, use the API with an API key, or
coderabbit apifrom the CLI. - Git platform: GitHub Cloud organizations get all the tools in MCP tools. You can connect an organization on another Git platform, but only the account tools work there:
connection_status,get_me, andget_usage. - Deployment: organizations on self-hosted CodeRabbit or on a self-hosted Git provider, such as GitHub Enterprise Server, canât connect.
- GitHub identity:
list_pull_requestsandget_pull_requestneed a GitHub account linked to your CodeRabbit user. If you sign in to CodeRabbit with GitHub, that account is linked already. In an Enterprise SSO workspace, connect your GitHub account in CodeRabbit or ask an admin to link it; see How IdP members, Git identities, and seats relate.
Choose scopes
Scopes are the permissions your client asks for when it connects. CodeRabbitâs consent page shows them, and the connection gets exactly the scopes you approve. A scope limits what the agent can do; it never grants access you donât already have in CodeRabbit. Decide on scopes before you connect. Every scope list must includeconnection: CodeRabbit refuses a sign-in whose list leaves it out. Claude Code and Codex request only the scopes you configure, and without a setting they request only connection, which is enough for connection_status and nothing else.
Common setups
To combine jobs, join their scopes. For one agent that reads your pull requestâs review, requests a review, and reads plan feedback, use this list:
oauth.scopes. Codex takes it comma-separated.
To read plan feedback, the agent passes each result to the next call: get_code_task returns the taskâs plan_version; get_code_task_plan takes it as version and returns the planâs sha256; list_code_task_plan_comments takes version and sha256. The result has open and resolved threads, so the agent keeps the threads whose status is open.
Scopes by area
A read scope doesnât include its write scope, so request both when the agent reads before it changes something. Triage rule changes need both. Write scopes that start work, such as
review, reviews:write, code:write, security:write, verify:write, automations:write, reports:write, and triage:write, let the agent take actions that can consume credits or paid usage. When a tool needs a scope that your connection lacks, the call fails with insufficient_scope and names the missing scope. MCP tools lists the scopes for each group of tools.
To add a scope later, add it to your clientâs scope list and sign in again. Keep connection in the list. A connection never gains scopes on its own.
Connect your agent
The Claude Code and Codex examples connect with the scopes for exploring without changing anything, from Common setups. Add the scopes your jobs need before you sign in.- Claude Code
- Codex
- Claude
- Other clients
-
Add the server with the scopes you want in
oauth.scopes.--scope useris Claude Codeâs configuration scope, which makes the server available in all your projects; it isnât a CodeRabbit permission. -
In Claude Code, run
/mcp, select coderabbit, and sign in. You can also runclaude mcp login coderabbitfrom your shell. - Approve the connection in your browser. See Approve the connection.
oauth.scopes. To change them, run claude mcp logout coderabbit and claude mcp remove coderabbit, add the server again with the new list, and sign in again. See Claude Codeâs MCP documentation for configuration scopes and project .mcp.json files.Approve the connection
When your client signs in, your browser opens CodeRabbit. Sign in if you arenât already, then:- Choose the organization to connect. The connection works only in this organization, and tool arguments canât switch it.
- Read the summary under Allow client to access your selected organization? It lists what the connection can read and do, based on the requested scopes, and warns when actions can consume credits or paid usage.
- Check the hostname in Return to hostname after connecting. For a client on your computer, approve only connections you started.
- Click Connect to organization, or Cancel to refuse.
Check the connection
Ask your agent to call the account tools:connection_status returns your user ID, the connected organization, and the region. get_me needs account:read and returns your profile, your role in the connected organization, and your other organization memberships. Memberships donât give the connection access to those organizations.
In Claude Code, claude mcp list also shows whether the server is connected or needs authentication.
Disconnect
- Claude Code: run
claude mcp logout coderabbitto clear the stored sign-in, thenclaude mcp remove coderabbitto remove the server. - Claude: disconnect or remove the connector in Customize > Connectors.
- Other clients: use the clientâs sign-out or remove action.
Troubleshooting
Whatâs next
Browse MCP tools
Find the tool for each task and the scopes its group needs.
Call from the CLI
Run the same operations from a terminal or CI job with an API key.
Authenticate requests
Create an API key for scripts and integrations that donât use MCP.