This MCP server integrates Jira with AI assistants like Claude, allowing interaction with Jira data and functions through the Model Context Protocol.
# Clone the repository
git clone https://github.com/samuelrizzo/jira-mcp-server.git
cd jira-mcp-server
# Install dependencies
npm install
# Build the project
npm run build
Add this configuration to your cursor/windsurf mcp settings file:
{
"mcpServers": {
"jira-mcp": {
"command": "node",
"args": ["./dist/index.js"],
"env": {
"JIRA_HOST": "your-domain.atlassian.net",
"JIRA_EMAIL": "[email protected]",
"JIRA_API_TOKEN": "your-api-token-here"
}
}
}
}
Generate a Jira API token:
Make note of:
your-domain.atlassian.net
)Add these credentials to your MCP server configuration as shown above.
Lists all accessible Jira projects.
Parameters:
jiraHost
: Your Jira domainemail
: Your Jira emailapiToken
: Your Jira API tokenRetrieves comprehensive information about a specific issue.
Parameters:
issueKey
: Jira issue key (e.g., 'PROJECT-123')jiraHost
: Your Jira domainemail
: Your Jira emailapiToken
: Your Jira API tokenSearches for issues in a project with optional assignee filtering.
Parameters:
projectKey
: Jira project keyassigneeName
: (Optional) Filter by assigneejiraHost
: Your Jira domainemail
: Your Jira emailapiToken
: Your Jira API tokenShows all members of a specified project.
Parameters:
projectKey
: Jira project keyjiraHost
: Your Jira domainemail
: Your Jira emailapiToken
: Your Jira API tokenVerifies project membership and lists assigned issues for a user.
Parameters:
projectKey
: Jira project keyuserName
: User's display namejiraHost
: Your Jira domainemail
: Your Jira emailapiToken
: Your Jira API tokenCreates a new issue with specified details.
Parameters:
projectKey
: Jira project keysummary
: Issue titledescription
: Detailed descriptionissueType
: (Optional) Type of issue (default: 'Task')assigneeName
: (Optional) Assignee's display namereporterName
: (Optional) Reporter's display namesprintId
: (Optional) Sprint IDjiraHost
: Your Jira domainemail
: Your Jira emailapiToken
: Your Jira API tokenLists sprints with filtering options.
Parameters:
boardId
: (Optional) Board ID to filter sprintsprojectKey
: (Optional) Project key for associated sprintsstate
: (Optional) Sprint state (active, future, closed, all)jiraHost
: Your Jira domainemail
: Your Jira emailapiToken
: Your Jira API tokenYou can ask Claude to perform tasks like:
"List all Jira projects in PROJECT"
"Get details for issue PROJECT-123"
"Search for issues assigned to John in PROJECT"
"List all members of PROJECT"
"Check what issues are assigned to Jane in PROJECT"
"Create a new bug issue titled 'Login page error' in PROJECT"
"List active sprints for PROJECT"
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "jira-mcp" '{"command":"node","args":["./dist/index.js"],"env":{"JIRA_HOST":"your-domain.atlassian.net","JIRA_EMAIL":"[email protected]","JIRA_API_TOKEN":"your-api-token-here"}}'
See the official Claude Code MCP documentation for more details.
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 > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"jira-mcp": {
"command": "node",
"args": [
"./dist/index.js"
],
"env": {
"JIRA_HOST": "your-domain.atlassian.net",
"JIRA_EMAIL": "[email protected]",
"JIRA_API_TOKEN": "your-api-token-here"
}
}
}
}
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 explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"jira-mcp": {
"command": "node",
"args": [
"./dist/index.js"
],
"env": {
"JIRA_HOST": "your-domain.atlassian.net",
"JIRA_EMAIL": "[email protected]",
"JIRA_API_TOKEN": "your-api-token-here"
}
}
}
}
3. Restart Claude Desktop for the changes to take effect