MCP Gitlab Jira logo

MCP Gitlab Jira

by HainanZhao

MCP server providing AI agent access to GitLab projects, merge requests, pipelines, branches, issues, files, releases, and Jira tickets.

Install MCP Gitlab Jira

Run the project’s own setup commands, in order.

Setup steps from the project

HainanZhao/mcp-gitlab-jira installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    npm i -g mcp-gitlab-jira
    
  2. 2. Start the server
    docker run -d --name mcp-gitlab-jira-container \
          -e GITLAB_URL="https://your-gitlab-instance.com" \
          -e GITLAB_ACCESS_TOKEN="your-personal-access-token" \
          -e ATLASSIAN_SITE_NAME="your-atlassian-site-name" \
          -e ATLASSIAN_USER_EMAIL="your-email@example.com" \
          -e ATLASSIAN_API_TOKEN="your-jira-api-token" \
          hainanzhao/mcp-gitlab-jira:latest
    
  3. 3. Start the server
    docker run --rm -i \
          -e GITLAB_URL="https://your-gitlab-instance.com" \
          -e GITLAB_ACCESS_TOKEN="your-personal-access-token" \
          -e ATLASSIAN_SITE_NAME="your-atlassian-site-name" \
          -e ATLASSIAN_USER_EMAIL="your-email@example.com" \
          -e ATLASSIAN_API_TOKEN="your-jira-api-token" \
          hainanzhao/mcp-gitlab-jira:latest
    
  4. 4. Start the server
    mcp-gitlab-jira
    

Overview

This MCP server integrates GitLab and Jira, exposing APIs to manage GitLab projects, merge requests, pipelines, branches, issues, files, and releases, as well as Jira tickets and projects. It is suitable for AI agents needing programmatic access to both GitLab and Jira for development and project management tasks. Use it when you want to automate or augment workflows involving GitLab CI/CD, code reviews, issue tracking, and Jira ticket management.

Use cases

  • List and filter GitLab projects and merge requests
  • Manage GitLab pipelines: trigger, retry, cancel, and fetch logs
  • Create, update, and close GitLab issues
  • Access and modify Jira tickets and transitions
  • Retrieve file contents and release information from GitLab

Key features

  • GitLab project, merge request, pipeline, branch, issue, file, and release management
  • Jira ticket retrieval, creation, update, commenting, and transitions
  • User and project member listing for GitLab
  • Pipeline job and log access for GitLab CI/CD
  • Supports both on-premise and GitLab.com instances

Tools48

What MCP Gitlab Jira lets your agent do. Expand a tool for its parameters.

Self-reported~1.1k tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

23/23 checks healthy over the last 110d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars11Stargazers on the source repository.
Last commit1y agoMost recent push to the default branch.
Tools exposed48Callable tools this server registers over MCP.
Directory activity2 viewsConfig copies, upvotes, and views on AllMCPs.

From the project README

MCP GitLab Jira Server

A Model Context Protocol (MCP) server for GitLab and Jira integration. This server allows AI agents like gemini-cli to interact with your GitLab and Jira instances.

Features

GitLab

  • Projects: List all accessible projects or filter them by name.
  • Merge Requests: List merge requests for a project, get detailed information (including diffs), add comments, and assign reviewers.
  • Pipeline/CI/CD: Get pipeline status, trigger/retry/cancel pipelines, get job details and logs.
  • Branch Management: List, create, delete branches and get branch details.
  • Issue Management: Create, list, update, close issues and manage comments.
  • Files: Get the content of a specific file at a given SHA.
  • Releases: List all releases for a project or filter them since a specific version.
  • Users: List project members, get a user's ID by username, and get user activities.

Jira

  • Tickets: Get detailed information about a ticket, get comments, add comments, search for tickets using JQL, create new tickets, get available transitions, update tickets, and transition tickets to a new status.
  • Project Management: Get all projects, project details, components, and versions.

Setup

Prerequisites

  • Node.js 18+
  • GitLab Personal Access Token with API access
  • Jira API Token
  • Access to a GitLab instance (on-premise or GitLab.com)
  • Access to a Jira instance

Installation

  1. Install the package globally:

    Terminal
    npm i -g mcp-gitlab-jira
    
  2. Set up environment variables:

    server.ts
    # GitLab
    export GITLAB_URL="https://your-gitlab-instance.com"
    export GITLAB_ACCESS_TOKEN="your-personal-access-token"
    
    # Jira
    export ATLASSIAN_SITE_NAME="your-atlassian-site-name"
    export ATLASSIAN_USER_EMAIL="your-email@example.com"
    export ATLASSIAN_API_TOKEN="your-jira-api-token"
    
  3. Test the server manually:

    bash
    # Test that the server starts without errors
    echo '{"jsonrpc": "2.0", "id": 1, "method": "tools/list", "params": {}}' | mcp-gitlab-jira
    

    The server should start and log "GitLab/Jira MCP server started" to stderr.

Using with MCP Clients

Configuration for gemini-cli or other MCP clients

Create or update your MCP configuration file (usually ~/.mcp/config.json or similar):

config.json
{
  "mcpServers": {
    "gitlab-jira-mcp": {
      "command": "mcp-gitlab-jira",
      "env": {
        "GITLAB_URL": "https://your-gitlab-instance.com",
        "GITLAB_ACCESS_TOKEN": "your-personal-access-token",
        "ATLASSIAN_SITE_NAME": "your-atlassian-site-name",
        "ATLASSIAN_USER_EMAIL": "your-email@example.com",
        "ATLASSIAN_API_TOKEN": "your-jira-api-token"
      }
    }
  }
}

Running with Docker

You can also run this MCP server in a Docker container using the pre-built image from Docker Hub.

Available Docker Images

The Docker images are automatically built and published to Docker Hub for each release:

  • Latest release: hainanzhao/mcp-gitlab-jira:latest
  • Specific versions: hainanzhao/mcp-gitlab-jira:v0.1.2, hainanzhao/mcp-gitlab-jira:v0.1.1, etc.
  • View all available tags: Docker Hub - mcp-gitlab-jira

The images are built for multiple architectures: linux/amd64 and linux/arm64 (Apple Silicon compatible).

Usage

  1. Pull and run the Docker container:

    Terminal
    docker run -d --name mcp-gitlab-jira-container \
      -e GITLAB_URL="https://your-gitlab-instance.com" \
      -e GITLAB_ACCESS_TOKEN="your-personal-access-token" \
      -e ATLASSIAN_SITE_NAME="your-atlassian-site-name" \
      -e ATLASSIAN_USER_EMAIL="your-email@example.com" \
      -e ATLASSIAN_API_TOKEN="your-jira-api-token" \
      hainanzhao/mcp-gitlab-jira:latest
    
  2. Alternative: Run without persistent container (one-time execution):

    Terminal
    docker run --rm -i \
      -e GITLAB_URL="https://your-gitlab-instance.com" \
      -e GITLAB_ACCESS_TOKEN="your-personal-access-token" \
      -e ATLASSIAN_SITE_NAME="your-atlassian-site-name" \
      -e ATLASSIAN_USER_EMAIL="your-email@example.com" \
      -e ATLASSIAN_API_TOKEN="your-jira-api-token" \
      hainanzhao/mcp-gitlab-jira:latest
    

Using with MCP Clients (Docker)

You have two options for using the Docker container with MCP clients:

Option 1: Using a persistent container (recommended)

First, start the container as shown above, then update your MCP configuration file. The env block is empty because the necessary environment variables are passed directly to the container using the -e flag in the docker run command.

config.json
{
  "mcpServers": {
    "gitlab-jira-mcp": {
      "command": "docker",
      "args": ["exec", "-i", "mcp-gitlab-jira-container", "npm", "start"],
      "env": {}
    }
  }
}

Option 2: Using one-time execution

This runs a new container for each MCP session:

config.json
{
  "mcpServers": {
    "gitlab-jira-mcp": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-e", "GITLAB_URL=https://your-gitlab-instance.com",
        "-e", "GITLAB_ACCESS_TOKEN=your-personal-access-token",
        "-e", "ATLASSIAN_SITE_NAME=your-atlassian-site-name",
        "-e", "ATLASSIAN_USER_EMAIL=your-email@example.com",
        "-e", "ATLASSIAN_API_TOKEN=your-jira-api-token",
        "hainanzhao/mcp-gitlab-jira:latest"
      ],
      "env": {}
    }
  }
}

Available Tools

GitLab Tools

Core GitLab Tools

  • gitlab_get_merge_request_details: Fetches detailed information about a GitLab Merge Request, including file diffs.
  • gitlab_get_file_content: Fetches the content of a specific file at a given SHA in a GitLab project.
  • gitlab_add_comment_to_merge_request: Adds a comment to a GitLab Merge Request. Can be a general comment, a reply to an existing discussion, or an inline comment on a specific line.
  • gitlab_list_merge_requests: Lists merge requests for a given GitLab project.
  • gitlab_assign_reviewers_to_merge_request: Assigns reviewers to a GitLab Merge Request.
  • gitlab_list_project_members: Lists all members (contributors) of a given GitLab project.
  • gitlab_list_project_members_by_project_name: Lists all members (contributors) of a given GitLab project by project name.
  • gitlab_list_projects_by_name: Filters GitLab projects by name using a fuzzy, case-insensitive match.
  • gitlab_list_all_projects: Lists all accessible GitLab projects.
  • gitlab_list_all_releases: Fetches releases for a given GitLab project.
  • gitlab_list_releases_since_version: Filters releases for a given GitLab project since a specific version.
  • gitlab_get_user_id_by_username: Retrieves the GitLab user ID for a given username.
  • gitlab_get_user_activities: Fetches activities for a given GitLab user by their username, optionally filtered by date.

GitLab Pipeline/CI/CD Tools

  • gitlab_get_project_pipelines: Gets pipelines for a GitLab project, optionally filtered by branch/ref.
  • gitlab_get_merge_request_pipelines: Gets pipelines for a specific GitLab Merge Request.
  • gitlab_get_pipeline_details: Gets detailed information about a specific pipeline.
  • gitlab_get_pipeline_jobs: Gets jobs for a specific pipeline.
  • gitlab_get_job_logs: Gets logs for a specific job.
  • gitlab_trigger_pipeline: Triggers a new pipeline for a specific branch/ref.
  • gitlab_retry_pipeline: Retries a failed pipeline.
  • gitlab_cancel_pipeline: Cancels a running pipeline.

GitLab Branch Management Tools

  • gitlab_list_branches: Lists all branches in a GitLab project.
  • gitlab_create_branch: Creates a new branch in a GitLab project.
  • gitlab_delete_branch: Deletes a branch from a GitLab project.
  • gitlab_get_branch_details: Gets detailed information about a specific branch.

GitLab Issue Management Tools

  • gitlab_list_project_issues: Lists issues in a GitLab project.
  • gitlab_get_issue_details: Gets detailed information about a specific GitLab issue.
  • gitlab_create_issue: Creates a new issue in a GitLab project.
  • gitlab_update_issue: Updates an existing GitLab issue.
  • gitlab_close_issue: Closes a GitLab issue.
  • gitlab_add_comment_to_issue: Adds a comment to a GitLab issue.
  • gitlab_get_issue_comments: Gets comments for a GitLab issue.

Jira Tools

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Gitlab Jira

You must set GITLAB_URL, GITLAB_ACCESS_TOKEN for GitLab access, and ATLASSIAN_SITE_NAME, ATLASSIAN_USER_EMAIL, ATLASSIAN_API_TOKEN for Jira access.

Yes, official Docker images are available on Docker Hub for multiple architectures, supporting persistent or one-time container usage.

Node.js 18 or higher is required to run this MCP server.

Yes, it supports adding general, discussion reply, and inline comments to merge requests.

Yes, it is designed to work with MCP clients including gemini-cli, with example configuration provided.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Gitlab Jira AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/hainanzhao-mcp-gitlab-jira?style=directory)](https://allmcps.com/mcp/hainanzhao-mcp-gitlab-jira)
HTML Embed
<a href="https://allmcps.com/mcp/hainanzhao-mcp-gitlab-jira"><img src="https://allmcps.com/api/badge/hainanzhao-mcp-gitlab-jira?style=directory" alt="MCP Gitlab Jira on AllMCPs" /></a>