mcp-gh-forge

mcp-gh-forge

A lightweight MCP server that acts as a secure proxy for AI assistants to run local Git operations and GitHub API macros simultaneously.

Category
Visit Server

README

mcp-gh-forge šŸ› ļø

mcp-gh-forge is a lightweight, ultra-minimal Model Context Protocol (MCP) server designed to act as a secure proxy between your AI terminal assistants (Claude Code and GitHub Copilot CLI) and your local automation workflows.

Instead of forcing your AI model to execute slow, separate, step-by-step commands, mcp-gh-forge lets the AI run robust, multi-step local Git operations and cloud GitHub API macros simultaneously through a single execution layer.


šŸ’Ž Features

  • Dual-Universe Automation: Bridges local workspace operations (Git branches, files, builds) and remote cloud platform operations (GitHub Issues, Pull Requests).
  • Token & Cost Efficiency: Packs multi-stage developer chores into single-turn executions, slashing LLM context window bloat and API latency.
  • Cross-Platform Compatibility: Runs identically on Debian 13 and Windows 11 (Git Bash).
  • Fail-Safe Security Boundary: The AI cannot execute arbitrary terminal commands. It is bounded strictly to the execution parameter switches defined in your script blueprint directory.

šŸ“‚ Project Structure

mcp-gh-forge/
ā”œā”€ā”€ index.js             # Core MCP Node.js server bridge
ā”œā”€ā”€ package.json         # Node.js module configuration
└── README.md            # Documentation

šŸš€ Getting Started

1. Prerequisites

Ensure you have Node.js (v18+) installed on your local operating system.

2. Installation

Clone or navigate into your server folder and set up your project dependencies:

# Initialize project directory
cd mcp-gh-forge
npm install

3. Exposing Your Custom Automations

By default, the server expects your automated shell script (git-orchestrator.sh) to reside in your local machine's user path (~/bin/mcp-git-helpers/).

Make sure your shell scripts are executable (especially on Linux/Debian):

chmod +x ~/bin/mcp-git-helpers/git-orchestrator.sh

šŸ”Œ Linking to Your AI Assistants

To connect mcp-gh-forge to Claude Code, update your global ~/.claude.json configuration profile.

For Debian 13

{
  "mcpServers": {
    "mcp-gh-forge": {
      "command": "node",
      "args": ["/home/yourusername/projects/mcp-gh-forge/index.js"],
      "env": {
        "MCP_SCRIPT_DIR": "/home/yourusername/bin/mcp-git-helpers"
      }
    }
  }
}

For Windows 11 (Git Bash)

Note: Always use forward slashes (/) for paths within your JSON string parameters to ensure seamless cross-platform execution runtime support.

{
  "mcpServers": {
    "mcp-gh-forge": {
      "command": "node",
      "args": ["C:/Users/YourName/projects/mcp-gh-forge/index.js"],
      "env": {
        "MCP_SCRIPT_DIR": "C:/Users/YourName/bin/mcp-git-helpers"
      }
    }
  }
}

šŸ› ļø Expose Actions & Capabilities

Once connected, mcp-gh-forge exposes the run_forge_macro tool to your interactive terminal sessions. The tool accepts the following parameters:

Action Core Responsibility Expected Argument Parameter
consolidate Pulls issue/PR logs & comments together. PR or Issue Number (45)
get-changed-files Extracts unique lists of updated files. Revision Tag or Git Hash (v2.1.0)
draft-and-save Creates a local MD file & drafts a live GH issue. Issue Title ("Bug: Auth Loop Failure")
branch-init Safely fetches main & initializes clean branch. New Branch Suffix ("login-fix")
branch-cleanup Hard purges and cleans a dead branch layout. Targeted Branch Suffix ("login-fix")

🦾 Usage Example

Launch your interactive assistant inside any active target git repository:

claude

Use natural language commands to kick off your automated multi-step processes:

"Use mcp-gh-forge to run get-changed-files for v1.0.4. Analyze the output and write an engine summary changelog."

"Please initialize a new local feature branch using action branch-init for argument user-dashboard-patch."

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured