MCP server for GitLab and GitHub
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Inspect callable tools, capabilities, and parameters exposed to AI agents by Git MCP Server.
get_file_contentsRead file content from repository
get_repository_treeList directory structure
push_filesPush file changes in a single commit
create_branchCreate a new branch
list_branchesList repository branches
list_commitsList commit history
A clean, modular Git MCP server supporting both GitHub and GitLab.
Add to your claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
repo, read:org, workflowghp_)api, read_api, read_repository, write_repositoryglpat-)| Tool | Description |
|---|---|
get_file_contents | Read file content from repository |
get_repository_tree | List directory structure |
push_files | Push file changes in a single commit |
create_branch | Create a new branch |
list_branches | List repository branches |
list_commits | List commit history |
search_code | Search for code in repository |
| Tool | Description |
|---|---|
get_issue | Get a single issue |
list_issues | List issues |
create_issue | Create a new issue |
update_issue | Update an issue |
| Tool | Description |
|---|---|
get_pull_request | Get a merge request |
list_pull_requests | List merge requests |
create_pull_request | Create a merge request |
get_pull_request_diffs | Get merge request changes |
merge_pull_request | Merge a merge request |
| Tool | Description |
|---|---|
get_pipeline | Get pipeline/workflow run status |
list_pipelines | List pipelines/workflow runs |
list_pipeline_jobs | List pipeline jobs/workflow jobs |
get_job_log | Get job log output |
Note: GitHub Actions workflow runs map to GitLab pipelines. The same tools work for both platforms.
| Tool | Description |
|---|---|
create_comment | Add comment to issue/MR |
list_comments | List comments |
| Tool | Description |
|---|---|
get_me | Get current authenticated user |
| Environment Variable | Required | Default | Description |
|---|---|---|---|
GIT_PROVIDER | No | gitlab | Provider type: gitlab or github |
GIT_TOKEN | Yes | - | Personal Access Token |
GIT_API_URL | No | Provider default | API URL (auto-detected from provider) |
GIT_AUTH_TYPE | No | bearer | Auth type: bearer or private-token |
GIT_READ_ONLY | No | false | Disable write operations |
LOG_LEVEL | No | info | Log level: debug, info, warn, error |
src/tools/{category}/{action}.tssrc/tools/{category}/index.tssrc/tools/index.tsMIT
Factual signals from GitHub, npm, and our automated checks β not a rating.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/git-mcp-server)<a href="https://allmcps.com/mcp/git-mcp-server"><img src="https://allmcps.com/api/badge/git-mcp-server?style=directory" alt="Git MCP Server on AllMCPs" /></a>