mcp-atlassian

v3.4.2
@teolin/mcp-atlassian Checked 2 days ago Published 29 days ago

MCP server for Atlassian Jira operations

Model Context Protocol server for Atlassian Jira operations using the Atlassian CLI (acli) running locally, on your machine, completely private. - Dual Authentication: Supports both OAuth (acli) and Basic Auth (API token) with automatic fallback - Jira Ticket Information: Retrieve ticket details including summary, description, and acceptance criteria - Ticket Extraction: Automatically extract Jira ticket keys from text (PR titles, branch names, etc.) - Browser Integration: Opens tickets in your default browser for quick access - Auto-Authentication: Attempts to authenticate using credentials…

Summary extracted from the README.

Atlassian MCP Server

Features

Model Context Protocol server for Atlassian Jira operations using the Atlassian CLI (acli) running locally, on your machine, completely private.

  • Dual Authentication: Supports both OAuth (acli) and Basic Auth (API token) with automatic fallback
  • Jira Ticket Information: Retrieve ticket details including summary, description, and acceptance criteria
  • Ticket Extraction: Automatically extract Jira ticket keys from text (PR titles, branch names, etc.)
  • Browser Integration: Opens tickets in your default browser for quick access
  • Auto-Authentication: Attempts to authenticate using credentials from .env file
  • CLI Integration: Uses Atlassian CLI for seamless Jira access
  • Robust Fallback: Automatically tries multiple auth methods for maximum reliability

This is a local stdio MCP server that runs on your machine and consumes fewer tokens and less context. For comparison with Atlassian's official solution:

Feature This MCP (@teolin/mcp-atlassian) Atlassian Remote MCP Server
Type Local stdio server Remote HTTP server (cloud-hosted)
Authentication OAuth (acli) + Basic Auth (API token) with fallback OAuth
Scope Jira only Jira + Confluence
Setup Install npm package, configure auth (flexible) OAuth setup via Atlassian portal
Access Personal (your machine) Team-wide (enterprise)
Performance Fast (local, no network latency) Network-dependent
Features Ticket info, extraction, browser open Bulk operations, enterprise security

Use this MCP if: You want a lightweight, local solution for Jira ticket operations Use Atlassian's Remote MCP if: You need enterprise features, Confluence access, or team-wide deployment

Prerequisites

  • Node.js >=18.0.0
  • Atlassian CLI (acli) installed and authenticated
  • Jira instance URL
# 1. Install Atlassian CLI
npm install -g @atlassian/forge-cli

# 2. Setup environment
cp .env.example .env
# Add:
#   JIRA_BASE_URL=https://your-domain.atlassian.net
#   JIRA_AUTH_STRATEGY=auto  # auto, oauth, or basic

# Choose one authentication method:
# OAuth (recommended):
#   JIRA_SITE=your-domain.atlassian.net
acli jira auth login --site your-domain.atlassian.net

# OR Basic Auth:
#   JIRA_EMAIL=your-email@example.com
#   JIRA_API_TOKEN=your-api-token

# The MCP automatically tries OAuth first, then falls back to Basic Auth

Setup

Four ways to run this server. Pick one:

Setup What it does Use it when How to
none (npx) Downloads and runs on demand, nothing kept Trying it out, or always want latest
global (npm) Installs once, runs from disk, offline Fastest start, works offline, all projects npm install --global @teolin/mcp-atlassian
local (npm) Install per project / repository, runs offline Fast, offline, Project/team specific npm install @teolin/mcp-atlassian
custom (clone) Runs your own source copy You want to change the server code git clone https://github.com/teo-lin/multi-llm-mcps.git && cd multi-llm-mcps && npm run setup

Usage

Once installed, the server must be registered with your preferred agent(s), so the agent(s) can use it. Pick the relevant one(s) for you.

# no setup (npx):
claude mcp add atlassian --scope user -- npx --yes @teolin/mcp-atlassian
gemini mcp add atlassian npx --yes @teolin/mcp-atlassian
codex  mcp add atlassian -- npx --yes @teolin/mcp-atlassian
devin  mcp add atlassian --scope user -- npx --yes @teolin/mcp-atlassian

# global setup (npm --global): same commands, with the binary instead of npx
claude mcp add atlassian --scope user -- atlassian-mcp
gemini mcp add atlassian atlassian-mcp
codex  mcp add atlassian -- atlassian-mcp
devin  mcp add atlassian --scope user -- atlassian-mcp

# local setup (npm, one project): point at the installed file
claude mcp add atlassian --scope project -- node ./node_modules/@teolin/mcp-atlassian/src/index.js

# custom (clone): register every server in this repo, from the repo root
bash scripts/register-all.sh
# or register just this one, from mcps/Atlassian:
claude mcp add atlassian --scope user -- "$PWD/start-mcp.sh"
gemini mcp add atlassian --scope user "$PWD/start-mcp.sh"
codex  mcp add atlassian -- "$PWD/start-mcp.sh"
devin  mcp add atlassian --scope user -- "$PWD/start-mcp.sh"

npx and global installs do not read this folder's .env — pass config on the command line:

claude mcp add atlassian --scope user --env JIRA_BASE_URL=https://your-domain.atlassian.net -- npx --yes @teolin/mcp-atlassian
gemini mcp add atlassian --scope user -e JIRA_BASE_URL=https://your-domain.atlassian.net npx --yes @teolin/mcp-atlassian
codex  mcp add atlassian --env JIRA_BASE_URL=https://your-domain.atlassian.net -- npx --yes @teolin/mcp-atlassian
devin  mcp add atlassian --scope user -e JIRA_BASE_URL=https://your-domain.atlassian.net -- npx --yes @teolin/mcp-atlassian

The clone setup needs none of this: start-mcp.sh loads .env for you.

Verify and remove

claude mcp list
gemini mcp list
codex  mcp list
devin  mcp list

claude mcp remove atlassian --scope user
gemini mcp remove atlassian --scope user
codex  mcp remove atlassian
devin  mcp remove atlassian --scope user

claude mcp get atlassian, codex mcp get atlassian and devin mcp get atlassian show one server in detail. devin removes from local scope unless you pass --scope, so remove from the same scope you added to.


Available Tools

1. jira_ticket_info

Get detailed information about a Jira ticket.

Parameters:

  • ticket_key (string, required): Jira ticket key (e.g., "PAB-2197")
  • working_directory (string, optional): Working directory path

Features:

  • Retrieves ticket details via Atlassian CLI
  • Extracts acceptance criteria from ticket description
  • Automatically opens ticket in browser
  • Falls back gracefully if CLI fails

2. jira_extract_ticket_from_text

Extract Jira ticket key from text.

Parameters:

  • text (string, required): Text to search for ticket key

Examples:

  • Branch name: feat/PAB-123-description → PAB-123
  • PR title: [ABC-456] Fix bug → ABC-456

3. jira_open_ticket

Open a Jira ticket in the default browser.

Parameters:

  • ticket_key (string, required): Jira ticket key to open

4. jira_auth_status

Check Atlassian CLI authentication status.

Usage Examples

Example 1: Read a ticket

// In Claude Code:
"What does PAB-2791 say?"
// Uses: jira_ticket_info

Example 2: Pull keys out of text

// In Claude Code:
"Which tickets are mentioned in this branch name?"
// Uses: jira_extract_ticket_from_text

Example 3: Open in the browser

// In Claude Code:
"Open PAB-2791 in my browser"
// Uses: jira_open_ticket

Ticket Key Pattern

The server recognizes Jira ticket keys in the format: [A-Z]+-\d+

Examples: PAB-123, PROJ-456, ABC-789