gitlab-mcp
高度なGitLab MCPサーバー
高度なGitLab MCPサーバー — CQRSアーキテクチャ、OAuth 2.1、および複数のトランスポートモードを備え、18のエンティティタイプにわたる44のツールを提供します。
クイックスタート
{
"mcpServers": {
"gitlab": {
"command": "npx",
"args": ["-y", "@structured-world/gitlab-mcp"],
"env": {
"GITLAB_TOKEN": "your_gitlab_token",
"GITLAB_API_URL": "https://gitlab.com"
}
}
}
}要件: Node.js >= 24
Related MCP server: gitlab-mcp
ハイライト
44のツール — プロジェクト、マージリクエスト、パイプライン、ワークアイテム、Wikiなど、18のエンティティタイプに対応
CQRSアーキテクチャ — クエリには
browse_*、コマンドにはmanage_*を使用接続の回復力 — 制限付き起動、指数バックオフによる自動再接続、GitLabに到達できない場合の切断モード
マルチインスタンスサポート — インスタンスごとのOAuthとレート制限を使用して、複数のGitLabインスタンスに接続可能
複数のトランスポート — stdio、SSE、StreamableHTTP
OAuth 2.1 — Claudeカスタムコネクタを介したユーザーごとの認証
読み取り専用モード — 本番環境での安全な運用
自動検出 — GitリモートからGitLab設定を検出
きめ細かな制御 — ツールグループの有効化/無効化、アクションのフィルタリング、説明のカスタマイズ
Dockerサポート —
ghcr.io/structured-world/gitlab-mcp:latest
ドキュメント
完全なドキュメントは gitlab-mcp.sw.foundation で公開されています
セクション | 説明 |
npm、Docker、VS Code、Codex | |
環境変数、機能フラグ | |
複数のGitLabインスタンスへの接続 | |
パラメータを含む全44ツール | |
Claudeを使用したチーム認証 | |
SSLを使用した本番環境デプロイ | |
ツールの説明、アクションフィルタリング | |
ツールドキュメントの閲覧とエクスポート |
自動生成されたツールリファレンス
パラメータを含む完全なツールリファレンスについては以下を参照してください:
# View locally
yarn list-tools --detail
# Generate documentation
yarn list-tools --export --toc > docs/tools/api-reference.md自動生成されたツールドキュメントについては、完全なAPIリファレンスを参照してください。
Docker
# HTTP mode
docker run -e PORT=3002 -e GITLAB_TOKEN=your_token -p 3333:3002 \
ghcr.io/structured-world/gitlab-mcp:latest
# stdio mode
docker run -i --rm -e GITLAB_TOKEN=your_token \
ghcr.io/structured-world/gitlab-mcp:latest接続の回復力
サーバーはGitLabの接続問題を適切に処理します:
制限付き起動 — GitLabの可用性に関係なく、サーバーは
GITLAB_INIT_TIMEOUT_MS(デフォルト5秒)以内に起動します切断モード — GitLabに到達できない場合(
disconnected/failed状態)、manage_contextツールのみが公開され、診断用にwhoami、switch_profile、set_scopeなどのローカルアクションが利用可能です。アクティブな再接続中(connecting状態)は、短い停止中にMCPクライアントがツールカタログを失わないよう、ツールリスト全体が引き続き利用可能です。MCPクライアントにはtools/list_changedを介してツールの可用性の変更が通知されます自動再接続 — ±10%のジッターを伴う指数バックオフ再接続(5秒 →
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Go MCP server for GitLab: 2 dynamic tools reach 1000+ REST/GraphQL actions. Free/CE, no paid tier.
Unofficial GitLab MCP — wraps the GitLab REST API v4 (BYO API key)
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
One OAuth connector for your team's remote MCP servers, with Tool Packs, guardrails and logs.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProduction-ready MCP server providing GitLab integration with OAuth authentication, enabling AI assistants to manage projects, issues, merge requests, branches, files, and commits across GitLab instances.MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for interacting with GitLab API, supporting both self-hosted instances and gitlab.com. Provides tools for managing issues, merge requests, code review, pipelines, milestones, releases, search, and file access.MIT
- AlicenseAqualityBmaintenanceModel Context Protocol (MCP) server for GitLab — exposes 1006 GitLab REST & GraphQL API operations as MCP tools (42 meta-tools / 57 enterprise), 24 resources, 38 prompts, and 17 completion types for AI assistants. Written in Go, single static binary, stdio and HTTP transport.257MIT
- AlicenseCqualityBmaintenanceMCP server for interacting with GitLab API, supporting dynamic tool selection and enterprise-grade security.20810MIT