Provides comprehensive GitLab repository management capabilities including creating, forking and deleting repositories, file operations, issue tracking, merge request handling, and branch/tag management.
GitLab MCP Server (in Python)
Model Context Protocol (MCP) server for GitLab integration, built on FastMCP.
This server is implemented in Python, with fastmcp.
Quick Start
- Build the Docker image:
Integration with Cursor/Claude
In MCP Settings -> Add MCP server, add this config:
Note: Don't forget to replace GITLAB_TOKEN
and GITLAB_URL
values with your actual GitLab credentials and instance URL.
Getting GitLab Token
- Log in to your GitLab account
- Go to Settings -> Access Tokens
- Create a new token:
- Scopes: select the necessary permissions:
api
- for API accessread_repository
- for reading repositorieswrite_repository
- for writing to repositories
- Scopes: select the necessary permissions:
- Click "Create personal access token"
- Copy the generated token (it will be shown only once!)
Functions
- ✅1.create_repository
- ✅2.fork_repository
- ✅3.delete_repository
- ✅4.search_repositories
- ✅5.create_or_update_file
- ✅6.push_files
- ✅7.get_file_contents
- ✅8.create_issue
- ✅9.get_issues
- ✅10.create_merge_request
- ✅11.get_merge_request_diff
- ✅12.create_branches
- ✅13.delete_branches
- ✅14.create_tags
- ✅15.delete_tags
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Provides GitLab integration for AI assistants using Model Context Protocol, enabling repository operations, file management, issue tracking, merge requests, and branch/tag administration through natural language.
Related MCP Servers
- -securityFlicense-qualityA custom server implementation that allows AI assistants to interact with GitLab repositories, providing capabilities for searching, fetching files, creating/updating content, and managing issues and merge requests.Last updated -1JavaScript
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to perform GitHub operations including repository management, file operations, issue tracking, and pull request creation.Last updated -1TypeScript
- AsecurityAlicenseAqualityA Model Context Protocol server that enables interaction with GitLab accounts to manage repositories, merge requests, code reviews, and CI/CD pipelines through natural language.Last updated -412511TypeScriptMIT License
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants to interact with GitLab repositories, allowing tasks like managing merge requests, searching projects, and creating comments through RESTful API integration.Last updated -52TypeScript