GitLab MCP Server
Allows interaction with GitLab API, providing tools for managing projects, issues, merge requests, repositories, pipelines, and more.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitLab MCP Serverlist my open merge requests"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitLab MCP Server
HTTP-based Model Context Protocol (MCP) server for GitLab with HTTP header authentication.
Installation
Use install.bat or run manually:
python -m venv venv
.\venv\Scripts\activate.bat
pip install -r requirements.txt
pip install pip-system-certsRelated MCP server: GitLab MCP Server
Running the Server
.\venv\Scripts\activate.bat
python run_server.py```n
Server will be at: http://127.0.0.1:8000/mcpConfiguration
Required headers:
Authorization: Bearer <gitlab-token>
X-GitLab-Server: https://gitlab.centrala.bzwbk/
Accept: application/json, text/event-streamGitLab Token needs permissions:
read_api- for reading issues, merge requests, and other API resourceswrite_api- for creating issues and other write operationsread_repository- for accessing repository content (files, commits, branches)read_user- for accessing user informationapi- full API access (alternative to read_api + write_api)read_registry- for container registry operations (optional)
Available Tools
get_my_projects - Get list of user's projects
get_user_info - Get current user information
get_my_issues - Get issues assigned to user
get_my_merge_requests - Get user's merge requests
search_projects - Search projects by name
get_project_info - Get project details
get_project_files - List project files and directories
get_file_content - Get file content
get_project_commits - Get recent commits from a branch
create_issue - Create new issue
get_project_merge_requests - Get MRs for specific project
get_project_issues - Get issues for specific project
get_project_pipelines - Get project pipelines (CI/CD)
search_files_in_project - Search files by name
get_project_branches - List all project branches
get_commit_details - Get detailed commit information
get_commit_diff - Get changes in a specific commit
compare_branches - Compare two branches
get_file_history - Get commit history for a file
Docker
See DOCKER.md for Docker instructions.
This server cannot be deployed
Maintenance
Related MCP Connectors
GitLab MCP — wraps the GitLab REST API v4 (BYO API key)
Go MCP server for GitLab: 2 dynamic tools reach 1000+ REST/GraphQL actions. Free/CE, no paid tier.
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- -licenseAqualityAmaintenanceMCP Server for the GitLab API, enabling project management, file operations, and more.93,856 npm90,399MIT
- AlicenseCqualityDmaintenanceAn MCP server that enables communication with GitLab repositories, allowing interaction with GitLab's API to manage projects, issues, and repositories through natural language.4576,770 npm1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for interacting with GitLab API, supporting both self-hosted instances and gitlab.com. Provides tools for managing issues, merge requests, code review, pipelines, milestones, releases, search, and file access.403 npmMIT
- AlicenseAqualityCmaintenanceMCP server for GitLab REST API enabling AI agents to manage pipelines, merge requests, diffs, and local reviews.153 npmMIT