Git MCP Server

by sheshiyer

Not rated
GitHub

About

An MCP server for performing Git operations and integrating with GitHub.

Details

Author
sheshiyer
Categories
Developer Tools, Other

Setup

Install Git MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/sheshiyer/git-mcp-v2

Follow the installation instructions in the repository README, then restart your MCP client.

A Model Context Protocol (MCP) server that provides enhanced Git operations through a standardized interface. This server integrates with the MCP ecosystem to provide Git functionality to AI assistants.

- Core Git Operations: init, clone, status, add, commit, push, pull
- Branch Management: list, create, delete, checkout
- Tag Operations: list, create, delete
- Remote Management: list, add, remove
- Stash Operations: list, save, pop
- Bulk Actions: Execute multiple Git operations in sequence
- GitHub Integration: Built-in GitHub support via Personal Access Token
- Path Resolution: Smart path handling with optional default path configuration
- Error Handling: Comprehensive error handling with custom error types
- Repository Caching: Efficient repository state management
- Performance Monitoring: Built-in performance tracking

git clone https://github.com/yourusername/git-mcp-v2.git cd git-mcp-v2
{ "mcpServers": { "git-v2": { "command": "node", "args": ["path/to/git-mcp-v2/build/index.js"], "env": { "GIT_DEFAULT_PATH": "/path/to/default/git/directory", "GITHUB_PERSONAL_ACCESS_TOKEN": "your-github-pat" } } } }

- GIT_DEFAULT_PATH: (Optional) Default path for Git operations
- GITHUB_PERSONAL_ACCESS_TOKEN: (Optional) GitHub Personal Access Token for GitHub operations

- init: Initialize a new Git repository
- clone: Clone a repository
- status: Get repository status
- add: Stage files
- commit: Create a commit
- push: Push commits to remote
- pull: Pull changes from remote

- branch_list: List all branches
- branch_create: Create a new branch
- branch_delete: Delete a branch
- checkout: Switch branches or restore working tree files

- tag_list: List tags
- tag_create: Create a tag
- tag_delete: Delete a tag

- remote_list: List remotes
- remote_add: Add a remote
- remote_remove: Remove a remote

- stash_list: List stashes
- stash_save: Save changes to stash
- stash_pop: Apply and remove a stash

- bulk_action: Execute multiple Git operations in sequence

# Run tests npm test # Run tests with coverage npm run test:coverage # Run linter npm run lint # Format code npm run format

- Fork the repository
- Create your feature branch (git checkout -b feature/amazing-feature)
- Commit your changes (git commit -m 'Add some amazing feature')
- Push to the branch (git push origin feature/amazing-feature)
- Open a Pull Request

A CLI for interacting with GitKraken APIs. Includes an MCP server via gk mcp that not only wraps GitKraken APIs, but also Jira, GitHub, GitLab, and more.

A lightweight MCP server for interacting with GitHub repositories, requiring authentication.

A portable MCP server for performing various GitHub operations on any repository.

Manage GitHub repositories using a personal access token via CLI or environment variables.

Interact with the GitHub API for repository management, file operations, and search.

Interact with GitHub repositories, including file operations, repository management, and search.

Integrates with the GitHub API for automation and interaction with repositories.

Integrate GitHub functionalities into AI assistants using the GitHub CLI.

An MCP server that allows AI assistants to create and delete GitHub repositories. Requires a GITHUB_TOKEN for authentication.

A powerful GitHub automation and management tool providing a comprehensive API wrapper for GitHub operations.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.