EM

edrich13/mcp-jira-server

开发工具

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

15 stars 10 forks 质量 73 趋势 21MIT

MCP server for connecting AI assistants to your own Jira instance

概览

A Model Context Protocol (MCP) server for interacting with self-hosted Jira instances using Personal Access Token (PAT) authentication. - ✅ Personal Access Token authentication for self-hosted Jira - ✅ Create, read, update, and delete Jira issues - ✅ Search issues using JQL (Jira Query Language) - ✅ Add and view comments - ✅ Manage issue assignments - ✅ List projects and issue types - ✅ Transition issues between statuses - ✅ Get current user information - Node.js 18 or higher - A self-hosted Jira instance (e.g., https://jira.domain.com) - A Jira Personal Access Token 1. Log in to your Jira instance (e.g., https://jira.domain.com) 2. Click on your profile icon in the top right corner 3. Select or 4. Navigate to or 5. Click 6. Give your token a name (e.g., "MCP Server") 7. Set an expiration date (optional but recommended) 8. Click 9. - you won't be able to see it again!

README

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

MCP Jira Server for Self-Hosted Jira

A Model Context Protocol (MCP) server for interacting with self-hosted Jira instances using Personal Access Token (PAT) authentication.

Features

  • ✅ Personal Access Token authentication for self-hosted Jira
  • ✅ Create, read, update, and delete Jira issues
  • ✅ Search issues using JQL (Jira Query Language)
  • ✅ Add and view comments
  • ✅ Manage issue assignments
  • ✅ List projects and issue types
  • ✅ Transition issues between statuses
  • ✅ Get current user information

Prerequisites

How to Create a Personal Access Token in Self-Hosted Jira

  1. Log in to your Jira instance (e.g., https://jira.domain.com)
  2. Click on your profile icon in the top right corner
  3. Select “Profile” or “Account Settings”
  4. Navigate to “Personal Access Tokens” or “Security”
  5. Click “Create token”
  6. Give your token a name (e.g., “MCP Server”)
  7. Set an expiration date (optional but recommended)
  8. Click “Create”
  9. Copy the token immediately - you won’t be able to see it again!

Installation

Direct usage with npx:

npx mcp-jira-server

Or install globally:

npm install -g mcp-jira-server

Option 2: From Source

  1. Clone the repository:
git clone https://github.com/edrich13/mcp-jira-server.git
cd mcp-jira-server
  1. Install dependencies:
npm install
  1. Build the server:
npm run build

Configuration

For Claude Desktop

Add the following to your Claude Desktop configuration file:

MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

Option 1: Using npx (Recommended)

{
  "mcpServers": {
    "jira": {
      "command": "npx",
      "args": ["-y", "mcp-jira-server"],
      "env": {
        "JIRA_BASE_URL": "https://jira.domain.com",
        "JIRA_PAT": "your-personal-access-token-here"
      }
    }
  }
}

Option 2: Using source build

{
  "mcpServers": {
    "jira": {
      "type": "stdio",
      "command": "node",
      "args": ["/Users/edrich.rocha/.nvm/versions/node/v22.6.0/bin/mcp-jira-server"],
      "env": {
        "JIRA_BASE_URL": "https://jira.domain.com",
        "JIRA_PAT": "your-personal-access-token-here"
      }
    }
  }
}

For VS Code with MCP

Create or update .vscode/mcp.json in your workspace:

Option 1: Using npx (Recommended)

{
  "servers": {
    "jira": {
      "command": "npx",
      "args": ["-y", "mcp-jira-server"],
      "env": {
        "JIRA_BASE_URL": "https://jira.domain.com",
        "JIRA_PAT": "your-personal-access-token-here"
      }
    }
  }
}

Option 2: Using source build

{
  "servers": {
    "jira": {
      "command": "node",
在 GitHub 查看完整 README

安装

npx -y mcp-jira-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "jira": { "command": "npx", "args": ["-y", "mcp-jira-server"], "env": { "JIRA_BASE_URL": "https://jira.domain.com", "JIRA_PAT": "your-personal-access-token-here" } } } }