python jira mcp
A server implementation that allows AI models to interact with Jira through the Model Context Protocol, enabling tasks like JQL searches and retrieving issue details.
A server implementation that allows AI models to interact with Jira through the Model Context Protocol, enabling tasks like JQL searches and retrieving issue details.
A Model Context Protocol (MCP) server implementation in Python that integrates with Jira API. This allows AI models to interact with Jira through a standardized protocol.
This MCP server exposes Jira API operations as tools that can be used by AI models supporting the Model Context Protocol. The server implements the stdio transport mechanism to communicate with clients like Cursor.
mcp
(Model Context Protocol Python SDK)aiohttp
(for HTTP requests)pydantic
(for validation)python-dotenv
(for environment variables)git clone https://github.com/yourusername/python-jira-mcp.git
cd python-jira-mcp
pip install -r requirements.txt
cp .env.example .env
# Edit .env with your Jira credentials
To start the MCP server, run:
python main.py
Or use the executable directly:
./main.py
The server will start and listen for MCP messages on standard input (stdin) and respond on standard output (stdout).
To use this MCP server with Cursor:
main.py
Search for Jira issues using JQL (Jira Query Language).
Example:
{
"type": "tool_call",
"id": "123",
"name": "jql_search",
"parameters": {
"jql": "project = XYZ AND status = 'In Progress'",
"max_results": 10,
"fields": ["summary", "description", "status"]
}
}
Retrieve details about a specific Jira issue by its ID or key.
Example:
{
"type": "tool_call",
"id": "456",
"name": "get_issue",
"parameters": {
"issue_id_or_key": "XYZ-123",
"fields": ["summary", "description", "status", "assignee"],
"expand": "changelog"
}
}
main.py
: Entry point for the MCP serversrc/server.py
: Main MCP server implementationsrc/tools/jira_tools.py
: Jira API tool implementationssrc/tool_schemas.py
: Tool schemas definitionTo add a new Jira-related tool:
src/tools/jira_tools.py
src/tool_schemas.py
src/server.py
This project is licensed under the MIT License - see the LICENSE file for details.