GitLab is a Version Control MCP server that lets Claude Code, Cursor, Windsurf and any MCP-compatible AI agent gitLab API — projects, merge requests, pipelines. Install in 1 minute with mcpizy install gitlab.
Connect your GitLab account once — MCPizy stores the credentials encrypted and uses them whenever you run a recipe in managed mode.
mcpizy install gitlabnpx -y @abergs/mcp-server-gitlablist_projectsList accessible GitLab projects
Inputs
searchstringoptionalget_projectGet a project's metadata
Inputs
project_idstringrequiredlist_issuesList issues in a project
Inputs
project_idstringrequiredstatestringoptionalcreate_issueOpen a new issue
Inputs
project_idstringrequiredtitlestringrequiredlist_merge_requestsList MRs with filters
Inputs
project_idstringrequiredcreate_merge_requestOpen a new MR
Inputs
project_idstringrequiredtitlestringrequiredsource_branchstringrequiredtarget_branchstringrequiredget_file_contentsRead a file from a repo
Inputs
project_idstringrequiredfile_pathstringrequiredrefstringoptionalWorks identically across clients. Only the config file path differs.
~/.claude.json{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gitlab"
],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "glpat-...",
"GITLAB_API_URL": "https://gitlab.com/api/v4"
}
}
}
}.cursor/mcp.json{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gitlab"
],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "glpat-...",
"GITLAB_API_URL": "https://gitlab.com/api/v4"
}
}
}
}~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gitlab"
],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "glpat-...",
"GITLAB_API_URL": "https://gitlab.com/api/v4"
}
}
}
}Create a PAT with api + read_repository scopes
GITLAB_PERSONAL_ACCESS_TOKENPaste any of these prompts into Claude Code, Cursor or another MCP-compatible client.
“List open merge requests assigned to me”
Uses: list_merge_requests
“Create an issue in project 1234 titled 'Flaky CI build'”
Uses: create_issue
“Show me the content of .gitlab-ci.yml from my project”
Uses: get_file_contents
If GitLab doesn't fit your stack, these Version Control MCP servers solve similar problems.
The GitLab MCP server is an Version Control Model Context Protocol server that lets Claude Code, Cursor, Windsurf, VS Code with Copilot, and other MCP-compatible AI agents gitLab API — projects, merge requests, pipelines. It exposes GitLab's capabilities as tools the AI can call directly from your editor or CLI.
The fastest way is the MCPizy CLI: run `mcpizy install gitlab` and MCPizy will add the server to your `.claude.json` automatically. You can also install it manually by adding an entry under `mcpServers` in `.claude.json` with the command `npx -y @abergs/mcp-server-gitlab` and restarting Claude Code.
Yes. The GitLab MCP server is free and open source (see the GitHub repository linked on this page). You may still need a GitLab account or API key to connect the server to the underlying service, but the MCP layer itself has no MCPizy subscription cost.
Yes. Any MCP-compatible client works — including Claude Code, Claude Desktop, Cursor (via `.cursor/mcp.json`), Windsurf, VS Code with Copilot Chat, and custom agents built on the MCP SDK. The same install command targets all of them; only the config file path differs.
Once installed, your AI agent can gitLab API — projects, merge requests, pipelines directly inside your conversation. Typical use cases include asking Claude Code or Cursor to run GitLab operations, inspect results, chain GitLab with other MCP servers (see our Workflow Recipes), and automate repetitive version control tasks without leaving your editor.