GitLab MCP Server
自定义 GitLab MCP 服务器
GitLab MCP(模型上下文协议)服务器的自定义实现,用于与 Claude 和其他符合 MCP 的 AI 助手集成。
概述
该 MCP 服务器与 GitLab 存储库无缝集成,允许 AI 助手:
搜索 GitLab 存储库
获取文件内容
创建或更新文件
在一次提交中推送多个文件
创建问题并合并请求
分叉存储库
创建分支
Related MCP server: GitLab MCP Server
固定实施
此自定义实现修复了标准 GitLab MCP 服务器实现中存在的模式验证问题,特别是针对search_repositories工具。
安装
克隆此存储库
安装依赖项:
npm install在您的 Claude 设置文件或 Claude Desktop 配置文件中进行配置:
{ "mcpServers": { "github.com/modelcontextprotocol/servers/tree/main/src/gitlab": { "command": "node", "args": [ "/path/to/custom-gitlab-server/index.js" ], "env": { "GITLAB_PERSONAL_ACCESS_TOKEN": "your-gitlab-token", "GITLAB_API_URL": "https://your-gitlab-instance/api/v4" } } } }
先决条件
Node.js(v14 或更高版本)
具有适当范围的 GitLab 个人访问令牌:
api用于完整 API 访问read_api用于只读访问read_repository和write_repository用于存储库操作
可用工具
工具名称 | 描述 |
| 搜索 GitLab 项目 |
| 获取文件或目录的内容 |
| 创建或更新单个文件 |
| 在一次提交中推送多个文件 |
| 创建新的 GitLab 项目 |
| 创建新问题 |
| 创建新的合并请求 |
| 派生一个项目 |
| 创建新分支 |
执照
麻省理工学院
This server cannot be deployed
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Read and write KukGit repositories, files, issues and pull requests from an AI assistant.
Connect AI assistants to your GitHub-hosted Obsidian vault to seamlessly access, search, and analy…
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Related MCP Servers
- -licenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol server that enables AI assistants to interact with GitLab repositories, allowing tasks like managing merge requests, searching projects, and creating comments through RESTful API integration.5 npm2-
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with GitLab for managing projects, branches, issues, and merge requests. It provides tools for searching code and performing file operations like reading and writing directly within repositories.4 npmMIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants to interact with self-hosted GitLab instances through 30 specialized tools. It supports managing projects, merge requests, CI/CD pipelines, and repository operations via the GitLab REST API v4.30MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact seamlessly with self-hosted GitLab instances, supporting repository operations, issue management, merge requests, CI/CD pipelines, and more.150 PyPI5MIT
Appeared in Searches
- A server for managing GitLab self-hosted Issues and Wiki via API operations
- Integrated development server combining live documentation, cloud infrastructure knowledge bases, tech blogs, local RAG for ebooks, and GitHub repository intelligence with code linting
- How to clone a GitLab repository
- How to review merge requests in GitLab
- An official MCP server for Jira