How to integrate GitLab using MCP
Repos, issues and CI/CD pipelines. This guide creates an MCP server from Arthur's GitLab template — tools preconfigured against https://gitlab.com/api/v4 — and finishes by sharing the server's MCP swagger documentation.
Steps
Open the Secrets vault and create a secret named
GITLAB_API_KEYholding your access token. Create a Personal Access Token in GitLab → Settings → Access Tokens with the "api" scope.


Go to the REST API Templates gallery and search for GitLab.


Click Use template on the GitLab card to open the server-creation dialog.


Review the server name and select
GITLAB_API_KEYin the credential field — the dialog only accepts vault secrets, and it lists every tool that will be created.


Click Create server. Arthur creates the server, applies the authentication, and generates all the tools.





Open the server's Tools tab to review the generated tools.

Open the server's Connect section and click Share the MCP swagger documentation — Arthur generates the public documentation link and QR code for this server.



Confirm it worked
The server appears with 5 preconfigured tool(s): search_projects, list_issues, create_issue, list_merge_requests, list_pipelines. The Connect section offers the MCP swagger documentation — a shareable page with setup instructions for any AI client.
Good to know
- Manage GitLab repositories, issues, and merge requests. Works with gitlab.com or self-hosted instances — update the base URL in Settings for self-hosted.
- This integration requires a credential (bearer). Get one at https://gitlab.com/-/user_settings/personal_access_tokens.
- Official API documentation: https://docs.gitlab.com/ee/api/
- Editing a tool later never changes the template — templates are starting points, and the server is fully yours after creation.
Related
Tutorial video