Jira MCP server

Enables interaction with JIRA tasks and workflows for automated project management and intelligent task tracking.
Back to servers
Provider
Warzuponus
Release date
Jan 07, 2025
Language
TypeScript
Stats
6 stars

The MCP Jira Integration server provides an interface between Claude AI and Jira, enabling automated project management tasks through a standardized Model Context Protocol. This implementation allows AI assistants to create and manage Jira issues, track sprints, and perform searches without direct human intervention.

Requirements

  • Python 3.8 or higher
  • Jira account with API token
  • Valid MCP implementation

Installation

  1. Clone the repository
  2. Configure environment variables in a .env file:
JIRA_URL=https://your-domain.atlassian.net
[email protected]
JIRA_API_TOKEN=your_api_token
PROJECT_KEY=PROJ
API_KEY=your_secure_api_key  # For MCP authentication

Usage Examples

Creating a Jira Issue

Use the following Python code to create a new issue:

from mcp_jira.protocol import MCPRequest, MCPContext

# Create request context
context = MCPContext(
    conversation_id="conv-123",
    user_id="user-123",
    api_key="your_api_key"
)

# Create issue request
request = MCPRequest(
    function="create_issue",
    parameters={
        "summary": "Implement feature X",
        "description": "Detailed description",
        "issue_type": "Story",
        "priority": "High"
    },
    context=context
)

response = await mcp_handler.process_request(request)

Searching for Issues

To search for issues using JQL (Jira Query Language):

request = MCPRequest(
    function="search_issues",
    parameters={
        "jql": "project = PROJ AND status = 'In Progress'"
    },
    context=context
)

response = await mcp_handler.process_request(request)

Authentication

All requests to the MCP server require an API key in the request header:

headers = {
    "X-API-Key": "your_api_key"
}

Setting Up with AI Assistants

To connect this MCP server with AI assistants that support the MCP protocol:

  1. Ensure your environment variables are properly configured
  2. Set up the MCP endpoint in your AI assistant's configuration
  3. Use the standardized MCP protocol format for all Jira interactions

Available Functions

The server supports the following Jira operations:

  • create_issue: Create new Jira tickets
  • search_issues: Find issues using JQL
  • update_issue: Modify existing issues
  • sprint_tracking: Basic sprint management
  • project_management: Project and board operations

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later