GitLab API Claude Desktop Config
Add the GitLab API MCP server to Claude Desktop with this ready-to-use configuration.
Setup Instructions
- Open Claude Desktop
- Go to Settings → Developer → Edit Config →
claude_desktop_config.json - Paste the JSON below into the file
- Set your OAuth2 in the
envsection - Restart Claude Desktop
Configuration JSON
Copy the entire block into your claude_desktop_config.json
{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": [
"-y",
"@gitlab/mcp-server"
],
"env": {
"GITLAB_TOKEN": "your_gitlab_token"
}
}
}
}Environment Variables
GITLAB_TOKENReplace your_gitlab_token with your actual gitlab token
Endpoints
GET
/projectsList projects
GET
/projects/{id}/merge_requestsList merge requests
GET
/projects/{id}/pipelinesList pipelines