JIRA MCP Server

JIRA MCP Server

A Model Context Protocol (MCP) server implementation that provides access to JIRA data with relationship tracking and data cleaning for AI context windows.

Features

  • Search JIRA issues using JQL (maximum 50 results per request)
  • Retrieve epic children with comment history (maximum 100 issues per request)
  • Get detailed issue information including comments and related issues
  • Extract issue mentions from Atlassian Document Format
  • Track issue relationships (mentions, links, parent/child, epics)
  • Clean and transform rich JIRA content

Prerequisites

  • Node.js
  • TypeScript
  • JIRA account with API access

Environment Variables

JIRA_API_TOKEN=your_api_token JIRA_BASE_URL=your_jira_instance_url # e.g., https://your-domain.atlassian.net JIRA_USER_EMAIL=your_email

Installation & Setup

1. Clone the repository:

git clone [repository-url] cd jira-mcp

2. Install dependencies and build:

npm install npm run build

3. Configure the MCP server:

Edit the appropriate configuration file:

macOS:

  • Cline: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows:

  • Cline: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
  • Claude Desktop: %APPDATA%\Claude Desktop\claude_desktop_config.json

Linux:

  • Cline: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  • Claude Desktop: sadly doesn't exist yet

Add the following configuration under the mcpServers object:

{ "mcpServers": { "jira": { "command": "node", "args": ["/absolute/path/to/jira-mcp/build/index.js"], "env": { "JIRA_API_TOKEN": "your_api_token", "JIRA_BASE_URL": "your_jira_instance_url", "JIRA_USER_EMAIL": "your_email" } } } }

4. Restart the MCP server.

Within Cline's MCP settings, restart the MCP server. Restart Claude Desktop to load the new MCP server.

Development

Run tests:

npm test

To rebuild after changes:

npm run build

Available MCP Tools

search_issues

Search JIRA issues using JQL. Returns up to 50 results per request.

Input Schema:

{ searchString: string // JQL search string }

get_epic_children

Get all child issues in an epic including their comments and relationship data. Limited to 100 issues per request.

Input Schema:

{ epicKey: string // The key of the epic issue }

get_issue

Get detailed information about a specific JIRA issue including comments and all relationships.

Input Schema:

{ issueId: string // The ID or key of the JIRA issue }

Data Cleaning Features

  • Extracts text from Atlassian Document Format
  • Tracks issue mentions in descriptions and comments
  • Maintains formal issue links with relationship types
  • Preserves parent/child relationships
  • Tracks epic associations
  • Includes comment history with author information
  • Removes unnecessary metadata from responses

Technical Details

  • Built with TypeScript in strict mode
  • Uses JIRA REST API v3
  • Basic authentication with API tokens
  • Batched API requests for related data
  • Error handling with detailed messages
  • Maximum limits:
    • Search results: 50 issues per request
    • Epic children: 100 issues per request

Error Handling

  • Basic error handling for API failures
  • Network error detection
  • Issue not found handling
  • Error message formatting with status codes
  • Error details logging to console
-
security - not tested
F
license - not found
-
quality - not tested

Provides an interface to access and manage JIRA data through the Model Context Protocol, offering features like relationship tracking, data cleaning, and contextual insights for AI applications.

  1. Features
    1. Prerequisites
      1. Environment Variables
        1. Installation & Setup
          1. 1. Clone the repository:
            1. 2. Install dependencies and build:
              1. 3. Configure the MCP server:
                1. 4. Restart the MCP server.
                2. Development
                  1. Available MCP Tools
                    1. search_issues
                      1. get_epic_children
                        1. get_issue
                        2. Data Cleaning Features
                          1. Technical Details
                            1. Error Handling