Token导航 LogoToken导航TokenDH.com
Wikijs MCP Server Npm logo
开发工具未说明官方级别未说明来源级核验

Wikijs MCP Server Npm

MCP Server

一个连接Claude和其他MCP客户端到GitLab实例(自托管或gitlab.com)的Model Context Protocol(MCP)服务器,提供58种工具,涵盖项目、仓库、合并请求、问题、流水线、发布、组、搜索等功能。

工具数

58

提示词数

0

GitHub Stars

0

资源数

0
GitLab集成开发工具TypeScriptClaudeAPI集成Claude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

smith8ca

提供方

smith8ca

最后核验

2026/5/17 20:20

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

GitLab MCP Server

![License: MIT](LICENSE) ](https://nodejs.org)

![Pipeline](https://gitlab.chuck.prod/smith8ca/gitlab-mcp-server-npm)

A Model Context Protocol (MCP) server that connects Claude (and other MCP clients) to a GitLab instance (self-hosted or gitlab.com). Exposes 58 tools covering projects, repositories, merge requests, issues, pipelines, releases, groups, search, and more.

- Run directly - Register with Claude Code

- Projects - Repository - Merge Requests - Issues - Pipelines - Releases - Users \& Groups - Search - Labels, Milestones \& Members

Requirements

  • Node.js 20.6+ (required for the --env-file flag used by npm start)
  • A GitLab Personal Access Token with the api scope
Note: Node.js 18+ can also run the server if you export GITLAB_URL and GITLAB_TOKEN manually before invoking node src/index.js.

Installation

git clone https://gitlab.chuck.prod/smith8ca/gitlab-mcp-server-npm.git
cd gitlab-mcp-server-npm
npm install

Configuration

Copy the example environment file and fill in your values:

cp .env.example .env

.env:

GITLAB_URL=https://your-gitlab.com
GITLAB_TOKEN=glpat-xxxxxxxxxxxxxxxxxxxx

# Optional: request timeout in ms (default: 30000)
# GITLAB_REQUEST_TIMEOUT_MS=30000

Create a Personal Access Token at: GitLab → User Settings → Access Tokens with the api scope.

Usage

Run directly

node --env-file=.env src/index.js

The server communicates over stdio and waits silently for MCP client connections. Press Ctrl+C to stop.

Register with Claude Code

claude mcp add gitlab \
  -- node --env-file=/path/to/gitlab-mcp-server/.env \
  /path/to/gitlab-mcp-server/src/index.js

Or add manually to .claude/settings.json:

{
  "mcpServers": {
    "gitlab": {
      "command": "node",
      "args": [
        "--env-file=/path/to/gitlab-mcp-server/.env",
        "/path/to/gitlab-mcp-server/src/index.js"
      ]
    }
  }
}

Verify the server is registered:

claude mcp list

Available Tools

Projects

ToolDescription
list_projectsList accessible projects (filter by name, ownership, membership)
get_projectGet detailed info about a project
fork_projectFork a project into a namespace

Repository

ToolDescription
get_repository_treeList files/directories at a path
get_file_contentGet decoded content of a file
create_or_update_fileCreate or update a file with a commit
list_branchesList branches
create_branchCreate a branch from a ref
delete_branchDelete a branch
list_commitsList commits (filter by branch, date, path)
get_commitGet commit details and diff
list_tagsList tags
compare_refsDiff two branches/tags/commits
delete_fileDelete a file with a commit
create_tagCreate a new tag
delete_tagDelete a tag
get_tagGet details of a specific tag
list_protected_branchesList protected branches
protect_branchProtect a branch
unprotect_branchRemove protection from a branch

Merge Requests

ToolDescription
list_merge_requestsList MRs (filter by state, labels, author, etc.)
get_merge_requestGet full MR details
create_merge_requestOpen a new MR
update_merge_requestUpdate title, description, labels, state
merge_merge_requestAccept and merge an MR
get_merge_request_diffGet MR file diffs
list_merge_request_notesList MR comments
create_merge_request_noteAdd a comment to an MR
list_merge_request_approvalsGet approval status and rules (EE)

Issues

ToolDescription
list_issuesList issues (filter by state, labels, milestone, etc.)
get_issueGet full issue details
create_issueCreate a new issue
update_issueUpdate title, description, state, labels
list_issue_notesList issue comments
create_issue_noteAdd a comment to an issue

Pipelines

ToolDescription
list_pipelinesList pipelines (filter by status, branch)
get_pipelineGet pipeline details and status
create_pipelineTrigger a new pipeline
list_pipeline_jobsList jobs in a pipeline
get_job_logGet CI job log output (truncated to last 50 KB)

Releases

ToolDescription
list_releasesList releases for a project
get_releaseGet details of a specific release
create_releaseCreate a new release
delete_releaseDelete a release (keeps the tag)

Users & Groups

ToolDescription
get_current_userGet the authenticated user's profile
list_groupsList accessible groups
list_group_projectsList projects in a group
get_userGet a specific user's profile by ID
list_group_membersList direct members of a group

Search

ToolDescription
search_projectSearch within a project (blobs, commits, issues, MRs, etc.)
search_globallySearch across all accessible resources

Labels, Milestones & Members

ToolDescription
list_labelsList project labels
create_labelCreate a new label
delete_labelDelete a label
list_milestonesList project milestones
create_milestoneCreate a new milestone
update_milestoneUpdate a milestone
list_project_membersList project members

Project ID Format

All tools that accept a project_id support both formats:

  • Numeric ID: "12345"
  • Namespaced path: "group/project" or "group/subgroup/project"

License

MIT — see LICENSE.

目录标签

目录标签

GitLab集成开发工具TypeScriptClaudeAPI集成本地部署MCP服务器自动化API管理

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

token

工具数量(toolCount,工具数)

58

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明token部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP