
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
github-mcp-server
Advanced tools
A comprehensive Model Context Protocol (MCP) server that provides Git repository management capabilities for AI assistants and automation tools. Includes 29 Git operations + 11 workflow combinations with complete CLI alias system and advanced developer pr
π View on MCP Market
π View on MCP Registry
A Model Context Protocol (MCP) server that provides 29 Git operations + 11 workflow combinations for AI assistants and developers. This server exposes comprehensive Git repository management through a standardized interface, enabling AI models and developers to safely manage complex version control workflows.
GitHub MCP Server bridges AI assistants with Git repositories and provides powerful developer productivity tools. It provides:
This server provides comprehensive Git repository management through two main categories:
Essential daily Git commands organized in bin/basic/
- see Basic Operations Guide for detailed documentation.
Sophisticated workflows and automation in bin/advanced/
- see Advanced Workflows Guide for comprehensive documentation.
The fastest way to use GitHub MCP Server is with npx - no installation required!
# Basic Git operations
npx github-mcp-server gstatus
npx github-mcp-server gadd
npx github-mcp-server gcommit "your commit message"
npx github-mcp-server gpush
# Advanced workflows
npx github-mcp-server gflow "implement new feature"
npx github-mcp-server gsync
npx github-mcp-server gbackup
# Or use the short alias
npx gms gstatus
npx gms gflow "quick fix"
For frequent use, install globally:
# Using npm
npm install -g github-mcp-server
# Using pnpm (recommended)
pnpm add -g github-mcp-server
# Then use directly
gstatus
gflow "your message"
gsync
See markdown/INSTALLATION.md for detailed installation guide for Windows, macOS, WSL, and all platforms.
Cursorμμ GitHub MCP Serverλ₯Ό μ¬μ©νλ €λ©΄ λ€μ μ€μ μ μΆκ°νμΈμ:
File: ~/.cursor/mcp_config.json
GitHub ν ν°μ μ€μ νλ©΄ μΈμ¦ μ€λ₯ μμ΄ Git μμ μ μνν μ μμ΅λλ€:
GitHub Personal Access Token μμ±:
repo
, workflow
, write:packages
λ± νμν κΆν μ ννκ²½λ³μ μ€μ :
GITHUB_TOKEN
: GitHub Personal Access TokenGITHUB_USERNAME
: GitHub μ¬μ©μλͺ
(μ νμ¬ν, κΈ°λ³Έκ°: 'git'){
"mcpServers": {
"github-mcp-server": {
"command": "npx",
"args": ["github-mcp-server-mcp"],
"env": {
"GITHUB_TOKEN": "your_github_personal_access_token",
"GITHUB_USERNAME": "your_github_username"
},
"capabilities": ["tools", "resources", "prompts"]
}
}
}
File: ~/.config/claude/claude_desktop_config.json
{
"mcpServers": {
"github-mcp-server": {
"command": "npx",
"args": ["github-mcp-server", "mcp"],
"env": {}
}
}
}
File: ~/.continue/config.json
{
"models": [
{
"title": "GitHub MCP Assistant",
"provider": "anthropic",
"model": "claude-3-5-sonnet-20241022",
"contextLength": 200000,
"mcpServers": [
{
"name": "github-mcp-server",
"command": "npx",
"args": ["github-mcp-server", "mcp"],
"env": {}
}
]
}
]
}
npm ν¨ν€μ§λ‘ μ€μΉλ MCP μλ²λ₯Ό μ§μ μ€νν μλ μμ΅λλ€:
# κΈλ‘λ² μ€μΉ ν
npm install -g github-mcp-server
github-mcp-server mcp
# λλ npxλ‘ μ§μ μ€ν
npx github-mcp-server mcp
MCP μλ²λ₯Ό ν΅ν΄ μ¬μ©ν μ μλ 29κ° Git μμ :
**μμΈν μ€μ μ markdown/MCP_UNIVERSAL_CONFIG.md**λ₯Ό μ°Έμ‘°νμΈμ.
# Check repository status
npx github-mcp-server gstatus
# Add all files and commit
npx github-mcp-server gadd
npx github-mcp-server gcommit "your commit message"
# Push to remote
npx github-mcp-server gpush
# Pull from remote
npx github-mcp-server gpull
# Branch operations
npx github-mcp-server gbranch feature-auth
npx github-mcp-server gcheckout feature-auth
# View history and differences
npx github-mcp-server glog 5
npx github-mcp-server gdiff main
# Complete workflow (add β commit β push)
npx github-mcp-server gflow "implement new feature"
# Quick commit without push
npx github-mcp-server gquick "fix typo"
# Sync with remote (pull β push)
npx github-mcp-server gsync
# Development session management
npx github-mcp-server gdev feature-auth
# Backup and safety
npx github-mcp-server gbackup --emergency
# Repository cleanup
npx github-mcp-server gclean --optimize
# Tag management
npx github-mcp-server gtag create v1.0.0 "Release version"
# Merge operations
npx github-mcp-server gmerge feature-branch
# Rebase operations
npx github-mcp-server grebase main
# Cherry-pick specific commit
npx github-mcp-server gcherry abc1234
# Line-by-line authorship
npx github-mcp-server gblame src/app.js
# List all available operations
npx github-mcp-server list
# Get help for specific operation
npx github-mcp-server help
# Show basic operations
npx github-mcp-server glist basic
# Show advanced workflows
npx github-mcp-server glist advanced
GitHub MCP Server is organized for clarity and progressive learning:
github-mcp-server/
βββ src/
β βββ index.ts # MCP server (29 tool registrations, schema definitions)
β βββ github.ts # Git operations engine (all 29 implementations)
βββ bin/
β βββ basic/ # π 17 Essential Git Operations
β β βββ README.md # Comprehensive basic operations guide
β β βββ gadd.js # Add files (git add)
β β βββ gcommit.js # Create commits (git commit)
β β βββ gpush.js # Push changes (git push)
β β βββ gpull.js # Pull changes (git pull)
β β βββ gstatus.js # Repository status (git status)
β β βββ gbranch.js # Branch management (git branch)
β β βββ gcheckout.js # Branch switching (git checkout)
β β βββ glog.js # Commit history (git log)
β β βββ gdiff.js # Show differences (git diff)
β β βββ gstash.js # Stash operations (git stash)
β β βββ gpop.js # Apply stash (git stash pop)
β β βββ greset.js # Reset operations (git reset)
β β βββ gclone.js # Clone repositories (git clone)
β β βββ gremote.js # Remote management (git remote)
β β βββ ginit.js # Initialize repository (git init)
β βββ advanced/ # π 13 Advanced Workflows & Automation
β βββ README.md # Comprehensive advanced workflows guide
β βββ gflow.js # Complete workflow (addβcommitβpush)
β βββ gquick.js # Quick commit workflow
β βββ gsync.js # Sync workflow (pullβpush)
β βββ gdev.js # Development session management
β βββ gworkflow.js # Professional workflow combinations
β βββ gfix.js # Smart fix and patch workflows
β βββ gfresh.js # Fresh start workflows
β βββ gbackup.js # Backup and safety operations
β βββ gclean.js # Repository cleanup and optimization
β βββ gsave.js # Save and preserve workflows
β βββ glist.js # Tool discovery and help system
β βββ grelease.js # Release management workflows
β βββ common.js # Shared utilities and helpers
βββ markdown/
β βββ INSTALLATION.md # Detailed installation guide
β βββ DEPLOY.md # Production deployment guide
β βββ DOCKER.md # Docker setup and deployment guide
β βββ QUICK_REFERENCES.md # Copy-paste command reference
βββ mcp-cli.js # Enhanced CLI wrapper (organized by structure)
βββ package.json # Project configuration & npm scripts
βββ tsconfig.json # TypeScript configuration
βββ README.md # This comprehensive guide
glist
command with category filteringISC License
Created for use with AI assistants that support the Model Context Protocol.
FAQs
A comprehensive Model Context Protocol (MCP) server that provides Git repository management capabilities for AI assistants and automation tools. Includes 29 Git operations + 11 workflow combinations with complete CLI alias system and advanced developer pr
The npm package github-mcp-server receives a total of 398 weekly downloads. As such, github-mcp-server popularity was classified as not popular.
We found that github-mcp-server demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.