jira-context-mcp
Fetches structured Jira issue context from a URL, enabling coding agents to quickly understand issue intent and implementation details.
README
jira-context-mcp
jira-context-mcp is a production-focused MCP server that fetches structured Jira issue context from a Jira URL. It is designed for coding agents like Codex and Claude Code so they can quickly understand issue intent and implementation context.
What This Server Does
- Exposes one MCP tool:
get_jira_issue_from_url - Validates that the input URL belongs to your
JIRA_BASE_URL - Extracts a Jira issue key from multiple Jira URL shapes
- Calls Jira Cloud REST API:
GET /rest/api/3/issue/{issueIdOrKey}?expand=names,renderedFields
- Converts Jira rich text (Atlassian Document Format) into plain text
- Returns concise, agent-friendly structured issue context
Supported Jira Issue Types
This server is issue-type agnostic. It works for any Jira issue type, including:
- Bug
- Feature request
- Task
- Story
- Epic
- Requirement
- Improvement
- Support ticket
- Custom issue types
Required Environment Variables
JIRA_EMAIL: Jira account emailJIRA_API_TOKEN: Jira API tokenJIRA_BASE_URL: Jira Cloud tenant URL (example:https://your-domain.atlassian.net)
Quick Setup Commands
Codex (no global install)
codex mcp add jira \
--env JIRA_EMAIL=you@example.com \
--env JIRA_API_TOKEN=your-token \
--env JIRA_BASE_URL=https://your-domain.atlassian.net \
-- npx -y github:TastyHeadphones/jira-context-mcp
Claude Code (no global install)
claude mcp add jira \
-e JIRA_EMAIL=you@example.com \
-e JIRA_API_TOKEN=your-token \
-e JIRA_BASE_URL=https://your-domain.atlassian.net \
-- npx -y github:TastyHeadphones/jira-context-mcp
Optional: install globally first
npm install -g github:TastyHeadphones/jira-context-mcp
Then add with local binary:
codex mcp add jira \
--env JIRA_EMAIL=you@example.com \
--env JIRA_API_TOKEN=your-token \
--env JIRA_BASE_URL=https://your-domain.atlassian.net \
-- jira-context-mcp
claude mcp add jira \
-e JIRA_EMAIL=you@example.com \
-e JIRA_API_TOKEN=your-token \
-e JIRA_BASE_URL=https://your-domain.atlassian.net \
-- jira-context-mcp
Tool
get_jira_issue_from_url
Input:
{
"url": "string"
}
Supported URL examples:
${JIRA_BASE_URL}/browse/ABC-123${JIRA_BASE_URL}/jira/software/projects/ABC/boards/1/backlog?selectedIssue=ABC-123- Any Jira URL under
JIRA_BASE_URLcontaining an issue key likeABC-123
Returned structured data includes:
issueKey,issueUrl,summarydescription(plain text where possible)issueType,status,statusCategory,priorityassignee,reporterlabels,componentsfixVersions,affectedVersionscreated,updated,dueDateparent,epicsubtasks,linkedIssuesattachments(metadata only)comments(most recent 10)acceptanceCriteria(best-effort extraction from description/custom fields)customFields(non-empty, normalized, human-readable)
Create a Jira API Token
- Open Atlassian API token settings.
- Click Create API token.
- Name the token and copy it.
- Use that value for
JIRA_API_TOKEN.
Run Locally
- Install dependencies:
npm install
-
Set environment variables (for example via
.envin your shell/session). -
Build:
npm run build
- Start:
npm start
Development mode:
npm run dev
MCP Configuration Examples
Use this server entry in your MCP client config:
{
"mcpServers": {
"jira": {
"command": "node",
"args": ["/absolute/path/to/jira-context-mcp/dist/index.js"],
"env": {
"JIRA_EMAIL": "you@example.com",
"JIRA_API_TOKEN": "your-token",
"JIRA_BASE_URL": "https://your-domain.atlassian.net"
}
}
}
}
Claude Code MCP configuration example
Use the same JSON block above in your Claude Code MCP server configuration file.
Codex MCP configuration example
Use the same JSON block above in your Codex MCP server configuration file.
Example Tool Call
{
"name": "get_jira_issue_from_url",
"arguments": {
"url": "https://your-domain.atlassian.net/browse/ABC-123"
}
}
Example Output
{
"issueKey": "ABC-123",
"issueUrl": "https://your-domain.atlassian.net/browse/ABC-123",
"summary": "Prevent duplicate webhook retries",
"description": "As a platform engineer, I need retry deduplication ...",
"acceptanceCriteria": "- Duplicate deliveries are ignored\n- Metrics include dropped duplicates",
"issueType": "Story",
"status": "In Progress",
"statusCategory": "In Progress",
"priority": "High",
"assignee": {
"accountId": "5b10ac8d82e05b22cc7d4ef5",
"displayName": "Alex Example",
"emailAddress": null,
"active": true
},
"labels": ["webhook", "idempotency"],
"components": ["API"],
"fixVersions": ["2026.05"],
"affectedVersions": ["2026.04"],
"subtasks": [],
"linkedIssues": [],
"attachments": [],
"comments": [],
"customFields": []
}
Security Notes
- Keep
JIRA_API_TOKENsecret. Never commit it to source control. - Use least-privilege Jira access for the account tied to the token.
- This server only fetches issue data and attachment metadata; it does not download attachment files.
- URL validation rejects URLs outside your configured
JIRA_BASE_URL.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。