Integrates with GitLab's API to enable repository management, issue tracking, merge request handling, and file operations for automated development workflows.
Log in to your GitLab account
Navigate to User Settings
- Click on your user avatar in the top right corner.
- Select “Edit profile” or “Preferences.”
Create a Personal Access Token
- In the left sidebar, find and click on “Access Tokens” (may also be called “Personal Access Tokens”).
- Give your token a name, select the desired expiration date, and choose the necessary scopes/permissions (typically
api
for full access, or restrict as needed for your use case).
- Click the “Create personal access token” button.
Copy Your Access Token
- After creation, the token will be displayed only once. Copy it and store it securely.
Determine Your GitLab API URL
- For gitlab.com, use:
https://gitlab.com/api/v4
- For self-hosted instances, use:
https://<your-domain>/api/v4
(Optional) Choose other settings
- Set
GITLAB_READ_ONLY_MODE
to true
if you only need read access.
- Set
USE_GITLAB_WIKI
, USE_MILESTONE
, and USE_PIPELINE
to true
if you want to enable those features.
Fill in the FastMCP connection interface
- Click the “Install Now” button in FastMCP for this server.
- When prompted in the FastMCP connection interface, enter:
- GITLAB_PERSONAL_ACCESS_TOKEN: paste the token from Step 4.
- GITLAB_API_URL: enter the API URL from Step 5.
- Optionally set GITLAB_READ_ONLY_MODE, USE_GITLAB_WIKI, USE_MILESTONE, and USE_PIPELINE as desired.
You’re done! Your MCP GitLab server will now connect using these environment values.