The GitLab MCP server enables AI agents to interact with GitLab—the DevOps platform for software development, security, and operations.
Through MCP, assistants can programmatically access repositories, issues, merge requests, pipelines, and more without embedding long-lived tokens inside agents. This server is designed for conversational and automated engineering workflows within the GitLab ecosystem.
Method
OAuth 2.1 or personal access tokens (depending on instance setup)Scopes
Based on the required operations - read_api, api, read_repositoryNotes
Premium and Ultimate tier requirement; respects user permissions and roles
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.