Jira MCP Server
A Model Context Protocol (MCP) server for Jira integration. This server enables AI assistants like Claude to interact with Jira Cloud instances.
Features
- ๐ซ Issue management (create, read, update, search)
- ๐ Project listing
- ๐ JQL search capabilities
- ๐ API token authentication
- ๐ TypeScript implementation
- ๐ฅ๏ธ Cross-platform support (Windows, macOS, Linux)
System Requirements
- Node.js 18.x or higher
- npm or yarn
- Jira Cloud instance (does not work with Jira Server/Data Center)
Quick Start
1. Installation
npm install
2. Configuration
Create a .env
file in the project root:
JIRA_HOST=your-domain.atlassian.net
[email protected]
JIRA_API_TOKEN=your-api-token-here
3. Generate API Token
- Go to Atlassian Account Settings
- Click "Create API token"
- Give it a meaningful label
- Copy the token to your
.env
file
4. Build and Run
npm run build
npm start
Available Tools
Issue Management
jira_create_issue
- Create new issuesjira_get_issue
- Get detailed issue informationjira_update_issue
- Update issue fieldsjira_search_issues
- Search issues using JQLjira_list_projects
- List all accessible projects
Example Usage
Creating an Issue
{
"projectKey": "PROJ",
"summary": "Fix login bug",
"description": "Users cannot log in with special characters in password",
"issueType": "Bug"
}
Searching Issues
{
"jql": "project = PROJ AND status = \"In Progress\" AND assignee = currentUser()",
"maxResults": 20
}
Getting Issue Details
{
"issueKey": "PROJ-123"
}
Configuration for Claude Desktop
Add this to your Claude Desktop MCP configuration:
macOS/Linux
{
"mcpServers": {
"jira": {
"command": "node",
"args": ["/path/to/jira-mcp-server/build/index.js"],
"env": {
"JIRA_HOST": "your-domain.atlassian.net",
"JIRA_EMAIL": "[email protected]",
"JIRA_API_TOKEN": "your-api-token"
}
}
}
}
Windows
{
"mcpServers": {
"jira": {
"command": "node",
"args": ["C:\\path\\to\\jira-mcp-server\\build\\index.js"],
"env": {
"JIRA_HOST": "your-domain.atlassian.net",
"JIRA_EMAIL": "[email protected]",
"JIRA_API_TOKEN": "your-api-token"
}
}
}
}
Authentication
Uses Basic Authentication with email + API token. This is the most secure method for Jira Cloud.
Error Handling
The server includes comprehensive error handling for:
- Invalid credentials
- Network timeouts
- Invalid JQL queries
- Missing permissions
- Non-existent resources
All errors are returned in a structured format with helpful messages.
Development
Building
npm run build
Testing
# Test the server
node build/index.js
Troubleshooting
Common Issues
Server won't start:
- Check your
.env
file is properly configured - Verify your API token is valid
- Ensure Node.js version is 18+
- Check your
Permission errors:
- Verify your Jira user has appropriate permissions
- Check that the project key exists and is accessible
Connection issues:
- Verify your Jira host URL is correct
- Check network connectivity to Jira Cloud
License
ISC
Contributing
Please see CONTRIBUTING.md for details on how to contribute to this project.
Support
For issues and feature requests, please use the GitHub issue tracker.