Integrates with GitLab to enable repository management, file operations, issue tracking, and merge request handling using a TypeScript implementation configured with a personal access token.
Log in to your GitLab account
- Open your GitLab instance (for most users: https://gitlab.com) and sign in with your user credentials.
Navigate to ‘Personal Access Tokens’ in your GitLab settings
- Click your user avatar in the upper-right corner.
- Go to “Edit profile” or “Preferences”.
- On the left menu, select “Access Tokens”.
Create a new Personal Access Token
- Give your token a recognizable name (e.g., “MCP Server Integration”).
- Select the required scopes (such as “api” for full API access, and any additional scopes as needed for your use case).
- (Optional) Set an expiry date for security best practices.
- Click the “Create personal access token” button.
Copy your Personal Access Token
- After creation, your token will be displayed once. Copy it and keep it secure.
Determine your GitLab API URL
- For GitLab.com, use:
https://gitlab.com/api/v4
- For self-hosted GitLab, use the URL:
https://<your-domain>/api/v4
(Optional) Decide on mode and features
- Set
GITLAB_READ_ONLY_MODE
to true
if you only require read-only access.
- Set
USE_GITLAB_WIKI
, USE_MILESTONE
, or USE_PIPELINE
to true
if you need those features.
Fill in the values in the FastMCP connection interface
- In the FastMCP interface, click the “Install Now” button for the GitLab MCP Server.
- When prompted, enter your:
GITLAB_PERSONAL_ACCESS_TOKEN
(from step 4)
GITLAB_API_URL
(from step 5)
- Any combination of the optional settings as needed for your use case.
Note: Your Personal Access Token is sensitive. Never share it publicly. You can always revoke or re-create it in your GitLab settings.