mcp-gitlab
Enhanced MCP server for GitLab: group projects listing and activity tracking
claude mcp add --transport stdio yoda-digital-mcp-gitlab-server npx -y @yoda.digital/gitlab-mcp-server \ --env GITLAB_URL="https://gitlab.com" \ --env GITLAB_READ_ONLY="false" \ --env GITLAB_PERSONAL_ACCESS_TOKEN="your-personal-access-token"
How to use
This MCP server provides a comprehensive GitLab integration with a wide range of tools that enable AI-assisted development workflows. It exposes a standardized set of MCP endpoints to manage repositories, files, branches, issues, merge requests, CI/CD pipelines, wikis, members, groups, labels, milestones, releases, and more. The server supports both stdio and Server-Sent Events (SSE) transports, allowing flexible integration with chatbots, IDEs, and automation pipelines. To use it, configure the MCP client to point at the gitlab server and supply the required environment variables, notably your GitLab Personal Access Token and the GitLab instance URL. Once connected, you can issue natural-language commands or structured tool calls to perform complex GitLab operations through AI, such as creating an MR with auto-generated descriptions, triggering pipelines, or updating project settings. The server also supports read-only mode for safe exploration without write permissions, helping to prototype AI-assisted workflows before enabling write access.
How to install
Prerequisites:
- Node.js and npm installed on the machine
- Access to the internet to fetch the MCP server package
- Git installed if you plan to clone the repository
Option A: Install from npm (recommended)
- Install the MCP server package:
npm install @yoda.digital/gitlab-mcp-server
- Run the server directly with npx (no local install required):
# Example (from Claude Desktop configuration):
npx -y @yoda.digital/gitlab-mcp-server
Option B: Install from source
- Clone the repository:
git clone https://github.com/yoda-digital/mcp-gitlab-server.git
cd mcp-gitlab-server
- Install dependencies:
npm install
- Build if your workflow requires a built dist:
npm run build
- Run the server (pointing to the built entry if applicable):
node_modules/.bin/<start-script-if-present> # or npm run start
Configuration:
- Create or update your Claude Desktop config (or equivalent MCP client) to include the server with the following structure:
{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": ["-y", "@yoda.digital/gitlab-mcp-server"],
"env": {
"GITLAB_PERSONAL_ACCESS_TOKEN": "your-token-here",
"GITLAB_URL": "https://gitlab.com",
"GITLAB_READ_ONLY": "false"
}
}
}
}
Notes:
- Ensure your GitLab PAT has the necessary scopes for the tools you plan to use.
- If you installed from source or prefer running locally, you can point to the built server entrypoint as described in the README.
Additional notes
Environment variables:
- GITLAB_PERSONAL_ACCESS_TOKEN: Required; your GitLab PAT with appropriate scopes.
- GITLAB_URL: GitLab instance URL (default: https://gitlab.com).
- GITLAB_READ_ONLY: Set to true to enable read-only mode (optional). Common issues:
- If tokens are rejected, verify token scopes and that the GITLAB_URL matches your instance.
- When using npx, ensure network access is available to fetch the package; behind a proxy may require configuration.
- For non-npx deployments, ensure the path to the local dist/index.js (or equivalent) is correctly provided in the client configuration.
- Review logs for transport issues (stdio vs SSE) and adjust your client to match the server transport being used.
Related MCP Servers
git
Put an end to code hallucinations! GitMCP is a free, open-source, remote MCP server for any GitHub project
SearChat
Search + Chat = SearChat(AI Chat with Search), Support OpenAI/Anthropic/VertexAI/Gemini, DeepResearch, SearXNG, Docker. AI对话式搜索引擎,支持DeepResearch, 支持OpenAI/Anthropic/VertexAI/Gemini接口、聚合搜索引擎SearXNG,支持Docker一键部署。
mcp-framework
A framework for writing MCP (Model Context Protocol) servers in Typescript
mcp-graphql
Model Context Protocol server for GraphQL
git
An MCP (Model Context Protocol) server enabling LLMs and AI agents to interact with Git repositories. Provides tools for comprehensive Git operations including clone, commit, branch, diff, log, status, push, pull, merge, rebase, worktree, tag management, and more, via the MCP standard. STDIO & HTTP.
recall
Persistent cross-session memory for Claude & AI agents. Self-host on Redis/Valkey, or use the managed SaaS at recallmcp.com.