Labsco
DanyelKirsch logo

Git MCP Server

โ˜… 2

from DanyelKirsch

An MCP server for performing Git operations.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeAdvanced setup

Git MCP Server

A Model Context Protocol (MCP) server for Git operations that provides comprehensive Git functionality to MCP clients like Claude Desktop.

Features

  • Context-aware: Automatically detects the current project based on working directory
  • Comprehensive Git operations: status, branches, diffs, logs, file contents, commits, and more
  • Multi-project support: Works seamlessly across different project directories
  • Error handling: Proper MCP error responses
  • Branch management: Create, switch, and manage branches
  • Remote operations: Push, pull, and fetch from remote repositories

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

MIT License - see LICENSE file for details.

Project Structure

Copy & paste โ€” that's it
git-mcp-server/
โ”œโ”€โ”€ package.json          # Project dependencies and scripts
โ”œโ”€โ”€ tsconfig.json         # TypeScript configuration
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ index.ts         # Main server implementation
โ”œโ”€โ”€ build/
โ”‚   โ””โ”€โ”€ index.js         # Compiled JavaScript (generated)
โ””โ”€โ”€ README.md            # This file

Development

  • npm run build - Build the TypeScript code
  • npm run dev - Watch mode for development
  • npm start - Run the built server