Skip to content
VS Code

mcp gitlab for VS Code

io.github.vish288/mcp-gitlab

MCP server for GitLab API — projects, MRs, pipelines, CI/CD, approvals, issues, code review.

client:VS Code transport:stdio runtime:pypi

Install mcp gitlab in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "gitlab-token",
      "description": "GITLAB_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gitlab-url",
      "description": "GITLAB_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "gitlab-read-only",
      "description": "GITLAB_READ_ONLY",
      "password": true
    }
  ],
  "servers": {
    "mcp-gitlab": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-gitlab"
      ],
      "env": {
        "GITLAB_TOKEN": "${input:gitlab-token}",
        "GITLAB_URL": "${input:gitlab-url}",
        "GITLAB_READ_ONLY": "${input:gitlab-read-only}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

mcp gitlab in other clients