GitLab MCP Server

Integrations

  • Provides integration with GitLab's API, allowing access to and management of GitLab resources. Requires a personal access token for authentication.

@harshmaur/gitlab-mcp

GitLab MCP(模型上下文协议)服务器。

安装和执行

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 GitLab MCP 服务器:

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

手动安装

npx @harshmaur/gitlab-mcp

环境变量配置

在运行服务器之前,需要设置以下环境变量:

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

执照

MIT 许可证

如何使用

与 Claude App、Cline、Roo Code 一起使用

当使用 Claude App 时,您需要直接设置您的 API 密钥和 URL。

{ "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" } } } }

与游标一起使用

与 Cursor 一起使用时,可以按如下方式设置环境变量并运行服务器:

env GITLAB_PERSONAL_ACCESS_TOKEN=your_gitlab_token GITLAB_API_URL=your_gitlab_api_url npx @harshmaur/gitlab-mcp
  • GITLAB_PERSONAL_ACCESS_TOKEN :您的 GitLab 个人访问令牌。
  • GITLAB_API_URL :您的 GitLab API URL。(默认值: https://gitlab.com/api/v4
-
security - not tested
F
license - not found
-
quality - not tested

一个可以与 GitLab 存储库通信的 MCP 服务器,允许与 GitLab 的 API 交互,以通过自然语言管理项目、问题和存储库。

  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
            ID: jzq2c7n61d