C
cyanheads/git-mcp-server
Clone, commit, branch, merge and stash in local git repos
View on GitHub ↗Link checked 2026-11-12 · HTTP 200 · opens the vendor's own site
Install & config
Client config (built from the install command this repo gives)
{
"mcpServers": {
"cyanheads-git-mcp-server": {
"command": "npx",
"args": ["@cyanheads/git-mcp-server@latest"]
}
}
}Parsed from the README we fetched on 2026-11-06; we have not executed it.
command/args come from the install command the repository states. When it is ambiguous, the project README wins.
VS Code (.vscode/mcp.json - the key is servers)
{
"servers": {
"cyanheads-git-mcp-server": {
"command": "npx",
"args": ["@cyanheads/git-mcp-server@latest"]
}
}
}Same server, but VS Code keeps it under <code>servers</code>.
Claude Code (command line)
claude mcp add --transport stdio cyanheads-git-mcp-server -- npx @cyanheads/git-mcp-server@latest
Claude Code does not read a config file; add the server with this command.
Key names differ by client: Clients & CLI
- Source
- collected from the abordage/awesome-mcp list · type: MCP server
- Harvest history
- first seen 2026-11-05 · last seen 2026-11-14 · seen 10× · listed by 10 sources
- Score
- score 1,003 · 10 sources · mcp
- Install
npx @cyanheads/git-mcp-server@latest
FAQ (answers come from our records)
How do I install it?
The repository provides this install command:
npx @cyanheads/git-mcp-server@latest. It comes from the repository itself; we cannot guarantee it runs as-is in your client.Who is it for?
We filed it under these tags: MCP 服务. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
first catalogued 2026-11-05;last seen 2026-11-14。There is no official certification or quality rating here — we record sources and dates only.
@cyanheads/git-mcp-server
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
A Git MCP server for AI agents. STDIO & Streamable HTTP.
28 Tools · 1 Resource · 1 Prompt
## Tools
28 git operations organized into seven categories:
| Category | Tools | Description |
| Repository Management | gitinit, gitclone, gitstatus, gitclean | Initialize repos, clone from remotes, check status, clean untracked files |
| Staging & Commits | gitadd, gitcommit, gitdiff | Stage changes, create commits, compare changes |
| History & Inspection | gitlog, gitshow, gitblame, gitreflog | View commit history, inspect objects, trace authorship, view ref logs |
| Analysis | gitchangeloganalyze | Gather git context and instructions for LLM-driven changelog analysis |
| Branching & Merging | gitbranch, gitcheckout, gitmerge, gitrebase, gitcherrypick | Manage branches, switch contexts, integrate changes, apply specific commits |
| Remote Operations | gitremote, gitfetch, gitpull, gitpush | Configure remotes, fetch updates, synchronize repositories, publish changes |
| Advanced Workflows | gittag, gitstash, gitreset, gitworktree, gitsetworkingdir, gitclearworkingdir, gitwrapupinstructions | Tag releases (list/create/delete/verify), stash changes, reset state, manage worktrees, set/clear session directory |
## Resources
| Resource | URI | Description |
| Git Working Directory | git://working-directory | The current session working directory, set via gitsetworkingdir. |
## Prompts
| Prompt | Description | Parameters |
| Git Wrap-up | Workflow protocol for completing git sessions: review, document, commit, and tag changes. | changelogPath, createTag. |
## Getting started
### Runtime
Works with both Bun and Node.js. Runtime is auto-detected.
| Runtime | Command | Minimum Version |
| Node.js | npx @cyanheads/git-mcp-server@latest | >= 20.0.0 |
| Bun | bunx @cyanheads/git-mcp-server@latest | >= 1.2.0 |
### MCP client configuration
Add the following to your MCP client config (e.g., clinemcpsettings.json). Update the environment variables to match your setup — especially the git identity fields.
json
"mcpServers": {
"git-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["@cyanheads/git-mcp-server@latest"],
"env": {
"MCPTRANSPORTTYPE": "stdio",
"MCPLOGLEVEL": "info",
"GITBASEDIR": "~/Developer/",
"LOGSDIR": "~/Developer/logs/git-mcp-server/",
"GITUSERNAME": "cyanheads",
"GITEMAIL": "casey@caseyjhand.com",
"GITSIGNCOMMITS": "true"
Bun users: replace "command": "npx" with "command": "bunx".
For Streamable HTTP, set MCPTRANSPORTTYPE=http and MCPHTTPPORT=3015.
## Features
Built on mcp-ts-template.
| Feature | Details |
| Declarative tools | Define capabilities in single, self-contained files. The framework handles registration, validation, and execution. |
| Error handling | Unified McpError system for consistent, structured error responses. |
| Authentication | Supports none, jwt, and oauth modes. |
| Pluggable storage | Swap backends (in-memory, filesystem, Supabase, Cloudflare KV/R2) without changing business logic. |
| Observability | Structured logging (Pino) and optional auto-instrumented OpenTelemetry for traces and metrics. |
| Dependency injection | Built with tsyringe for decoupled, testable architecture. |
| Cross-runtime | Auto-detects Bun or Node.js and uses the appropriate process spawning method. |
28 Tools · 1 Resource · 1 Prompt
## Tools
28 git operations organized into seven categories:
| Category | Tools | Description |
| Repository Management | gitinit, gitclone, gitstatus, gitclean | Initialize repos, clone from remotes, check status, clean untracked files |
| Staging & Commits | gitadd, gitcommit, gitdiff | Stage changes, create commits, compare changes |
| History & Inspection | gitlog, gitshow, gitblame, gitreflog | View commit history, inspect objects, trace authorship, view ref logs |
| Analysis | gitchangeloganalyze | Gather git context and instructions for LLM-driven changelog analysis |
| Branching & Merging | gitbranch, gitcheckout, gitmerge, gitrebase, gitcherrypick | Manage branches, switch contexts, integrate changes, apply specific commits |
| Remote Operations | gitremote, gitfetch, gitpull, gitpush | Configure remotes, fetch updates, synchronize repositories, publish changes |
| Advanced Workflows | gittag, gitstash, gitreset, gitworktree, gitsetworkingdir, gitclearworkingdir, gitwrapupinstructions | Tag releases (list/create/delete/verify), stash changes, reset state, manage worktrees, set/clear session directory |
## Resources
| Resource | URI | Description |
| Git Working Directory | git://working-directory | The current session working directory, set via gitsetworkingdir. |
## Prompts
| Prompt | Description | Parameters |
| Git Wrap-up | Workflow protocol for completing git sessions: review, document, commit, and tag changes. | changelogPath, createTag. |
## Getting started
### Runtime
Works with both Bun and Node.js. Runtime is auto-detected.
| Runtime | Command | Minimum Version |
| Node.js | npx @cyanheads/git-mcp-server@latest | >= 20.0.0 |
| Bun | bunx @cyanheads/git-mcp-server@latest | >= 1.2.0 |
### MCP client configuration
Add the following to your MCP client config (e.g., clinemcpsettings.json). Update the environment variables to match your setup — especially the git identity fields.
json
"mcpServers": {
"git-mcp-server": {
"type": "stdio",
"command": "npx",
"args": ["@cyanheads/git-mcp-server@latest"],
"env": {
"MCPTRANSPORTTYPE": "stdio",
"MCPLOGLEVEL": "info",
"GITBASEDIR": "~/Developer/",
"LOGSDIR": "~/Developer/logs/git-mcp-server/",
"GITUSERNAME": "cyanheads",
"GITEMAIL": "casey@caseyjhand.com",
"GITSIGNCOMMITS": "true"
Bun users: replace "command": "npx" with "command": "bunx".
For Streamable HTTP, set MCPTRANSPORTTYPE=http and MCPHTTPPORT=3015.
## Features
Built on mcp-ts-template.
| Feature | Details |
| Declarative tools | Define capabilities in single, self-contained files. The framework handles registration, validation, and execution. |
| Error handling | Unified McpError system for consistent, structured error responses. |
| Authentication | Supports none, jwt, and oauth modes. |
| Pluggable storage | Swap backends (in-memory, filesystem, Supabase, Cloudflare KV/R2) without changing business logic. |
| Observability | Structured logging (Pino) and optional auto-instrumented OpenTelemetry for traces and metrics. |
| Dependency injection | Built with tsyringe for decoupled, testable architecture. |
| Cross-runtime | Auto-detects Bun or Node.js and uses the appropriate process spawning method. |
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/cyanheads-git-mcp-server/)
- Source
- awesome · https://github.com/cyanheads/git-mcp-server
- Browse by field
- MCP servers
- Listed by
- 10 independent sources
- added
- today
More like this
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.