Sponsored by Deepsite.site

Jira Context MCP

Created By
rahulthedevil9 months ago
MCP server to provide Jira Tickets information to AI coding agents like Cursor
Content

Jira Context MCP

CodeQL Advanced smithery badge

A Model Context Protocol (MCP) implementation for Jira that allows you to:

  • Input a Jira ticket link to fetch issue details and instruct Cursor to fix it
  • Retrieve all tickets assigned to you within a specified Jira project
  • Filter Jira issues based on a specific issue type and automatically direct Cursor to resolve them
  • Integrate seamlessly with Jira's API for automation and efficiency

Setup

Prerequisites

  • Node.js 20.17.0 or higher
  • A Jira account with API access
  • A Jira API token (can be generated at Atlassian API Tokens)

Installation

Installing via Smithery

To install Jira Context MCP for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @rahulthedevil/Jira-Context-MCP --client claude

Installing manually

  1. Clone this repository:

    git clone https://github.com/yourusername/Jira-Context-MCP.git
    cd Jira-Context-MCP
    
  2. Install dependencies:

    npm install
    # or if you use pnpm
    pnpm install
    
  3. Create a .env file based on the example:

    cp .env.example .env
    
  4. Edit the .env file with your Jira details:

    JIRA_BASE_URL=https://your-domain.atlassian.net
    JIRA_USERNAME=your-email@example.com
    JIRA_API_TOKEN=your-api-token-here
    HTTP_PORT=3000
    

Build

Build the project with:

npm run build
# or
pnpm build

Usage

Starting the Server

Start the HTTP server:

npm start
# or
pnpm start

Or use the CLI mode:

npm run start:cli
# or
pnpm start:cli

Connecting with Cursor

  1. In Cursor, open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
  2. Type "Connect to MCP Server"
  3. Select "Connect to MCP Server"
  4. Enter the server URL (default: http://localhost:3000/sse)

Available Tools

Once connected, you can use the following tools in Cursor:

1. Get Jira Issue Details

Fetch detailed information about a specific Jira issue:

/get_issue issueKey:PROJECT-123

2. Get Assigned Issues

Retrieve issues assigned to you in a specific project:

/get_assigned_issues projectKey:PROJECT maxResults:10

3. Get Issues by Type

Filter issues by type (Bug, Story, Epic, etc.):

/get_issues_by_type issueType:Bug projectKey:PROJECT maxResults:10

4. Get Projects

List all available projects:

/get_projects

5. Get Issue Types

List all available issue types:

/get_issue_types

6. Get Recent Ticket Changes

Retrieve changes made in tickets over a specified period (e.g., the last 7 days) in a project:

/get_recent_changes projectKey:PROJECT maxDays:7

Command Examples

🚀 Jira MCP Server + Cursor IDE = Your AI-powered Jira assistant! Here’s how it makes devs work smarter:

📂 "List all Jira projects I have access to"
→ AI fetches all available projects instantly
No more searching manually!

📋 "List all issues in PROJECT"
→ AI retrieves all open tickets
Stay organized without effort!

🐛 "Filter only Bugs or Change Requests and fix them"
→ AI identifies & directs Cursor to resolve them
Fix issues faster with automation!

"Find all tickets assigned to me and fix them"
→ AI pulls your tasks & lets Cursor handle them
Stay on top of your work with zero hassle!

🔍 "Get details for Jira issue PROJECT-123"
→ AI fetches full issue info in seconds
No more switching tabs!

📊 "What changed in tickets in the last 7 days in PROJECT?"
→ AI tracks recent updates & highlights key changes
No more manually checking ticket histories!

🔥 TL;DR: Your AI now speaks Jira + Cursor! Fetch projects, filter issues, track changes & fix bugs—all inside your IDE.
From backlog to bug fixes, MCP Server makes Jira work for you!

Example Workflows

Fix a Specific Bug

  1. Connect to the Jira MCP server in Cursor.
  2. Get the issue details:
    /get_issue issueKey:PROJECT-123
    
  3. Review the issue details and instruct Cursor to fix it:
    Fix the bug described in PROJECT-123
    

Work on Your Assigned Issues

  1. Connect to the Jira MCP server in Cursor.
  2. Retrieve your assigned issues:
    /get_assigned_issues projectKey:PROJECT
    
  3. Ask Cursor to help with one of the issues:
    Help me solve the first issue in my assigned list
    

Fix All Bugs in a Project

  1. Connect to the Jira MCP server in Cursor.
  2. Retrieve all bug issues:
    /get_issues_by_type issueType:Bug projectKey:PROJECT
    
  3. Instruct Cursor:
    Help me fix these bugs one by one
    

Review Recent Changes

  1. Connect to the Jira MCP server in Cursor.
  2. Retrieve recent ticket updates:
    /get_recent_changes projectKey:PROJECT maxDays:7
    
  3. Review the changes to stay updated on modifications.

Development

Project Structure

  • src/ - Source code
    • services/ - Jira API service
    • types/ - TypeScript type definitions
    • utils/ - Utility functions
    • server.ts - MCP server implementation
    • index.ts - Application entry point
    • cli.ts - CLI entry point

Adding New Tools

To add new tools, edit the src/server.ts file and add new tool definitions in the registerTools method.

License

MIT

Author

Rahul Dey - @rahulthedevil

Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
Playwright McpPlaywright MCP server
Tavily Mcp
DeepChatYour AI Partner on Desktop
WindsurfThe new purpose-built IDE to harness magic
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题; Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
Serper MCP ServerA Serper MCP Server
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
ChatWiseThe second fastest AI chatbot™
CursorThe AI Code Editor
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
Amap Maps高德地图官方 MCP Server
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.