GitHub-AI-MCP
Local MCP server for reviewed, policy-controlled GitHub commits and pull requests
GitHub-AI-MCP is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Windows, API
- Runs
- Locally
- Version
- 1.0.2
- Listing updated
Similar MCP servers
Install
You install MCP servers on a computer. Send yourself the link.
Add with the CLI
Run in a terminal
claude mcp add github-ai-mcp -- uvx github-ai-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"github-ai-mcp": {
"command": "uvx",
"args": [
"github-ai-mcp"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"github-ai-mcp": {
"command": "uvx",
"args": [
"github-ai-mcp"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.json
{
"mcpServers": {
"github-ai-mcp": {
"command": "uvx",
"args": [
"github-ai-mcp"
]
}
}
}Use .cursor/mcp.json in a project to share it with the project.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add github-ai-mcp -- uvx github-ai-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.github-ai-mcp]
command = "uvx"
args = ["github-ai-mcp"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"github-ai-mcp": {
"command": "uvx",
"args": [
"github-ai-mcp"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.json
{ "mcpServers": { "github-ai-mcp": { "command": "uvx", "args": [ "github-ai-mcp" ] } } }Open it from the MCP Servers icon → Configure → Configure MCP Servers.
Zed
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "github-ai-mcp": { "command": "uvx", "args": [ "github-ai-mcp" ] } } }Junie
Add to ~/.junie/mcp/mcp.json
{ "mcpServers": { "github-ai-mcp": { "command": "uvx", "args": [ "github-ai-mcp" ] } } }Use .junie/mcp/mcp.json to share it with a project.
Kiro
Add to ~/.kiro/settings/mcp.json
{ "mcpServers": { "github-ai-mcp": { "command": "uvx", "args": [ "github-ai-mcp" ] } } }Use .kiro/settings/mcp.json to add it to one workspace only.
Using several servers? Build one config file with the MCP config generator.
About GitHub-AI-MCP
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.
What it does
- 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
Pricing
Open source
Free and released under the MIT license.
More servers for the same service
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.
