npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@liyuan.meng/gitlab-mcp-server

v1.0.4

Published

GitLab MCP Server for reading project documentation with configurable defaults and optional parameters

Readme

GitLab MCP Server

一个用于 GitLab 项目文档读取的 MCP(Model Context Protocol)服务端。该服务端可以连接到私有 GitLab 实例,获取项目信息并读取项目中的 Markdown 文档。

🚀 功能特性

  • 🔐 支持私有 GitLab 项目访问
  • 📋 获取项目基本信息(ID、名称、描述等)
  • 📄 批量读取 .md 文件(支持递归搜索)
  • 🎨 多种输出格式(HTML、Markdown、纯文本)
  • ⚙️ 预配置支持(命令行参数 + 环境变量)
  • 🔧 与 Cursor 编辑器无缝集成
  • 🚫 可选参数(支持默认配置,减少重复输入)

🚀 快速开始

方式一:通过 npm 安装(推荐)

# 全局安装
npm install -g @liyuan.meng/gitlab-mcp-server

# 或者使用 npx(无需安装)
npx @liyuan.meng/gitlab-mcp-server --help

方式二:本地开发构建

# 克隆项目
git clone <repository-url>
cd gitlab-mcp-server

# 安装依赖
npm install

# 编译项目
npm run build

1. 获取 GitLab 访问令牌

  1. 登录你的 GitLab 实例
  2. 转到 SettingsAccess Tokens
  3. 创建新令牌,权限选择:read_apiread_repository
  4. 复制生成的令牌(格式:glpat-xxxxxxxxxxxxxxxxxxxx

2. 配置 Cursor

推荐:使用 npx(npm 安装后)

{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": [
        "@liyuan.meng/gitlab-mcp-server",
        "--gitlab-url", "https://gitlab.your-domain.com/group/project",
        "--access-token", "glpat-your-token-here"
      ]
    }
  }
}

或者:本地构建方式

{
  "mcpServers": {
    "gitlab": {
      "command": "node",
      "args": [
        "/path/to/your/gitlab-mcp-server/build/index.js",
        "--gitlab-url", "https://gitlab.your-domain.com/group/project",
        "--access-token", "glpat-your-token-here"
      ]
    }
  }
}

3. 开始使用

# 获取项目信息
get-id

# 获取项目文档
get-docs

# 指定输出格式
get-docs --format markdown

# 覆盖默认配置
get-docs --gitlab-url "https://gitlab.example.com/other/project"

🎯 基本使用

工具说明

| 工具 | 说明 | 参数 | |------|------|------| | get-id | 获取项目基本信息 | gitlab_url (可选), access_token (可选) | | get-docs | 获取项目 Markdown 文档 | gitlab_url (可选), access_token (可选), format (可选) |

使用示例

# 自然语言调用
"获取项目文档"
"帮我查看GitLab项目的README"
"查看商品选择器的用法"

# 直接命令调用
get-docs --format html
get-id --gitlab-url "https://gitlab.example.com/other/project"

📚 文档

📄 许可证

ISC License - 开源且可商用

🆘 需要帮助?

  • 📚 查看 USAGE.md 了解详细使用方法
  • 📖 查看 PROJECT_SUMMARY.md 了解技术细节
  • 🐛 提交 Issue 报告问题
  • 💬 参与讨论和改进