The MCP Jira Integration server provides an interface between Claude AI and Jira, enabling automated project management tasks through a standardized Model Context Protocol. This implementation allows AI assistants to create and manage Jira issues, track sprints, and perform searches without direct human intervention.
.env
file:JIRA_URL=https://your-domain.atlassian.net
[email protected]
JIRA_API_TOKEN=your_api_token
PROJECT_KEY=PROJ
API_KEY=your_secure_api_key # For MCP authentication
Use the following Python code to create a new issue:
from mcp_jira.protocol import MCPRequest, MCPContext
# Create request context
context = MCPContext(
conversation_id="conv-123",
user_id="user-123",
api_key="your_api_key"
)
# Create issue request
request = MCPRequest(
function="create_issue",
parameters={
"summary": "Implement feature X",
"description": "Detailed description",
"issue_type": "Story",
"priority": "High"
},
context=context
)
response = await mcp_handler.process_request(request)
To search for issues using JQL (Jira Query Language):
request = MCPRequest(
function="search_issues",
parameters={
"jql": "project = PROJ AND status = 'In Progress'"
},
context=context
)
response = await mcp_handler.process_request(request)
All requests to the MCP server require an API key in the request header:
headers = {
"X-API-Key": "your_api_key"
}
To connect this MCP server with AI assistants that support the MCP protocol:
The server supports the following Jira operations:
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"cursor-rules-mcp": {
"command": "npx",
"args": [
"-y",
"cursor-rules-mcp"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.