MCP server · Developer tools
GitLab MCP
Work with GitLab projects, merge requests, issues, code and pipelines through the MCP server built into GitLab, using OAuth.
Quick verdict
The current first-party way to connect an assistant to GitLab, but its default reach includes merging and committing, so treat it as a write-capable connector and approve every change.
- MaintainerGitLab (official)
- Security scopeRead-write
- Transportsstreamable-http
- Install channelremote · https://gitlab.com/api/v4/mcp
- EvidenceNot tested yet (sources checked)
- LicenseMIT (code outside the ee/ directory; GitLab.com runs the Enterprise Edition, and the ee/ code, including the Duo agent, security, Orbit and semantic search tools, has its own licence) · Open source
GitLab MCP is the server GitLab builds into GitLab itself, at /api/v4/mcp on GitLab.com and on every self-managed or Dedicated instance. It is generally available in all tiers, including Free, and needs no GitLab Duo add-on for its default tools. A client signs in with OAuth (or a fine-grained access token) and gets tools grouped into toolsets: projects and search, merge requests, work items, repository files and commits, and CI pipelines, with wikis, security findings and Duo agent sessions as extras. Many of those tools write: they can comment, approve and merge merge requests, commit files to branches, and start, cancel or delete pipelines. Every call runs with the signed-in user's GitLab permissions. It is a different server from the archived MCP reference GitLab server.
Install GitLab MCP
GitLab-hosted endpoint for GitLab.com; self-managed and Dedicated instances serve the same server at https://<your-gitlab-host>/api/v4/mcp. The client completes an OAuth grant with the mcp scope. The toolset header leaves out the ci and Duo agent toolsets, but it only filters the tool list: per GitLab's source a tool called by name is still dispatched, and a client that does not send custom headers gets the full default set. A group Owner (GitLab.com) or an administrator (self-managed) can turn MCP access off. The stdio route in GitLab's docs is the third-party mcp-remote bridge to this same endpoint, not a separate server.
http https://gitlab.com/api/v4/mcp
{
"mcpServers": {
"gitlab": {
"type": "http",
"url": "https://gitlab.com/api/v4/mcp",
"headers": {
"X-Gitlab-Enabled-Mcp-Server-Toolsets": "core,merge_requests,work_items,repository"
}
}
}
}Credentials
No static secret goes in this config, but this server still requires account authorization. Connecting it starts an interactive sign-in and consent flow against the account it reaches, and whatever that account is allowed to do becomes what the agent can do through this server. Authorize it from an account scoped to the work at hand, and keep your client’s approval prompts on.
Verified configurations
Not run by us yet. This profile is Not tested yet (sources checked): the install channel, config entry, credentials and license were checked against the source and upstream metadata, but no configuration has been installed, discovered and executed in a recorded environment. When one is, it appears here with the eight scope dimensions below.
Best for
Developers and teams on GitLab.com or their own GitLab instance who want an assistant to read merge requests, issues, code and CI results, and to make reviewed changes such as comments, issues and branches.
Why use it
It is GitLab's own maintained server, it is built into the instance rather than installed, it works on self-managed GitLab as well as GitLab.com, and it uses OAuth with a dedicated mcp scope instead of a broad API token.
Tradeoffs
The default toolsets include high-impact writes: accept_merge_request merges, add_commit commits to branches, save_pipeline runs or cancels CI jobs (and spends compute minutes), and the unlisted manage_pipeline deletes pipelines. The toolset header hides tools from the list but, per GitLab's own source, does not block a tool called by name, so it is not an access control. Server-side deny rules exist only as a Premium and Ultimate beta, and their enforcement for MCP is off by default. There is no read-only mode. Issue, comment, file and log content can carry prompt injection, which GitLab leaves to the user. The core server is MIT code, but GitLab.com runs the Enterprise Edition, and the Duo agent, security, Orbit and semantic search tools are Enterprise Edition code that needs paid tiers or add-ons.
Upstream state
in the official MCP Registry (active). Lifecycle is derived from a committed upstream snapshot at build time, never authored by hand.
Official MCP Registry name: com.gitlab/mcp
Editorial details
Grade B: Not tested yet (sources checked). Re-review is due by 2027-05-10. Config entries, credential names and package status can change upstream; verify against the source repository before granting an agent access.
Sources
Related MCP servers
- Gmail MCPGoogle's hosted Gmail MCP server (Developer Preview): search and read mail, create drafts and change labels with your own OAuth client.
- LaunchDarkly MCP ServerLaunchDarkly's hosted server for flags, experiments, AgentControl configs and observability. Shown here: flag and experiment read tools only.
- Linear MCPFind, create and update Linear issues, projects and comments through Linear's hosted MCP server, or connect its read-only endpoint.