GitHub-AI-MCP

Local-first GitHub MCP server with human-approved changes, repository policies, protected credentials and a Windows desktop interface.

Documentation

GitHub-AI-MCP — local control for AI-assisted GitHub workflows; Python 3.12+, Windows, MCP, MIT, v1.0.2

GitHub-AI-MCP

GitHub AI MCP MCP server – quality and maintenance score on Glama PyPI version Official MCP Registry Featured on Launch MCP

AI-assisted GitHub development, with local review and policy-controlled publication.

Русский · Quickstart · User guide · API reference · Security · MIT license


GitHub-AI-MCP is a desktop application and Model Context Protocol (MCP) server for controlled GitHub development. It combines local review, protected credentials, diagnostics and background service supervision with a policy-enforced Git workflow. It does not include an LLM or require an OpenAI API key for local Git/MCP work.

Distribution: Python package on PyPI for CLI/MCP and a separate GitHub-AI-MCP.exe for Windows. End users of the built EXE need no separate Python or Git installation.

Getting started · Features · Architecture · Workflow · Security · Build on Windows · Usage · Documentation

Getting started

Install from PyPI (CLI / MCP)

Requires Python 3.12+, Git and an OS credential vault. Private Git operations also require GitHub CLI (gh). The Python package does not bundle the Windows EXE, Git or tunnel-client.

With uv installed:

uvx github-ai-mcp==1.0.2 init
uvx github-ai-mcp==1.0.2 serve

Alternatively, in an activated Python virtual environment:

python -m pip install github-ai-mcp==1.0.2
github-ai-mcp init
github-ai-mcp serve

Run init only for first-time setup; do not overwrite existing configuration. Before serving, configure the repository allowlist and, if needed, authenticate locally with github-ai-mcp login (or uvx github-ai-mcp==1.0.2 login). Default mode is READ_ONLY with no repositories or write grants.

Example local MCP client configuration (with uvx on PATH):

{"mcpServers":{"github-ai-mcp":{"command":"uvx","args":["github-ai-mcp==1.0.2","serve"]}}}

Do not put credentials in the client JSON or expose loopback HTTP or private tunnels publicly. Connection guide · Security model · Releases.

Windows EXE

Start here — prepare, build, configure and connect

Start the step-by-step Windows guide → · Русская версия

Your goalStart here
Build my own Windows EXETools, downloads and vendor setup
Use GitHub locallyFirst launch and authorization
Connect ChatGPT privatelySecure MCP Tunnel

The tunnel is optional for local use. All vendor inputs are required for the current one-file build; public binary availability depends on release and license review.

Features

CapabilityWhat it provides
MCP connectivityLocal stdio, authenticated loopback Streamable HTTP and an optional existing official Secure MCP Tunnel profile.
Local reviewPreview changes and bind approval to a specific snapshot, paths and messages.
Precise Git historyExactly one genuinely changed path per commit; verify the final tree before publication.
Repository policyRepository allowlists, path validation, secret detection and controlled push/PR operations.
Desktop controlLocal setup, diagnostics, background service supervision, optional tray and Windows logon startup.
RecoveryDurable job state, ref reconciliation and metadata audit records.

Architecture

Architecture: MCP clients, local service and policy, isolated Git clones and GitHub API

The GUI and CLI share the same service; MCP tools are wrappers around its Git and job engines. Local HTTP and tunnel stdio are independent transports. The tunnel is optional and requires an authorized, existing vendor profile. See architecture and MCP connection.

Workflow

Plan, preview, review, commit, verify and publish

The engine freezes the desired tree and validates every commit against the approved plan. Publication additionally requires the configured checks, permissions and remote expectations. Default-branch and force pushes are forbidden by the application. No empty commits or fabricated timestamps are produced by the engine. See commit semantics and branch naming.

Security

Repository policy, snapshot approvals, OS credential vault, recovery and audit

  • GitHub and tunnel credentials use the OS vault; the local HTTP endpoint uses a separate token and binds to loopback.
  • MCP tools cannot alter local administration or approvals; sensitive paths and detected credentials are denied.
  • Configured host commands are not sandboxed. The local OS account is a trusted boundary; secret detection is heuristic.

Read the full security model and security policy before enabling write access.

Build on Windows

[!IMPORTANT] Native Windows packaging and live GitHub/tunnel acceptance have not been verified by the original Linux delivery. A passing source suite is not Windows certification. See the Windows acceptance checklist.

1. Prepare the vendor runtime

Follow RELEASE_BUILD.md for the approved Git, GitHub CLI (gh) and official tunnel-client inputs. These binaries are absent from the supplied source archive; the build deliberately fails when an input is missing rather than producing a partial standalone application.

2. Build the executable

From the repository root in PowerShell:

uv sync --frozen --extra gui --extra dev
uv pip install --python .venv/Scripts/python.exe -r launcher/build-requirements.txt
.venv/Scripts/python.exe scripts/build.py

Use --runtime-dir C:/approved-runtime on the build command for an external runtime input. The default output is only dist/GitHub-AI-MCP.exe (no installer, ZIP, checksum/signature report or permanent build tree).

3. Launch and configure

Double-click the EXE, open Setup and configure the required services. Logon startup is opt-in and uses one per-user HKCU Run value. After moving the EXE, re-enable startup and repair the tunnel MCP command in Setup. User data stays in place. Closing the window may leave it in the tray; use Exit to stop its services.

The same executable dispatches the GUI and internal MCP workers. Vendor resources are extracted automatically to PyInstaller's temporary directory. Configuration, logs and database live in %LOCALAPPDATA%\GitHub-AI-MCP; credentials remain in the OS vault.

Usage

TaskEntry point
Source desktop development.venv/Scripts/python.exe -m github_ai_mcp.desktop.entry
Source test suiteuv run --frozen --extra gui --extra dev pytest -q
Packaged diagnosticsGitHub-AI-MCP.exe --cli --config <path> doctor
MCP client setupConnection guide

The packaged EXE does not allocate a console; redirect/capture CLI output. Start with read-only operations and verify health before enabling writes. Remote connectivity needs an actual remote read-only invocation, not merely a running tunnel process.

Documentation

Getting startedEngineering and trust
English guide · Russian guideArchitecture
MCP connectionAPI reference
Release buildCommit semantics
Troubleshooting (RU)Security model
GitHub authenticationBranch naming
Windows acceptanceLicense compliance

Community and feedback

Trying GitHub-AI-MCP? Share your experience with the Windows setup or MCP integration in the early-user feedback thread. Feature requests and reproducible bug reports are welcome through Issues.

If this project is useful to you, consider starring it on GitHub. Please never include credentials, private repository data or unredacted logs in public feedback.

Contributing and license

See CONTRIBUTING.md and CHANGELOG.md. Released under the MIT license; bundled third-party components have their own licensing obligations.


GitHub-AI-MCP · Local control. Explicit review. Verifiable changes.