Git Prompts Server
An MCP server that offers several commands to generate prompts based on the Git repository's content
Installation
Installing for Claude Desktop
Manual Configuration Required
This MCP server requires manual configuration. Run the command below to open your configuration file:
npx mcpbar@latest edit -c claude
This will open your configuration file where you can add the Git Prompts Server MCP server manually.
Git Prompts MCP Server
This repository provides a Model Context Protocol (MCP) server that offers several commands to generate prompts based on the Git repository's content.
(This repository draws heavy inspiration from MarkItDown MCP server and the example Git MCP server.)
Installation
Manual Installation
- Clone this repository
- Install dependencies:
uv sync --frozen
Usage
As a MCP Server for Zed Editor
Add the following to your settings.json
:
"context_servers": {
"git_prompt_mcp": {
"command": {
"path": "uv",
"args": [
"--directory",
"/path/to/local/git_prompts_mcp_server",
"run",
"git-prompts-mcp-server",
"/path/to/repo/", // parent folder of the .git directory
"--excludes", // exclude files and directories from diff results (the server use fnmatch in the backend)
"*/uv.lock",
"--excludes",
"uv.lock",
"--excludes",
".gitignore",
"--format", // format for diff results
"json" // options: json, text
]
},
"settings": {}
}
}
Commands
The server responds to the following commands:
/git-diff <ancestor_branch_or_commit>
: Populate the diff results between HEAD and the specified ancestor branch or commit./generate-pr-desc <ancestor_branch_or_commit>
: Generate a pull request description based on the diff results between HEAD and the specified ancestor branch or commit.
- Note: This is largely the same as
/git-diff
, but it includes instructions for generating a pull request description at the end of the output.
/git-cached-diff
: Populate the diff results for the staged changes and HEAD.
Examples:
/generate-pr-desc main
/git-diff dev
/git-cached-diff
License
MIT License. See LICENSE for details.
Details:
Stars
1Forks
0Last commit
1 month agoRepository age
3 monthsLicense
MIT
Auto-fetched from GitHub .
MCP servers similar to Git Prompts Server:

Stars
Forks
Last commit

Stars
Forks
Last commit

Stars
Forks
Last commit