Skip to main content
Glama
jira-api-mcp-wrapper

jira-api-mcp-wrapper

by jarekbird

jira-api-mcp-wrapper

An MCP server (stdio) that talks directly to Jira Cloud REST API v3 using static credentials (no OAuth flow) and exposes a small set of deterministic tools for:

  • discovering customfield_* IDs

  • resolving accountId for user picker fields

  • updating issue fields (including ADF JSON)

Testing

Running Tests

Unit and Contract Tests (default, no network):

npm test

This runs all unit tests and contract tests without making any network calls. These tests use mocked HTTP clients and are deterministic.

Integration Tests (requires Jira credentials):

Integration tests make real HTTP calls to Jira Cloud. They are split into read-only (smoke) and write tests.

Read-only smoke tests:

npm run test:integration:smoke

Requires:

  • JIRA_BASE_URL (or JIRA_URL)

  • JIRA_EMAIL and JIRA_API_TOKEN, OR JIRA_BEARER_TOKEN

Optional variables:

  • JIRA_TEST_USER_QUERY: User search query

  • JIRA_TEST_JQL: JQL query for search test

  • JIRA_TEST_ISSUE_KEY: Issue key for get/transitions tests

Write tests (creates real data):

JIRA_INTEGRATION_WRITE_TESTS=1 npm run test:integration:write

Requires:

  • All smoke test variables

  • JIRA_TEST_PROJECT_KEY: Project key for creating test issues

  • JIRA_TEST_TRANSITION_ID (optional): Transition ID for transition test

⚠️ Warning: Write tests create real issues and comments in your Jira instance. They use the tag [mcp-wrapper-test] in summaries for easy identification and cleanup.

All integration tests:

npm run test:integration

Test Structure

  • tests/unit/: Unit tests for individual components (no network)

  • tests/contract/: Contract tests for MCP tool handlers (no network, uses fake Jira client)

  • tests/integration/smoke.test.js: Read-only integration tests

  • tests/integration/write.test.js: Write integration tests (guarded by env var)

Related MCP server: jiraxmcp

Configuration

Set environment variables (pick one auth method):

Mapping from ga-jira/mcp.json

  • JIRA_URL → JIRA_BASE_URL (same value)

  • JIRA_EMAIL → JIRA_EMAIL

  • JIRA_API_TOKEN → JIRA_API_TOKEN

Option A: Basic auth (Jira Cloud email + API token)

  • JIRA_BASE_URL (example: https://your-domain.atlassian.net)

  • JIRA_EMAIL (example: you@company.com)

  • JIRA_API_TOKEN (create in Atlassian account settings)

Option B: Bearer token

  • JIRA_BASE_URL

  • JIRA_BEARER_TOKEN

Cursor MCP config example

Add to your Cursor MCP config (typically ~/.cursor/mcp.json):

{
  "mcpServers": {
    "jira-api-mcp-wrapper": {
      "command": "node",
      "args": [
        "/path/to/jira-api-mcp-wrapper/dist/index.js"
      ],
      "env": {
        "JIRA_BASE_URL": "https://your-domain.atlassian.net",
        "JIRA_EMAIL": "you@company.com",
        "JIRA_API_TOKEN": "your_api_token"
      }
    }
  }
}

Tools

jira_list_fields

Lists Jira fields (including customfield_*) via /rest/api/3/field.

jira_search_issues_jql

Search issues using JQL via /rest/api/3/search.

jira_create_issue

Create an issue via /rest/api/3/issue (provide fields including project + issuetype + summary, plus any customfield_*).

jira_search_users

Searches users and returns accountId candidates via /rest/api/3/user/search.

jira_resolve_user_account_id

Resolves a best-match user and returns the chosen accountId (useful for user picker custom fields).

jira_get_issue

Fetches an issue via /rest/api/3/issue/{key}.

jira_update_issue_fields

Updates issue fields via /rest/api/3/issue/{key} PUT.

  • Supports customfield_* updates

  • Supports sending raw ADF JSON for ADF-backed fields (e.g., description and some multi-line custom fields)

  • Includes optional flags:

    • notifyUsers

    • overrideScreenSecurity

    • overrideEditableFlag

    • validateAdf (default true)

jira_add_comment

Add a comment via /rest/api/3/issue/{key}/comment (wrapper accepts plain text or ADF doc).

jira_get_transitions

List available transitions via /rest/api/3/issue/{key}/transitions.

jira_transition_issue

Apply a transition via /rest/api/3/issue/{key}/transitions (use jira_get_transitions to find transitionId).

jira_bulk_create_issues

Bulk create issues via POST /rest/api/3/issue/bulk.

Input is an array of issueUpdates entries, each with:

  • fields: issue creation fields (must include project, issuetype, summary, etc.)

  • update (optional): Jira update object

jira_bulk_get_editable_fields

Get the bulk-editable field IDs for a set of issues via GET /rest/api/3/bulk/issues/fields.

Use the returned field IDs as selectedActions for jira_bulk_edit_issues.

jira_bulk_edit_issues

Bulk edit issues via POST /rest/api/3/bulk/issues/fields.

Requires:

  • selectedIssueIdsOrKeys: issue IDs or keys to edit

  • selectedActions: field IDs to edit (use jira_bulk_get_editable_fields)

  • editedFieldsInput: object containing values to apply (must align with selectedActions)

Practical examples

Set a user picker field (e.g. customfield_10246)

  1. Resolve accountId:

  • call jira_resolve_user_account_id with query="you@company.com"

  1. Update the issue:

  • call jira_update_issue_fields with:

    • issueKey="WOR-2367"

    • fields={ "customfield_10246": { "accountId": "<accountId>" } }

Set an ADF field

If your local record already stores ADF JSON, send it directly as the field value (must include type:"doc", version, and content).

Notes / caveats

  • Jira Cloud frequently does not expose email addresses in API responses depending on org privacy settings. This wrapper supports resolving by display name as a fallback.

  • For many “people picker” fields, Jira Cloud expects accountId (not email).

Available Tools

13 tools
jira_add_commentJira: Add CommentA

Add a comment to an issue via /rest/api/3/issue/{key}/comment. Body may be plain string or ADF doc object.

Inputs: body (required), issueKey (required), validateAdf.

jira_bulk_create_issuesJira: Bulk Create IssuesA

Bulk create issues via POST /rest/api/3/issue/bulk. Provide issueUpdates entries containing fields (and optional update).

Inputs: issueUpdates (required), validateAdf.

jira_bulk_edit_issuesJira: Bulk Edit IssuesA

Bulk edit issues via POST /rest/api/3/bulk/issues/fields. You must provide selectedIssueIdsOrKeys, selectedActions (field IDs), and editedFieldsInput.

Inputs: selectedActions (required), editedFieldsInput (required), selectedIssueIdsOrKeys (required), validateAdf, +1 more.

jira_bulk_get_editable_fieldsJira: Bulk Get Editable FieldsB

Get bulk-editable field IDs for a set of issues via GET /rest/api/3/bulk/issues/fields. Use the returned field IDs in selectedActions for jira_bulk_edit_issues.

Inputs: issueIdsOrKeys (required), searchText, endingBefore, startingAfter.

jira_create_issueJira: Create IssueB

Create an issue via /rest/api/3/issue. Supply fields including project + issuetype and any customfield_* values (including ADF docs).

Inputs: fields (required), validateAdf.

jira_get_issueJira: Get IssueA

Fetch a Jira issue by key using /rest/api/3/issue/{key}. You can request specific fields/expand to reduce payload.

Inputs: issueKey (required), expand, fields.

jira_get_transitionsJira: Get TransitionsB

Get available transitions for an issue via /rest/api/3/issue/{key}/transitions.

Inputs: issueKey (required), expand.

jira_list_fieldsJira: List FieldsB

List Jira fields (including customfield_*) from /rest/api/3/field. Use this to map friendly names to field IDs.

Inputs: query, includeSchema.

jira_resolve_user_account_idJira: Resolve User AccountIdA

Resolve a single best-match Jira user and return accountId (for setting user picker custom fields). Uses /rest/api/3/user/search and selects the best candidate.

Inputs: query (required), includeInactive, requireEmailMatch.

jira_search_issues_jqlJira: Search Issues (JQL)A

Search issues using JQL via /rest/api/3/search. Returns a page of issues with selected fields.

Inputs: jql (required), expand, fields, startAt, +1 more.

jira_search_usersJira: Search UsersA

Search users (returns accountId) using /rest/api/3/user/search. Use this to map email/displayName → accountId for user picker fields.

Inputs: query (required), maxResults, includeInactive.

jira_transition_issueJira: Transition IssueA

Transition an issue via /rest/api/3/issue/{key}/transitions. Provide a transition id (use jira_get_transitions first).

Inputs: issueKey (required), transitionId (required), fields, update.

jira_update_issue_fieldsJira: Update Issue FieldsA

Update Jira issue fields via /rest/api/3/issue/{key} PUT. Supports customfield_* and ADF docs. You must send correct field IDs and value shapes (e.g. user picker needs accountId).

Inputs: fields (required), issueKey (required), update, notifyUsers, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 13 tools

    Disambiguation5/5

    Each tool targets a distinct action on Jira resources. Single and bulk operations are clearly separated, and user-related tools (search_users vs resolve_user_account_id) have distinct purposes. No two tools appear to do the same thing.

    Naming Consistency5/5

    All tools follow a consistent 'jira_verb_noun' pattern using snake_case. Verbs are uniform (add, bulk_create, bulk_edit, create, get, list, resolve, search, transition, update), and bulk operations are prefixed with 'bulk_'. The naming is predictable and easy to understand.

    Tool Count5/5

    With 13 tools, the server covers core Jira issue operations without being overwhelming. The number is well within the ideal range (3-15) and each tool addresses a specific need, from CRUD to searching and user resolution.

    Completeness4/5

    The tool surface covers creation (single and bulk), reading, updating, commenting, searching, and transitions. Missing delete functionality is a notable gap, but the set is sufficient for most issue management workflows. Overall, it is well-scoped for its stated purpose.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      An MCP server for interacting with self-hosted Jira instances using Personal Access Token (PAT) authentication. It enables users to perform CRUD operations on issues, search with JQL, manage comments, and list projects through the Jira REST API.
      12
      555 npm
      16
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for interacting with Jira Cloud, providing tools for issues, search, agile boards, comments, links, attachments, and webhook notifications.
      15 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server for interacting with Jira Cloud instances. Enables issue management, JQL queries, project and sprint management, and batch operations via natural language interfaces.
      141 npm
      4
      MIT