MCP server
GitLab MCP Server
- Maintainer
- Official · GitLab
- Runs
- Remote
- Docs
- docs.gitlab.com
- URL
- https://gitlab.com/api/v4/mcp
- Registry
- com.gitlab/mcp
- Connects to
- GitLab
- DevHunt
- GitLab on DevHunt
Install the GitLab MCP Server
Pick your client. Remote first: nothing to install, and you sign in with OAuth where the client supports it. Config shapes checked against each client's docs on 2026-10-25.
Run in a terminal, then /mcp inside Claude Code to sign in. Add --scope project to share it via .mcp.json. docs
claude mcp add --transport http gitlab https://gitlab.com/api/v4/mcp
Customize > Connectors > Add > Add custom connector, paste this URL and sign in. It syncs to Claude Desktop and mobile. docs
https://gitlab.com/api/v4/mcp
The free plan allows one custom connector. On Team and Enterprise an owner adds it under Organization settings > Connectors.
chatgpt.com/plugins > + > Add custom MCP server, paste the URL, set up sign-in and create it as a plugin. Then @-mention it in a chat. docs
https://gitlab.com/api/v4/mcp
Workspace admins can turn custom MCP plugins off.
Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project), or use the install button. docs
{
"mcpServers": {
"gitlab": {
"url": "https://gitlab.com/api/v4/mcp"
}
}
}Add to .vscode/mcp.json (note the "servers" key and the type), or use the install button. Command Palette > "MCP: Open User Configuration" for all workspaces. docs
{
"servers": {
"gitlab": {
"type": "http",
"url": "https://gitlab.com/api/v4/mcp"
}
}
}Run codex mcp add gitlab --url https://gitlab.com/api/v4/mcp (then codex mcp login gitlab), or add this to ~/.codex/config.toml. The CLI, IDE extension and Codex app share it. docs
[mcp_servers.gitlab] url = "https://gitlab.com/api/v4/mcp"
Run in a terminal (-s user adds it for all projects), then /mcp auth to sign in. In ~/.gemini/settings.json the key is httpUrl. docs
gemini mcp add -s user --transport http gitlab https://gitlab.com/api/v4/mcp
Run in a terminal; it writes ~/.copilot/mcp-config.json. docs
copilot mcp add --transport http gitlab https://gitlab.com/api/v4/mcp
Add to mcp_config.json: ~/.config/devin/mcp_config.json on macOS and Linux (older installs: ~/.codeium/windsurf/mcp_config.json), %APPDATA%\devin\ on Windows. docs
{
"mcpServers": {
"gitlab": {
"serverUrl": "https://gitlab.com/api/v4/mcp"
}
}
}Add to Zed's settings.json (or Settings > AI > MCP Servers > Add Server). Remote servers without an Authorization header sign in with OAuth. docs
{
"context_servers": {
"gitlab": {
"url": "https://gitlab.com/api/v4/mcp"
}
}
}Add to opencode.json in the project (or ~/.config/opencode/opencode.json). Sign in with opencode mcp auth gitlab. docs
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"gitlab": {
"type": "remote",
"url": "https://gitlab.com/api/v4/mcp",
"enabled": true
}
}
}Add to ~/.kiro/settings/mcp.json (all projects) or .kiro/settings/mcp.json (this project). docs
{
"mcpServers": {
"gitlab": {
"url": "https://gitlab.com/api/v4/mcp"
}
}
}MCP Servers > Configure > Configure MCP Servers opens cline_mcp_settings.json; add this entry. docs
{
"mcpServers": {
"gitlab": {
"type": "streamableHttp",
"url": "https://gitlab.com/api/v4/mcp"
}
}
}Security notes
- The remote server runs at gitlab.com, hosted by GitLab. You sign in with OAuth in clients that support it, and it acts with your account's permissions.
- It can change code and repositories. Review what it writes before you push.
Alternatives
- GitLab (community)community · ★ 2.1k
GitLab projects, merge requests, issues, pipelines and wikis, including self-hosted GitLab.
- GitHubofficial · ★ 34k
Repos, issues, pull requests, Actions, code scanning and Copilot coding agent, hosted or local.
- Keployofficial · ★ 19k
Generate and run API tests from OpenAPI specs, curl commands, Postman collections or real traffic.
- Mobilerunofficial · ★ 9.8k
Control real Android and iOS devices with an agent: tap, swipe, type and automate flows.
- Azure DevOpsofficial · ★ 2.1k
Work items, repos, pull requests, pipelines and wikis in Azure DevOps.
- MATLABofficial · ★ 1.7k
Run MATLAB code, tests and code analysis from a coding agent.
- Docker MCP Gatewayofficial · ★ 1.6k
Run MCP servers in isolated containers behind one gateway, from the Docker MCP Catalog.
- Salesforce DXofficial · ★ 486
Query Salesforce orgs, deploy metadata, run Apex tests and build Lightning Web Components.
FAQ
What does the GitLab MCP Server do?+
Issues, merge requests, pipelines and search for GitLab projects, built into GitLab.
Is the GitLab MCP server official?+
Official: built and maintained by GitLab.
How do I add GitLab to Claude Code?+
Run: claude mcp add --transport http gitlab https://gitlab.com/api/v4/mcp, then /mcp inside Claude Code to sign in. Add --scope project to share it with your team through .mcp.json.
How do I use the GitLab MCP server in Cursor or VS Code?+
Open the Cursor or VS Code tab above: it has the mcp.json entry and a one-click install link. Cursor uses the "mcpServers" key; VS Code uses "servers" and needs a type ("http").
Does GitLab work in ChatGPT and claude.ai?+
Yes, it has a remote URL (https://gitlab.com/api/v4/mcp). In claude.ai add it under Customize > Connectors > Add custom connector; in ChatGPT under chatgpt.com/plugins > Add custom MCP server.
What are the alternatives to the GitLab MCP server?+
Other developer tools & git MCP servers: GitLab (community), GitHub, Keploy, Mobilerun and Azure DevOps.