RJ

rixbeck/jira-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

2 stars 5 forks 质量 61 趋势 16

MCP server for self-hosted Jira

概览

A Model Context Protocol (MCP) server that addresses integration with self-hosted JIRA, enabling AI assistants to interact with JIRA issues and projects through a standardized interface. - Get list of JIRA projects - Query JIRA tasks using JQL - Get task details - Create a new task - Add a comment to a task - Update task fields (summary, description, assignee, priority, labels, due date, custom fields), optionally together with the status - Update task status (by status or transition name, or by id) - Update task assignee - Get available task statuses - Get task attachments - Download task attachments by filename 1. Clone the repository 2. Install dependencies: 3. Configure environment variables by copying .env.example to .env: 4. Update the .env file with your JIRA credentials: The server will start and register itself with any MCP-compatible AI assistants. Download a specific attachment from a JIRA task by filename. - taskId (string, required): JIRA task ID (e.g.

README

以下为原文 README 节选,完整内容请查看原文。

JIRA MCP Server

A Model Context Protocol (MCP) server that addresses integration with self-hosted JIRA, enabling AI assistants to interact with JIRA issues and projects through a standardized interface.

Features

  • Get list of JIRA projects
  • Query JIRA tasks using JQL
  • Get task details
  • Create a new task
  • Add a comment to a task
  • Update task fields (summary, description, assignee, priority, labels, due date, custom fields), optionally together with the status
  • Update task status (by status or transition name, or by id)
  • Update task assignee
  • Get available task statuses
  • Get task attachments
  • Download task attachments by filename

Installation

  1. Clone the repository
  2. Install dependencies:
npm install
  1. Configure environment variables by copying .env.example to .env:
cp .env.example .env
  1. Update the .env file with your JIRA credentials:
JIRA_HOST=your.jira.host
JIRA_USERNAME=yourname
JIRA_PASSWORD=yourpassword
# Or use access token authentication:
# JIRA_ACCESS_TOKEN=yourtoken

Usage

Start the MCP server:

npm start

The server will start and register itself with any MCP-compatible AI assistants.

Available Tools

downloadTaskAttachment

Download a specific attachment from a JIRA task by filename.

Parameters:

  • taskId (string, required): JIRA task ID (e.g., PROJECT-123)
  • filename (string, required): Exact filename of the attachment to download

Response: Returns base64 encoded binary data with metadata including:

  • filename: The name of the downloaded file
  • mimeType: The MIME type of the file
  • size: The file size in bytes
  • content: Base64 encoded file content

Example Usage:

{
  "taskId": "PROJECT-123",
  "filename": "document.pdf"
}

This function is useful for retrieving specific attachments from JIRA tasks when you know the exact filename, allowing you to download and process files programmatically.

Dependencies

  • @modelcontextprotocol/sdk
  • jira-client
  • dotenv
  • zod

Author

License

This project is licensed under the MIT License.

Copyright © 2025 Rix Beck

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE

在 GitHub 查看完整 README

安装

This server does not publish a one-line install command.

Open the repository installation guide 新手?先看 mcpskill.org 教程 →