GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者による説明(英語の原文)
GitLab MCP server (MCP 2026-07-28): projects, MRs, pipelines, CI/CD, issues; writes or read-only
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
GITLAB_TOKEN, GITLAB_URL, GITLAB_READ_ONLY, MCP_READ_ONLY, GITLAB_AUTH, GITLAB_OAUTH_CLIENT_ID, GITLAB_OAUTH_CLIENT_SECRET, GITLAB_OAUTH_BASE_URL, GITLAB_OAUTH_SCOPES, GITLAB_OAUTH_JWT_KEY, GITLAB_HTTP_BEARER_TOKEN「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます
{
"mcpServers": {
"gitlab": {
"command": "uvx",
"args": [
"mcp-gitlab"
],
"env": {
"GITLAB_TOKEN": "your-value",
"GITLAB_URL": "your-value",
"GITLAB_READ_ONLY": "your-value",
"MCP_READ_ONLY": "your-value",
"GITLAB_AUTH": "your-value",
"GITLAB_OAUTH_CLIENT_ID": "your-value",
"GITLAB_OAUTH_CLIENT_SECRET": "your-value",
"GITLAB_OAUTH_BASE_URL": "your-value",
"GITLAB_OAUTH_SCOPES": "your-value",
"GITLAB_OAUTH_JWT_KEY": "your-value",
"GITLAB_HTTP_BEARER_TOKEN": "your-value"
}
}
}
}ターミナルでこれを実行します
claude mcp add gitlab --env GITLAB_TOKEN=your-value --env GITLAB_URL=your-value --env GITLAB_READ_ONLY=your-value --env MCP_READ_ONLY=your-value --env GITLAB_AUTH=your-value --env GITLAB_OAUTH_CLIENT_ID=your-value --env GITLAB_OAUTH_CLIENT_SECRET=your-value --env GITLAB_OAUTH_BASE_URL=your-value --env GITLAB_OAUTH_SCOPES=your-value --env GITLAB_OAUTH_JWT_KEY=your-value --env GITLAB_HTTP_BEARER_TOKEN=your-value -- uvx mcp-gitlab動かす前に、空欄の値を入力してください。
プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"gitlab": {
"command": "uvx",
"args": [
"mcp-gitlab"
],
"env": {
"GITLAB_TOKEN": "your-value",
"GITLAB_URL": "your-value",
"GITLAB_READ_ONLY": "your-value",
"MCP_READ_ONLY": "your-value",
"GITLAB_AUTH": "your-value",
"GITLAB_OAUTH_CLIENT_ID": "your-value",
"GITLAB_OAUTH_CLIENT_SECRET": "your-value",
"GITLAB_OAUTH_BASE_URL": "your-value",
"GITLAB_OAUTH_SCOPES": "your-value",
"GITLAB_OAUTH_JWT_KEY": "your-value",
"GITLAB_HTTP_BEARER_TOKEN": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"gitlab": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-gitlab"
],
"env": {
"GITLAB_TOKEN": "your-value",
"GITLAB_URL": "your-value",
"GITLAB_READ_ONLY": "your-value",
"MCP_READ_ONLY": "your-value",
"GITLAB_AUTH": "your-value",
"GITLAB_OAUTH_CLIENT_ID": "your-value",
"GITLAB_OAUTH_CLIENT_SECRET": "your-value",
"GITLAB_OAUTH_BASE_URL": "your-value",
"GITLAB_OAUTH_SCOPES": "your-value",
"GITLAB_OAUTH_JWT_KEY": "your-value",
"GITLAB_HTTP_BEARER_TOKEN": "your-value"
}
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
GITLAB_READ_ONLY envMCP_READ_ONLY envGITLAB_AUTH envGITLAB_OAUTH_CLIENT_ID envGITLAB_OAUTH_BASE_URL envGITLAB_OAUTH_SCOPES envこの設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月6日にチェック
レジストリ名は、リポジトリを所有するGitHubアカウント vish288 で確認済みです
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
これはパソコンで動くため、インターネット上のエンドポイントはありません
パソコンで動き、代わりにローカルの設定を使います
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
入力が必要なもの:GITLAB_TOKEN, GITLAB_URL, GITLAB_OAUTH_CLIENT_SECRET, GITLAB_OAUTH_JWT_KEY, GITLAB_HTTP_BEARER_TOKEN
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
GitHubリポジトリの最終更新は–、最新バージョン(0.21.3)がレジストリに届いたのは一昨日です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにPython (uv)も必要です。
同じカテゴリには:GitHub, Desktop Commander, Cloudflare MCP
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
mcp-gitlab is a Model Context Protocol (MCP) server for the GitLab REST API. It gives AI assistants 91 tools, 7 resources, and 6 prompts to manage projects, merge requests, pipelines, CI/CD variables, approvals, issues, and code reviews. Works with Claude Desktop, Claude Code, Cursor, Windsurf, VS Code Copilot, and any MCP-compatible client. Runs in one of two modes: with writes, or locked read-only (MCP_READ_ONLY=true) so the 57 write tools are never offered to the model.
Supports GitLab.com and self-hosted GitLab instances (CE/EE). No GitLab Duo or Premium required.
Supports the MCP 2026-07-28 specification, often called MCP 2.0, and stays compatible with 2025-11-25 clients.
Built with FastMCP 4.x, httpx, and Pydantic.
Install: uvx mcp-gitlab | PyPI | MCP Registry | Changelog
uvx mcp-gitlab # with writes
MCP_READ_ONLY=true uvx mcp-gitlab # locked read-only: write tools are not listed
💡 Tip: For other AI assistants (Claude Code, Windsurf, IntelliJ, Gemini CLI), visit the [GitLab MCP Installation Gateway](https://vish288.github.io/mcp-install?server=mcp-gitlab).
Manual Setup Guides (Click to expand)
Prerequisite: Install
uvfirst (required for alluvxinstall flows). Install uv.
# with writes
claude mcp add gitlab -e GITLAB_URL=https://gitlab.example.com -e GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx -- uvx mcp-gitlab
claude mcp add gitlab -e MCP_READ_ONLY=true -e GITLAB_URL=https://gitlab.example.com -e GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx -- uvx mcp-gitlab
Windsurf: Add to ~/.codeium/windsurf/mcp_config.json IntelliJ: Add to Settings | Tools | MCP Servers
Note: The actual server config starts at
gitlabinside themcpServersobject. RemoveMCP_READ_ONLYto allow writes.
{
"mcpServers": { "gitlab": { "command": "uvx", "args": ["mcp-gitlab"], "env": { "GITLAB_URL": "https://gitlab.example.com", "GITLAB_TOKEN": "glpat-xxxxxxxxxxxxxxxxxxxx", "MCP_READ_ONLY": "true" } } } }
# with writes
gemini mcp add -s user -e GITLAB_URL=https://gitlab.example.com -e GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx gitlab uvx mcp-gitlab
gemini mcp add -s user -e MCP_READ_ONLY=true -e GITLAB_URL=https://gitlab.example.com -e GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx gitlab uvx mcp-gitlab
Add to .vscode/mcp.json. Remove MCP_READ_ONLY to allow writes.
{
"servers": { "gitlab": { "type": "stdio", "command": "uvx", "args": ["mcp-gitlab"], "env": { "GITLAB_URL": "https://gitlab.example.com", "GITLAB_TOKEN": "glpat-xxxxxxxxxxxxxxxxxxxx", "MCP_READ_ONLY": "true" } } } }
# with writes
codex mcp add gitlab --env GITLAB_URL=https://gitlab.example.com --env GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx -- uvx mcp-gitlab
codex mcp add gitlab --env MCP_READ_ONLY=true --env GITLAB_URL=https://gitlab.example.com --env GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx -- uvx mcp-gitlab
uv pip install mcp-gitlab
Drop MCP_READ_ONLY to allow writes. On a shared or hosted server put it in the deployer's env, not the client config.
| Variable | Required | Default | Description |
|---|---|---|---|
GITLAB_URL | Yes | - | GitLab instance URL (e.g. https://gitlab.example.com) |
GITLAB_TOKEN | Yes, unless signed in with mcp-gitlab auth login | - | Authentication token (see below) |
MCP_READ_ONLY | No | false | Shared name across the mcp-* servers. Any value other than false/0/no/off/empty locks the server read-only: the 57 write tools and write-workflow prompts are not listed, and nothing can turn it back off at runtime |
GITLAB_READ_ONLY | No | false | Per-server alias for MCP_READ_ONLY; either one locks the server read-only. --read-only can only raise the lock |
GITLAB_HTTP_BEARER_TOKEN | No | - | Bearer token (min 16 chars) required to bind an HTTP transport to a non-loopback host; clients send Authorization: Bearer ; token mode only |
GITLAB_TIMEOUT | No | 30 | Request timeout in seconds |
GITLAB_SSL_VERIFY | No | true | Set to false to skip SSL verification |
GITLAB_AUTH | No | token | token (PAT from env) or oauth (OAuth 2.1 proxy; see below) |
The server checks these environment variables in order — first match wins:
GITLAB_TOKENGITLAB_PATGITLAB_PERSONAL_ACCESS_TOKENGITLAB_API_TOKENThese accept any of the following token types:
| Token Type | Format | Use Case |
|---|---|---|
| Personal access token | glpat-xxx | User-level access with api scope |
| OAuth2 token | oauth-xxx | OAuth app integrations |
| CI job token | $CI_JOB_TOKEN | GitLab CI pipeline access |
Use this when you run the server for yourself over stdio and have no personal access token. mcp-gitlab auth login signs you in to GitLab as a public OAuth client and stores the tokens locally. The server then reads them at startup and refreshes them on its own. This is not OAuth mode; the server stays in token mode and nothing on the MCP wire changes.
Three commands:
mcp-gitlab auth login # device flow by default; add --web for the browser flow
mcp-gitlab auth status # show the stored account, scopes, and token freshness mcp-gitlab auth logout # revoke the token at GitLab and delete the local copy
auth login prints a code and a URL. Open the URL, enter the code, and approve. The server then works with GITLAB_URL set and no token.
Each sign-in needs an OAuth application ID. Resolution order: --client-id, then GITLAB_OAUTH_CLIENT_ID, then a built-in default for https://gitlab.com.
The gitlab.com default is not registered yet. Until it is, set GITLAB_OAUTH_CLIENT_ID or pass --client-id for gitlab.com too.
Create an application under User Settings → Applications → Add new application with these settings:
| Field | Value |
|---|---|
| Name | mcp-gitlab |
| Redirect URI | http://127.0.0.1/callback (loopback IP, no port) |
| Confidential | unchecked (public client) |
| Scopes | api, read_api |
Use 127.0.0.1, not localhost. The device flow needs GitLab 17.9 or later; on older instances use mcp-gitlab auth login --web.
Credentials live in ~/.config/mcp-gitlab/credentials.json, one entry per GitLab URL, mode 0600. An environment token always wins: if GITLAB_TOKEN is set, the server uses it and ignores the stored credentials.
Pass --scopes read_api for a read-only session; the server then blocks write tools before any API call.
For a server shared by several people, --auth oauth turns mcp-gitlab into an MCP 2026-07-28 resource server with GitLab as the upstream OAuth provider: each user signs in with their own GitLab account, every request runs with that user's token, and no personal access token is configured on the server. Use it when you host the server once and multiple users connect to it; keep the default --auth token for a single-user local setup.
OAuth mode requires --transport streamable-http (OAuth applies to HTTP only; stdio keeps using the environment token).
1. Register a GitLab OAuth application (User Settings → Applications, or a group/instance application). Set the redirect URI to /auth/callback (e.g. https://mcp.example.com/auth/callback), mark it confidential, and grant the api scope (or read_api for a read-only deployment). Copy the Application ID and Secret.
2. Configure the server:
| Variable | Required | Default | Description |
|---|---|---|---|
GITLAB_URL | Yes | - | GitLab instance; also the upstream authorization server |
GITLAB_OAUTH_CLIENT_ID | Yes | - | Application ID (oauth mode, or local sign-in) |
GITLAB_OAUTH_CLIENT_SECRET | Yes | - | Its secret |
GITLAB_OAUTH_BASE_URL | Yes | - | Public URL of this server, no trailing slash (e.g. https://mcp.example.com). Resource URL is /mcp |
GITLAB_OAUTH_SCOPES | No | api | Space-separated GitLab scopes required on every request. For a read-only OAuth deployment set read_api here *and* MCP_READ_ONLY=true, so write tools are hidden server-wide and per-user tokens lack write scope |
GITLAB_OAUTH_JWT_KEY | No | derived | FastMCP JWT signing key, ≥ 32 random chars. Set it in production so client registrations survive a client-secret rotation |
FASTMCP_HOME | No | platform data dir | The encrypted token store lives at $FASTMCP_HOME/oauth-proxy/ / |
GITLAB_URL=https://gitlab.com GITLAB_AUTH=oauth \
GITLAB_OAUTH_CLIENT_ID=... GITLAB_OAUTH_CLIENT_SECRET=... \ GITLAB_OAUTH_BASE_URL=https://mcp.example.com \ uvx mcp-gitlab --transport streamable-http
Point an MCP client (or the MCP Inspector, pnpm dlx @modelcontextprotocol/inspector) at /mcp; it discovers the authorization server, runs the OAuth flow, and each tool call then uses that user's GitLab token. A read_api-only token can read but is refused writes with an actionable hint.
Full guide, client setup and troubleshooting: docs/oauth.md.
| Client | Supported | Install Method |
|---|---|---|
| Claude Desktop | Yes | claude_desktop_config.json |
| Claude Code | Yes | claude mcp add |
| Cursor | Yes | One-click deeplink or .cursor/mcp.json |
| VS Code Copilot | Yes | One-click deeplink or .vscode/mcp.json |
| Windsurf | Yes | ~/.codeium/windsurf/mcp_config.json |
| Any MCP client | Yes | stdio or HTTP transport |
mcp-gitlab implements the Model Context Protocol. It supports the 2026-07-28 specification, often called MCP 2.0. It stays compatible with 2025-11-25 clients.
冒頭だけを表示しています。続きはリポジトリで読めます