Advanced GitLab MCP server

v13.8.0
io.github.structured-world/gitlab-mcp Checked 7 hours ago Published 21 hours ago

66 tools, 253 typed actions, 27 registry groups

Has high-severity static-analysis findings pending human review.

Values you need

VariableWhat it is
GITLAB_TOKENrequired secret GitLab Personal Access Token with 'api' and 'read_user' scopes
GITLAB_API_URLoptional GitLab instance API URL for self-hosted instances (defaults to https://gitlab.com)
GITLAB_READ_ONLY_MODEoptional Enable read-only mode (disable all manage_* write operations)

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add gitlab-mcp -e 'GITLAB_TOKEN=<GITLAB_TOKEN>' -- npx -y @structured-world/gitlab-mcp@13.8.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "gitlab-mcp": {
      "args": [
        "-y",
        "@structured-world/gitlab-mcp@13.8.0"
      ],
      "command": "npx",
      "env": {
        "GITLAB_TOKEN": "<GITLAB_TOKEN>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "gitlab-mcp": {
      "args": [
        "-y",
        "@structured-world/gitlab-mcp@13.8.0"
      ],
      "command": "npx",
      "env": {
        "GITLAB_TOKEN": "<GITLAB_TOKEN>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "GITLAB_TOKEN",
      "id": "gitlab-token",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "gitlab-mcp": {
      "args": [
        "-y",
        "@structured-world/gitlab-mcp@13.8.0"
      ],
      "command": "npx",
      "env": {
        "GITLAB_TOKEN": "${input:gitlab-token}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.gitlab-mcp]
command = "npx"
args = ["-y", "@structured-world/gitlab-mcp@13.8.0"]
env = { "GITLAB_TOKEN" = "<GITLAB_TOKEN>" }

For AI agents

  1. Ask the user for: GITLAB_TOKEN. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: manage_context, get_profile, get_settings, update_settings, check_connection, open_settings_panel, find_scope_targets.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json