git MCP server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
git_status

Shows the working tree status

git_diff_unstaged

Shows changes in the working directory that are not yet staged

git_diff_staged

Shows changes that are staged for commit

git_diff

Shows differences between branches or commits

git_commit

Records changes to the repository

git_add

Adds file contents to the staging area

git_reset

Unstages all staged changes

git_log

Shows the commit logs

git_create_branch

Creates a new branch from an optional base branch

git_checkout

Switches branches

git_show

Shows the contents of a commit