← Index

Advanced GitLab MCP server

io.github.structured-world/gitlab-mcp·v7.2.0·Git & Code Hosting
Quality Score
95
/100

GitLab MCP server with 44 tools for projects, MRs, pipelines, and more

§01  Install
Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "gitlab-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@structured-world/gitlab-mcp"
      ],
      "env": {
        "GITLAB_TOKEN": "<your-gitlab_token>",
        "GITLAB_API_URL": "<gitlab_api_url>",
        "GITLAB_READ_ONLY_MODE": "<gitlab_read_only_mode>"
      }
    }
  }
}
Cursor (.cursor/mcp.json)
{
  "mcpServers": {
    "gitlab-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@structured-world/gitlab-mcp"
      ],
      "env": {
        "GITLAB_TOKEN": "<your-gitlab_token>",
        "GITLAB_API_URL": "<gitlab_api_url>",
        "GITLAB_READ_ONLY_MODE": "<gitlab_read_only_mode>"
      }
    }
  }
}
Cline (cline_mcp_settings.json)
npx -y @structured-world/gitlab-mcp
§02  Environment variables
GITLAB_TOKEN
requiredsecret

GitLab Personal Access Token with 'api' and 'read_user' scopes

GITLAB_API_URL

GitLab instance API URL for self-hosted instances (defaults to https://gitlab.com)

GITLAB_READ_ONLY_MODE

Enable read-only mode (disable all manage_* write operations)

§03  MCP Quality Score  ·  methodology
freshness
25
completeness
20
installability
25
documentation
15
stability
10
§04  Alternatives in Git & Code Hosting