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

@mmtr-tech/gitlab-mcp

v0.5.0

Published

Model Context Protocol server for GitLab API integration

Downloads

84

Readme

@mmtr-tech/gitlab-mcp

MCP-сервер для GitLab API. Даёт ИИ-клиентам (Cursor, Claude Desktop, Claude Code, OpenCode и др.) доступ к проектам, Merge Request'ам, Issues, веткам, тегам/релизам и CI/CD.

Протестирован на: GitLab 17.7.7 (self-hosted)
API: GitLab API v4 (13.x — 17.x+)

Требования

  • Node.js >= 18
  • Personal Access Token GitLab с scope api (для записи) или read_api (только чтение)

Подключение

Добавьте сервер в конфиг MCP-клиента. Переменные окружения обязательны.

Cursor

Settings → MCP или .cursor/mcp.json:

{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": ["-y", "@mmtr-tech/gitlab-mcp"],
      "env": {
        "GITLAB_URL": "https://gitlab.yourdomain.com",
        "GITLAB_TOKEN": "glpat-your_personal_access_token",
        "GITLAB_SSL_VERIFY": "true"
      }
    }
  }
}

Claude Desktop

Файл конфигурации:

  • Linux: ~/.config/Claude/claude_desktop_config.json
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": ["-y", "@mmtr-tech/gitlab-mcp"],
      "env": {
        "GITLAB_URL": "https://gitlab.yourdomain.com",
        "GITLAB_TOKEN": "glpat-your_personal_access_token",
        "GITLAB_SSL_VERIFY": "true"
      }
    }
  }
}

OpenCode

Конфиг: opencode.json / opencode.jsonc (проект или глобальный). Формат отличается от Cursor — см. доку OpenCode.

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "gitlab": {
      "type": "local",
      "command": ["npx", "-y", "@mmtr-tech/gitlab-mcp"],
      "enabled": true,
      "environment": {
        "GITLAB_URL": "https://gitlab.yourdomain.com",
        "GITLAB_TOKEN": "glpat-your_personal_access_token",
        "GITLAB_SSL_VERIFY": "true"
      },
      "timeout": 60000
    }
  }
}

Замечания:

  • Поля: environment (не env), один массив command (не command + args).
  • Таймаут загрузки tools по умолчанию 5 с; первый npx часто не успевает — укажите timeout (мс), как выше.
  • После правки конфига перезапустите OpenCode Desktop.

Claude Code и другие клиенты

Тот же блок command / args / env в .mcp.json (или аналоге клиента).

После смены конфига перезапустите клиент (или Reload Window), чтобы подтянуть список tools.

Переменные окружения

| Переменная | Обязательная | Описание | |------------|--------------|----------| | GITLAB_URL | да | Базовый URL инстанса, например https://gitlab.com или ваш self-hosted | | GITLAB_TOKEN | да | Personal Access Token | | GITLAB_SSL_VERIFY | нет | true по умолчанию; false — для самоподписанного сертификата | | GITLAB_TIMEOUT_MS | нет | Таймаут HTTP-запросов в мс (по умолчанию 30000) |

Возможности (84 инструмента)

  • Репозитории: поиск проектов, детали, смена default branch, чтение файла, дерево каталога, поиск по коду, labels
  • Merge settings: get/update метода merge, squash, проверки pipeline/discussions перед merge
  • Merge Requests: список/детали, diff, коммиты, комментарии и треды, approve, создание/обновление/merge/rebase/close/reopen, inline-комментарии
  • Issues: список, детали, создание, update, close/reopen, комментарии, список notes
  • Ветки и коммиты: CRUD веток, история и diff коммитов
  • Protected branches: list/get/protect/update/unprotect (уровни доступа, force push, флаг CODEOWNERS)
  • Protected tags: list/get/protect/unprotect
  • Approval rules: list/create/update/delete правил аппрува MR (часто Premium/EE)
  • Members: list/add/edit/remove участников проекта
  • Tags & Releases: CRUD тегов; releases list/get/create/update/delete
  • CI/CD: пайплайны (фильтры ref/sha), джобы, логи (tail_lines), trigger/cancel/retry/play, пайплайны MR
  • Прочее: текущий пользователь (get_current_user)

Замечания:

  • search_code нужен Advanced Search / Zoekt на инстансе; иначе вернётся понятная ошибка.
  • Крупные ответы (get_mr_diff, get_job_trace, содержимое файлов и др.) обрезаются по max_chars (по умолчанию ~80 000). Для длинных логов используйте tail_lines.
  • Tools для protected branches/tags, merge settings, members и default branch требуют Maintainer+ и токен со scope api.
  • Уровни доступа (ветки/теги): 0 No one, 30 Developer, 40 Maintainer.
  • Уровни участников: 10 Guest, 20 Reporter, 30 Developer, 40 Maintainer, 50 Owner.
  • Approval rules проекта могут требовать GitLab Premium/EE.

Лицензия

MIT


На странице npm отображается английский README.md. Этот файл — русская версия; он лежит в установленном пакете (node_modules/@mmtr-tech/gitlab-mcp/README.ru.md).