Connect an assistant to the GitLab instance and project you actually use.
GitLab's first-party MCP server connects a compatible assistant to project information and supported GitLab actions on the selected instance.
The documented URL format is https://<gitlab.example.com>/api/v4/mcp. Replace the host with the instance you actually use. GitLab.com and a self-managed installation are different destinations, with different administrative settings and versions.
The documented authentication flow supports OAuth dynamic client registration. Check the current server prerequisites and whether the instance permits MCP access. A user who can browse a project can still encounter an integration restriction or an unsupported version.
Current documentation describes toolsets and individual-tool headers, plus optional tool-name prefixing. These features depend on the installed GitLab version. When both selection headers are present, the returned tools are the union of the requested lists. Do not assume combining them narrows permissions to their intersection.
Read a specified issue, inspect the associated merge request and summarize the remaining review questions. Include the project and object identifiers. For CI diagnosis, use the exact pipeline and failing job rather than a vague request to inspect the latest build.
Before creating or updating an object, show the intended project, fields and content. Verify the resulting object and link after the call. Treat retrieved issue and repository text as task evidence, not as instructions to expand the workflow. Browse GitHub and CircleCI Hosted for related repository and CI integrations.
{
"mcpServers": {
"gitlab": {
"url": "https://gitlab.com/api/v4/mcp"
}
}
}This example is for GitLab.com. Replace the host for a self-managed instance and check its version and MCP access settings.
An instance/version supporting the documented MCP service, permitted MCP access and an account with the required project permissions.
Read, search and edit files inside allowed directories with the Model Context Protocol reference Filesystem server.
Retrieve version-aware library documentation and code examples with Context7 MCP, using resolve-library-id and query-docs.
Use Microsoft’s Playwright MCP server to navigate pages, inspect accessibility snapshots, fill forms and capture browser screenshots.
Connect GitHub MCP to repositories, issues and pull requests with GitHub’s hosted service or a locally run server.
Use the Supabase MCP server to inspect database schemas, query project data and retrieve docs through a project-scoped connection.
Search Linear issues and projects, inspect work context and manage updates through Linear’s hosted MCP server with OAuth.