Jira MCP Server

Jira MCP Server

Enables AI coding assistants to search, create, update, and manage Jira issues, users, and projects via natural language, using the Jira REST API and MCP stdio transport.

Category
访问服务器

README

Jira MCP Server

An MCP (Model Context Protocol) server for Jira integration. Connect your AI coding assistant to your Jira instance to search, create, update, and manage issues without leaving your editor.

Features

  • 12 tools exposed via MCP stdio transport
  • Auth via Jira API token (HTTP Basic)
  • Search using the latest /rest/api/3/search/jql endpoint
  • JSON Schema tool definitions (compatible with strict MCP clients)

Available Tools

Tool Description Read/Write
get_issue Get a single issue by key Read
get_issues Search issues by project, board, or raw JQL Read
get_assigned_issues Get issues assigned to a user Read
create_issue Create a new issue Write
update_issue Update issue fields (summary, description, assignee, status, priority) Write
delete_issue Delete an issue (destructive) Write
create_issue_link Link two issues (Blocks, Relates to, etc.) Write
get_user Find a user by email Read
list_users List all Jira users (paginated) Read
list_fields List all available Jira fields Read
list_issue_types List all issue types (Bug, Task, Story, Epic) Read
list_link_types List all issue link types Read

Prerequisites

  • Node.js 20+ (uses built-in fetch)
  • A Jira Cloud account with an API token
  • Your Jira site URL (e.g. https://your-team.atlassian.net)

Create a Jira API Token

  1. Go to https://id.atlassian.com/manage-profile/security/api-tokens
  2. Click Create API token
  3. Name it (e.g. "MCP Server")
  4. Copy the token (starts with ATATT3)

Setup

1. Clone and install

git clone <your-repo-url> jira-mcp
cd jira-mcp
npm install

2. Build

npm run build

3. Verify it works

npm run inspector

This launches the MCP Inspector — a web UI for testing MCP tools directly. Or test from the command line:

npm start

You should see: Jira MCP server running on stdio.

Note: The inspector and npm start commands require env vars to be available. You can pass them inline:

JIRA_HOST=https://your-team.atlassian.net JIRA_EMAIL=you@example.com JIRA_API_TOKEN=ATATT3xF... npm start

Or create a .env file (see below).


Connect to your AI assistant

The server communicates over stdio. All clients use the same command:

node /absolute/path/to/jira-mcp/build/index.js

Replace /absolute/path/to/jira-mcp with the actual path to your cloned repo.

Opencode

Edit ~/.config/opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "jira": {
      "type": "local",
      "command": ["node", "/absolute/path/to/jira-mcp/build/index.js"],
      "enabled": true,
      "timeout": 30000,
      "environment": {
        "JIRA_HOST": "https://your-team.atlassian.net",
        "JIRA_EMAIL": "your-email@example.com",
        "JIRA_API_TOKEN": "ATATT3xF..."
      }
    }
  }
}

Restart opencode. Verify with:

opencode mcp list

Claude Code

Edit ~/.claude/claude_desktop_config.json (Claude Desktop) or .claude/settings.json (Claude Code CLI):

{
  "mcpServers": {
    "jira": {
      "command": "node",
      "args": ["/absolute/path/to/jira-mcp/build/index.js"],
      "env": {
        "JIRA_HOST": "https://your-team.atlassian.net",
        "JIRA_EMAIL": "your-email@example.com",
        "JIRA_API_TOKEN": "ATATT3xF..."
      }
    }
  }
}

Restart Claude. Tools appear as mcp__jira__get_issue, mcp__jira__create_issue, etc.

Codex CLI

Edit ~/.codex/config.toml:

[mcp_servers.jira]
command = "node"
args = ["/absolute/path/to/jira-mcp/build/index.js"]
cwd = "/absolute/path/to/jira-mcp"
enabled = true
startup_timeout_sec = 30

[mcp_servers.jira.env]
JIRA_HOST = "https://your-team.atlassian.net"
JIRA_EMAIL = "your-email@example.com"
JIRA_API_TOKEN = "ATATT3xF..."

Restart Codex.

Cursor

Edit ~/.cursor/mcp.json (or .cursor/mcp.json in your project root):

{
  "mcpServers": {
    "jira": {
      "command": "node",
      "args": ["/absolute/path/to/jira-mcp/build/index.js"],
      "env": {
        "JIRA_HOST": "https://your-team.atlassian.net",
        "JIRA_EMAIL": "your-email@example.com",
        "JIRA_API_TOKEN": "ATATT3xF..."
      }
    }
  }
}

Restart Cursor.

VS Code (with Continue extension)

Edit ~/.continue/config.json and add under experimental.modelContextProtocolServers:

{
  "experimental": {
    "modelContextProtocolServers": [
      {
        "transport": {
          "type": "stdio",
          "command": "node",
          "args": ["/absolute/path/to/jira-mcp/build/index.js"],
          "env": {
            "JIRA_HOST": "https://your-team.atlassian.net",
            "JIRA_EMAIL": "your-email@example.com",
            "JIRA_API_TOKEN": "ATATT3xF..."
          }
        }
      }
    ]
  }
}

Restart VS Code.

VS Code note: As of mid-2026, native MCP support in VS Code is evolving. The Continue extension provides the most stable MCP integration. Check the Continue docs for the latest config format if the above doesn't match your version.


Environment variables

The server needs three variables. You only need to provide them once — either in your client config (recommended) or in a .env file. You do not need both.

Option A — Client config (recommended)

Pass env vars directly in your client's MCP config via the environment / env block. This is shown in all the client examples above. No .env file needed.

Option B — .env file (alternative)

If you prefer not to put credentials in each client's config, create a .env file in the repo root:

cp .env.example .env

Edit .env:

JIRA_HOST=https://your-team.atlassian.net
JIRA_EMAIL=your-email@example.com
JIRA_API_TOKEN=ATATT3xF...

The server loads .env via dotenv.config() at startup. If the client config also passes env vars, those take precedence.

Important:

  • JIRA_HOST must be your Jira site URL (e.g. https://your-team.atlassian.net), not an Atlassian org admin URL.
  • The API token authenticates via HTTP Basic (email + token), not Bearer. This is handled automatically by the server.
  • .env is gitignored — never commit your token.

Variables

Variable Required Example
JIRA_HOST Yes https://your-team.atlassian.net
JIRA_EMAIL Yes your-email@example.com
JIRA_API_TOKEN Yes ATATT3xF... (from Atlassian API token page)

Usage examples

Once connected, ask your AI assistant in natural language:

  • "Get issue KAN-42"
  • "Create a task called 'Fix login bug' in project KAN, assign to sadeq@example.com"
  • "Show me all In Progress issues with High priority"
  • "List all Jira users"
  • "Find the user with email alice@example.com"
  • "Update KAN-15 status to In Progress"
  • "Link KAN-3 and KAN-7 with 'Blocks'"

The AI will call the appropriate MCP tool automatically.


Development

# Watch mode (auto-rebuild on save)
npm run dev

# Typecheck only
npx tsc --noEmit

# Run inspector for interactive testing
npm run inspector

Tech stack

  • Runtime: Node.js 20+
  • MCP SDK: @modelcontextprotocol/sdk
  • Jira client: jira.js (v3) — with a custom fetch workaround for the deprecated search endpoint
  • Schema validation: zod + zod-to-json-schema for MCP-compatible JSON Schema output
  • Language: TypeScript (ESM)

Known limitations

  • The searchForIssuesUsingJql method in jira.js targets a deprecated Atlassian endpoint. We bypass it with a direct fetch to /rest/api/3/search/jql.
  • create_issue and update_issue assign via accountId (not username) for Jira Cloud compatibility.
  • No support yet for comments, worklogs, sprints, attachments, or watchers. See the open tasks in your Jira board for planned additions.

Troubleshooting

Problem Cause Fix
JIRA_HOST, JIRA_EMAIL, and JIRA_API_TOKEN environment variables are required Env vars not loaded Pass them in client config environment/env block, or create .env in the repo root
server unavailable / failed to load in client Bad JSON Schema in tools/list Rebuild with npm run build and restart the client
The requested API has been removed Old jira.js search endpoint Already fixed — ensure you're on the latest build
assignee: null after create/update Using legacy name instead of accountId Already fixed — ensure you're on the latest build
Connection works but tools don't appear Client not restarted after config change Fully quit and restart the client (config is loaded once at startup)
JIRA_HOST is an org URL, not a site URL Wrong host format Use https://your-team.atlassian.net, not https://home.atlassian.com/o/...

Security

  • .env is gitignored — never commit your API token.
  • If you store credentials in your client config (e.g. opencode.json, config.toml), ensure that file is also gitignored or stored outside version control.
  • The Jira API token grants full access to your Jira account. Treat it like a password.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选