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

# AI Code Review MCP

> AI-powered code reviews and development workflow directly in your IDE

<Note>MatterAI MCP Server is currently in beta and subject to change.</Note>

## Overview

MatterAI MCP Server revolutionizes code reviews by bringing AI-powered analysis directly into your development workflow. By leveraging the Model Context Protocol (MCP), it provides seamless integration with modern IDEs to enhance code quality and developer productivity.

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/3U87DakErDeBshmz/images/matter-ai-mcp-1.png?fit=max&auto=format&n=3U87DakErDeBshmz&q=85&s=e354c647cf8d736e5b86a80879533ceb" alt="MatterAI MCP Server" width="2940" height="1912" data-path="images/matter-ai-mcp-1.png" />
</Frame>

## Key Features

### 🔍 Comprehensive Code Reviews

* Review individual files or full git diffs with a single command
* Identify potential bugs, security vulnerabilities, and performance issues
* Get suggestions for code improvements and best practices

### 🧠 Implementation Planning

* Generate detailed implementation plans for AI agents
* Break down complex features into manageable tasks
* Align implementation with architectural best practices

### 🚀 Pull Request Generation

* Create pull requests with auto-generated titles and descriptions
* Highlight key changes and their impact
* Save time on PR documentation

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/3U87DakErDeBshmz/images/matter-ai-mcp-2.png?fit=max&auto=format&n=3U87DakErDeBshmz&q=85&s=0c5ea3c50784f7707ecebeffcd1e6233" alt="MatterAI MCP Server" width="2940" height="1912" data-path="images/matter-ai-mcp-2.png" />
</Frame>

# Getting Started

## 1. Create your MatterAI Account

Visit [MatterAI](https://app.matterai.so) to create your account.

## 2. IDE Setup

### For Cursor IDE:

#### 1-click Installation

1. Click on "Add to Cursor" button in the Get Started section
   <Frame>
     <img src="https://mintcdn.com/gravitycloud-9ebb5c50/3U87DakErDeBshmz/images/matter-ai-mcp-3.png?fit=max&auto=format&n=3U87DakErDeBshmz&q=85&s=d545ff35f3272c0a440dbbba5d39a14c" alt="MatterAI MCP Server" width="2940" height="1154" data-path="images/matter-ai-mcp-3.png" />
   </Frame>

#### Self-hosted Installation

1. Click on `Cursor Settings` -> `Tools & MCP` -> `Add Custom MCP` -> `mcp.json` file
2. Add the below JSON file

```json mcp.json lines icon="json" theme={null}
{
  "mcpServers": {
    "matterai": {
      "url": "https://mcp.matterai.so/sse",
      "disabled": false,
      "headers": {
        "X-AUTH-TOKEN": "YOUR_MATTER_AI_API_KEY"
      },
      "autoApprove": []
    }
  }
}
```

### For Cline IDE:

1. Click on `Cline` -> `MCP Servers` -> `Remove Servers` -> `Edit configuration` button
2. Add the below JSON file

```json cline_mcp_settings.json lines icon="json" theme={null}
{
  "mcpServers": {
    "matterai": {
      "url": "https://mcp.matterai.so/sse",
      "disabled": false,
      "headers": {
        "X-AUTH-TOKEN": "YOUR_MATTER_AI_API_KEY"
      },
      "autoApprove": []
    }
  }
}
```

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/EokIl-_uPqMajPJm/images/mcp/cline-matterai-mcp-setup.png?fit=max&auto=format&n=EokIl-_uPqMajPJm&q=85&s=e25ef447b0b4ea8d4f47489a65d2980e" alt="MatterAI MCP Server Setup for Cline" width="2940" height="1912" data-path="images/mcp/cline-matterai-mcp-setup.png" />
</Frame>

3. On save, it will load all the available tools
4. Request Cline to perform code review using matterai by saying `perform code review with matterai`

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/EokIl-_uPqMajPJm/images/mcp/cline-matterai-mcp-preview.png?fit=max&auto=format&n=EokIl-_uPqMajPJm&q=85&s=8c615d67d8514478eebedc7dec2d5be8" alt="MatterAI MCP Server Preview for Cline" width="2940" height="1912" data-path="images/mcp/cline-matterai-mcp-preview.png" />
</Frame>

### For Any MCP-Compatible IDE:

1. Obtain your MatterAI API key from [MatterAI Settings](https://app.matterai.so/settings)
2. Configure your MCP configuration file with the following settings:

```json theme={null}
{
  "mcpServers": {
    "matter-ai": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.matterai.so/sse",
        "--header",
        "X-AUTH-TOKEN:YOUR_MATTER_AI_API_KEY"
      ]
    }
  }
}
```

## 3. Start Using in AI Agent Chats

Use simple commands such as `/matter review` OR natural language to perform code reviews with solution and implementation in your IDE.

<Frame>
  <img src="https://mintcdn.com/gravitycloud-9ebb5c50/s-F9Ys9S6Inpm_QS/images/mcp/cursor-matterai-mcp-cmd.png?fit=max&auto=format&n=s-F9Ys9S6Inpm_QS&q=85&s=8d6db7354300b35d446ed149fb6ccf15" alt="MatterAI MCP Server Preview for Cursor" width="2940" height="1912" data-path="images/mcp/cursor-matterai-mcp-cmd.png" />
</Frame>

# Why Choose MatterAI MCP Server?

* **Seamless Integration**: Works directly in your existing development environment
* **Context-Aware**: Understands your codebase and provides relevant suggestions
* **Time-Saving**: Automates routine code review tasks
* **Consistent Quality**: Provides consistent, objective code reviews every time

> "Our team is hooked to this amazing AI-driven code review agent. This is something I would have loved to build myself, if MatterAI hadn't done it already." — CTO, Rumi

## Learn More

For more information and updates, visit [MatterAI](https://www.matterai.so).
