Skip to main content
Glama

GitLab MCP Server

by Alosies

GitLab MCP Server

A fully typed TypeScript Model Context Protocol (MCP) server for comprehensive GitLab integration.

Quick Start

1. Get a GitLab Token

Create a GitLab Personal Access Token with api, read_user, and read_repository scopes.

2. Add to Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{ "mcpServers": { "gitlab": { "command": "npx", "args": ["-y", "@alosies/gitlab-mcp-server"], "env": { "NPM_CONFIG_TOKEN": "your-gitlab-token-here" } } } }

3. Start Using

Ask Claude things like:

  • "List my GitLab projects"
  • "Show me open issues in myproject"
  • "Create a merge request from feature-branch to main"
  • "Get the logs for job #123"

Features

  • Projects: List, get details
  • Issues: List, get, create
  • Merge Requests: List, get, create, update
  • Pipelines: List, get, create, retry, cancel, delete
  • Jobs: List jobs, get logs with advanced trace options
  • Repository: List branches, get commits
  • User: Get current user info
  • TypeScript: Fully typed with comprehensive type definitions

Documentation

Self-Hosted GitLab

For self-hosted GitLab instances, add your base URL:

{ "mcpServers": { "gitlab": { "command": "npx", "args": ["-y", "@alosies/gitlab-mcp-server"], "env": { "NPM_CONFIG_TOKEN": "your-token", "GITLAB_BASE_URL": "https://gitlab.mycompany.com" } } } }

Support

License

MIT License

-
security - not tested
F
license - not found
-
quality - not tested

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.

A TypeScript MCP server that provides integration with GitLab's REST API, allowing users to interact with GitLab projects, issues, merge requests, pipelines, and more through natural language.

  1. Quick Start
    1. 1. Get a GitLab Token
    2. 2. Add to Claude Desktop
    3. 3. Start Using
  2. Features
    1. Documentation
      1. Self-Hosted GitLab
        1. Support
          1. License

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              MCP Server for the GitLab API, enabling project management, file operations, and more.
              Last updated -
              9
              1,673
              64,765
              TypeScript
              MIT License
              • Linux
              • Apple
            • A
              security
              A
              license
              A
              quality
              GitLabとの連携機能を提供するModel Context Protocol (MCP) サーバーです。GitLabの特定のプロジェクトからパイプラインの失敗情報やマージリクエストへの指摘事項を取得し、AIアシスタントに提供します。
              Last updated -
              3
              3
              Python
              MIT License
            • -
              security
              A
              license
              -
              quality
              An MCP server that enables communication with GitLab repositories, allowing interaction with GitLab's API to manage projects, issues, and repositories through natural language.
              Last updated -
              5,231
              1
              JavaScript
              MIT License
            • A
              security
              A
              license
              A
              quality
              A 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 -
              41
              25
              11
              TypeScript
              MIT License
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/Alosies/gitlab-mcp-server'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server