Git Executor MCP Server and client.
LocalAbout Git Executor MCP Server and client.
A small example MCP server and client for interacting with a Git repository, built with the Python SDK. It provides two Git tools, one prompt, and one resource, and is presented as a tutorial reference.
Key features
- 01Interact with a Git repository
- 02Two Git tools
- 03One prompt and one resource
- 04Built with the Python SDK
Use cases
- 01Explore a Git repository through MCP
- 02Use as a tutorial reference for a Python MCP server
MCP support
The MCP server exposes two Git tools, one prompt, and one resource. The repository also includes a client.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEGit Executor MCP Server and client.
Description
This is a simple example of a MCP server for interacting with a git repository. The server has been created using Python SDK: https://github.com/modelcontextprotocol/python-sdk
The repository is create as reference on https://adictosaltrabajo.com tutorial.
It includes just two git tools, one prompt and one resource.
Installation
git clone https://github.com/fjmpaez/mcp-first.git
cd mcp-first
poetry install
Usage
poetry run python src/git-explorer.py ./src/server/server.py absolute_path_to_git_repo
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.