JIRA MCP Server
Supports loading environment variables from a .env file for configuration, allowing easy setup of JIRA credentials and connection details.
Provides tools for interacting with JIRA APIs, enabling reading, creating, updating, and managing JIRA issues through standardized tools for querying, creating, updating, transitioning issues and adding comments.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@JIRA MCP Server search for issues assigned to me that are not done"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
JIRA MCP Server
A Model Context Protocol (MCP) server that provides tools for interacting with JIRA APIs. This server enables AI assistants to read, create, update, and manage JIRA issues through standardized MCP tools.
Features
This MCP server provides the following tools:
jira_get_issue: Get details of a specific JIRA issue by key
jira_search: Search issues using JQL (JIRA Query Language) with pagination support
jira_create_issue: Create a new issue with project, issue type, summary, and optional fields
jira_update_issue: Update an existing issue's fields (summary, description, assignee, priority)
jira_transition_issue: Transition an issue to a new status with optional comment
jira_add_comment: Add a comment to an existing issue
Related MCP server: Jira MCP Server
Requirements
Node.js 18.0 or higher
JIRA instance with API token access
Personal Access Token from your JIRA instance
Installation
Option 1: Quick Start with npx (Recommended)
Run the JIRA MCP server directly without installation:
npx @hackdonalds/jira-mcpOption 2: Install Globally
Install the package globally for repeated use:
npm install -g @hackdonalds/jira-mcp
jira-mcpOption 3: Install from Source
Clone this repository:
git clone <repository-url> cd jira-mcpInstall dependencies:
npm installRun the server:
npm start
Configuration
Set up your environment variables before running:
export JIRA_BASE_URL="https://your-jira-instance.com"
export JIRA_API_TOKEN="your-api-token"
export JIRA_EMAIL="your-email@company.com" # OptionalOr create a .env file:
cp .env.example .env
# Edit .env with your JIRA credentialsConfiguration
Environment Variables
The MCP server requires the following environment variables:
JIRA_BASE_URL: Your JIRA instance URL (without trailing slash)
Example:
https://yourcompany.atlassian.netorhttps://jira.yourcompany.com
JIRA_API_TOKEN: Your JIRA Personal Access Token
For Atlassian Cloud: Create at id.atlassian.com/manage-profile/security/api-tokens
For Server/Data Center: Create in your JIRA profile settings
Authentication
This server uses Bearer token authentication with Personal Access Tokens. The JIRA_EMAIL environment variable is optional and only used for logging purposes.
Supported JIRA versions:
Atlassian Cloud
JIRA Server 9.0+
JIRA Data Center
Usage
Starting the Server
Using npx (if not installed globally):
npx @hackdonalds/jira-mcpIf installed globally:
jira-mcpFrom source:
npm startOr run directly:
node server.jsExample Tool Usage
Search Issues
// Search for issues assigned to current user
{
"tool": "jira_search",
"arguments": {
"jql": "assignee = currentUser() AND status != Done",
"maxResults": 10
}
}Get Issue Details
{
"tool": "jira_get_issue",
"arguments": {
"issueKey": "PROJ-123"
}
}Create New Issue
{
"tool": "jira_create_issue",
"arguments": {
"project": "PROJ",
"issueType": "Task",
"summary": "New task summary",
"description": "Detailed description of the task",
"priority": "High"
}
}Update Issue
{
"tool": "jira_update_issue",
"arguments": {
"issueKey": "PROJ-123",
"summary": "Updated summary",
"assignee": "user-account-id"
}
}Add Comment
{
"tool": "jira_add_comment",
"arguments": {
"issueKey": "PROJ-123",
"comment": "This is a comment on the issue"
}
}Logging
The MCP server maintains comprehensive logging:
Log File:
mcp.log(in current directory or system temp directory)Log Levels: debug, info, warning, error
Fallback: If file logging fails, logs to stderr
Content: API requests, responses, errors, and tool executions
Error Handling
The server includes robust error handling:
Missing Configuration: Graceful degradation with helpful error messages
API Errors: Detailed logging of JIRA API response errors
Network Issues: Proper timeout and retry handling
File System: Automatic fallback for log file creation
Development
Project Structure
jira-mcp/
├── server.js # Main MCP server implementation
├── package.json # Node.js dependencies and scripts
├── .env.example # Environment variable template
├── .gitignore # Git ignore rules
├── README.md # This file
└── mcp.log # Log file (created at runtime)Testing
Set your environment variables and test the server:
export JIRA_BASE_URL="https://your-jira-instance.com"
export JIRA_API_TOKEN="your-token-here"
# Test with npx
npx @hackdonalds/jira-mcp
# Or test from source
node server.jsAPI Compatibility
Uses JIRA REST API v2 (
/rest/api/2/)Compatible with both Atlassian Cloud and Server installations
Supports Bearer token authentication for modern JIRA instances
Troubleshooting
Common Issues
Authentication Errors (401)
Verify your API token is correct and not expired
Check that your JIRA instance supports Bearer token authentication
Ensure JIRA_BASE_URL is correct and accessible
File System Errors (EROFS)
The server automatically handles read-only file systems
Logs will fall back to stderr if file logging fails
Empty Search Results
Verify your JQL syntax is correct
Check that you have permission to view the issues
Try a simpler query like
project is not empty
Network/Timeout Issues
Ensure your JIRA instance is accessible from your network
Check for corporate firewalls or VPN requirements
Debug Mode
Enable verbose logging by setting:
export NODE_ENV=developmentLicense
MIT License - see LICENSE file for details.
Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
Built with the Model Context Protocol TypeScript SDK.
Available Tools
6 toolsjira_add_commentAdd JIRA CommentC
Add a comment to a JIRA issue
Inputs: issueKey (required), comment (required).
jira_create_issueCreate JIRA IssueC
Create a new JIRA issue
Inputs: project (required), issueType (required), summary (required), description, +2 more.
jira_get_issueGet JIRA IssueC
Get details of a specific JIRA issue
Inputs: issueKey (required).
jira_searchSearch JIRA IssuesC
Search issues using JQL (JIRA Query Language)
Inputs: jql (required), startAt, maxResults.
jira_transition_issueTransition JIRA IssueC
Transition an issue to a new status
Inputs: issueKey (required), transitionId (required), comment.
jira_update_issueUpdate JIRA IssueC
Update an existing JIRA issue
Inputs: issueKey (required), summary, description, assignee, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a clearly distinct purpose targeting specific JIRA operations: creating, retrieving, updating, commenting on, searching for, and transitioning issues. There is no overlap or ambiguity between these functions.
All tools follow a consistent 'jira_verb_noun' pattern with snake_case throughout. The naming is predictable and uniform across all six tools.
Six tools is reasonable for a JIRA server, covering core issue management operations. It's slightly lean but includes essential CRUD and workflow actions, with minor gaps like missing project or user management.
The toolset covers key JIRA workflows: create, read, update, search, comment, and transition issues. Minor gaps exist, such as no delete operation or project-level tools, but agents can handle most common tasks effectively.
Maintenance
Related MCP Connectors
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Connect to Atlassian Jira, Confluence, Loom, and more to search, create, and manage your work.
Pay-per-use tool marketplace for AI agents. Search, price-check, and call APIs via MCP.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI applications to manage JIRA issues, workflows, and tasks through a standardized MCP interface, facilitating real-time updates and seamless interaction with JIRA's API.10MIT
- AlicenseAqualityDmaintenanceEnables AI assistants to interact with Jira Cloud by managing issues, comments, custom fields, and sprint tasks through a standardized interface. Supports issue creation, updates, team activity tracking, and progress reporting.111,677 npmApache 2.0
- AlicenseNot gradedqualityDmaintenanceEnables natural language interaction with JIRA through MCP, providing 35 tools for issues, comments, transitions, projects, boards, sprints, epics, links, worklogs, versions, attachments, users, and fields.MIT
- FlicenseNot gradedqualityDmaintenanceEnables natural language interaction with Jira Cloud tickets, including listing, searching, creating, and updating issues through a set of MCP tools.-