Skip to main content
Glama
chris-miaskowski

GitLab MCP Server

カスタム GitLab MCP サーバー

Claude やその他の MCP 準拠の AI アシスタントと統合するための GitLab MCP (モデル コンテキスト プロトコル) サーバーのカスタム実装。

概要

この MCP サーバーは GitLab リポジトリとのシームレスな統合を提供し、AI アシスタントが次のことを行うことを可能にします。

  • GitLabリポジトリを検索

  • ファイルの内容を取得する

  • ファイルを作成または更新する

  • 1回のコミットで複数のファイルをプッシュする

  • 問題の作成とマージリクエスト

  • フォークリポジトリ

  • ブランチを作成する

Related MCP server: GitLab MCP Server

固定実装

このカスタム実装は、標準の GitLab MCP サーバー実装、特にsearch_repositoriesツールに存在していたスキーマ検証の問題を修正します。

インストール

  1. このリポジトリをクローンする

  2. 依存関係をインストールします:

    npm install
  3. Claude 設定ファイルまたは Claude Desktop 構成ファイルで構成します。

    {
      "mcpServers": {
        "github.com/modelcontextprotocol/servers/tree/main/src/gitlab": {
          "command": "node",
          "args": [
            "/path/to/custom-gitlab-server/index.js"
          ],
          "env": {
            "GITLAB_PERSONAL_ACCESS_TOKEN": "your-gitlab-token",
            "GITLAB_API_URL": "https://your-gitlab-instance/api/v4"
          }
        }
      }
    }

前提条件

  • Node.js (v14以上)

  • 適切なスコープを持つ GitLab 個人アクセス トークン:

    • 完全なAPIアクセスのためのapi

    • 読み取り専用アクセス用のread_api

    • リポジトリ操作用のread_repositorywrite_repository

利用可能なツール

ツール名

説明

search_repositories

GitLabプロジェクトを検索

get_file_contents

ファイルまたはディレクトリの内容を取得する

create_or_update_file

単一のファイルを作成または更新する

push_files

1回のコミットで複数のファイルをプッシュする

create_repository

新しいGitLabプロジェクトを作成する

create_issue

新しい問題を作成する

create_merge_request

新しいマージリクエストを作成する

fork_repository

プロジェクトをフォークする

create_branch

新しいブランチを作成する

ライセンス

マサチューセッツ工科大学

Related MCP Connectors

Related MCP Servers

  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    A Model Context Protocol server that enables AI assistants to interact with GitLab repositories, allowing tasks like managing merge requests, searching projects, and creating comments through RESTful API integration.
    5 npm
    2
    -
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to interact with GitLab for managing projects, branches, issues, and merge requests. It provides tools for searching code and performing file operations like reading and writing directly within repositories.
    4 npm
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    A Model Context Protocol server that enables AI assistants to interact with self-hosted GitLab instances through 30 specialized tools. It supports managing projects, merge requests, CI/CD pipelines, and repository operations via the GitLab REST API v4.
    30
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to interact seamlessly with self-hosted GitLab instances, supporting repository operations, issue management, merge requests, CI/CD pipelines, and more.
    150 PyPI
    5
    MIT