Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.
git MCP Server
Published by selfagencyA Git MCP server that doesn't suck
- CATEGORY
- More to explore
- DEPLOYMENT
- Local package
- LATEST SOURCE VERSION
- 0.4.2
- SOURCE CHECKED
- Nov 27, 2026
Quick answers
How do I add git MCP Server to Claude Code, Cursor or Codex?
Claude CodeCommand
Run this in your terminal:
claude mcp add --env 'GIT_SIGNING_KEY=<your-git-signing-key>' --transport stdio git -- npx -y @selfagency/git-mcpReplace the <your-…> placeholder with your own GIT_SIGNING_KEY.
CursorConfig
Add this to ~/.cursor/mcp.json, or to .cursor/mcp.json in a project:
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@selfagency/git-mcp"
],
"env": {
"GIT_SIGNING_KEY": "<your-git-signing-key>"
}
}
}
}Replace the <your-…> placeholder with your own GIT_SIGNING_KEY.
CodexCommand
Run this in your terminal:
codex mcp add git --env 'GIT_SIGNING_KEY=<your-git-signing-key>' -- npx -y @selfagency/git-mcpReplace the <your-…> placeholder with your own GIT_SIGNING_KEY.
VS CodeConfig
Add this to .mcp.json at the root of your workspace:
{
"mcpServers": {
"git": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@selfagency/git-mcp"
],
"env": {
"GIT_SIGNING_KEY": "<your-git-signing-key>"
}
}
}
}Replace the <your-…> placeholder with your own GIT_SIGNING_KEY.
Claude DesktopConfig
Add this to claude_desktop_config.json, then restart Claude:
{
"mcpServers": {
"git": {
"command": "npx",
"args": [
"-y",
"@selfagency/git-mcp"
],
"env": {
"GIT_SIGNING_KEY": "<your-git-signing-key>"
}
}
}
}Replace the <your-…> placeholder with your own GIT_SIGNING_KEY.
ChatGPTNot available
ChatGPT can't add it from its published details: it connects from the cloud and needs a public address, and this server runs on your computer.
ChatGPT setup guideWhich apps can use git MCP Server?
Claude Code, Cursor, Codex, VS Code and Claude Desktop can add it from its published details. ChatGPT can't: it connects from the cloud and needs a public address, and this server runs on your computer.
Does git MCP Server need an API key?
To run it on your computer, set GIT_SIGNING_KEY first, with values from the publisher.
Is git MCP Server official?
It's published by selfagency. The Official MCP Registry accepts names under io.github.selfagency only from the GitHub account or organisation selfagency. We last checked its listing on Nov 27, 2026. A listing shows where a server comes from; it isn't a security review.
Published packages
npm · @selfagency/git-mcp@0.4.2