Local Git MCP Server

by okdshin

559 downloads
Not rated
GitHub

Description

# Local Git MCP Server ## Overview A Python-based Git repository management server using the MCP (Message-based Communication Protocol) server framework. ## Features - Create, manage, and interact with local Git repositories - Validate repository names - Perform Git operations…

About

# Local Git MCP Server ## Overview A Python-based Git repository management server using the MCP (Message-based Communication Protocol) server framework. ## Features - Create, manage, and interact with local Git repositories - Validate repository names - Perform Git operations: - Repository creation - Adding files -…

Details

Author
okdshin
Downloads
559
Categories
Developer Tools

- Create and manage local Git repositories
- Validate repository names
- Add files to repositories
- Commit changes
- Pull and push operations
- Generate diffs between commits

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Local Git MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Run the server with the command python git_server.py. Optionally specify a custom repositories directory using the --repositories-dir flag (default is ./repositories).

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "local git mcp server": {
            "local-git-mcp-server": {
                "command": "python",
                "args": [
                    "git_server.py",
                    "[--repositories-dir",
                    "./repositories]"
                ]
            }
        }
    }
}

McpServers

{
    "local-git-mcp-server": {
        "command": "python",
        "args": [
            "git_server.py",
            "[--repositories-dir",
            "./repositories]"
        ]
    }
}

Local Git MCP Server

Overview

A Python-based Git repository management server using the MCP (Message-based Communication Protocol) server framework.

Features

- Create, manage, and interact with local Git repositories - Validate repository names - Perform Git operations: - Repository creation - Adding files - Committing changes - Pulling and pushing - Diff generation

Dependencies

- GitPython - Pydantic - MCP Server - Black (code formatting) - isort (import sorting)

Usage

Run the server with:
python git_server.py [--repositories-dir ./repositories]

Development

- Code is automatically formatted using Black and isort - GitHub Actions workflow for code formatting

License

[ADD LICENSE INFORMATION IF APPLICABLE]
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.