mcp-github-push
mcp-github-push
軽量な MCP サーバーで、Claude(または他の MCP クライアント)に、コンピューター上で git clone / git pull することなくプロジェクトを直接 GitHub に push する機能を提供します。GitHub の標準コネクターに代わり、トークンの消費を抑え、ローカルストレージを圧迫しないように作られました。
ターミナル CLIです。npm でインストールし、トークンを一度設定すれば、あとは MCP クライアントに登録するだけです。
組み込みの GitHub コネクタとの違い
ディスクにはクローンしません。 すべての操作は GitHub REST / Git Data API を直接使用するため、ローカルストレージを消費しません。
複数のファイルを 1 つのコミットにまとめます。 Git Data API(blob → tree → commit → ref)を使って、複数のファイル変更を 1 つのきれいなコミットにまとめるため、ファイルごとのコミットを大量に生成しません。
push 前に確認が必須です。 変更内容の概要を表示する
github_preview_pushを先に呼び出す必要があります。github_push_confirmedは、ユーザーが明示的に承認した後にのみ呼び出すことができます。トークンはローカルに安全に保存されます。 設定ファイルのパーミッションは
600で、所有者ユーザーのみ読み取れます。
Related MCP server: ship-it-mcp
インストール
オプション A — Node.js 不要(ビルド済み実行ファイル)
Node.js を一切インストールする必要はありません。OS に合わせたバイナリを Releases ページ からダウンロードしてください:
Windows:
mcp-github-push-win-x64.exeLinux:
mcp-github-push-linux-x64macOS:
mcp-github-push-macos-x64
ターミナルから実行します:
# Windows (PowerShell/CMD)
mcp-github-push-win-x64.exe setup
# Linux/macOS
chmod +x mcp-github-push-linux-x64
./mcp-github-push-linux-x64 setupThen, register the full path to the exe file in the MCP client config:
{
"mcpServers": {
"github-push": {
"command": "C:\\path\\ke\\mcp-github-push-win-x64.exe",
"args": ["start"]
}
}
}Option B — via npm (requires Node.js 18+)
npx @kintil555/mcp-github-push setupFollow the instructions:
Create a Personal Access Token (fine-grained recommended) with Contents: Read and write with Permission for the repository you want to use.
When prompted, paste the token (input is masked in the terminal).
The token is automatically verified and saved in
~/.config/mcp-github-push/config.json.
Register with MCP client
Add it to your MCP client config (e.g., Claude Desktop's claude_desktop_config.json):
{
"mcpServers": {
"github-push": {
"command": "npx",
"args": ["-y", "@kintil555/mcp-github-push", "start"]
}
}
}Restart the client. The tools available to Claude are:
Tool | Function |
| Verify the token is valid and show the scope |
| Check if the repository exists |
| Create a new repository |
| Read the contents of a file from the repository |
| Preview changes before push (does not change anything) |
| Actual push — only runs after the user has approved |
Other CLI commands
npx @kintil555/mcp-github-push status # cek token masih valid
npx @kintil555/mcp-github-push logout # hapus token tersimpanBuild from source
git clone https://github.com/kintil555/mcp-github-push.git
cd mcp-github-push
npm install
npm run buildGitHub Actions CI automatically builds and type-checks on every push/PR to main, and publishes to npm when a new release tag is created.
Security
The token is stored in
~/.config/mcp-github-push/config.jsonwith permission600.Use a fine-grained PAT restricted to specific repositories, not a classic token with full access.
Set an expiration date for the token and rotate it periodically.
github_push_confirmedis designed so that the AI model cannot push without theconfirmed: trueparameter — also ensure your MCP client shows the tool call for user review before it is executed.
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityFmaintenanceEnables Claude or any MCP client to drive the GitHub Copilot cloud agent via its REST API, allowing it to research, edit, and open pull requests on repositories without manual intervention.11MIT
- FlicenseNot gradedqualityCmaintenanceEnables to interact with GitHub repositories directly from Claude, supporting actions like viewing repos, checking status, committing and pushing changes, and managing pull requests.
- FlicenseAqualityBmaintenanceAutomates GitHub workflows (branch creation, testing, commit/push, PR) through natural language instructions in Claude Code.8
- FlicenseNot gradedqualityBmaintenanceEnables GitHub repository operations (list/read files, create branches, commit files, open/list PRs) via an authless remote MCP server that keeps your GitHub token encrypted on Cloudflare, with access limited to allowed repositories.
Related MCP Connectors
AI code review for GitHub PRs with an MCP autofix loop for Claude Code and Cursor
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kintil555/mcpserver-claude'
If you have feedback or need assistance with the MCP directory API, please join our Discord server