Skip to main content
Glama

GitLab MCP Server

by harshmaur

@harshmaur/gitlab-mcp

GitLab MCP(Model Context Protocol) Server.

Installation and Execution

Installing via Smithery

To install GitLab MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @harshmaur/gitlab-mcp --client claude

Manual Installation

npx @harshmaur/gitlab-mcp

Environment Variable Configuration

Before running the server, you need to set the following environment variables:

GITLAB_PERSONAL_ACCESS_TOKEN=your_gitlab_token GITLAB_API_URL=your_gitlab_api_url # Default: https://gitlab.com/api/v4

License

MIT License

How to use

Using with Claude App, Cline, Roo Code

When using with the Claude App, you need to set up your API key and URLs directly.

{ "mcpServers": { "GitLab communication server": { "command": "npx", "args": ["-y", "@harshmaur/gitlab-mcp"], "env": { "GITLAB_PERSONAL_ACCESS_TOKEN": "your_gitlab_token", "GITLAB_API_URL": "your_gitlab_api_url" } } } }

Using with Cursor

When using with Cursor, you can set up environment variables and run the server as follows:

env GITLAB_PERSONAL_ACCESS_TOKEN=your_gitlab_token GITLAB_API_URL=your_gitlab_api_url npx @harshmaur/gitlab-mcp
  • GITLAB_PERSONAL_ACCESS_TOKEN: Your GitLab personal access token.
  • GITLAB_API_URL: Your GitLab API URL. (Default: https://gitlab.com/api/v4)
-
security - not tested
A
license - permissive license
-
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.

An MCP server that enables communication with GitLab repositories, allowing interaction with GitLab's API to manage projects, issues, and repositories through natural language.

  1. Installation and Execution
    1. Installing via Smithery
    2. Manual Installation
  2. Environment Variable Configuration
    1. License
      1. How to use
        1. Using with Claude App, Cline, Roo Code
          1. Using with Cursor

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              MCP server for managing Git operations on local repositories, allowing users to list repositories, get and create tags, list commits, push tags, and refresh repositories through a standardized interface.
              Last updated -
              6
              3
              Python
            • A
              security
              A
              license
              A
              quality
              An MCP server that enables analyzing and querying GitHub repositories through the GitHub Chat API, allowing users to index repositories and ask questions about their code, architecture and tech stack.
              Last updated -
              2
              53
              Python
              MIT License
              • Linux
              • Apple
            • A
              security
              A
              license
              A
              quality
              基于MCP框架构建的GitLab集成服务器,提供多种GitLab RESTful API工具,支持项目搜索、任务管理、合并请求创建与审核等功能,帮助开发团队高效协作。
              Last updated -
              8
              4
              2
              TypeScript
              MIT License
            • -
              security
              F
              license
              -
              quality
              An MCP server that enables Git repository operations and GitHub PR workflows, allowing users to manage repositories, create branches, commit changes, and create pull requests through natural language.
              Last updated -
              1
              Python

            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/harshmaur/gitlab-mcp'

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