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

@butterfly-liu/gitlab-mcp

v1.0.3

Published

MCP (Model Context Protocol) server for GitLab: list projects, commits, files, merge requests; list/create/update/delete issues and issue notes; list/get/create/update/delete wiki pages.

Downloads

138

Readme

GitLab MCP

Model Context Protocol (MCP) server for GitLab. Exposes GitLab projects, commits, files, merge requests, issues, and wiki pages as MCP tools for use in Cursor, Claude Desktop, or other MCP clients.

Features

  • list_projects — List all GitLab projects (membership-based, up to 100)
  • list_commits — List repository commits for a project
  • get_file — Get file content from a project at a given ref (branch/tag/commit)
  • list_merge_requests — List merge requests for a project
  • list_issues — List issues for a project (optional: state, labels, iids)
  • create_issue — Create an issue in a project
  • get_issue — Get a single issue by project and issue IID
  • update_issue — Update an issue (title, description, state_event, labels, assignees, etc.)
  • delete_issue — Delete an issue from a project
  • add_issue_note — Add a comment/note to an issue
  • list_issue_notes — List notes/comments of an issue
  • list_wiki_pages — List all wiki pages of a project
  • get_wiki_page — Get a single wiki page by slug
  • create_wiki_page — Create a new wiki page
  • update_wiki_page — Update an existing wiki page
  • delete_wiki_page — Delete a wiki page

Requirements

Installation

From npm :

npm install -g @butterfly-liu/gitlab-mcp
# or as project dependency
npm install @butterfly-liu/gitlab-mcp

Or clone and install locally:

git clone https://github.com/9527crazy/gitlab-mcp.git && cd gitlab-mcp && npm install

Configuration

Required: Set GITLAB_TOKEN in your environment or MCP client config. The server will exit with an error if it is missing.

| Variable | Description | Default | |----------------|-------------------------------------|-------------------| | GITLAB_URL | GitLab base URL (no trailing slash) | https://gitlab.com | | GITLAB_TOKEN | API token (e.g. glpat-xxxx) | required |

Example:

export GITLAB_URL="https://gitlab.com"
export GITLAB_TOKEN="glpat-your-token-here"

Security: Do not commit real tokens. Use environment variables or a secrets manager.

Usage

Run directly

node server.js
# or if installed globally
gitlab-mcp

Or in a project with npm start or npx gitlab-mcp.

The server uses stdio transport and is intended to be launched by an MCP client (e.g. Cursor MCP settings).

Cursor configuration

Add to Cursor MCP settings (e.g. ~/.cursor/mcp.json or project MCP config).

When installed from npm (global or local node_modules):

{
  "mcpServers": {
    "gitlab": {
      "command": "npx",
      "args": ["@butterfly-liu/gitlab-mcp"],
      "env": {
        "GITLAB_URL": "https://gitlab.com",
        "GITLAB_TOKEN": "glpat-your-token"
      }
    }
  }
}

Or with explicit path to server.js:

{
  "mcpServers": {
    "gitlab": {
      "command": "node",
      "args": ["/path/to/gitlab-mcp/server.js"],
      "env": {
        "GITLAB_URL": "https://gitlab.com",
        "GITLAB_TOKEN": "glpat-your-token"
      }
    }
  }
}

Tools Reference

| Tool | Parameters | Description | |------------------------|--------------------------------------------------|-------------| | list_projects | — | List projects (membership, per_page=100) | | list_commits | project_id (number) | List commits for project | | get_file | project_id, file_path, ref | Get file content at ref | | list_merge_requests | project_id (number) | List MRs for project | | list_issues | project_id (number), optional: state, labels, iids | List issues for project | | create_issue | project_id, title, optional: description, labels, assignee_ids, due_date, confidential, issue_type | Create an issue | | get_issue | project_id, issue_iid | Get a single issue | | update_issue | project_id, issue_iid, optional: title, description, state_event, labels, add_labels, remove_labels, assignee_ids, due_date, milestone_id, confidential, discussion_locked, issue_type | Update an issue | | delete_issue | project_id, issue_iid | Delete an issue | | add_issue_note | project_id, issue_iid, body | Add a comment/note to an issue | | list_issue_notes | project_id, issue_iid | List notes/comments of an issue | | list_wiki_pages | project_id (number), optional: with_content | List all wiki pages of a project | | get_wiki_page | project_id, slug, optional: render_html, version | Get a single wiki page by slug | | create_wiki_page | project_id, title, content, optional: format | Create a new wiki page | | update_wiki_page | project_id, slug, optional: title, content, format | Update an existing wiki page (at least title or content) | | delete_wiki_page | project_id, slug | Delete a wiki page |

Project IDs are numeric. Wiki page slug is the URL-friendly identifier (e.g. from title; use the slug returned by create/list/get). Issue IID is the project-internal issue number (e.g. #3issue_iid: 3).


Publishing to npm (maintainers)

Note: The unscoped name gitlab-mcp is already taken on npm. Publish under a scoped name, e.g. @butterfly-liu/gitlab-mcp.

Before first publish:

  1. Set package name in package.json: Package name is @butterfly-liu/gitlab-mcp (use your npm username as scope if different).
  2. Fill repo URLs in package.json: Replace your-username in repository, bugs, and homepage with your GitHub/GitLab username or org.
  3. Login: npm login (create account at npmjs.com if needed).
  4. Preview tarball: npm pack --dry-run — only server.js and README.md are included (see files in package.json).
  5. Publish: npm publish --access public (required for scoped packages to be installable by everyone).

After code changes: bump version (e.g. npm version patch) then npm publish --access public.

License

ISC