MCP Gitlab vs Git MCP Server

A side-by-side look at the MCP Gitlab and Git MCP Server MCP servers: transport, auth, tools, quality signals, and the config to install either one in Claude, Cursor, Windsurf or VS Code.

MCP Gitlab logoMCP GitlabVersion Control · Local subprocess (stdio)MCP server for GitLab API — projects, MRs, pipelines, CI/CD, approvals, issues, code review.55GoodAuth: api key requiredGit MCP Server logoGit MCP ServerVersion Control · Local subprocess (stdio)Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.69GreatAuth: no auth required

Verdict: choose MCP Gitlab for version control work as a local process; choose Git MCP Server for version control as a local process. You can also run both side by side in one mcpServers block.

Which MCP server should you choose?

MCP Gitlab logoChoose MCP Gitlab when

  • You need dedicated capabilities in the Version Control domain.
  • You prefer a local stdio subprocess transport.
  • Its auth model fits you: API key required.
  • You have the keys it needs: GITLAB_URL, GITLAB_TOKEN, GITLAB_PAT, GITLAB_PERSONAL_ACCESS_TOKEN, GITLAB_API_TOKEN, MCP_READ_ONLY, GITLAB_READ_ONLY, GITLAB_AUTH.
  • You want tools like gitlab_get_project, gitlab_create_project, gitlab_delete_project.
Explore MCP Gitlab

Git MCP Server logoChoose Git MCP Server when

  • You need dedicated capabilities in the Version Control domain.
  • You prefer a local stdio subprocess transport.
  • Its auth model fits you: No auth required.
  • You have the keys it needs: MCP_TRANSPORT_TYPE, MCP_LOG_LEVEL, MCP_HTTP_PORT, GIT_BASE_DIR, LOGS_DIR, GIT_USERNAME, GIT_EMAIL, GIT_SIGN_COMMITS.
  • You want tools like git_add, git_blame, git_branch.
Explore Git MCP Server

Feature & specification comparison

Rows where the two servers differ are marked.

SpecMCP Gitlab logoMCP GitlabGit MCP Server logoGit MCP Server
CategoryVersion ControlVersion Control
Quality signal55/100 · Good69/100 · Great
Install commandConfirmedConfirmed
TransportLocal subprocess (stdio)Local subprocess (stdio)
AuthAPI key requiredNo auth required
PricingNot declaredFree
Required env varsGITLAB_URLGITLAB_TOKENGITLAB_PATGITLAB_PERSONAL_ACCESS_TOKENGITLAB_API_TOKENMCP_READ_ONLYGITLAB_READ_ONLYGITLAB_AUTHMCP_TRANSPORT_TYPEMCP_LOG_LEVELMCP_HTTP_PORTGIT_BASE_DIRLOGS_DIRGIT_USERNAMEGIT_EMAILGIT_SIGN_COMMITS
Verified ownerCommunity listingCommunity listing
GitHub stars6242
Directory activity 1 views 0 installs 0 upvotes 5 views 0 installs 0 upvotes
Tools8028

Tools & capabilities

MCP Gitlab tools 80

  • gitlab_get_projectGet project details
  • gitlab_create_projectCreate a new project
  • gitlab_delete_projectDelete a project
  • gitlab_update_project_merge_settingsUpdate merge settings
  • gitlab_get_project_approvalsGet approval config
  • gitlab_update_project_approvalsUpdate approval settings
  • gitlab_list_project_approval_rulesList approval rules
  • gitlab_create_project_approval_ruleCreate approval rule
  • gitlab_update_project_approval_ruleUpdate approval rule
  • gitlab_delete_project_approval_ruleDelete approval rule
  • gitlab_list_mr_approval_rulesList MR approval rules
  • gitlab_create_mr_approval_ruleCreate MR approval rule
  • +68 more on the listing page

Git MCP Server tools 28

  • git_addStage files for commit. Add file contents to the staging area (index) to prepare for the next commit.
  • git_blameShow line-by-line authorship information for a file, displaying who last modified each line and when. For large files, use startLine/endLine to limit output.
  • git_branchManage branches: list all branches, show current branch, create a new branch, delete a branch, or rename a branch.
  • git_changelog_analyzeGather git history context (commits, tags) and structured review instructions to support LLM-driven changelog analysis. Changelog file should be read separately; this tool provides the supporting git data and analysis framework. Pass one or more review types to control what kind of analysis to perform.
  • git_checkoutSwitch branches or restore working tree files. Can checkout an existing branch, create a new branch, or restore specific files.
  • git_cherry_pickCherry-pick commits from other branches. Apply specific commits to the current branch without merging entire branches.
  • git_cleanRemove untracked files from the working directory. Requires force flag for safety. Use dry-run to preview files that would be removed.
  • git_clear_working_dirClear the session working directory setting. This resets the context without restarting the server. Subsequent git operations will require an explicit path parameter unless git_set_working_dir is called again.
  • git_cloneClone a repository from a remote URL or local path. Accepts HTTP(S), SSH, git://, file://, and bare filesystem paths, with optional shallow cloning.
  • git_commitCreate a new commit with staged changes in the repository. Records a snapshot of the staging area with a commit message. **Commit Message Format:** Pass commit messages as JSON string parameters. Multi-line messages are supported using standard JSON string escaping. **Examples:** - Single line: { "message": "feat: add user authentication" } - Multi-line: { "message": "feat: add user authentication\n\nImplemented OAuth2 flow with JWT tokens.\nAdded tests for login and logout." } Note: Do not use bash heredoc syntax. Literal escape sequences (\n, \t) in the message string are automatically normalized to their actual characters.
  • git_diffView differences between commits, branches, or working tree. Shows changes in unified diff format.
  • git_fetchFetch updates from a remote repository. Downloads objects and refs without merging them.
  • +16 more on the listing page

Ready-to-paste client configs

Paste either block (or both) into your client config, e.g. claude_desktop_config.json or ~/.cursor/mcp.json. We only show a config when the install command is confirmed.

MCP Gitlab

mcpServers (Claude Desktop / Cursor)
{
  "mcpServers": {
    "mcp-gitlab-2": {
      "command": "uvx",
      "args": [
        "mcp-gitlab"
      ],
      "env": {
        "GITLAB_URL": "YOUR_GITLAB_URL_HERE",
        "GITLAB_TOKEN": "YOUR_GITLAB_TOKEN_HERE",
        "GITLAB_PAT": "YOUR_GITLAB_PAT_HERE",
        "GITLAB_PERSONAL_ACCESS_TOKEN": "YOUR_GITLAB_PERSONAL_ACCESS_TOKEN_HERE",
        "GITLAB_API_TOKEN": "YOUR_GITLAB_API_TOKEN_HERE",
        "MCP_READ_ONLY": "YOUR_MCP_READ_ONLY_HERE",
        "GITLAB_READ_ONLY": "YOUR_GITLAB_READ_ONLY_HERE",
        "GITLAB_AUTH": "YOUR_GITLAB_AUTH_HERE"
      }
    }
  }
}

Git MCP Server

mcpServers (Claude Desktop / Cursor)
{
  "mcpServers": {
    "git-mcp-server-2": {
      "command": "npx",
      "args": [
        "-y",
        "@cyanheads/git-mcp-server@latest"
      ],
      "env": {
        "MCP_TRANSPORT_TYPE": "YOUR_MCP_TRANSPORT_TYPE_HERE",
        "MCP_LOG_LEVEL": "YOUR_MCP_LOG_LEVEL_HERE",
        "MCP_HTTP_PORT": "YOUR_MCP_HTTP_PORT_HERE",
        "GIT_BASE_DIR": "YOUR_GIT_BASE_DIR_HERE",
        "LOGS_DIR": "YOUR_LOGS_DIR_HERE",
        "GIT_USERNAME": "YOUR_GIT_USERNAME_HERE",
        "GIT_EMAIL": "YOUR_GIT_EMAIL_HERE",
        "GIT_SIGN_COMMITS": "YOUR_GIT_SIGN_COMMITS_HERE"
      }
    }
  }
}

Frequently asked questions

MCP Gitlab is categorized under Version Control and uses a local stdio subprocess. Git MCP Server belongs to Version Control and uses a local stdio subprocess. Pick MCP Gitlab for version control work and Git MCP Server for version control.

Copy the mcpServers block from the config section on this page into your client's config (for example claude_desktop_config.json or ~/.cursor/mcp.json), then fully restart the client.

MCP Gitlab has no declared pricing — check the project's own site. Auth: api key required. Git MCP Server is listed as free. Auth: no auth required. If a server needs environment variables such as API keys, define them under the env key in your client's MCP config.

Yes. MCP clients support multiple servers: add mcp-gitlab-2 and git-mcp-server-2 as separate keys in the same mcpServers object, and your assistant will call tools from either one.

On AllMCPs, MCP Gitlab has a quality signal of 55/100 (Good) with 1 views, 0 installs and 6 GitHub stars. Git MCP Server has 69/100 (Great) with 5 views, 0 installs and 242 GitHub stars.