mcp-server-jira
Enables an AI agent to manage Jira Stories in a self-hosted Jira instance via the Jira REST API v2, including CRUD operations, workflow transitions, and burndown data retrieval.
README
mcp-server-jira
An MCP (Model Context Protocol) server that lets an AI agent manage Jira Stories in a self-hosted Jira instance via the Jira REST API v2. Built for a PRD automation workflow.
Setup
npm install
cp .env.example .env # then fill in your values
npm run build
Configuration
All config comes from environment variables (loaded from .env):
| Variable | Required | Description |
|---|---|---|
JIRA_BASE_URL |
✅ | Base URL of the Jira instance, e.g. https://jira.yourcompany.com |
JIRA_USER_EMAIL |
✅ | Account email/username used for Basic Auth |
JIRA_API_TOKEN |
✅ | API token / password used for Basic Auth |
JIRA_PROJECT_KEY |
✅ | Project key, e.g. PRD |
JIRA_STORY_ISSUE_TYPE |
Issue type name for stories (default Story) |
|
JIRA_OUTLINE_LINK_FIELD |
Custom field id for the Outline link (e.g. customfield_10100) |
|
JIRA_STORY_POINTS_FIELD |
Custom field id for story points (default customfield_10016) |
Authentication uses HTTP Basic Auth: base64(JIRA_USER_EMAIL:JIRA_API_TOKEN).
All API calls target ${JIRA_BASE_URL}/rest/api/2.
Running
The server speaks MCP over stdio.
npm start # runs dist/index.js
npm run dev # ts-node src/index.ts
Example MCP client config
{
"mcpServers": {
"jira": {
"command": "node",
"args": ["/absolute/path/to/mcp-server-jira/dist/index.js"],
"env": {
"JIRA_BASE_URL": "https://jira.yourcompany.com",
"JIRA_USER_EMAIL": "bot@yourcompany.com",
"JIRA_API_TOKEN": "...",
"JIRA_PROJECT_KEY": "PRD"
}
}
}
}
Tools
Story CRUD
| Tool | Purpose |
|---|---|
create_story |
Create a Story from a PRD (with acceptance criteria + Outline link) |
get_story |
Fetch a Story's key fields by issue key |
update_story |
Update selected fields of a Story |
search_stories |
JQL text search for Stories (duplicate detection) |
get_project_info |
Project metadata: priorities, issue types, story type id |
add_comment |
Add a plain-text comment to a Story |
Workflow & guarded actions
| Tool | Purpose |
|---|---|
transition_story |
List or perform workflow transitions. Transitions to Done/Closed need confirm. |
delete_story |
Permanently delete a Story. Requires confirm: true. |
Agile / burndown (requires Jira Software)
| Tool | Purpose |
|---|---|
list_boards |
List Agile boards (scrum/kanban) — get a board id |
list_sprints |
List a board's sprints with start/end dates and state |
get_sprint_burndown |
Burndown data for AI analysis (committed vs done vs remaining) |
Safety: human approval for risky actions
Two complementary mechanisms protect destructive operations:
-
MCP annotations — every tool declares
readOnlyHint/destructiveHint/idempotentHint/openWorldHint. The host (e.g. Claude) uses these to decide when to prompt the human before running a tool. Read-only tools (get_*,search_*,list_*) are flagged as such;update_story,delete_storyare flagged destructive. -
Server-enforced confirmation —
delete_storyand terminaltransition_storycalls require an explicitconfirm: true. Without it the tool performs no API call and instead returns arequires_confirmationwarning describing the impact, so the agent (and human) must opt in deliberately.
Burndown charts
An MCP server can't return a rendered chart image, but get_sprint_burndown
returns the underlying data: a reliable computed summary (committed/completed/
remaining story points and issue counts by status, derived from the sprint's
issues) plus a best-effort raw GreenHopper burndown time-series
(burndown_chart_raw) when that internal endpoint is available. The AI can
summarize progress, flag scope changes, and describe the burndown from this data.
Story points are read from JIRA_STORY_POINTS_FIELD.
All tools return structured JSON. Errors are returned as structured objects
({ error: true, message, ... }) — the server never throws unhandled exceptions
out of a tool. Logs are written to stderr only; stdout is reserved for the
MCP protocol.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。