When should you use this server
- Retrieve and create issues or merge requests without switching contexts
- Access pipeline status and job information for CI/CD workflows
- Query project metadata and repository details
- Automate GitLab operations with natural language commands and AI assistance
Key features
- Project information and metadata retrieval
- Issue and merge request querying and creation
- Pipeline and CI/CD job inspection
- Repository browsing and file access
- Secure OAuth authentication with permission controls
Authentication
MethodOAuth 2.1 or personal access tokens (depending on instance setup) Scopes
Based on the required operations - read_api, api, read_repository Notes
Premium and Ultimate tier requirement; respects user permissions and roles
Endpoints
- GitLab.com (cloud): Uses GitLab’s cloud-hosted MCP server
- Self-managed: Supports on-premise GitLab instances with appropriate configuration
Setup & usage
Configure the MCP server once with your GitLab instance, then connect via your MCP-compatible client (Claude Desktop, Cursor, VS Code, etc.).Tools provided
get_mcp_server_version
Returns the current version of the GitLab MCP server.get_issue
Retrieves detailed information about a specific issue.create_issue
Creates a new issue in a GitLab project.get_merge_request
Retrieves detailed information about a specific merge request.get_merge_request_commits
Lists commits associated with a specific merge request.get_merge_request_changes
Retrieves file changes (diffs) for a specific merge request.get_pipeline_jobs
Retrieves the list of jobs for a CI/CD pipeline.get_merge_request_pipelines_service
Retrieves the pipelines associated with a specific merge request.Rate limits
Follows GitLab API rate limits. Implement backoff and retry handling for rate-limited responses.Notes
- Available for Premium and Ultimate tier customers only
- Enterprise Cloud or self-managed instances may require different endpoints and configurations
- The MCP server respects your GitLab access permissions - actions available depend on your role
- This capability is under active development with additional tools expected over time
FAQ
What authentication method should I use?
OAuth 2.1 is recommended for most users as it provides better security and granular permissions. Personal access tokens are available for self-managed instances or specific use cases.What if I encounter “Insufficient permissions” errors?
Verify your GitLab role has the appropriate permissions for the requested action. Some operations require specific roles (Maintainer, Owner) or explicit permissions.Can I use this with my self-managed GitLab instance?
Yes, self-managed GitLab instances running Premium or Ultimate tier can configure the MCP server. Refer to the GitLab documentation for specific setup requirements.How do I troubleshoot connection issues?
- Confirm you’re using a compatible MCP client
- Verify authentication credentials and scopes
- Check GitLab instance version and tier
- Review network access between your client and the GitLab instance
- Check GitLab logs for more detailed error information