git-mcp
Provides tools for interacting with GitHub repositories, branches, pull requests, and commits
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@git-mcpshow my repos"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
git-mcp
Standalone MCP server for GitHub. Implements the MCP Platform Spec. Works independently or registered with mcp-gateway.
Quickstart
cp .env.example .env
# Fill in GITHUB_TOKEN, GITHUB_DEFAULT_OWNER
docker compose up --build
curl http://localhost:3002/healthRun locally:
npm install && npm run devTools
Tool | Description |
| List repos for an owner or org |
| List branches in a repository |
| Create a branch from a base branch |
| List PRs (open / closed / all) |
| Open a new pull request |
| Recent commits on a branch |
| Add a comment to a pull request |
Environment Variables
Variable | Description |
| Server name (default: |
| Port (default: |
| URL the gateway uses to reach this server |
| Gateway URL — omit to skip auto-registration |
| GitHub personal access token |
| Default org/user when owner not specified |
Testing Standalone
# Health
curl http://localhost:3002/health
# List tools
curl -X POST http://localhost:3002/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"test","version":"1.0"}}}'
curl -X POST http://localhost:3002/mcp \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'Connect directly in VS Code (bypass gateway)
{
"mcp": {
"servers": {
"git": { "type": "http", "url": "http://localhost:3002/mcp" }
}
}
}This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/abhi-d-git/mcp-server-git'
If you have feedback or need assistance with the MCP directory API, please join our Discord server