Jira MCP Server

Jira MCP Server avatar

by AzamMehr

jiramcpBrowser Automation

MCP server for JIRA

What is Jira MCP Server

Jira MCP Server

A Spring AI Model Context Protocol (MCP) server implementation that provides AI-powered tools for interacting with Jira. This project enables AI models to perform various Jira operations through a standardized protocol.

Overview

This project implements a Spring AI MCP server that exposes Jira operations as AI tools. It provides capabilities for:

  • Querying Jira tickets
  • Creating new tickets
  • Updating existing tickets
  • Adding comments to tickets

The server follows the Model Context Protocol (MCP) specification, enabling standardized interaction between AI models and Jira operations.

Features

  • Ticket Query Service: Search and retrieve Jira tickets using JQL
  • Ticket Operations Service: Create, update, and comment on Jira tickets
  • Spring AI MCP server implementation
  • RESTful API endpoints for Jira operations
  • Secure authentication using Jira API tokens

Prerequisites

  • Java 21 or later
  • Gradle 8.12.1 or later
  • Jira instance with API access
  • Jira API token

Configuration

Configure the application using environment variables or application.properties:

# JIRA Configuration
jira.api-url=${JIRA_API_URL}
jira.username=${ALTASSIAN_USERNAME}
jira.api-token=${ALTASSIAN_TOKEN}

# Server Configuration
server.port=8081

Building the Project

./gradlew build

Running the Application

./gradlew bootRun

Project Structure

src/main/java/com/mcp/
โ”œโ”€โ”€ app/
โ”‚   โ””โ”€โ”€ JiraServiceApplication.java
โ”œโ”€โ”€ config/
โ”‚   โ”œโ”€โ”€ AppConfig.java
โ”‚   โ””โ”€โ”€ JiraApiConfiguration.java
โ”œโ”€โ”€ dto/
โ”‚   โ”œโ”€โ”€ CommonDTO.java
โ”‚   โ”œโ”€โ”€ IssueManagementDTO.java
โ”‚   โ””โ”€โ”€ IssueSearchDTO.java
โ””โ”€โ”€ service/
    โ”œโ”€โ”€ BaseJiraService.java
    โ”œโ”€โ”€ TicketOperationsService.java
    โ””โ”€โ”€ TicketQueryService.java

Available Tools

Ticket Query Service

  • searchIssues: Search Jira tickets using JQL
  • getIssue: Retrieve a specific ticket by key

Ticket Operations Service

  • createIssue: Create a new Jira ticket
  • updateIssue: Update an existing ticket
  • addComment: Add a comment to a ticket

Dependencies

  • Spring AI MCP Server WebFlux Starter
  • Spring Boot
  • Spring WebFlux
  • Spring AI Core

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a new Pull Request

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Leave a Comment

Comments section will be available soon. Stay tuned!

Frequently Asked Questions

What is MCP?

MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs. Think of MCP like a USB-C port for AI applications, providing a standardized way to connect AI models to different data sources and tools.

What are MCP Servers?

MCP Servers are lightweight programs that expose specific capabilities through the standardized Model Context Protocol. They act as bridges between LLMs like Claude and various data sources or services, allowing secure access to files, databases, APIs, and other resources.

How do MCP Servers work?

MCP Servers follow a client-server architecture where a host application (like Claude Desktop) connects to multiple servers. Each server provides specific functionality through standardized endpoints and protocols, enabling Claude to access data and perform actions through the standardized protocol.

Are MCP Servers secure?

Yes, MCP Servers are designed with security in mind. They run locally with explicit configuration and permissions, require user approval for actions, and include built-in security features to prevent unauthorized access and ensure data privacy.