GitLab MCP Server
MCP server by jmrplens Community
GitLab MCP Server lets an AI assistant work with GitLab through up to 1,103 actions over its REST and GraphQL APIs. It is for developers and teams who want to review merge requests, check pipelines and manage issues in plain language.
Install GitLab MCP Server
Built from the published package, never by AI.
claude mcp add --transport http gitlab-mcp-server https://mcp.jmrp.io/gitlabRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"gitlab-mcp-server": {
"url": "https://mcp.jmrp.io/gitlab"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"gitlab-mcp-server": {
"url": "https://mcp.jmrp.io/gitlab"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"gitlab-mcp-server": {
"url": "https://mcp.jmrp.io/gitlab"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
{
"mcpServers": {
"gitlab-mcp-server": {
"serverUrl": "https://mcp.jmrp.io/gitlab"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
https://mcp.jmrp.io/gitlabIn ChatGPT: Settings, Connectors, Add custom connector, then paste this URL. Works in any client that supports remote servers.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the gitlab-mcp-server block.
About
GitLab MCP Server is a Go server that gives an AI assistant access to GitLab. It exposes up to 1,103 actions over GitLab's REST and GraphQL APIs, depending on the GitLab tier, and ships as a single self-contained binary. It works with Claude, Cursor, VS Code, Codex and other MCP clients.
Two discovery tools reach the whole catalog by default, which the source says keeps startup context at 11,396 tokens. The server supports read-only and safe modes, stdio and HTTP transports, and uses a GitLab personal, project or group access token. It is aimed at developers who want to review merge requests, check pipelines or manage issues from their assistant.
Written from the project's README and checked against it.
Tools it gives your assistant
Merge request reviewReviews a merge request and says whether it is safe to merge.Pipeline diagnosisExplains why the most recent pipeline failed.Issue listsLists open issues assigned to the user.Release notesGenerates release notes between two versions.Discovery toolsTwo tools by default reach the full catalog of actions.Read-only modeBlocks all writes when the GITLAB_MCP_READ_ONLY setting is true.Safe modeShows a preview of each write instead of applying it.Resources and promptsAdds 45 resources and 37 prompts besides the tools.
What you need
- A GitLab personal, project or group access token with the api scope or read_api
- A GitLab.com account or a self-managed GitLab instance
- Docker, for the Docker image and one-click install buttons
- The .NET 10 SDK, for the dnx install route
| Setting | Needed | What it is |
|---|---|---|
GITLAB_Environment variable, secret | Required | GitLab Personal Access Token (glpat-...) |
GITLAB_Environment variable | Optional | GitLab instance URL (default: https://gitlab.com; set for self-managed instances) Default: https://gitlab.com |
GITLAB_Environment variable | Optional | Skip TLS certificate verification for self-signed certs (default: false) Default: false |
GITLAB_Environment variable | Optional | Tool catalog selector: dynamic, meta, or individual (default: dynamic) Default: dynamic |
GITLAB_Environment variable | Optional | GitLab tier: free/ce, premium or ultimate, used as given. When unset, detected from the instance license, then from the plans of the namespaces the token administers, then, on GitLab.com, from the top-level groups the token is a member of, |
GITLAB_Environment variable | Optional | Read-only mode: removes every mutating action from the served surface; reads keep working (default: false) Default: false |
GITLAB_Environment variable | Optional | Safe mode: a mutating action returns a preview card naming the action and echoing its arguments instead of running; reads keep working (default: false) Default: false |
GITLAB_Environment variable | Optional | Logging verbosity (default: info) Default: info |
AuthorizationHeader, secret | Optional | Bearer <token>. The endpoint runs in OAuth mode: a client that speaks the OAuth flow needs no header at all and discovers the authorization server from the 401 challenge. A GitLab personal access token also works here, sent as 'Bearer glpat |
From the publisher's entry in the official MCP Registry. Required settings are already in the install config below as placeholders.
Try asking
- Review merge request !15: is it safe to merge?
- Why did the last pipeline fail?
- List open issues assigned to me
Good to know
- Some actions need the api scope; read_api covers only the actions GitLab accepts from it.
- The catalog depends on the GitLab tier, from about 876 actions on Free/CE to 1,103 on Ultimate.
- The public hosted instance passes tokens and requests through the publisher's machine.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: README.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to GitLab MCP Server
All alternatives →Turns GitHub repositories into architecture diagrams, written explanations, Mermaid source and narrated explainer videos. Built for developers who want to understand a codebase, and for AI agents that need to read one.
Mocks, records, and chaos-tests HTTP(S) dependencies for development and testing. One port serves many protocols, including gRPC, WebSockets, and LLM chat APIs. Built for developers and testers who need stand-in services during tests.
Provides MCP server and CLI tools that let AI coding agents build, test and manage iOS and macOS projects with Xcode and simulators. It is aimed at developers working on Apple platform apps.
Creates editable draw.io diagrams in AI chat from Mermaid, PlantUML, CSV or draw.io XML. Built for people who want diagrams from text prompts that stay editable in draw.io.
Indexes your code, git history, tests and decisions on your machine so AI coding agents can query the index instead of re-reading files. Built for developers who want fewer files opened and clearer answers about change risk and code health.
Gives your AI assistant hosted codebase intelligence for repos indexed on repowise.dev. Use it to ask how code works, what a change may break, and which tests to run.
Compare with GitDiagram, mockserver or XcodeBuildMCP
GitLab MCP Server: common questions
Which GitLab tiers are supported?
The source says Free/CE, Premium and Ultimate are supported, on self-managed instances or GitLab.com. The server detects the tier and the available catalog follows it.
Can it work with a self-managed GitLab instance?
Yes. The source says to set GITLAB_URL to the instance address beside the token.
Can the server be limited to read-only use?
Yes. Setting GITLAB_MCP_READ_ONLY to true blocks writes, and safe mode previews each write instead of applying it.
How do I install GitLab MCP Server?
In Claude Code run claude mcp add --transport http gitlab-mcp-server https://mcp.jmrp.io/gitlab. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is GitLab MCP Server the official server?
GitLab MCP Server is a community project by jmrplens, not verified by a company domain.
Is GitLab MCP Server free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is GitLab MCP Server safe to use?
It scores 79 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to GitLab MCP Server?
Similar MCP servers: GitDiagram, mockserver, XcodeBuildMCP, draw.io.
Does GitLab MCP Server work with ChatGPT?
Yes. Add its server URL in ChatGPT as a custom connector. See MCP in ChatGPT.
