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

gitlab-milestone-mcp-server

v1.0.0

Published

MCP server for GitLab milestone dates

Readme

GitLab Milestone MCP Server

An MCP (Model Context Protocol) server that provides GitLab milestone dates for the gitlab-org group. Inspired by mnohr/milestone-dates.

Tools

get_milestone

Returns the milestone for a given date (defaults to today). Accepts an optional date parameter in YYYY-MM-DD format.

{
  "title": "19.0",
  "start_date": "2026-04-11",
  "due_date": "2026-05-15",
  "release_date": "2026-05-21",
  "quarter": "FY27-Q2",
  "state": "active"
}

list_milestones

Lists milestones with an optional filter parameter:

  • "upcoming" (default) — future milestones
  • "current" — active milestone only
  • "recent" — last 10 completed milestones
  • "all" — everything

Each milestone includes: title, start_date, due_date, release_date (3rd Thursday of the month), fiscal quarter, and state.

Setup

Prerequisites

  • Node.js 18+
  • One of:
    • glab CLI authenticated (glab auth login) — works automatically, no extra config
    • A GitLab personal access token with read_api scope

Build

git clone <repo-url>
cd gitlab-milestone-mcp-server
npm install
npm run build

Add to Claude Code

claude mcp add gitlab-milestones -- node /path/to/gitlab-milestone-mcp-server/dist/index.js

Or with an explicit token:

claude mcp add --env GITLAB_TOKEN=glpat-xxxx gitlab-milestones -- node /path/to/gitlab-milestone-mcp-server/dist/index.js

Add to GitLab Duo CLI

Add the following to ~/.gitlab/duo/mcp.json:

{
  "mcpServers": {
    "gitlab-milestones": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/gitlab-milestone-mcp-server/dist/index.js"],
      "approvedTools": ["get_milestone", "list_milestones"]
    }
  }
}

If you need to pass a token explicitly:

{
  "mcpServers": {
    "gitlab-milestones": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/gitlab-milestone-mcp-server/dist/index.js"],
      "env": {
        "GITLAB_TOKEN": "glpat-xxxx"
      },
      "approvedTools": ["get_milestone", "list_milestones"]
    }
  }
}

Authentication

The server resolves credentials in this order:

  1. GITLAB_TOKEN environment variable (uses PRIVATE-TOKEN header for PATs)
  2. glab CLI token (uses Authorization: Bearer header for OAuth tokens)
  3. Error with instructions if neither is available

Cache

Milestones are cached to ~/.cache/gitlab-milestone-mcp-server/milestones.json and persist across server restarts. The cache refreshes when:

  • No cache file exists
  • No future milestones remain in the cache
  • The cache is older than 7 days

Configuration

| Environment Variable | Default | Description | |---|---|---| | GITLAB_TOKEN | — | GitLab personal access token (optional if glab is configured) | | GITLAB_GROUP_ID | 9970 | GitLab group ID to fetch milestones from |

License

MIT