gitlab
MCP server from radostkali/gitlab-mcp-server
claude mcp add --transport stdio radostkali-gitlab-mcp-server docker run --rm -i -e GITLAB_TOKEN -e GITLAB_URL gitlab-mcp-server:latest \ --env GITLAB_URL="https://gitlab.com/" \ --env GITLAB_TOKEN="token"
How to use
This GitLab MCP Server is a Python-based integration built on FastMCP. It connects MCP-enabled clients (such as Cursor or Claude) to a GitLab instance, enabling automated interactions around repository access, pipeline or MR review prompts, and other GitLab API tasks through MCP rules and prompts. To use it, configure the MCP settings to point at the server container so that MCP clients can send requests and receive structured responses. The provided docker run command injects the necessary environment variables for authentication and instance URL (GITLAB_TOKEN and GITLAB_URL). Once running, you can leverage the MCP rules and prompts to guide reviews, fetch repository data, or automate tasks within GitLab depending on the client workflow. The setup expects that you replace the placeholder environment variables with real credentials and URL for your GitLab instance.
How to install
Prerequisites:
- Docker installed and running
- Access to a GitLab instance and a personal access token with the required scopes (api, read_repository, write_repository)
Installation steps:
- Clone or obtain the MCP server project repository (or build the Docker image as described in the Quick Start).
- Build the Docker image: docker build -t gitlab-mcp-server .
- Run the container with the required environment variables:
docker run --rm -i
-e GITLAB_TOKEN=your_token
-e GITLAB_URL=https://gitlab.com/
gitlab-mcp-server:latest - Confirm the MCP server is reachable by your MCP client and configure it in your MCP settings using the provided server config snippet.
Notes:
- Ensure you replace the environment variable placeholders with real values before running.
- If deploying in a production environment, consider mounting configuration and secrets securely and restricting network access to the GitLab instance.
Additional notes
Tips and common considerations:
- The server relies on Docker to run the underlying Python-based GitLab MCP service; ensure Docker can access the gitlab-mcp-server image (build locally or pull from a registry).
- The GITLAB_TOKEN should have appropriate scopes (api, read_repository, write_repository) for the intended operations.
- GITLAB_URL should point to your GitLab instance (cloud or self-hosted).
- In MCP Settings, include the exact server name (gitlab) as shown in the configuration to ensure proper routing.
- If you encounter authentication errors, verify token validity, permissions, and that the URL is reachable from the host running Docker.
- For debugging, you may run the container interactively without --rm to inspect logs in real time.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP