GitLab Deployment MCP
Allows querying GitLab projects, pipelines, and jobs, and triggering manual deployment jobs after user confirmation.
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., "@GitLab Deployment MCPlist projects in ksa/standard-smart-office group"
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.
GitLab Deployment MCP
一个供 Codex、Cursor、Claude Code 和 Kimi Code 使用的 GitLab 部署 MCP 服务。它通过 Streamable HTTP 提供项目、Pipeline 和 Job 查询;部署仍须经过项目范围确认、SHA 核对和单独写操作批准。
默认认证是 GitLab OAuth:用户在自己的客户端中打开浏览器,登录 GitLab 并授权。也可以选择与 OAuth 互斥的 Personal Access Token 模式。
接入已部署服务
运维部署 OAuth 服务后,按所用平台选择一条命令。所有入口都使用用户自己的 GitLab OAuth;不需要个人 Token。
平台 | Windows 入口 | macOS 入口 |
Codex | 托管 | 托管 |
Cursor | 托管 | 托管 |
Claude Code | 原生 | 原生 |
Kimi Code | 托管 | 托管 |
Codex
Windows:
irm https://<真实服务地址>/join.ps1 | iexmacOS:
curl -fsSL https://<真实服务地址>/join.sh | bashCursor
Windows:
irm https://<真实服务地址>/join-cursor.ps1 | iexmacOS:
curl -fsSL https://<真实服务地址>/join-cursor.sh | bashClaude Code
Windows:
claude mcp add --transport http --scope user gitlab_deployment https://<真实服务地址>/mcp/gitlab-deploymentmacOS:
claude mcp add --transport http --scope user gitlab_deployment https://<真实服务地址>/mcp/gitlab-deploymentKimi Code
Windows:
irm https://<真实服务地址>/join-kimi.ps1 | iexWindows 脚本会配置独立安装的 Kimi Code,并在检测到 Kimi Desktop 时同步配置其内置 Kimi Code CLI。
macOS:
curl -fsSL https://<真实服务地址>/join-kimi.sh | bashCodex 接入后运行 codex mcp login gitlab_deployment;Cursor 接入后运行 cursor-agent mcp login gitlab_deployment;Claude Code 接入后启动 claude 并输入 /mcp;Kimi Code 接入后启动 kimi 并输入 /mcp-config login gitlab_deployment。四者都会打开浏览器完成 GitLab 授权。Codex 脚本写入 MCP URL、工具白名单和写操作审批配置;Cursor 与 Kimi Code 脚本只写入 MCP URL;Claude Code 使用自身 CLI 写入用户级配置。示例域名 mcp.internal.company.com 不是可用服务地址。
Related MCP server: GitLab MR MCP
自行部署服务
服务端部署请按认证方式选择一份手册:
GitLab OAuth 部署:配置 OAuth Application、HTTPS、systemd、nginx 和浏览器登录;
Personal Access Token 部署:服务端不配置 OAuth,每位用户从本机发送自己的 PAT。
首次使用
完成接入后,可以在新 Codex 对话中依次提出:
列出 <GitLab 组路径> 组中的项目本次对话只允许操作 <完整项目路径>查看这个项目最近的 pipelines查看 pipeline <ID> 中的 jobs
部署前,Codex 必须展示项目、Job、分支、Pipeline ID 和 SHA;只有用户再次批准后才会执行手动 Job。
开发验证
yarn install --frozen-lockfile
yarn test测试使用假 GitLab 完整覆盖 OAuth 授权码、PKCE、刷新令牌和 MCP Bearer 转发,不访问真实 GitLab,也不触发部署。
目录
install.ps1 Windows 自行部署安装脚本
join.ps1 Windows OAuth 接入脚本
join-cursor.ps1 Cursor Windows OAuth 接入脚本
join-cursor.sh Cursor macOS OAuth 接入脚本
join-kimi.ps1 Kimi Code Windows OAuth 接入脚本
join-kimi.sh Kimi Code macOS OAuth 接入脚本
join.sh macOS OAuth 接入脚本
src/server.mjs MCP HTTP 服务
src/oauth.mjs GitLab OAuth broker
tests/ 安装、接入、HTTP 与 OAuth 测试
docs/ 运维与使用文档This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables interaction with GitLab repositories through secure OAuth 2.0 authentication. Supports comprehensive GitLab operations including merge requests, issues, file management, commits, and branch operations through natural language.20MIT
- Alicense-qualityDmaintenanceEnables AI agents to interact with GitLab repositories, allowing them to manage merge requests and issues including listing projects, fetching MR details and diffs, adding comments, and updating MR titles and descriptions.3094MIT
- Alicense-qualityDmaintenanceEnables project management and repository operations on GitLab through the GitLab API, including file operations, branch management, issue creation, merge requests, and repository forking with support for both GitLab.com and self-hosted instances.5,525Apache 2.0
- AlicenseAqualityBmaintenanceProvides full control over GitLab epics, issues, merge requests, pipelines, and more via a conversational interface, with dry-run safety.100262MIT
Related MCP Connectors
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Connect to Atlassian Jira, Confluence, and Compass to search, create, and manage your work.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/gggab/gitlab_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server