royashish-in/jira-mcp-server
If you are the rightful owner of jira-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
A Model Context Protocol (MCP) server for JIRA integration that allows AI assistants to read user stories and issues from JIRA projects.
JIRA MCP Server
A Model Context Protocol (MCP) server for JIRA integration that allows AI assistants to read user stories and issues from JIRA projects.
๐ Quick Start with Docker
# Pull from Docker Hub
docker pull yourusername/jira-mcp-server:latest
# Run with environment variables
docker run -d \
-e JIRA_URL=https://your-company.atlassian.net \
-e JIRA_USERNAME=your-email@company.com \
-e JIRA_API_TOKEN=your-api-token \
--name jira-mcp-server \
yourusername/jira-mcp-server:latest
๐ Features
- Get User Stories: Fetch user stories from JIRA projects
- Get Issues: Retrieve specific JIRA issues by key
- MCP Protocol: Standard Model Context Protocol for AI integration
- Docker Ready: Pre-built Docker images available
- Secure: Uses JIRA API tokens for authentication
๐ง Configuration
Required Environment Variables
Variable | Description | Example |
---|---|---|
JIRA_URL | Your JIRA instance URL | https://company.atlassian.net |
JIRA_USERNAME | Your JIRA email | user@company.com |
JIRA_API_TOKEN | JIRA API token | ATATT3xFfGF0... |
Getting JIRA API Token
- Go to Atlassian Account Settings
- Click "Create API token"
- Copy the generated token
๐ณ Docker Usage
Using Docker Hub Image
# Basic usage
docker run -d \
-e JIRA_URL=https://your-company.atlassian.net \
-e JIRA_USERNAME=your-email@company.com \
-e JIRA_API_TOKEN=your-api-token \
yourusername/jira-mcp-server:latest
# With custom name and restart policy
docker run -d \
--name jira-mcp \
--restart unless-stopped \
-e JIRA_URL=https://your-company.atlassian.net \
-e JIRA_USERNAME=your-email@company.com \
-e JIRA_API_TOKEN=your-api-token \
yourusername/jira-mcp-server:latest
Using Docker Compose
version: '3.8'
services:
jira-mcp-server:
image: yourusername/jira-mcp-server:latest
environment:
- JIRA_URL=https://your-company.atlassian.net
- JIRA_USERNAME=your-email@company.com
- JIRA_API_TOKEN=your-api-token
restart: unless-stopped
๐ ๏ธ Local Development
Prerequisites
- Python 3.10+
- uv package manager
Setup
# Clone repository
git clone https://github.com/yourusername/jira-mcp-server.git
cd jira-mcp-server
# Install dependencies
uv sync
# Copy environment template
cp .env.example .env
# Edit .env with your JIRA credentials
nano .env
# Test connection
uv run python test_connection.py
# Run server
uv run python server.py
๐ MCP Integration
With Claude Desktop
Add to your Claude Desktop MCP configuration:
{
"mcpServers": {
"jira": {
"command": "docker",
"args": [
"exec", "-i", "jira-mcp-server",
"uv", "run", "python", "server.py"
]
}
}
}
With Other MCP Clients
The server communicates via stdio using the standard MCP protocol:
# Send MCP requests via stdin
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | docker exec -i jira-mcp-server uv run python server.py
๐ Available Tools
get_user_stories
Fetch user stories from JIRA projects.
Parameters:
project
(optional): JIRA project key (e.g., "KW")limit
(optional): Maximum number of stories (default: 10, max: 100)
Example:
{
"name": "get_user_stories",
"arguments": {
"project": "KW",
"limit": 20
}
}
get_issue
Get a specific JIRA issue by key.
Parameters:
key
(required): JIRA issue key (e.g., "KW-123")
Example:
{
"name": "get_issue",
"arguments": {
"key": "KW-123"
}
}
๐งช Testing
# Run all tests
./run_tests.sh
# Unit tests only
uv run python -m pytest test_unit.py -v
# Integration test (requires JIRA access)
uv run python test_integration.py
# Test MCP protocol
uv run python test_mcp_client.py
๐ Security
- Uses JIRA API tokens (not passwords)
- Validates input parameters
- Rate limiting and timeout protection
- No data persistence or logging of sensitive information
๐ License
MIT License - see file for details.
๐ค Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests
- Submit a pull request
๐ Support
- Issues: GitHub Issues
- Discussions: GitHub Discussions
๐ท๏ธ Tags
mcp
jira
ai
model-context-protocol
docker
python
atlassian