Cursor IDE Integration
May 5, 2026 · View on GitHub
Setup
- Open Cursor Settings → Features → MCP
- Add GitLab MCP Server to your config:
{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": ["-y", "@yoda.digital/gitlab-mcp-server"],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "YOUR_TOKEN_HERE",
"GITLAB_API_URL": "https://gitlab.com/api/v4"
}
}
}
}
Get GitLab Token
- Go to GitLab → Settings → Access Tokens
- Create token with scopes:
api,read_repository,write_repository - Copy token to config above
For Self-Hosted GitLab
Replace GITLAB_API_URL with your instance:
"GITLAB_API_URL": "https://gitlab.yourcompany.com/api/v4"
Test It
In Cursor chat, try:
- "List my GitLab projects"
- "Show me open issues in project X"
- "Create a branch called feature/new-feature"
Available Tools
See README.md for 50+ available operations.