---
title: VS Code Installation Guide
description: "Add GitLab MCP Server to VS Code with one-click install or manual mcp.json configuration. Includes secure token prompts, workspace setup, and VS Code Insiders support."
head:
- - meta
- name: keywords
content: gitlab mcp vs code, vscode mcp server, github copilot, one-click install, mcp.json, vs code insiders
---
# VS Code Installation Guide
Configure GitLab MCP Server in Visual Studio Code.
## One-Click Install
[](vscode:mcp/install?%7B%22name%22%3A%22gitlab-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40structured-world%2Fgitlab-mcp%22%5D%7D)
## 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
[](vscode-insiders:mcp/install?%7B%22name%22%3A%22gitlab-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40structured-world%2Fgitlab-mcp%22%5D%7D)
The same configuration works for VS Code Insiders.