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

gd-gitlab-mcp

v1.0.1

Published

GitLab MCP server — HTTP and stdio transport

Downloads

44

Readme

GitLab MCP Server

MCP server for GitLab — supports both HTTP and stdio transport.

Features

  • Search projects
  • List & inspect merge requests + diffs
  • Review, comment, approve / reject MR
  • Open & merge MR
  • Trigger & monitor pipelines

Quickstart (stdio — recommended for local use)

{
  "mcpServers": {
    "gitlab-mcp": {
      "command": "npx",
      "args": ["-y", "gd-gitlab-mcp", "--stdio"],
      "env": {
        "GITLAB_BASE_URL": "https://gitlab.example.com",
        "GITLAB_TOKEN": "YOUR_GITLAB_PAT"
      }
    }
  }
}

GITLAB_TOKEN — GitLab Personal Access Token with api scope.


Transport Modes

Mode 1: stdio (local, no server needed)

The MCP client spawns the process directly. Configure as shown above.

VS Code (mcp.json)

{
  "servers": {
    "gitlab-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "gd-gitlab-mcp", "--stdio"],
      "env": {
        "GITLAB_BASE_URL": "https://gitlab.example.com",
        "GITLAB_TOKEN": "YOUR_GITLAB_PAT"
      }
    }
  }
}

Claude Desktop / Claude Code (~/.claude/mcp.json)

{
  "mcpServers": {
    "gitlab-mcp": {
      "command": "npx",
      "args": ["-y", "gd-gitlab-mcp", "--stdio"],
      "env": {
        "GITLAB_BASE_URL": "https://gitlab.example.com",
        "GITLAB_TOKEN": "YOUR_GITLAB_PAT"
      }
    }
  }
}

Mode 2: HTTP server (shared / team deployment)

Run the server once, multiple users connect via URL. Each user provides their own PAT per request via header — the token is never stored server-side.

Requirements

  • Node.js 20+

Environment

GITLAB_BASE_URL=https://gitlab.example.com
PORT=4000  # optional, default 4000

Run

npm install
npm run build
npm start

Server listens at http://localhost:4000/mcp.

Docker

docker build -t gd-gitlab-mcp:latest .
docker run --rm -p 4000:4000 \
  -e GITLAB_BASE_URL=https://gitlab.example.com \
  gd-gitlab-mcp:latest

VS Code (mcp.json)

{
  "servers": {
    "gitlab-mcp": {
      "type": "http",
      "url": "http://localhost:4000/mcp",
      "headers": {
        "x-gitlab-token": "YOUR_GITLAB_PAT"
      }
    }
  }
}

Claude Code CLI

claude mcp add --transport http --scope user gitlab-mcp \
  http://localhost:4000/mcp --header "x-gitlab-token: YOUR_GITLAB_PAT"

Tools Available

| Tool | Description | |------|-------------| | search_projects | Search projects by name/path | | resolve_project | Resolve project query to project ID | | list_user_repositories | List repositories by access scope | | list_merge_requests | List MRs with optional filters | | get_merge_request | Get MR details including approvals | | get_merge_request_diff | Get MR diff/changes | | merge_readiness_check | Check if MR is ready to merge | | check_project_merge_requests | Resolve project + list open MRs in one call | | get_mr_discussions | Get MR discussion threads | | merge_request_action | comment / review / approve / merge / reject | | open_merge_request | Open a new MR | | merge_merge_request | Merge an MR | | reject_merge_request | Reject and close an MR | | run_staging_pipeline | Trigger staging pipeline | | check_pipeline_status | Check pipeline status | | list_pipeline_jobs | List jobs in a pipeline | | retry_pipeline_job | Retry a failed job |


Development

npm install
npm run dev  # HTTP mode with hot reload

Publish

npm run build
npm publish

Requires npm login with access to `` on npm registry.