Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
MCP server to handle Jira issues, integrating with Claude Desktop and other MCP clients for natural language interaction with Jira.
A Model Context Protocol (MCP) server for interacting with Jira's REST API using the jira-python
library. This server integrates with Claude Desktop and other MCP clients, allowing you to interact with Jira using natural language commands.
# Install a Virtual Environment (VENV) in the mcp server directory
python -m venv .
# Activate the virtual environment
source bin/activate
# Install uv if you don't have it
pip install uv
# Install the Jira MCP server
uv pip install mcp-server-jira
pip install mcp-server-jira
Configure the server using environment variables:
JIRA_SERVER_URL
: URL of your Jira serverJIRA_AUTH_METHOD
: Authentication method ('basic_auth' or 'token_auth')JIRA_USERNAME
: Username for basic authJIRA_PASSWORD
: Password for basic authJIRA_TOKEN
: API token or Personal Access TokenYou can also create a .env
file in the root directory with your configuration:
JIRA_SERVER_URL=https://your-jira-instance.atlassian.net
JIRA_AUTH_METHOD=basic_auth
[email protected]
JIRA_TOKEN=your_api_token
python -m mcp_server_jira
docker build -t mcp-jira .
docker run --env-file .env -p 8080:8080 mcp-jira
To use this server with Claude Desktop:
NOTE
: The environment variables used are for token Auth and will not work with other authentication methods){
"mcpServers": {
"jira": {
"command": "<PATH TO UV> i.e. /Users/<MYUSERNAME>/.local/bin/uv",
"args": [
"--directory",
"<PATH TO JIRA MCP>",
"run",
"mcp-server-jira"
],
"env": {
"JIRA_SERVER_URL": "https://<ORG>.atlassian.net/",
"JIRA_AUTH_METHOD": "token_auth",
"JIRA_USERNAME": "<USERNAME>",
"JIRA_TOKEN": "<TOKEN>"
}
}
}
}
The server supports multiple authentication methods:
For Jira Server/Data Center with username and password:
JIRA_SERVER_URL="https://jira.example.com"
JIRA_AUTH_METHOD="basic_auth"
JIRA_USERNAME="your_username"
JIRA_PASSWORD="your_password"
For Jira Cloud using an API token:
JIRA_SERVER_URL="https://your-domain.atlassian.net"
JIRA_AUTH_METHOD="basic_auth"
JIRA_USERNAME="[email protected]"
JIRA_TOKEN="your_api_token"
For Jira Server/Data Center (8.14+) using a PAT:
JIRA_SERVER_URL="https://jira.example.com"
JIRA_AUTH_METHOD="token_auth"
JIRA_TOKEN="your_personal_access_token"
get_projects
: Get all accessible Jira projectsget_issue
: Get details for a specific Jira issue by keysearch_issues
: Search for Jira issues using JQLcreate_issue
: Create a new Jira issueadd_comment
: Add a comment to a Jira issueget_transitions
: Get available workflow transitions for a Jira issuetransition_issue
: Transition a Jira issue to a new statusMIT