jira-api-mcp-wrapper
An MCP server that talks directly to Jira Cloud REST API v3 using static credentials and exposes tools for discovering customfield IDs, resolving account IDs, and updating issue fields including ADF JSON.
README
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
accountIdfor 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(orJIRA_URL)JIRA_EMAILandJIRA_API_TOKEN, ORJIRA_BEARER_TOKEN
Optional variables:
JIRA_TEST_USER_QUERY: User search queryJIRA_TEST_JQL: JQL query for search testJIRA_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 issuesJIRA_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 teststests/integration/write.test.js: Write integration tests (guarded by env var)
Configuration
Set environment variables (pick one auth method):
Mapping from ga-jira/mcp.json
JIRA_URL→JIRA_BASE_URL(same value)JIRA_EMAIL→JIRA_EMAILJIRA_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_URLJIRA_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.,
descriptionand some multi-line custom fields) - Includes optional flags:
notifyUsersoverrideScreenSecurityoverrideEditableFlagvalidateAdf(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 includeproject,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 editselectedActions: field IDs to edit (usejira_bulk_get_editable_fields)editedFieldsInput: object containing values to apply (must align withselectedActions)
Practical examples
Set a user picker field (e.g. customfield_10246)
- Resolve accountId:
- call
jira_resolve_user_account_idwithquery="you@company.com"
- Update the issue:
- call
jira_update_issue_fieldswith: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).
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.