Skip to content

VS Code Installation Guide ​

Configure GitLab MCP Server in Visual Studio Code.

One-Click Install ​

Install in VS Code

Manual Configuration ​

Create or edit .vscode/mcp.json in your workspace:

json
{
  "inputs": [
    {
      "type": "promptString",
      "id": "gitlab-token",
      "description": "GitLab Token",
      "password": true
    }
  ],
  "servers": {
    "GitLab-MCP": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@structured-world/gitlab-mcp"],
      "env": {
        "GITLAB_TOKEN": "${input:gitlab-token}",
        "GITLAB_API_URL": "https://gitlab.com",
        "GITLAB_READ_ONLY_MODE": "true"
      }
    }
  }
}

TIP

Using ${input:gitlab-token} prompts for the token securely each session, avoiding hardcoded secrets.

VS Code Insiders ​

Install in VS Code Insiders

The same configuration works for VS Code Insiders.

Released under the Apache 2.0 License.