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.
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/jqlendpoint - 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
- Go to https://id.atlassian.com/manage-profile/security/api-tokens
- Click Create API token
- Name it (e.g. "MCP Server")
- 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 startcommands 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 startOr create a
.envfile (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_HOSTmust 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.
.envis 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 customfetchworkaround for the deprecated search endpoint - Schema validation:
zod+zod-to-json-schemafor MCP-compatible JSON Schema output - Language: TypeScript (ESM)
Known limitations
- The
searchForIssuesUsingJqlmethod injira.jstargets a deprecated Atlassian endpoint. We bypass it with a directfetchto/rest/api/3/search/jql. create_issueandupdate_issueassign viaaccountId(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
.envis 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
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。