# GitHub-AI-MCP

> GitHub-AI-MCP is an open-source MCP server for developer tools. Local MCP server for reviewed, policy-controlled GitHub commits and pull requests. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Windows, API, Self-hosted
- **Repository:** https://github.com/fireaideveloper/github-ai-mcp
- **MCP Registry name:** io.github.fireaideveloper/github-ai-mcp
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-29

## About

GitHub-AI-MCP lets AI clients work with GitHub repositories through a Model Context Protocol server, while keeping a person in control of what gets published. Changes are previewed locally and approval is tied to a specific snapshot, file paths and commit messages before anything is pushed.

The server runs over stdio or an authenticated loopback HTTP endpoint and sits alongside a Windows desktop app that handles setup, diagnostics and background service supervision. GitHub and tunnel credentials are kept in the operating system vault rather than in client configuration. Repository allowlists, path validation and secret detection limit what an agent can touch, and default-branch and force pushes are blocked.

It is aimed at developers who want an assistant to draft and commit code changes without giving it open write access to their repositories. The project does not bundle an LLM, so it works with whichever client model the user already runs.

## Features

- **Local change review:** Previews changes and binds each approval to a fixed snapshot, paths and messages.
- **Repository allowlists:** Restricts MCP access to explicitly configured repositories, with read-only mode as the default.
- **Per-file commit history:** Creates one genuinely changed path per commit and verifies the final tree before publication.
- **Credential protection:** Stores GitHub and tunnel credentials in the OS vault and denies sensitive paths.
- **Desktop diagnostics:** Provides a setup window, health checks, background service control and optional tray access.
- **Durable job recovery:** Keeps job state and ref reconciliation records so interrupted work can be resumed.

## Good for

- Have an AI client draft and commit fixes to a repository after a manual review step
- Give an assistant read-only access to selected repositories for code inspection
- Open pull requests from agent-generated branches under configured policy checks
- Audit what an AI tool changed through per-commit metadata records

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add github-ai-mcp -- uvx github-ai-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "github-ai-mcp": {
      "command": "uvx",
      "args": [
        "github-ai-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "github-ai-mcp": {
      "command": "uvx",
      "args": [
        "github-ai-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "github-ai-mcp": {
      "command": "uvx",
      "args": [
        "github-ai-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "github-ai-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "github-ai-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add github-ai-mcp -- uvx github-ai-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.github-ai-mcp]
command = "uvx"
args = ["github-ai-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "github-ai-mcp": {
      "command": "uvx",
      "args": [
        "github-ai-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user github-ai-mcp uvx -- github-ai-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "github-ai-mcp": {
      "command": "uvx",
      "args": [
        "github-ai-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "github-ai-mcp": {
      "command": "uvx",
      "args": [
        "github-ai-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "github-ai-mcp": {
      "command": "uvx",
      "args": [
        "github-ai-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "github-ai-mcp": {
      "command": "uvx",
      "args": [
        "github-ai-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "github-ai-mcp": {
      "command": "uvx",
      "args": [
        "github-ai-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "github-ai-mcp": {
      "command": "uvx",
      "args": [
        "github-ai-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "github-ai-mcp": {
      "command": "uvx",
      "args": [
        "github-ai-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "github-ai-mcp": {
      "command": "uvx",
      "args": [
        "github-ai-mcp"
      ]
    }
  }
}
```

## FAQ

### Does GitHub-AI-MCP include its own AI model?

No. It does not include an LLM or require an OpenAI API key for local Git and MCP work.

### What do I need installed to use the Python package?

Python 3.12 or newer, Git and an OS credential vault. Private Git operations also need the GitHub CLI (gh).

### Can the server push to the main branch?

No. Default-branch and force pushes are forbidden by the application.

### What is the default access mode?

READ_ONLY, with no repositories or write grants until they are configured.

### Is GitHub-AI-MCP free?

Yes. GitHub-AI-MCP is open source, so you can use and self-host it for free.

### How do I add GitHub-AI-MCP to Claude Code?

Run this command in your terminal: claude mcp add github-ai-mcp -- uvx github-ai-mcp

### What are the best alternatives to GitHub-AI-MCP?

The closest alternatives to GitHub-AI-MCP are GitHub, Github MCP Server, Github MCP, GitHub and Git.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Github MCP Server](https://ai-powered.com/mcp/github-mcp-server-2): Github MCP Server is an open-source MCP server for developer tools.
- [Github MCP](https://ai-powered.com/mcp/github-mcp): Github MCP is an open-source MCP server for developer tools.
- [GitHub](https://ai-powered.com/mcp/github-5): GitHub is an open-source MCP server for developer tools.
- [Git](https://ai-powered.com/mcp/git-4): Git is an open-source MCP server for developer tools.
- [Github MCP Connector](https://ai-powered.com/mcp/github-mcp-connector): Github MCP Connector is an open-source MCP server for developer tools.
- [Git MCP Server](https://ai-powered.com/mcp/git-mcp-server): Git MCP Server is an open-source MCP server for developer tools.
- [Github](https://ai-powered.com/mcp/github-6): Github is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/github-ai-mcp
