カスタム GitLab MCP サーバー
Claude やその他の MCP 準拠の AI アシスタントと統合するための GitLab MCP (モデル コンテキスト プロトコル) サーバーのカスタム実装。
概要
この MCP サーバーは GitLab リポジトリとのシームレスな統合を提供し、AI アシスタントが次のことを行うことを可能にします。
GitLabリポジトリを検索
ファイルの内容を取得する
ファイルを作成または更新する
1回のコミットで複数のファイルをプッシュする
問題の作成とマージリクエスト
フォークリポジトリ
ブランチを作成する
固定実装
このカスタム実装は、標準の GitLab MCP サーバー実装、特にsearch_repositoriesツールに存在していたスキーマ検証の問題を修正します。
インストール
このリポジトリをクローンする
依存関係をインストールします:
npm installClaude 設定ファイルまたは 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_repositoryとwrite_repository
利用可能なツール
ツール名 | 説明 |
| GitLabプロジェクトを検索 |
| ファイルまたはディレクトリの内容を取得する |
| 単一のファイルを作成または更新する |
| 1回のコミットで複数のファイルをプッシュする |
| 新しいGitLabプロジェクトを作成する |
| 新しい問題を作成する |
| 新しいマージリクエストを作成する |
| プロジェクトをフォークする |
| 新しいブランチを作成する |
ライセンス
マサチューセッツ工科大学
This server cannot be installed
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.
AI アシスタントが GitLab リポジトリと対話できるようにし、検索、ファイルの取得、コンテンツの作成/更新、問題とマージ リクエストの管理などの機能を提供するカスタム サーバー実装。
Related Resources
Related MCP Servers
- -security-license-qualityA server that allows AI assistants to browse and read files from specified GitHub repositories, providing access to repository contents via the Model Context Protocol.Last updated -5MIT License
- -security-license-qualityA 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.Last updated -72
- Asecurity-licenseAqualityProvides comprehensive Git operations as tools for AI assistants and applications. This server enables AI systems to interact with Git repositories, allowing to initialize, fetch, commit, log, status, etc..Last updated -1021MIT License
- -security-license-qualityProvides GitLab integration for AI assistants using Model Context Protocol, enabling repository operations, file management, issue tracking, merge requests, and branch/tag administration through natural language.Last updated -2