MCP JIRA Server
Provides read-only tools to search Jira issues using JQL or text queries, retrieve issue details, and discover issue relationships such as parent, children, descendants, ancestors, and linked issues.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP JIRA Server
A read-only Model Context Protocol (MCP) server that provides AI assistants with tools to search and retrieve JIRA issues. This server integrates with AI tools like Claude Desktop, VS Code, and other MCP-compatible clients.
Features
Search JIRA Issues: Support for both JQL queries and simple text searches
Retrieve Issue Details: Get comprehensive information about specific JIRA issues
Flexible Authentication: Support for username/password, API tokens, and Personal Access Tokens
Configuration Management: YAML/JSON configuration files with environment variable support
Read-Only Operations: Safe integration with AI tools - no data modification capabilities
Related MCP server: Jira MCP OAuth gateway
Setup
Prerequisites
Python 3.8 or higher
Access to a JIRA instance with valid credentials
MCP-compatible client (Claude Desktop, VS Code with MCP extension, etc.)
Installation
Choose the installation method based on your environment:
Claude Code (CLI):
make install-claudeCursor IDE:
make install-cursor
See MCP Client Integration below for detailed installation instructions.
Manual Setup:
If you prefer to set up manually:
Clone this repository:
git clone https://github.com/jewzaam/mcp-jira-server.git cd mcp-jira-serverCreate and activate a virtual environment:
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activateInstall dependencies:
pip install -r requirements.txt
Configuration
Configuration File
Create a configuration file (YAML or JSON) with your JIRA connection details:
# mcp_jira_server.yaml
url: https://your-jira-instance.com
username: your-username
token: your-api-token # Recommended over passwordOr using JSON:
{
"url": "https://your-jira-instance.com",
"username": "your-username",
"bearer_token": "your-personal-access-token"
}Authentication Methods
The server supports multiple authentication methods:
API Token (Recommended):
url: https://your-jira-instance.com username: your-username token: your-api-tokenPersonal Access Token:
url: https://your-jira-instance.com bearer_token: your-personal-access-tokenUsername/Password:
url: https://your-jira-instance.com username: your-username password: your-password
Configuration File Locations
The server looks for configuration files in this order:
Explicit path via
--configargumentPath specified in
MCP_JIRA_CONFIGenvironment variablemcp_jira_server.yamlin the current directory
Usage
Running the Server
Start the MCP server using the command line:
# Using configuration file
python -m mcp_jira_server.server
# With explicit configuration path
python -m mcp_jira_server.server --config /path/to/config.yaml
# Override config with command line arguments
python -m mcp_jira_server.server --url https://jira.company.com --username myuser --token mytokenCommand Line Options
Options:
-c, --config TEXT Path to YAML/JSON configuration file
--url TEXT JIRA base URL (overrides config)
--username TEXT JIRA username (overrides config)
--password TEXT JIRA password (overrides config)
--token TEXT JIRA API token (overrides config)
--bearer-token TEXT Personal Access Token (overrides config)
--help Show help messageMCP Client Integration
Claude Code (CLI)
Claude Code is the CLI interface for Claude. Installation uses the built-in MCP management:
make install-claudeThis will:
Set up the Python virtual environment
Install all dependencies
Create a JIRA configuration file in
~/.claude/mcp_jira_server.yamlRegister the MCP server using
claude mcp addcommand
After installation:
Edit
~/.claude/mcp_jira_server.yamlto configure your JIRA credentials:URL: Your JIRA instance URL (e.g.,
https://your-company.atlassian.net)Username: Your JIRA username or email
Token: Your JIRA API token (recommended - see Creating an API Token)
Verify installation:
claude mcp listStart using JIRA tools in your Claude Code sessions
Manual Installation:
If you prefer manual setup:
# After running 'make setup' to create the virtual environment
mkdir -p ~/.claude
cp example_mcp_jira_server.yaml ~/.claude/mcp_jira_server.yaml
chmod 600 ~/.claude/mcp_jira_server.yaml
claude mcp add jira -- $(pwd)/venv/bin/python -m mcp_jira_server.server --config ~/.claude/mcp_jira_server.yamlCursor IDE
For Cursor integration:
make install-cursorThis sets up the MCP server for Cursor's MCP extension.
VS Code with MCP Extension
Configure the server in your VS Code MCP settings:
{
"mcp.servers": {
"jira": {
"command": "python",
"args": ["-m", "mcp_jira_server.server"],
"cwd": "/path/to/mcp-jira-server"
}
}
}Available Tools
The server provides seven MCP tools:
Basic Tools
1. search_issues
Search for JIRA issues using JQL or simple text queries.
Parameters:
query(string): JQL query or simple search termmax_results(int, optional): Maximum number of results (1-100, default 25)
Examples:
Simple text:
"bug in authentication"JQL query:
"project = PROJ AND status = Open"
2. get_issue
Retrieve detailed information about a specific JIRA issue.
Parameters:
key(string): JIRA issue key (e.g., "PROJ-123")expand(string, optional): Comma-separated fields to expand
Example:
Get issue:
"PROJ-123"With expansion:
"PROJ-123"with expand"changelog,comments"
3. identifier_hint
Get help about JIRA issue identifier format.
Parameters: None
Returns: Description of valid JIRA issue key patterns.
Relationship Discovery Tools
4. get_issue_relationships
Get comprehensive relationship information for a specific JIRA issue.
Parameters:
issue_key(string): JIRA issue key (e.g., "PROJ-123")
Returns: Complete relationship data including:
Parent issue (for subtasks)
List of subtask keys
Issue links with type and direction
Count of remote links
5. get_descendants
Get all descendants of an issue based on relationship types and traversal depth.
Parameters:
issue_key(string): Root JIRA issue keymax_depth(int, optional): Maximum traversal depth (-1 for unlimited, default: 3)include_subtasks(bool, optional): Include subtask relationships (default: true)include_links(bool, optional): Include issue links (default: true)include_parent_links(bool, optional): Include custom parent-link fields (default: false)
Returns: Tree structure with all descendant issues and traversal metadata.
6. get_children
Get direct children of an issue (subtasks and optionally parent-link children).
Parameters:
issue_key(string): Parent JIRA issue keyinclude_parent_links(bool, optional): Include custom parent-link children (default: false)parent_link_field(string, optional): Name of parent link field (default: "Parent Link")
Returns: List of immediate child issues.
7. get_linked_issues
Get issues linked to the specified issue via JIRA issue links.
Parameters:
issue_key(string): JIRA issue keylink_type(string, optional): Filter by specific link type (case-insensitive)
Returns: List of linked issues with link type, direction, and relationship details.
8. get_parent
Get the immediate parent of a JIRA issue.
Parameters:
issue_key(string): JIRA issue keyinclude_parent_links(boolean, optional): Include custom parent link fields (default: true)parent_link_field(string, optional): Name of parent link field (default: "Parent Link")
Returns: Parent information including parent key, summary, and relationship type.
Example:
get_parent("PROJ-123")
# Returns: ParentInfo with parent_key, parent_summary, parent_type9. get_ancestors
Get all ancestors of a JIRA issue by following parent relationships recursively.
Parameters:
issue_key(string): JIRA issue keymax_depth(int, optional): Maximum traversal depth (-1 for unlimited, default: 5)include_parent_links(boolean, optional): Include custom parent link fields (default: true)parent_link_field(string, optional): Name of parent link field (default: "Parent Link")
Returns: Tree structure with all ancestor issues, traversal order, and metadata.
Example:
get_ancestors("PROJ-123", max_depth=3)
# Returns: AncestorTree with ancestors list, traversal_order, and metadataDevelopment
Running Tests
The project includes comprehensive unit tests:
# Run all tests
python -m unittest discover mcp_jira_server/
# Run specific test modules
python -m unittest mcp_jira_server.test_config
python -m unittest mcp_jira_server.test_server
# Run with verbose output
python -m unittest mcp_jira_server.test_server -vTest Coverage
Run tests with coverage reporting:
# Install coverage if not already installed
pip install -r requirements-test.txt
# Run tests with coverage
coverage run --source=mcp_jira_server -m unittest discover mcp_jira_server/
coverage report -m
coverage html # Generate HTML reportCode Quality
The project maintains high code quality standards:
# Run linting
flake8 mcp_jira_server/ --max-line-length=100
# Check for common issues
python -m py_compile mcp_jira_server/*.pySecurity Considerations
API Tokens: Always prefer API tokens over passwords for authentication
Configuration Location: The installation stores configuration files in
~/.claude/(outside the project directory) to prevent accidental credential commits to version controlFile Permissions: Configuration files are automatically set to
chmod 600to restrict accessEnvironment Variables: Consider using environment variables for sensitive data
HTTPS: Always use HTTPS URLs for JIRA connections
Read-Only: The server only provides read access to JIRA data
Gitignore: The project's
.gitignoreincludesmcp_jira_server.yamlto prevent accidental commits
Troubleshooting
Common Issues
Authentication Failures:
Verify your credentials are correct
Check if your JIRA instance requires specific authentication methods
Ensure your user has appropriate permissions
Connection Issues:
Verify the JIRA URL is correct and accessible
Check network connectivity and firewall settings
Confirm JIRA instance is running and responsive
MCP Integration Issues:
Verify the server starts correctly from command line
Check MCP client configuration syntax
Review client logs for connection errors
Debug Mode
Enable debug logging by setting the log level:
import logging
logging.basicConfig(level=logging.DEBUG)Contributing
When contributing to this project:
Ensure all tests pass:
python -m unittest discoverMaintain or improve test coverage
Follow existing code style and patterns
Add tests for new functionality
Update documentation as needed
License
This program is licensed under GPL-3.0-or-later. See the LICENSE file for details.
Attribution
Generated by: Cursor (Claude)
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Official Fibery MCP server: query and update your workspace from any AI client via OAuth.
Search your AI chat history (ChatGPT, Claude, Codex) from any MCP client. Remote, private, read-only
MCP server that lets AI assistants use all OneSchema features exposed via the public API.
Read-only Google Search Console MCP server for AI assistants.
Related MCP Servers
- AlicenseAqualityCmaintenanceAn MCP server for interacting with self-hosted Jira instances using Personal Access Token (PAT) authentication. It enables users to perform CRUD operations on issues, search with JQL, manage comments, and list projects through the Jira REST API.12477 npm16MIT
- FlicenseBqualityBmaintenanceMCP server that connects AI assistants to your Jira site, supporting PAT or SSO authentication for search, read, create, update, and delete operations on issues.17110 npm-
- AlicenseNot gradedqualityCmaintenanceA read-only MCP server that provides AI agents structured access to Jira Cloud, enabling project listing, sprint overview, issue retrieval, and JQL search.MIT
- AlicenseNot gradedqualityDmaintenanceA lightweight MCP server that exposes Jira issue operations (get, search, create) as tools for AI clients like Claude.ISC