CodeRabbit
About
Interact with CodeRabbit AI reviews on GitHub pull requests.
Details
- Author
- bradthebeeble
- Categories
- Developer Tools, Other, AI
Jump to
Setup
Install CodeRabbit in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/bradthebeeble/coderabbitai-mcp
Follow the installation instructions in the repository README, then restart your MCP client.
A Model Context Protocol (MCP) server for interacting with CodeRabbit AI reviews on GitHub pull requests. This server enables Large Language Models (LLMs) to analyze, understand, and implement CodeRabbit suggestions programmatically.
- Get CodeRabbit Reviews: Retrieve all CodeRabbit reviews for a specific pull request
- Review Details: Get detailed information about specific reviews including configuration and files reviewed
- Extract Comments: Get individual line comments with AI prompts and suggestions
- Comment Details: Deep dive into specific comments with context and fix examples
- Resolve Comments: Mark comments as addressed, won't fix, or not applicable
- Automated Workflow Prompt: Use/coderabbit-reviewslash command for complete review processing
No installation required! Run directly with npx:
# Install the latest stable version explicitly npx coderabbitai-mcp@latest
- GitHub Personal Access Token: Create athttps://github.com/settings/tokens
- Required scopes:repo(for private repos) orpublic_repo(for public only)
To use the CodeRabbit MCP server in Claude Desktop, add it to your configuration file:
- macOS:~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:%APPDATA%/Claude/claude_desktop_config.json
- Linux:~/.config/Claude/claude_desktop_config.json
- Open your Claude Desktop configuration file (create it if it doesn't exist)
- Add the CodeRabbit MCP server configuration:
{ "mcpServers": { "coderabbitai": { "command": "npx", "args": ["coderabbitai-mcp@latest"], "env": { "GITHUB_PAT": "ghp_your_token_here" } } } }
- Replaceghp_your_token_herewith your actual GitHub Personal Access Token
- Save the file and restart Claude Desktop
To use the CodeRabbit MCP server in Claude Code, configure it in your project:
-
Create a.claudedirectory in your project root (if it doesn't exist):
{ "mcpServers": { "coderabbitai": { "command": "npx", "args": ["coderabbitai-mcp@latest"], "env": { "GITHUB_PAT": "ghp_your_token_here" } } } }
- Replaceghp_your_token_herewith your actual GitHub Personal Access Token
- The server will be available next time you start Claude Code in this project
Pro tip: For security, you can use environment variables instead of hardcoding the token:
{ "mcpServers": { "coderabbitai": { "command": "npx", "args": ["coderabbitai-mcp@latest"], "env": { "GITHUB_PAT": "${GITHUB_PAT}" } } } }
Then set theGITHUB_PATenvironment variable in your shell before starting Claude Code.
Automated Review Processing (Recommended)
Use the built-in MCP prompt for complete workflow automation:
/coderabbit-review owner:bradthebeeble repo:wiseguys pullNumber:15
- Finds and analyzes CodeRabbit reviews
- Classifies issues by priority (high/medium/low)
- Gets your approval before making changes
- Systematically implements fixes
- Marks resolved comments in CodeRabbit
- Provides a completion summary
Get all CodeRabbit reviews for a specific pull request.
{ "owner": "bradthebeeble", "repo": "wiseguys", "pullNumber": 15 }
Get detailed information about a specific CodeRabbit review.
{ "owner": "bradthebeeble", "repo": "wiseguys", "pullNumber": 15, "reviewId": 2969007538 }
Get all individual line comments from CodeRabbit reviews.
{ "owner": "bradthebeeble", "repo": "wiseguys", "pullNumber": 15, "reviewId": 2969007538 }
Get detailed information about a specific CodeRabbit comment.
{ "owner": "bradthebeeble", "repo": "wiseguys", "commentId": 2173534099 }
{ "owner": "bradthebeeble", "repo": "wiseguys", "commentId": 2173534099, "resolution": "addressed", "note": "Implemented asyncHandler wrapper as suggested" }
git clone https://github.com/bradthebeeble/coderabbitai-mcp.git cd coderabbitai-mcp npm install npm run build
# Build TypeScript npm run build # Watch mode for development npm run dev # Clean build files npm run clean # Test the server npm test
# GitHub Configuration (shorter variable name) GITHUB_PAT=ghp_your_token_here # Optional: CodeRabbit MCP Configuration CODERABBIT_LOG_LEVEL=info
- Verify Node.js 18+ is installed:node --version
- Test npx execution manually:npx coderabbitai-mcp
- Check your internet connection (npx downloads the latest version)
- Verify your GitHub token has the required permissions
- Check that you have access to the repositories you're querying
- Verify the PR has CodeRabbit reviews (check GitHub web interface)
- Ensure you're using the correct owner/repo/pullNumber
CODERABBIT_LOG_LEVEL=debug npx coderabbitai-mcp
- Claude Desktop: Full support with configuration
- Claude Code: Project-level MCP integration with/coderabbit-reviewprompt
- Other MCP Clients: Any client supporting the Model Context Protocol
The GitHub Personal Access Token needs these permissions:
- repo(for private repositories) orpublic_repo(for public only)
- read:org(if accessing organization repositories)
- TypeScript: Fully typed implementation with Zod validation
- MCP SDK: Built on the official Model Context Protocol SDK
- Modular Design: Each tool is implemented in its own module
- MCP Prompts: Automated workflows available as slash commands
The server respects GitHub's API rate limits:
- 5,000 requests/hour for authenticated requests
- Automatically handles rate limit responses
- Fork the repository
- Create a feature branch:git checkout -b feature-name
- Make your changes and add tests
- Run the build:npm run build
- Submit a pull request
- Issues:GitHub Issues
- Discussions:GitHub Discussions
- Documentation: Full examples available inEXAMPLES.md
This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.
Skene is a codebase analysis toolkit for product-led growth. It scan your codebase, detect growth opportunities, and generate actionable implementation plans.
AI-to-AI code review platform — Claude, Codex, and Gemini cross-check each other via MCP, REST API, and CLI for consensus-based results.
Orchestrates a dual-AI engineering loop where a Primary AI plans and implements, while a Review AI validates and reviews, with continuous feedback for optimal code quality. Supports custom AI pairing (Claude, Codex, Gemini, etc.)
Provides AI assistants with a comprehensive, one-time analysis for complete codebase context and understanding.
Integrate with CodeRabbit AI for automated code reviews, pull request analysis, and report generation.
Search all of GitHub from your AI agent — find libraries, drill into repos, find code patterns.
Automate Google Jules, the AI coding assistant, for tasks like code reviews, repository management, and AI-powered development workflows.
Autonomous dev team steered from chat: plain-English requests against your GitHub repo become tested, merged PRs on your own Claude/Codex/GLM/Kimi key.
Analyze and visualize code graphs using CodeGPT.
Hybrid decomp tool — AI decides WHERE to split your monolith, deterministic engine COPIES the code. Minimize tokens, maximize syntax validity.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





