Jira MCP Server
Enables Jira integration for comprehensive issue management, board operations, time tracking, and project management through natural language.
README
Jira MCP Server
Fork of OrenGrinker/jira-mcp-server
A production-ready Model Context Protocol (MCP) server for Jira integration. Supports both Jira Cloud and Jira Data Center/Server with comprehensive issue management, board operations, time tracking, and project management capabilities.
Features
Core Functionality
- Board Management: List, filter, and manage Jira boards with detailed information
- Issue Operations: Create, update, search, transition, and manage issues comprehensively
- User Management: Search users, get user details, and manage assignments
- Project Administration: View projects, get detailed project information
- Time Tracking: Add and view work logs with flexible time formats
- Comment System: Add comments with rich text support
Enhanced Features
- Dual Authentication: Supports both Jira Cloud (Basic Auth) and Jira Data Center/Server (Bearer Token)
- Rate Limiting: Intelligent API request throttling to respect Jira limits
- Request Timeout: Built-in 30-second timeout with AbortController
- Comprehensive Logging: Configurable logging with multiple levels
- Error Handling: Robust error handling with sanitized error messages
- Input Validation: Thorough validation and sanitization of all inputs
- Security: HTTPS enforcement, SSRF protection, sensitive data sanitization
Requirements
- Node.js: 18.0.0 or higher
- Jira: Access to a Jira Cloud or Jira Data Center/Server instance
- API Token:
- Jira Cloud: Create API Token
- Jira Server: Personal Access Token (Profile → Personal Access Tokens)
Installation
Option 1: Clone and Build
git clone https://github.com/JSM-CN/jira-mcp-server.git
cd jira-mcp-server
npm install
npm run build
Option 2: Use Directly with npx
npx @jsm-cn/jira-mcp-server
Configuration
Environment Variables
Create a .env file or set these environment variables:
Jira Cloud
JIRA_BASE_URL=https://your-company.atlassian.net
JIRA_EMAIL=your-email@company.com
JIRA_API_TOKEN=your-jira-api-token
JIRA_AUTH_TYPE=cloud
LOG_LEVEL=INFO # Optional: ERROR, WARN, INFO, DEBUG
Jira Data Center/Server
JIRA_BASE_URL=https://jira.your-company.com
JIRA_API_TOKEN=your-personal-access-token
JIRA_AUTH_TYPE=server
LOG_LEVEL=INFO
| Variable | Required | Description |
|---|---|---|
JIRA_BASE_URL |
Yes | Your Jira instance URL (must use HTTPS) |
JIRA_API_TOKEN |
Yes | API token (Cloud) or Personal Access Token (Server) |
JIRA_EMAIL |
Cloud only | Your Jira account email |
JIRA_AUTH_TYPE |
No | cloud (default) or server |
LOG_LEVEL |
No | Logging level: ERROR, WARN, INFO, DEBUG |
Claude Code Configuration
Add to your ~/.claude/settings.json:
{
"env": {
"JIRA_BASE_URL": "https://your-company.atlassian.net",
"JIRA_EMAIL": "your-email@company.com",
"JIRA_API_TOKEN": "your-api-token",
"JIRA_AUTH_TYPE": "cloud"
}
}
And create ~/.mcp.json:
{
"mcpServers": {
"jira": {
"command": "node",
"args": ["/path/to/jira-mcp-server/dist/index.js"],
"env": {
"JIRA_BASE_URL": "${JIRA_BASE_URL}",
"JIRA_EMAIL": "${JIRA_EMAIL}",
"JIRA_API_TOKEN": "${JIRA_API_TOKEN}",
"JIRA_AUTH_TYPE": "${JIRA_AUTH_TYPE}",
"LOG_LEVEL": "INFO"
}
}
}
}
Available Tools
| Tool | Description |
|---|---|
get_boards |
List all boards with optional filtering |
get_board_details |
Get detailed board information |
get_board_issues |
Get issues from a board with filters |
search_issues |
Search issues using JQL |
get_issue_details |
Get comprehensive issue information |
create_issue |
Create a new issue |
update_issue |
Update an existing issue |
transition_issue |
Move issue to a different status |
add_comment |
Add a comment to an issue |
get_current_user |
Get authenticated user info |
search_users |
Find users by name or email |
get_user_details |
Get detailed user information |
get_projects |
List all accessible projects |
get_project_details |
Get project information |
add_worklog |
Log work time on an issue |
get_worklogs |
View work logs for an issue |
get_server_info |
Get Jira server information |
Usage Examples
Natural Language Commands with Claude
"Show me all my open issues"
"Create a new bug in PROJECT-X about login issues"
"Move ticket PROJ-123 to In Progress"
"Log 2 hours of work on PROJ-456 for code review"
"Add a comment to PROJ-789 saying the fix is deployed"
"Show me all Scrum boards for the mobile project"
"Get details for issue PROJ-100 including comments"
JQL Query Examples
# Your open issues
assignee = currentUser() AND status != Done
# Recent issues in a project
project = "MYPROJ" AND created >= -7d
# High priority bugs
priority = High AND issuetype = Bug
# Issues due this week
duedate >= startOfWeek() AND duedate <= endOfWeek()
Security Features
This server implements multiple security measures:
- HTTPS Enforcement: All connections must use HTTPS
- SSRF Protection: Blocks requests to private IP addresses (10.x, 172.16-31.x, 192.168.x, localhost)
- Input Sanitization: JQL injection prevention and input length limits
- Credential Protection: Sensitive data is redacted in logs and error messages
- Request Timeout: 30-second timeout prevents resource exhaustion
Development
Setup
git clone https://github.com/JSM-CN/jira-mcp-server.git
cd jira-mcp-server
npm install
Scripts
npm run dev # Start development server with hot reload
npm run build # Build for production
npm run clean # Clean build directory
npm run start # Start production server
Project Structure
src/
├── index.ts # Main server entry point
├── jiraApiClient.ts # Jira API client with auth support
├── toolRegistry.ts # Tool registration and routing
├── types/
│ └── index.ts # TypeScript type definitions
├── services/
│ ├── boardService.ts # Board operations
│ ├── issueService.ts # Issue operations
│ ├── userService.ts # User operations
│ ├── projectService.ts # Project operations
│ ├── worklogService.ts # Worklog operations
│ └── serverService.ts # Server operations
└── utils/
├── logger.ts # Logging utility
├── rateLimiter.ts # Rate limiting
├── validation.ts # Input validation
└── formatters.ts # Response formatting
Troubleshooting
Common Issues
| Issue | Solution |
|---|---|
| Authentication Failed | Verify API token and email (Cloud) or PAT (Server) |
| Permission Denied | Check Jira permissions for your user |
| Connection Timeout | Check network connectivity and firewall settings |
| 401 Error on Jira Server | Use Personal Access Token, not Cloud API Token |
Debug Mode
export LOG_LEVEL=DEBUG
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
- Built with the Model Context Protocol SDK
- Inspired by the MCP community and best practices
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。