GitHub プルリクエスト上で CodeRabbit AI レビューと連携するための MCP サーバーです。APIアクセスには GitHub のパーソナルアクセストークンが必要で、環境変数を通じて設定します。

GitHub プルリクエスト上で CodeRabbit AI レビューと連携するための MCP サーバーです。APIアクセスには GitHub のパーソナルアクセストークンが必要で、環境変数を通じて設定します。
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.
git clone https://github.com/bradthebeeble/coderabbitai-mcp.git
cd coderabbitai-mcp
npm install
npm run buildAdd to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "your_github_token_here"
}
},
"coderabbitai": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/path/to/coderabbitai-mcp"
}
}
}Add to your project's .claude/config.json:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "your_github_token_here"
}
},
"coderabbitai": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/path/to/coderabbitai-mcp"
}
}
}Create a .env file (optional):
# GitHub Configuration (handled by GitHub MCP)
GITHUB_PERSONAL_ACCESS_TOKEN=your_github_token_here
# CodeRabbit MCP Configuration
CODERABBIT_LOG_LEVEL=info# Build the image
docker build -t coderabbitai-mcp .
# Run with Docker Compose
docker run --rm \
-e GITHUB_PERSONAL_ACCESS_TOKEN=your_token \
coderabbitai-mcpThe server is automatically started by your MCP client (Claude Desktop/Code) when configured properly.
For manual testing:
npm startThe server runs on stdio transport and integrates with MCP-compatible clients.
get_coderabbit_reviewsGet all CodeRabbit reviews for a specific pull request.
Input:
{
"owner": "bradthebeeble",
"repo": "wiseguys",
"pullNumber": 15
}Output:
[
{
"id": 2969007538,
"submitted_at": "2025-06-28T21:43:11Z",
"html_url": "https://github.com/bradthebeeble/wiseguys/pull/15#pullrequestreview-2969007538",
"state": "COMMENTED",
"actionable_comments": 9,
"summary": "Configuration used: CodeRabbit UI, Review profile: CHILL",
"commit_id": "63e45f6dc32544e76f5bfbf02d8836b2a8a3da07"
}
]get_review_detailsGet detailed information about a specific CodeRabbit review.
Input:
{
"owner": "bradthebeeble",
"repo": "wiseguys",
"pullNumber": 15,
"reviewId": 2969007538
}Output:
{
"id": 2969007538,
"submitted_at": "2025-06-28T21:43:11Z",
"files_reviewed": [
"backend/controllers/messageController.js",
"backend/services/messageService.js",
"test-messaging.sh"
],
"configuration_used": "CodeRabbit UI",
"review_profile": "CHILL",
"parsed_content": {
"actionable_comments": 9,
"duplicate_comments": 1,
"nitpick_comments": 4,
"comments": [...]
}
}get_review_commentsGet all individual line comments from CodeRabbit reviews.
Input:
{
"owner": "bradthebeeble",
"repo": "wiseguys",
"pullNumber": 15,
"reviewId": 2969007538
}Output:
[
{
"id": 2173534099,
"path": "backend/routes/messages.js",
"line_range": { "start": 34, "end": 82 },
"severity": "warning",
"category": "Potential Issue",
"description": "Add error handling for async route handlers to prevent unhandled promise rejections",
"ai_prompt": "In backend/routes/messages.js from lines 34 to 82, the async route handlers lack error handling...",
"committable_suggestion": "router.post('/', async (req, res, next) => { ... })",
"is_resolved": true
}
]get_comment_detailsGet detailed information about a specific CodeRabbit comment.
Input:
{
"owner": "bradthebeeble",
"repo": "wiseguys",
"commentId": 2173534099
}Output:
{
"id": 2173534099,
"path": "backend/routes/messages.js",
"line_range": { "start": 34, "end": 82 },
"severity": "warning",
"category": "Potential Issue",
"description": "Add error handling for async route handlers",
"ai_prompt": "In backend/routes/messages.js from lines 34 to 82, the async route handlers lack error handling, which can cause unhandled promise rejections. To fix this, create an asyncHandler wrapper function...",
"file_context": "File: backend/routes/messages.js\n\nrouter.post('/', async (req, res) => {\n await messageController.createMessage(req, res);\n});",
"fix_examples": [
"router.post('/', async (req, res, next) => {\n try {\n await messageController.createMessage(req, res);\n } catch (error) {\n next(error);\n }\n});"
],
"related_comments": [2173534100, 2173534101]
}resolve_commentMark a CodeRabbit comment as resolved.
Input:
{
"owner": "bradthebeeble",
"repo": "wiseguys",
"commentId": 2173534099,
"resolution": "addressed",
"note": "Implemented asyncHandler wrapper as suggested"
}Output:
{
"success": true,
"message": "Added resolution comment to PR #15",
"comment_id": 2173534099,
"resolution_method": "reply"
}Example prompt:
Show me all CodeRabbit reviews for PR #15 in bradthebeeble/wiseguys, then get the details of any comments that have AI prompts I can implement.This server requires the GitHub MCP Server to function. The CodeRabbit MCP server uses the GitHub MCP to:
The GitHub Personal Access Token needs these permissions:
repo (for private repositories) or public_repo (for public only)read:org (if accessing organization repositories)Here's a complete working configuration for Claude Desktop:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_your_token_here"
}
},
"coderabbitai": {
"command": "node",
"args": ["dist/index.js"],
"cwd": "/Users/yourname/coderabbitai-mcp"
}
}
}After configuration:
get_coderabbit_reviews to see all CodeRabbit feedback on a PRget_review_comments to get actionable suggestionsget_comment_details to get AI prompts for specific fixesresolve_comment to track which suggestions have been addressed# Install dependencies
npm install
# Build TypeScript
npm run build
# Watch mode for development
npm run dev
# Clean build files
npm run cleanServer not loading:
node --versioncwd is correctnpm run build was executed successfullyGitHub API errors:
No CodeRabbit reviews found:
Enable debug logging by setting environment variables:
# For GitHub MCP
GITHUB_API_DEBUG=true
# For CodeRabbit MCP
CODERABBIT_LOG_LEVEL=debugClaude Desktop logs:
~/Library/Logs/Claude/mcp*.log%APPDATA%/Claude/logs/mcp*.logManual server logs:
npm start 2>&1 | tee coderabbit-mcp.logThe server respects GitHub's API rate limits:
git checkout -b feature-namenpm run buildgit clone https://github.com/bradthebeeble/coderabbitai-mcp.git
cd coderabbitai-mcp
npm install
npm run dev # Watch mode for developmentMIT
Context7 MCP server providing up-to-date, version-specific documentation and code examples for libraries, enabling coding agents to fetch accurate docs and code snippets. Requires an API key for higher rate limits, passed via CONTEXT7_API_KEY header.
A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. Enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.
MCP server for Firecrawl web scraping integration. Supports both cloud and self-hosted instances. Features include web scraping, batch processing, structured data extraction, and LLM-powered content analysis. Requires FIRECRAWL_API_KEY environment variable for API access. Optional FIRECRAWL_API_URL for self-hosted instance configuration.
This plugin provides essential MCP (Model Context Protocol) server manifest functionalities, enabling efficient management and integration of server components.
MCP server for Chrome DevTools that lets your coding agent control and inspect a live Chrome browser for automation, debugging, and performance analysis. Requires Node.js 22+ and a current stable Chrome browser.
Model Context Protocol server for Figma integration. Requires a Figma API access token to be set via environment variable or command line argument.
Read https://lobehub.com/mcp/bradthebeeble-coderabbitai-mcp/skill.md and follow the instructions to set up the LobeHub MCP Marketplace and install the MCP server.
このプロンプトをエージェントに送信して、MCP サーバーをマーケットプレイスに公開します
