GitLab MCP Server
io.github.zereight/gitlab-mcp
- 용도
- 개발 도구
- 방식
- 로컬 설치
- 저장소 별
- 2,110개
- 저장소 마지막 갱신
- 2026-11-16
- 라이선스
- MIT
- 레지스트리 최신판
- 2.3.28
남이 만든 프로그램입니다. 설치하기 전에 이 저장소의 코드와 요구하는 권한을 확인하세요. 설치 전 안내
소개
GitLab의 프로젝트, 머지 리퀘스트, 이슈, 파이프라인, 위키, 릴리스 등을 AI 도구에서 다룹니다.
붙이는 법
먼저 읽기
저장소의 코드와 설명을 열어 이 서버가 무엇을 하고 어떤 권한을 달라고 하는지 확인합니다. 저장소 열기 →
클로드 코드에 붙이기
로컬 · npm 패키지
@zereight/mcp-gitlabclaude mcp add --transport stdio gitlab-mcp -- npx -y @zereight/mcp-gitlab로컬 · 도커 이미지
docker.io/zereight050/gitlab-mcp:2.3.28claude mcp add --transport stdio gitlab-mcp -- docker run -i --rm docker.io/zereight050/gitlab-mcp:2.3.28터미널에 붙여 넣습니다. 바로 뒤에
claude mcp list로 연결 상태를 볼 수 있고, 클로드 코드 안에서는/mcp로 봅니다. 뺄 때는claude mcp remove gitlab-mcp입니다.명령이 여럿이면 하나만 골라 붙입니다. 모두 같은 이름(
gitlab-mcp)이라 두 번째는 「이미 있다」며 거부됩니다.이 명령은 레지스트리에 적힌 값으로 만든 것이라 낡았을 수 있습니다. 저장소 README의 최신 설치법과 다르면 README가 우선입니다.
다른 AI 도구에 붙일 때
위의 주소나 패키지 이름이 그대로 필요합니다. 넣는 화면은 도구마다 달라서, 그 도구의 MCP 설정 문서를 따릅니다.
필요한 설정
레지스트리에 적힌 항목이고, 설명 칸은 레지스트리 원문(영어) 그대로입니다. 값은 그 서비스에서 직접 받아야 하고, 남에게 보이는 곳에 적으면 안 됩니다. 키가 든 서버는 위 명령 그대로(내 컴퓨터에만 저장되는 기본 방식) 붙입니다. --scope project를 붙이면 설정이 프로젝트의 .mcp.json에 써지는데, 클로드 코드 문서는 이 파일을 저장소에 함께 올리라고 안내하니 키를 넣으면 같이 올라갑니다.
| 이름 | 종류 | 필수 | 설명 |
|---|---|---|---|
GITLAB_PERSONAL_ACCESS_TOKEN | 환경변수 비밀값 | 선택 | GitLab personal access token for local stdio use. A non-empty value overrides GITLAB_PERSONAL_ACCESS_TOKEN_FILE. One of this token, GITLAB_PERSONAL_ACCESS_TOKEN_FILE, GITLAB_JOB_TOKEN, GITLAB_AUTH_COOKIE_PATH, or GITLAB_USE_OAUTH=true must be set. Create a token with the GitLab scopes the tools need, such as api or read_api. |
GITLAB_PERSONAL_ACCESS_TOKEN_FILE | 환경변수 | 선택 | Path to a file that contains the personal access token. Read once at startup and trimmed. Ignored when GITLAB_PERSONAL_ACCESS_TOKEN or --token is non-empty. A missing, unreadable, or empty file stops startup. Does not replace job token, OAuth, cookie, or remote authorization. |
GITLAB_JOB_TOKEN | 환경변수 비밀값 | 선택 | Optional GitLab CI job token to use instead of a personal access token when running inside GitLab CI. |
GITLAB_AUTH_COOKIE_PATH | 환경변수 | 선택 | Optional path to a GitLab authentication cookie file for cookie-based authentication. |
GITLAB_USE_OAUTH | 환경변수 | 선택 | Set to true to start with GitLab OAuth instead of a personal access token, job token, or cookie file. |
GITLAB_OAUTH_CLIENT_ID | 환경변수 | 선택 | GitLab OAuth application ID. When GITLAB_USE_OAUTH=true, set this or GITLAB_OAUTH_TOKEN_SCRIPT. |
GITLAB_OAUTH_TOKEN_SCRIPT | 환경변수 | 선택 | Command that prints an OAuth access token. When GITLAB_USE_OAUTH=true, set this or GITLAB_OAUTH_CLIENT_ID. |
GITLAB_API_URL | 환경변수 | 선택 | GitLab API base URL. Use https://gitlab.com/api/v4 for GitLab.com or your self-managed GitLab API URL. |
GITLAB_ALLOWED_PROJECT_IDS | 환경변수 | 선택 | Optional comma-separated list of GitLab project IDs that this server is allowed to access. |
GITLAB_PERMISSION_MODE | 환경변수 | 선택 | Tool exposure. Allowed values are readonly, modify, and full. Unset uses full. readonly keeps read-only tools. modify blocks delete and teardown tools. |
GITLAB_TOOLSETS | 환경변수 | 선택 | Optional comma-separated toolset ids (projects, issues, merge_requests, …). Unset keeps the lean core default plus discover_tools. Do not set all unless you accept loading ~all schemas (~73k tokens). |
GITLAB_TOOLS | 환경변수 | 선택 | Optional comma-separated list of individual tool names to add on top of enabled toolsets. |
GITLAB_DENIED_TOOLS_REGEX | 환경변수 | 선택 | Optional regular expression used to hide matching tools from the server. |
GITLAB_TOOL_POLICY_APPROVE | 환경변수 | 선택 | Optional comma-separated list of tool names that require explicit approval before execution. |
GITLAB_TOOL_POLICY_HIDDEN | 환경변수 | 선택 | Optional comma-separated list of tool names to hide from tools/list. |
NODE_TLS_REJECT_UNAUTHORIZED | 환경변수 | 선택 | Set to 0 only when you intentionally need to connect to a GitLab instance with invalid or self-signed TLS certificates. |
GITLAB_CA_CERT_PATH | 환경변수 | 선택 | Optional path to a custom CA certificate file for self-managed GitLab instances. |
GITLAB_MASKING_ENABLED | 환경변수 | 선택 | Set to true to mask text tool results and returned errors using built-in or configured rules. |
GITLAB_MASKING_CONFIG | 환경변수 | 선택 | Optional path to a response-masking JSON configuration file. |
GITLAB_MASKING_POLICY_FILE | 환경변수 | 선택 | Optional protected server-owned JSON file containing managed masking policies. |
GITLAB_MASKING_WORKSPACE_DIR | 환경변수 | 선택 | Directory used to resolve response-masking configuration paths. |
링크
출처 · MCP 공식 레지스트리 · 별 수 GitHub · 매주 갱신