@harshmaur/gitlab-mcp
GitLab MCP(モデルコンテキストプロトコル)サーバー。
インストールと実行
Smithery経由でインストール
Smithery経由で Claude Desktop 用の GitLab MCP Server を自動的にインストールするには:
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 アプリで使用する場合は、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
)