Local Git MCP Server logo

Local Git MCP Server

by okdshin

A Python-based Git repository management server using the MCP server framework. It allows you to create, manage, and interact with local Git repositories.

View on GitHub

Last updated: N/A

What is Local Git MCP Server?

A Python server that manages local Git repositories using the Message-based Communication Protocol (MCP) server framework.

How to use Local Git MCP Server?

Run the server using the command: python git_server.py [--repositories-dir ./repositories]. This starts the server, allowing you to interact with it to create and manage Git repositories.

Key features of Local Git MCP Server

  • Create and manage local Git repositories

  • Validate repository names

  • Repository creation

  • Adding files and committing changes

  • Pulling and pushing

  • Diff generation

Use cases of Local Git MCP Server

  • Local Git repository management

  • Automated Git operations

  • Git repository hosting for development environments

  • Integration with MCP-based systems

FAQ from Local Git MCP Server

What is MCP?

MCP stands for Message-based Communication Protocol, a framework for building networked applications.

What are the dependencies?

The server depends on GitPython, Pydantic, MCP Server, Black, and isort.

How do I specify the repository directory?

Use the --repositories-dir argument when running the server, e.g., python git_server.py --repositories-dir /path/to/repositories.

Is the code automatically formatted?

Yes, the code is automatically formatted using Black and isort.

How are code formatting changes handled?

GitHub Actions workflow is used for code formatting.