ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Git MCP

โดย selfagencyรุ่น 0.4.2i★ –iรันบนเครื่อง
ชื่อใน registryio.github.selfagency/git-mcp

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

A Git MCP server that doesn't suck

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: เครื่องมือนักพัฒนา
  • ต้องใส่ค่าเหล่านี้: GIT_SIGNING_KEY

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

  • ผลตรวจเบื้องต้น: ผ่าน 1 จาก 1 ข้อ
  • รันในเครื่องคุณด้วยสิทธิ์ของผู้ใช้คุณ (ไฟล์ อินเทอร์เน็ต แอปต่าง ๆ)
  • ค่าที่คุณต้องใส่เอง: GIT_REPO_PATH, GIT_ALLOW_NO_VERIFY, GIT_ALLOW_FORCE_PUSH, GIT_ALLOW_FLOW_HOOKS, GIT_SIGNING_KEY, GIT_SIGNING_FORMAT, GIT_AUTO_SIGN_COMMITS, GIT_AUTO_SIGN_TAGS

ค่าที่ติดป้ายความลับคือกุญแจของบัญชีคุณ อย่าส่งให้ใคร และอย่าวางในแชต

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "git": {
      "command": "npx",
      "args": [
        "-y",
        "@selfagency/git-mcp"
      ],
      "env": {
        "GIT_REPO_PATH": "ใส่ค่าของคุณ",
        "GIT_ALLOW_NO_VERIFY": "ใส่ค่าของคุณ",
        "GIT_ALLOW_FORCE_PUSH": "ใส่ค่าของคุณ",
        "GIT_ALLOW_FLOW_HOOKS": "ใส่ค่าของคุณ",
        "GIT_SIGNING_KEY": "ใส่ค่าของคุณ",
        "GIT_SIGNING_FORMAT": "ใส่ค่าของคุณ",
        "GIT_AUTO_SIGN_COMMITS": "ใส่ค่าของคุณ",
        "GIT_AUTO_SIGN_TAGS": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add git --env GIT_REPO_PATH='ใส่ค่าของคุณ' --env GIT_ALLOW_NO_VERIFY='ใส่ค่าของคุณ' --env GIT_ALLOW_FORCE_PUSH='ใส่ค่าของคุณ' --env GIT_ALLOW_FLOW_HOOKS='ใส่ค่าของคุณ' --env GIT_SIGNING_KEY='ใส่ค่าของคุณ' --env GIT_SIGNING_FORMAT='ใส่ค่าของคุณ' --env GIT_AUTO_SIGN_COMMITS='ใส่ค่าของคุณ' --env GIT_AUTO_SIGN_TAGS='ใส่ค่าของคุณ' -- npx -y @selfagency/git-mcp

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "git": {
      "command": "npx",
      "args": [
        "-y",
        "@selfagency/git-mcp"
      ],
      "env": {
        "GIT_REPO_PATH": "ใส่ค่าของคุณ",
        "GIT_ALLOW_NO_VERIFY": "ใส่ค่าของคุณ",
        "GIT_ALLOW_FORCE_PUSH": "ใส่ค่าของคุณ",
        "GIT_ALLOW_FLOW_HOOKS": "ใส่ค่าของคุณ",
        "GIT_SIGNING_KEY": "ใส่ค่าของคุณ",
        "GIT_SIGNING_FORMAT": "ใส่ค่าของคุณ",
        "GIT_AUTO_SIGN_COMMITS": "ใส่ค่าของคุณ",
        "GIT_AUTO_SIGN_TAGS": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "git": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@selfagency/git-mcp"
      ],
      "env": {
        "GIT_REPO_PATH": "ใส่ค่าของคุณ",
        "GIT_ALLOW_NO_VERIFY": "ใส่ค่าของคุณ",
        "GIT_ALLOW_FORCE_PUSH": "ใส่ค่าของคุณ",
        "GIT_ALLOW_FLOW_HOOKS": "ใส่ค่าของคุณ",
        "GIT_SIGNING_KEY": "ใส่ค่าของคุณ",
        "GIT_SIGNING_FORMAT": "ใส่ค่าของคุณ",
        "GIT_AUTO_SIGN_COMMITS": "ใส่ค่าของคุณ",
        "GIT_AUTO_SIGN_TAGS": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • GIT_REPO_PATH env
    Default repository path for all tool requests. Can also be set via the --repo / --repo-path CLI argument. If omitted, each tool call must supply repo_path explicitly.
  • GIT_ALLOW_NO_VERIFY env
    Set to 'true' to expose a no_verify parameter on commit and push tools, passing --no-verify to Git and bypassing pre-commit / pre-push hooks.
  • GIT_ALLOW_FORCE_PUSH env
    Set to 'true' to expose a force parameter on push tools. Remote branch protection rules (GitHub/GitLab) are still enforced server-side regardless.
  • GIT_ALLOW_FLOW_HOOKS env
    Set to 'true' to allow git_flow to execute git-flow-next-compatible hook and filter programs discovered from git config or repository hook locations.
  • GIT_SIGNING_KEY ความลับ env
    Default signing key: a GPG key ID, an SSH public key path, or empty to use git's configured user.signingkey. Used when GIT_AUTO_SIGN_COMMITS or GIT_AUTO_SIGN_TAGS is enabled.
  • GIT_SIGNING_FORMAT env
    Signing format for commits and tags. Accepted values: openpgp, ssh, x509.
  • GIT_AUTO_SIGN_COMMITS env
    Set to 'true' to automatically sign all commits produced by this server.
  • GIT_AUTO_SIGN_TAGS env
    Set to 'true' to automatically sign all tags produced by this server.

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 6 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub selfagency ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด เครื่องมือนักพัฒนาi

  • ดาวมากกว่า 0% ของอีก 1385 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 68% ของอีก 1385 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 1385 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Git MCP ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

ต้องใส่ค่าเหล่านี้: GIT_SIGNING_KEY

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (0.4.2) เข้า registry 23 วันที่ผ่านมา

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี GitHub, Desktop Commander, Cloudflare MCP

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

GitHub

โดย github

server ทางการของ GitHub ให้ AI อ่านและจัดการโค้ด issue และ pull request ในบัญชีของคุณได้ ใช้ผ่านคลาวด์ของ GitHub หรือรันในเครื่องด้วย Docker ก็ได้

บนเครื่องหรือคลาวด์★ 34,245MITอัปเดต 3 วันที่ผ่านมา
ติดตั้ง

Desktop Commander

โดย wonderwhy-er

MCP server for terminal commands, file operations, and process management

รันบนเครื่อง★ 10,225MITอัปเดต 15 วันที่ผ่านมา
ติดตั้ง

Cloudflare MCP

โดย cloudflare

Cloudflare MCP servers

รันบนคลาวด์★ 4,446Apache-2.0อัปเดต 14 เดือนที่ผ่านมา
ติดตั้ง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

git-mcp

A Git MCP server that doesn't suck

Exposes the full Git workflow to any MCP-compatible AI agent — inspect, write, branch, remote, stash, rebase, LFS, git-flow, documentation lookup, and more. Designed to be safe by default, composable, and fast. Powered by simple-git.

Built for coding agents in tools like GitHub Copilot, Claude Code, Cursor, and OpenAI Codex, while remaining compatible with any MCP client that can call tools and resources.


Features

  • 18 tools with 80+ actions covering everyday Git workflows, advanced recovery, history rewriting, repository analytics, forge pull requests, and external VCS awareness
  • Safety-first — destructive operations require explicit confirmation; force push and hook bypass are opt-in via server config
  • GPG/SSH signing for commits and tags, with server-level auto-sign support
  • Git LFS — track patterns, manage objects, install hooks, migrate history
  • Git Flow — drives the git-flow-next CLI, so the finish state machine, conflict recovery, and worktree lifecycle stay correct as the CLI evolves. Preset init, overview, config CRUD, generalized topic actions, and classic feature/release/hotfix/support aliases
  • Documentation lookup — search git-scm.com and fetch man pages directly from the LLM
  • MCP Resources — URI-addressable read-only views of status, log, branches, and diff
  • Bundled agent skill — skills/git-mcp-workflow/ documents MCP-first Git workflows, recovery, worktrees, releases, and advanced operations for AI agents and coding agents; installable via skills-npm and skill.sh
  • External VCS awareness — git_but_check / git_jj_check detect GitButler and Jujutsu and guide agents to prefer their native CLIs/MCP (with but teardown guidance) over git-mcp tools when appropriate
  • History rewrite — git_rewrite: reword, squash, rewrite-messages, and backup/restore for safe commit-history rewriting
  • Repository analytics — git_analytics: contributors, churn, activity, summary, and file-stats computed from local git history
  • Pull requests — git_pr: create/list/merge PRs/MRs on GitHub, GitLab, Forgejo, Gitea, and Bitbucket via provider CLI or REST API
  • Tangled & Entire awareness — git_tangled_check / git_entire_check detect Tangled hosting and Entire session/context management
  • Multi-repo — pass repo_path per-call or configure a server-level default
  • Worktrees — git_worktree: plain git worktree by path, or branch-addressed worktrees via git flow worktree with path templates and provenance-aware cleanup
  • Cross-platform — macOS, Linux, Windows (Git for Windows), all covered by CI

Quick Start

npx (no install)
npx @selfagency/git-mcp --repo-path /path/to/your/repo
Install globally
npm install -g @selfagency/git-mcp

git-mcp --repo-path /path/to/your/repo

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json:

{

"mcpServers": { "git": { "command": "npx", "args": ["-y", "@selfagency/git-mcp", "--repo-path", "/path/to/your/repo"] } } }

VS Code (Copilot)

Add to .vscode/mcp.json in your project:

{

"servers": { "git": { "command": "npx", "args": ["-y", "@selfagency/git-mcp", "--repo-path", "${workspaceFolder}"] } } }


Configuration

All configuration is via environment variables. Pass them in your MCP client config:

VariableDefaultDescription
GIT_REPO_PATH—Default repository path (also: --repo-path CLI arg)
GIT_ALLOW_NO_VERIFYfalseAllow --no-verify on commit/push (bypasses hooks)
GIT_ALLOW_FORCE_PUSHfalseAllow --force on push
GIT_ALLOW_FLOW_HOOKSfalseAllow git_flow hooks and filters to execute
GIT_AUTO_SIGN_COMMITSfalseAutomatically sign every commit
GIT_AUTO_SIGN_TAGSfalseAutomatically sign every tag
GIT_SIGNING_KEY—Default GPG key ID or SSH key path
GIT_SIGNING_FORMAT—Signing format: openpgp, ssh, or x509
GIT_ALLOW_BUTfalseEnable GitButler awareness (git_but_check)
GIT_ALLOW_JJfalseEnable Jujutsu awareness (git_jj_check)
GIT_ALLOW_TANGLEDfalseEnable Tangled awareness (git_tangled_check)
GIT_ALLOW_ENTIREfalseEnable Entire awareness (git_entire_check)
BUT_BINARYbutOverride the but executable path
JJ_BINARYjjOverride the jj executable path
ENTIRE_BINARYentireOverride the entire executable path
GITHUB_TOKEN—GitHub token for git_pr REST fallback
GITLAB_TOKEN—GitLab token for git_pr REST fallback
FORGEJO_TOKEN—Forgejo/Gitea token for git_pr REST fallback
BITBUCKET_TOKEN—Bitbucket token for git_pr REST fallback
GIT_FORGE_PROVIDER—Explicit forge provider for self-hosted instances

Tool Reference

Tools are grouped by domain. Each root tool takes an action parameter that selects the operation. Where an action is marked as default, omitting action will use it.

Context (git_context)
ActionDescription
summary_(default)_ Full repo snapshot: branch, upstream, pending changes, in-progress operations
searchSearch commit history and working tree content
get_configRead a Git config value
set_configWrite a Git config value
aliasesList all configured git aliases
Status (git_status)
ActionDescription
status_(default)_ Working tree and branch status
diffUnstaged, staged, or ref-to-ref diff
diff_mainChanges from branch divergence point vs main (or configurable base branch)
History (git_history)
ActionDescription
log_(default)_ Commit log with filtering, pagination, revision ranges, and pathspecs
showInspect a single commit
blameLine-by-line attribution for a file
reflogFull reflog — the recovery ledger
lgCompact graph log (--oneline --graph --decorate --all)
whoContributor shortlog (supports optional file_path)
Commits (git_commits)
ActionDescription
addStage files or hunks
restoreDiscard working tree changes
unstageRemove files from the staging area
commitCreate a commit with message, signing, and author flags
amendAmend the last commit without editing the message
wipStage all changes and commit with message WIP
revertCreate a revert commit for a given ref
undoSoft-reset the last commit (reset --soft HEAD~1)
resetReset HEAD with configurable mode (soft/mixed/hard)
nukeHard-reset the last commit — requires confirm=true
Branches (git_branches)
ActionDescription
list_(default)_ Local and remote branch listing
createCreate a branch
deleteDelete a branch
renameRename a branch
checkoutSwitch to a branch or ref
set_upstreamSet or update tracking upstream
recentRecent branches sorted by committer date
Remotes (git_remotes)
ActionDescription
list_(default)_ List configured remotes
manageAdd, remove, or rename a remote
fetchFetch from a remote
pullPull (fetch + merge/rebase)
pushPush to a remote; force_with_lease supported
Workspace (git_workspace)
ActionDescription
stashStash and pop/apply/drop/list/show stash entries
stash_allStash tracked and untracked changes in one operation
rebaseStart, continue, abort, or skip a rebase
cherry_pickApply one or more commits; supports continue/abort/skip
mergeMerge branches with full flag control
bisectBinary search for a regression (start, good, bad, reset, log)
tagCreate, list, delete, or push tags; supports GPG/SSH signing
worktreeAdd, list, remove, lock, unlock, prune, or repair linked worktrees
submoduleAdd, update, sync, init, deinit, and list submodules
Git Flow (git_flow)

Drives the git-flow-next CLI, which must be installed and on PATH (brew install git-flow-next, or the releases page). Set GIT_FLOW_BINARY to override the path. When the binary is missing, the tool returns an install hint rather than failing opaquely.

OperationDescription
initInitialize a repository with git-flow branch conventions

| overview | Show the current flow state and act

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx