MCP stdio server for AI code review via OpenRouter

MCP stdio server for AI code review via OpenRouter

mcp-server-code-review•byarahisman

A Model Context Protocol stdio server that connects to the OpenRouter API and provides an ask tool for text prompts and a code_review tool for analyzing project context.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Connects to the OpenRouter API to access various large language models.
  • •Exposes an ask tool that sends a simple text prompt to the OpenRouter API and returns the response.
  • •Exposes a code_review tool that performs a code review using the OpenRouter API with project context analysis.
  • •Integrates with repomix for codebase packaging and analysis and supports multi-language project detection.

BEST FOR

  • •Getting quick AI model responses to text prompts through an MCP client.
  • •Automated code review with completed and planned task context for a project.
  • •Reviewing projects across multiple programming languages such as JavaScript, Python, Go, and Rust.

ABOUT MCP-SERVER-CODE-REVIEW

MCP stdio server for AI code review via OpenRouter is cataloged as an MCP server attributed to arahisman. A Model Context Protocol stdio server that connects to the OpenRouter API and provides an ask tool for text prompts and a code_review tool for analyzing project context. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP stdio server for AI code review via OpenRouter are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which API key and model options does the server accept?

It requires an OpenRouter API key via --api-key and optionally accepts a default model via --default-model, defaulting to google/gemini-2.0-flash-thinking-exp:free.

How does the server run as part of an MCP setup?

It runs as a stdio server compatible with the MCP protocol and is configured with the stdio transport.

Upstream README

View this exact version on GitHub

README.md · 5ec054e9590d · Fetched 2026-11-13 13:03:16 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCP Server - Code Review

A server implementation for the Model Context Protocol (MCP) that connects Cursor to OpenRouter API via stdio, enabling code review and AI chat functionalities.

Features

  • Connects to OpenRouter API to access various large language models
  • Provides two main functionalities:
    • Simple text prompt responses (ask tool)
    • Automated code review with project context analysis (code_review tool)
  • Integrates with repomix for codebase packaging and analysis
  • Supports multi-language project detection
  • Runs as a stdio server compatible with the MCP protocol

Installation

# Install globally
npm install -g mcp-server-code-review

# Or install locally in your project
npm install mcp-server-code-review

Requirements

  • Node.js v16 or higher
  • OpenRouter API key - obtain one at OpenRouter

Usage

Command Line

mcp-server-code-review --api-key YOUR_OPENROUTER_API_KEY [--default-model MODEL_ID]

Options

  • --api-key, -k (required): Your OpenRouter API key
  • --default-model, -m (optional): Default model to use (defaults to google/gemini-2.0-flash-thinking-exp:free)

Example

mcp-server-code-review --api-key sk-or-v1-xxxxxxxxxxxx --default-model anthropic/claude-3-haiku:free

MCP Tools

This server implements two main MCP tools:

1. Ask Tool

Sends a simple text prompt to OpenRouter API and returns the response.

"mcp-openrouter-stdio": {
      "name": "mcp-openrouter-stdio",
      "command": "npx",
      "args": [
        "mcp-openrouter-stdio",
        "--api-key",
        "sk-or-v1-your_key",
        "--default-model",
        "google/gemini-2.0-flash-thinking-exp:free"
      ],
      "transport": "stdio"
    },

2. Code Review Tool

Performs a code review using OpenRouter API with project context analysis.

{
  name: "code_review",
  arguments: {
    completed_tasks: ["Task 1", "Task 2"],
    work_report: "Details of the work performed",
    project_path: "/absolute/path/to/project",
    planned_tasks: ["Future task 1", "Future task 2"],
    language: "js", // Primary language of the project
    model: "optional-model-id" // Uses default if not specified
  }
}

Supported Languages

The server can automatically detect and analyze projects in various programming languages:

  • JavaScript/TypeScript (js)
  • Python (python)
  • C# (csharp)
  • PHP (php)
  • Java (java)
  • Ruby (ruby)
  • Go (go)
  • Rust (rust)
  • C++ (cpp)
  • Swift (swift)

Development

# Clone the repository
git clone https://github.com/arahisman/mcp-server-code-review.git
cd mcp-server-code-review

# Install dependencies
npm install

# Build the project
npm run build

# Watch mode for development
npm run watch

Testing

The repository includes several test scripts:

# Basic server test
node test-mcp-server.js

# Test the ask tool
node test-ask.js

# Simple functionality test
node simple-test.js

License

MIT

Author

Adam Rahisman

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP stdio server for AI code review via OpenRouter from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcp-server-code-review)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools