GitLab
OFFICIAL · Model Context ProtocolAUTH REQUIREDMITEnable your AI agent to interact with GitLab repositories, merge requests, issues, pipelines, and project files via the official MCP server.
Requires a GitLab Personal Access Token with api scope. Generate one from GitLab → User Settings → Access Tokens.
Setup Guide
{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-gitlab"
],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "glpat-xxxxxxxxxxxxxxxxxxxx",
"GITLAB_API_URL": "https://gitlab.com/api/v4"
}
}
}
}Tools
create_or_update_file
Create or update a file in a GitLab repository at a specified path.
search_repositories
Search GitLab projects by keyword with pagination.
create_repository
Create a new GitLab project under the authenticated user or a group.
get_file_contents
Read the contents of any file within a GitLab repository.
create_issue
Open a new issue with title, description, and assignees.
create_merge_request
Create a merge request between source and target branches.
fork_repository
Fork a project into your namespace or a group.
create_branch
Create a new branch from a specified ref.
Compatibility
About
Overview
The GitLab MCP server gives your AI agent full access to your GitLab projects. Whether you're on GitLab.com or a self-hosted instance, your AI can read repository files, open issues, create merge requests, manage branches, and fork projects — all from within your editor or Claude Desktop.
Teams using GitLab for DevOps workflows will find this integration invaluable for automating repetitive tasks like issue triage, MR creation, and code reviews powered by AI.
Generating a GitLab Personal Access Token
- Go to your GitLab profile → User Settings → Access Tokens.
- Give the token a name (e.g., "MCP Server") and optionally set an expiry date.
- Select the api scope for full access.
- Click Create personal access token and copy the value (it starts with
glpat-). - Paste the token into
GITLAB_PERSONAL_ACCESS_TOKENin your config.
For self-hosted instances, update GITLAB_API_URL to point to your GitLab server.
Install and Troubleshooting Intent Coverage
Developer-install and troubleshooting intent for community MCP server listings.
install mcp server / mcp server setup guide
mcp json config example / vscode mcp setup
mcp server not working / mcp tools not showing
mcp server compatibility matrix / cursor vs vscode mcp compatibility
mcp server monetization options / convert community mcp server to paid listing
Related Setup, Debug, and Learning Links
Integration usage patterns
Cross-tool integration usage maps to this docs path.
CLI installation guide
Install baseline for all IDEs before listing-specific setup.
Cursor setup walkthrough
High-intent setup path for developer troubleshooting journeys.
Troubleshooting: server not working
Common failure modes for install and runtime issues.
Troubleshooting: tools not showing
Covers discovery/listing failures across major IDEs.
Registry listing: github
Maps this community reference to install-ready hosted listing.
Related explore entry: Git MCP Server
Keeps same-intent users on matched category and tool shape.
Related explore entry: GitHub
Keeps same-intent users on matched category and tool shape.
Related explore entry: Stripe
Keeps same-intent users on matched category and tool shape.
Install this server with the AgenticMarket CLI — you'll be prompted for your API credentials or OAuth tokens during setup. No manual JSON editing.
$npx agenticmarket install gitlabGit MCP Server
Let your AI assistant interact with Git repositories directly. Status, diff, commit, branch, and log — all accessible to your LLM through 12 Git tools.
GitHub
Empower your AI agent to read, write, search, and manage repositories on GitHub, including issues, commits, and pull requests.
Stripe
Enable your AI agent to interact with Stripe — retrieve payment data, manage customers, list subscriptions, and analyze revenue directly from your IDE.
AgenticMarket