jira-mcp

v1.3.0
@nevzatcirak/jira-mcp Checked 3 days ago Published 9 days ago

Deployment-agnostic Jira MCP server (stdio) for Jira Server, Data Center and Cloud — compact issue cards, semantic actions, full Agile board support

A deployment-agnostic Jira MCP server over stdio — works with Jira Server, Data Center and Cloud with zero hardcoded board IDs, project keys, status names or customfield IDs. ╔══════════════════════════════════════════════════════════╗ ║ 📦 Compact output · issue cards, not raw payloads ║ ║ 🧠 Semantic actions · transition by status name ║ ║ 📋 Full board support· boards, backlog, sprints ║…

Summary extracted from the README.

⚡ JIRA-MCP

A deployment-agnostic Jira MCP server over stdio — works with Jira Server, Data Center and Cloud with zero hardcoded board IDs, project keys, status names or customfield IDs.

╔══════════════════════════════════════════════════════════╗ ║ 📦 Compact output · issue cards, not raw payloads ║ ║ 🧠 Semantic actions · transition by status name ║ ║ 📋 Full board support· boards, backlog, sprints ║ ╚══════════════════════════════════════════════════════════╝

npm version npm downloads CI Publish node License: MIT


🎯 Why this package

Raw Jira REST payloads are enormous — every issue drags avatars, schemas, changelogs, expand lists and renderer metadata into your LLM's context window. This server projects each issue into a ~230 byte card, cutting context cost by ~99% while keeping every field an agent actually needs.

Raw Jira REST payload jira-mcp card projection
Size per issue ~40 KB (typical) ~230 bytes (measured)
Context cost (25 issues) ~1 MB / ~250K tokens (typical) ~5.7 KB / ~1.4K tokens (measured)
Reduction — ~99% smaller

Measurement context (measured values): Jira Server/DC instance, Scrum board (boardId: 10212), jira_get_board_backlog with maxResults=25 — 25 issue cards from the real response, ~230 bytes per issue on average. The raw-payload column has no measured baseline for this instance: it uses the typical v2 search response size of ~40 KB per issue, so those numbers are labeled typical, not measured. Card fields used in the measurement: key, summary, type, status, assignee, priority, labels, parent, updated.

An example card from that measurement, verbatim:

{
  "key": "KAPI-215",
  "summary": "Sync servisindeki OPA güncelleme yeteneğin Kapı tarafından sağlanması",
  "type": "Task",
  "status": "Resolved",
  "assignee": "Barış Buğra ÖZDEMİR",
  "priority": "Medium",
  "labels": [],
  "parent": null,
  "updated": "2026-10-02"
}

Run it yourself with npm run benchmark -- "<your JQL>" — numbers depend on your instance, fields and issue size.


Atlassian MCP Suite

Package Scope
@nevzatcirak/jira-mcp Jira issues, boards, sprints, worklogs
@nevzatcirak/bitbucket-mcp Bitbucket Server/DC + Cloud: PRs, reviews, branches, code search
@nevzatcirak/confluence-mcp Confluence Server/DC + Cloud: pages, CQL search, labels, markdown round-trip

Install the other two depending on the client you use: npx @nevzatcirak/bitbucket-mcp · npx @nevzatcirak/confluence-mcp


✨ Features (33 tools)

🔍 Discovery

Tool Purpose Key parameters
jira_get_server_info Instance version, deployment type, build number —
jira_get_myself Authenticated user (accountId, name, displayName, timeZone) —
jira_list_projects Projects the user can browse query?, startAt?, maxResults?
jira_get_project_meta Required fields + allowed values per issue type — call before create/update project? or issueKey?
jira_find_user Find users by username / display name before assigning query, maxResults?, startAt?
jira_list_watchers Watchers (Monitored By) of an issue: {watchCount, watchers} issueKey
jira_list_transitions Available workflow transitions for an issue, with required transition fields issueKey
jira_list_issue_links Links of an issue as compact cards {id, type, direction, otherIssueKey} issueKey

📖 Reading

Tool Purpose Key parameters
jira_search_issues JQL search returning compact issue cards jql, fields?, startAt?, maxResults?
jira_get_issue One issue + truncated description, optional comments/worklogs issueKey, fields?, maxDescriptionChars?, includeComments?, includeWorklogs?
jira_list_boards Agile boards, filter by project / type / name projectKeyOrId?, type?: scrum|kanban, name?
jira_get_board_backlog Board backlog as issue cards, optional JQL boardId, jql?, pagination
jira_list_sprints Sprints of a board, filter by state boardId, state?: future,active,closed

(also: jira_get_board_issues — issues currently on a board, jira_get_sprint_issues — issues of one sprint)

✍️ Writing

Tool Purpose Key parameters
jira_create_issue Create an issue; returns {key, id, url} project, issueType, summary, description?, assignee?, priority?, labels?, parentKey?, originalEstimate?, remainingEstimate?
jira_update_issue Partial update — only provided fields change issueKey + any create field
jira_transition_issue Semantic move: by target status or transition id issueKey, toStatus? / transitionId?, comment?
jira_assign_issue Assign a user, or unassign with "-none-" issueKey, assignee
jira_add_comment Add a comment (wiki string on Server/DC, ADF on Cloud — automatic) issueKey, comment
jira_add_watcher Add a watcher (Monitored By) to an issue issueKey, username
jira_remove_watcher Remove a watcher from an issue issueKey, username

Estimates (time tracking). jira_create_issue and jira_update_issue accept originalEstimate and remainingEstimate as Jira duration strings ("2h", "1d 4h", "30m", "1w 2d 3h"):

{ "tool": "jira_update_issue", "arguments": { "issueKey": "ABC-123", "originalEstimate": "2h" } }

Note: duration units are interpreted by the instance's time tracking settings — 1d means hoursPerDay hours, which can differ per instance (so "1d" is not always the same number of seconds everywhere). Estimates are only sent when provided; on update, fields you omit are left untouched. On Cloud, a known Atlassian bug (JRACLOUD-67539) makes a single-field update overwrite the other estimate — send both together on Cloud.

Watchers (Monitored By). Jira's Monitored By field is the watchers API. Use jira_add_watcher / jira_remove_watcher / jira_list_watchers to manage who follows a task — for example, adding the whole team as watchers of a meeting task so everyone gets update mails:

{ "tool": "jira_add_watcher", "arguments": { "issueKey": "ABC-123", "username": "jdoe" } }
{ "tool": "jira_add_watcher", "arguments": { "issueKey": "ABC-123", "username": "asmith" } }
{ "tool": "jira_add_watcher", "arguments": { "issueKey": "ABC-123", "username": "mbrown" } }
{ "tool": "jira_list_watchers", "arguments": { "issueKey": "ABC-123" } }
{ "watchCount": 3, "watchers": [{ "name": "jdoe", "displayName": "Jane Doe", "active": true }, { "name": "asmith", "displayName": "Alice Smith", "active": true }, { "name": "mbrown", "displayName": "Mike Brown", "active": true }] }

On Server/DC the username is sent as ?username=; on Cloud a display name is resolved to the accountId first and sent as {"accountId": ...} — chosen automatically from the deployment type. Adding an already-watching user is a no-op that reports "alreadyWatching": true.

Workflows with required transition fields. Some transitions require extra fields (e.g. an "Active" transition that demands Original Estimate). jira_list_transitions expands transitions.fields and reports them:

{ "tool": "jira_list_transitions", "arguments": { "issueKey": "OCTOPUS-1356" } }
{ "transitions": [{ "id": "21", "name": "Active", "toStatus": "Active",
  "requiredFields": [{ "key": "timetracking", "name": "Time Tracking", "required": true,
    "schema": { "type": "timetracking", "system": "timetracking" } }] }] }

Pass them via jira_transition_issue's fields parameter (a free-form object — the workflow field set is instance-specific; depth/size are bounded, nothing is validated client-side):

{ "tool": "jira_transition_issue", "arguments": { "issueKey": "OCTOPUS-1356", "toStatus": "Active",
  "fields": { "timetracking": { "originalEstimate": "3d" } } } }

Write-verify. jira_update_issue and jira_transition_issue read the written fields back with one extra GET and return a verified block — one entry per written field:

{ "key": "OCTOPUS-1356", "updated": ["parent"],
  "verified": [{ "key": "parent", "requested": { "key": "OCTOPUS-100" }, "applied": false,
    "note": "parent is null on the issue — Jira accepted the write but did not apply it" }] }

applied: false means Jira answered 2xx yet silently ignored the field (field configuration, screen differences, permission schemes) — check the note instead of assuming success.

Tool Purpose Key parameters
jira_add_worklog Log work: '3h 30m' or decimal hours (8.05 → '8h 3m'); estimate adjust modes issueKey, timeSpent, started?, startedHour? (default 07:30), adjustEstimate?: auto|leave|new|manual
jira_list_worklogs Paginated worklog list issueKey, pagination
jira_link_issues Link two issues (Relates, Blocks, …) linkType, inwardIssueKey / outwardIssueKey
jira_remove_issue_link ⚠️ IRREVERSIBLE — delete an issue link by id linkId
jira_delete_worklog ⚠️ IRREVERSIBLE — delete a worklog entry issueKey, worklogId
jira_delete_comment ⚠️ IRREVERSIBLE — delete a comment issueKey, commentId
jira_delete_attachment ⚠️ IRREVERSIBLE — delete an attachment attachmentId
jira_add_remote_link Attach an external URL to an issue issueKey, url, title?
jira_add_attachment Upload a local file (max 10 MB) issueKey, filePath, fileName?

🏃 Sprint

Tool Purpose Key parameters
jira_move_issues_to_sprint Move up to 50 issues into a sprint; returns {moved, errors} sprintId, issueKeys[1..50]

🧩 Extensibility

Tool Purpose Key parameters
jira_provider_call Call a workplace-specific Jira plugin endpoint defined in JIRA_PROVIDERS_CONFIG (no code changes needed) provider, endpoint, params?

📥 Installation

1 · Run directly with npx (recommended):

npx @nevzatcirak/jira-mcp

2 · Install globally:

npm install -g @nevzatcirak/jira-mcp
jira-mcp

3 · From source:

git clone https://github.com/nevzatcirak/jira-mcp.git
cd jira-mcp
npm install && npm run build
node dist/index.js

Doğrulama:

jira-mcp --version
# @nevzatcirak/jira-mcp 1.3.0

🔁 Migrating from other jira-mcp packages

If a different jira-mcp package was installed earlier — one that registers the same jira-mcp bin name — a global install of this package fails with an EEXIST error. Find and remove the old package first:

# unix
npm ls -g | grep jira
npm rm -g <old-package-name>
# Windows (PowerShell)
npm ls -g | findstr jira
npm rm -g <old-package-name>

If a leftover bin shim remains, check which package it points to with where jira-mcp (Windows) or which -a jira-mcp (unix).

MCP clients that run the server through npx (the recommended setup) are not affected by this conflict — npx resolves the package by full name and does not use the global bin shim.


🩺 Troubleshooting

npx crashes on every run. Corrupted npx cache. Delete the cached package folder and npx re-downloads it on the next run:

  • Windows: %LocalAppData%\npm-cache\_npx
  • unix: ~/.npm/_npx

Windows: remote npx invocation fails ("not recognized"). On Windows, the short remote form npx -y @nevzatcirak/jira-mcp --version can fail with a "not recognized" error, while the same command works on unix. This is known npx behavior on Windows, not a package defect. Use one of these workarounds:

  • Install globally and run the bin: npm i -g @nevzatcirak/jira-mcp then jira-mcp
  • Pass the package and bin separately: npx -y -p @nevzatcirak/jira-mcp jira-mcp
  • Skip the shim entirely — call the entry point with node in your MCP client config: node <install-path>/dist/index.js

The old 6-tool server still seems to run. A leftover global bin shim may still resolve to the old package. Check which package the shim points to with where jira-mcp (Windows) or which jira-mcp (unix), remove the old package (npm rm -g <old-package>), then reinstall this one.

"The backlog is not available on Kanban boards" Jira platform restriction: the backlog endpoint exists only on Scrum boards. jira_get_board_backlog detects this case and returns the structured error BACKLOG_NOT_AVAILABLE with the hint: Kanban boards have no backlog — use jira_get_board_issues with a JQL filter instead.


⚙️ Configuration

Variable Required Description
JIRA_BASE_URL ✅ Instance base URL, e.g. https://acme-jira.example.com
JIRA_API_TOKEN ✅ PAT (Server/DC) or API token (Cloud)
JIRA_EMAIL Cloud only Cloud account email (required when instance type is cloud)
JIRA_INSTANCE_TYPE — auto (default) | server | cloud
JIRA_PROVIDERS_CONFIG — Path to a JSONC file defining custom provider endpoints for jira_provider_call (see Custom providers)

Server/DC vs Cloud authentication:

Jira Server / Data Center Jira Cloud
Auth scheme Authorization: Bearer <token> Authorization: Basic base64(email:token)
JIRA_EMAIL not used required
User identity username accountId
Comments wiki string ADF document
Auto-detect JIRA_INSTANCE_TYPE=auto probes /rest/api/2/serverInfo once and caches the deployment type

Config problems never crash the server — the tool call fails with a structured CONFIG_MISSING error listing the missing fields.


🧩 Custom providers

Many workplaces run Jira plugins with their own REST endpoints (timesheet/attendance, custom reporting, …). The jira_provider_call tool lets agents call those endpoints without any code changes: the endpoints are defined in a JSONC config file, and jira-mcp stays deployment-agnostic — it ships no endpoint knowledge itself.

1 · Create a providers file (copy examples/providers.example.jsonc):

{
  "providers": {
    "workplaceTimesheet": {
      "description": "Timesheet/attendance plugin",
      "endpoints": {
        "dailyWorked": {
          "method": "GET",                    // "GET" | "POST" (required)
          "path": "/rest/<plugin>/1.0/daily-worked?period={start}+-+{end}&timesheetUser=currentUser()",
          //           ^ path template (required); {param} placeholders are filled from `params`
          "responseMapping": {                // optional projection of the raw JSON
            "total": "total",
            "dailyHours": "items[].hour"
          },
          "maxResponseBytes": 20000           // optional response size guard (default 200000)
        }
      }
    }
  }
}

2 · Point the server at the file with JIRA_PROVIDERS_CONFIG (absolute path recommended):

OpenCode (opencode.json):

{
  "mcp": {
    "jira": {
      "type": "local",
      "command": ["npx", "-y", "@nevzatcirak/jira-mcp"],
      "environment": {
        "JIRA_BASE_URL": "https://acme-jira.example.com",
        "JIRA_API_TOKEN": "your-personal-access-token",
        "JIRA_PROVIDERS_CONFIG": "C:\\config\\jira-mcp.providers.jsonc"
      }
    }
  }
}

LibreChat (librechat.yaml):

mcp_servers:
  jira:
    command: npx
    args:
      - -y
      - "@nevzatcirak/jira-mcp"
    env:
      JIRA_BASE_URL: https://acme-jira.example.com
      JIRA_API_TOKEN: your-personal-access-token
      JIRA_PROVIDERS_CONFIG: /opt/librechat/config/jira-mcp.providers.jsonc

(Docker deployments: volume-mount the providers file into the container and pass the in-container path.)

3 · Call it:

{ "tool": "jira_provider_call", "arguments": { "provider": "workplaceTimesheet", "endpoint": "dailyWorked", "params": { "start": "2026-11-02", "end": "2026-11-08" } } }

Behavior:

  • Requests go through the shared HTTP layer — same Bearer/Basic auth, 30s timeout and 429/5xx retry as every other tool.
  • {param} placeholders in path are filled (URL-encoded) from params; parameters not used by the template are sent as the POST body on POST endpoints.
  • With responseMapping, only the projected fields are returned (simple paths: total, summary.name, items[].hour). Without it, the raw JSON is returned — capped by maxResponseBytes (RESPONSE_TOO_LARGE when exceeded).
  • The config file is re-read on every call, so edits apply without restarting the server.
  • Errors are structured: CONFIG_MISSING (env var unset, with setup hint), PROVIDERS_CONFIG_INVALID (missing/broken file), PROVIDER_UNKNOWN / ENDPOINT_UNKNOWN (both list the available names so the agent can self-correct), RESPONSE_TOO_LARGE.

🔌 MCP client configuration

OpenCode (opencode.json)

{
  "mcp": {
    "jira": {
      "type": "local",
      "command": [
        "npx",
        "-y",
        "@nevzatcirak/jira-mcp"
      ],
      "environment": {
        "JIRA_BASE_URL": "https://acme-jira.example.com",
        "JIRA_API_TOKEN": "your-personal-access-token",
        "JIRA_INSTANCE_TYPE": "server"
      }
    }
  }
}

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "jira": {
      "command": "npx",
      "args": ["-y", "@nevzatcirak/jira-mcp"],
      "env": {
        "JIRA_BASE_URL": "https://acme-jira.example.com",
        "JIRA_API_TOKEN": "your-personal-access-token",
        "JIRA_INSTANCE_TYPE": "server"
      }
    }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "jira": {
      "command": "npx",
      "args": ["-y", "@nevzatcirak/jira-mcp"],
      "env": {
        "JIRA_BASE_URL": "https://acme-jira.example.com",
        "JIRA_API_TOKEN": "your-personal-access-token",
        "JIRA_INSTANCE_TYPE": "server"
      }
    }
  }
}

☁️ Cloud: add "JIRA_EMAIL": "you@example.com", set JIRA_INSTANCE_TYPE to cloud (or leave auto), and use an API token from id.atlassian.com.


🧪 Tool usage examples

1 · Pull a board backlog:

{ "tool": "jira_get_board_backlog", "arguments": { "boardId": 42, "maxResults": 25 } }

2 · JQL search with extra fields:

{ "tool": "jira_search_issues", "arguments": { "jql": "project = ABC AND status != Done ORDER BY updated DESC", "fields": ["storypoints"], "maxResults": 25 } }

3 · Issue details with comments:

{ "tool": "jira_get_issue", "arguments": { "issueKey": "ABC-123", "includeComments": true } }

4 · Log work:

{ "tool": "jira_add_worklog", "arguments": { "issueKey": "ABC-123", "timeSpent": "3h 30m", "comment": "Implemented retry logic and tests" } }

Decimal hours work too (8.05 → 8h 3m, rounded to the nearest minute), and a date-only started gets its time-of-day from startedHour (default 07:30):

{ "tool": "jira_add_worklog", "arguments": { "issueKey": "ABC-123", "timeSpent": 8.05, "started": "2026-11-09", "startedHour": "08:45", "comment": "Turnstile-tracked day" } }

5 · Set estimates (time tracking):

{ "tool": "jira_update_issue", "arguments": { "issueKey": "ABC-123", "originalEstimate": "2h", "remainingEstimate": "1d" } }

6 · Attach a web link:

{ "tool": "jira_add_remote_link", "arguments": { "issueKey": "ABC-123", "url": "https://design.example.com/spec-7", "title": "Design spec" } }

7 · Semantic transition (no transition IDs needed):

{ "tool": "jira_transition_issue", "arguments": { "issueKey": "ABC-123", "toStatus": "Done", "comment": "Verified on staging" } }

8 · Move issues into a sprint:

{ "tool": "jira_move_issues_to_sprint", "arguments": { "sprintId": 318, "issueKeys": ["ABC-123", "ABC-124", "ABC-125"] } }

9 · Find a user, then assign:

{ "tool": "jira_find_user", "arguments": { "query": "Jane Doe" } }
{ "tool": "jira_assign_issue", "arguments": { "issueKey": "ABC-123", "assignee": "jdoe" } }

10 · Call a workplace plugin endpoint (custom provider):

{ "tool": "jira_provider_call", "arguments": { "provider": "workplaceTimesheet", "endpoint": "dailyWorked", "params": { "start": "2026-11-02", "end": "2026-11-08" } } }

📝 Behavior notes

Card projection. Every list/search result is a compact card — never avatars, schemas, changelogs or raw payloads:

{
  "key": "ABC-123",
  "summary": "Fix login redirect loop",
  "type": "Bug",
  "status": "In Progress",
  "assignee": "jdoe",
  "priority": "High",
  "labels": ["backend", "auth"],
  "parent": "ABC-100",
  "updated": "2026-01-14"
}

Extra fields can be merged in via fields (deduplicated; *all/*navigable are dropped on list endpoints).

Pagination. All paginated tools return top-level meta:

{ "total": 120, "startAt": 0, "maxResults": 25, "hasMore": true, "nextStartAt": 25 }

Keep passing startAt: nextStartAt until hasMore is false.

Project search. jira_list_projects query is supported server-side on Jira 8+ (Cloud and Server/DC 8+ both filter and paginate on the server, so total is the real match count). On older Server/DC instances — where /rest/api/2/project/search does not exist — the tool falls back to the plain /project endpoint and filters key/name client-side (case-insensitive contains).

Truncation rules.

  • Issue descriptions: capped by maxDescriptionChars (default 500, max 20000)
  • Comments / worklog bodies in jira_get_issue: 500 chars each, capped at 1000 items
  • Worklog comments in jira_list_worklogs: 300 chars
  • Every truncated item reports { "truncated": true, "totalLength": 4211 }
  • maxResults is hard-capped at 100 on every list tool

Structured errors. Failures never throw raw stack traces — every error is a structured payload:

{
  "error": {
    "code": "JIRA_400",
    "message": "Jira HTTP 400: ...",
    "hint": "parentKey may be rejected for Cloud team-managed projects...",
    "jiraErrors": {
      "errorMessages": ["Issue does not exist or you do not have permission to see it."],
      "errors": { "assignee": "User 'jdoe' does not exist." }
    }
  }
}

Fixed codes include CONFIG_MISSING, INVALID_ARGUMENT, JIRA_TIMEOUT, JIRA_NETWORK, AMBIGUOUS_TRANSITION, TRANSITION_NOT_FOUND, USER_NOT_FOUND, AMBIGUOUS_USER, FILE_TOO_LARGE, PROVIDERS_CONFIG_INVALID, PROVIDER_UNKNOWN, ENDPOINT_UNKNOWN, RESPONSE_TOO_LARGE. Jira's own field errors are preserved verbatim in jiraErrors.

Resilience. 30s per-request timeout, up to 2 retries on 429/5xx with Retry-After awareness, and an automatic agile/1.0 → greenhopper/1.0 fallback for older Server instances.


🛠️ Development

npm install          # install dependencies
npm test             # unit tests (vitest, no Jira connection needed)
npm run build        # compile to dist/
npm run lint         # eslint
npm run benchmark    # payload-size benchmark (needs a live Jira)

Integration tests (optional, against a real instance):

Variable Purpose
JIRA_IT=1 Enables integration tests (read-only scenario — connection env only)
JIRA_E2E_PROJECT Project key for the write scenario (issues are created and deleted)
JIRA_E2E_ISSUE_TYPE Optional issue type for the write scenario (default: Task)

🚀 Publishing

Releases are published to npm automatically by CI — never publish manually from a laptop.

Flow:

  1. Release workflow (.github/workflows/release.yml, manual workflow_dispatch): give it a semver version (e.g. 1.0.1) — it bumps package.json + package-lock.json, commits as github-actions[bot] with chore: release vX, creates tag vX and pushes both.
  2. The v* tag push triggers the Publish workflow (.github/workflows/publish.yml), which runs tests + build and then npm publish --access public to https://registry.npmjs.org/.

One-time setup (required):

  • Create an npm automation token with Read & Write permission at npmjs.com → Access Tokens (Classic Tokens section).
  • Add it as a repository secret: GitHub repo → Settings → Secrets and variables → Actions → New repository secret, name it NPM_TOKEN.
  • The publish job uses registry-url: https://registry.npmjs.org/ and passes the token via NODE_AUTH_TOKEN.

Guards (the publish job fails fast on):

  • Version ↔ tag mismatch: package.json version must match the pushed tag (v + version, e.g. version 1.0.0 ↔ tag v1.0.0).
  • Package name check: package.json name must be exactly @nevzatcirak/jira-mcp — prevents accidentally publishing the wrong package.

📌 Scoped package note: @nevzatcirak/jira-mcp is a scoped package, so npm publish --access public is mandatory (scoped packages default to restricted, which requires a paid plan).

🖐️ Manual dispatch note: the Publish workflow also supports workflow_dispatch, but a manual run skips the tag guard — it publishes whatever version is currently in package.json (tests + build still run). Prefer the Release workflow so tags and versions stay in sync.


📄 License

MIT © Nevzat Cirak