This server integrates Jira with the Model Context Protocol (MCP), enabling comprehensive project and issue management directly through Claude.
Core Capabilities:
Project Management: List accessible projects, retrieve detailed project information (components, versions, roles, insights), and filter recent projects
Issue Operations: Retrieve, search (via JQL), create, and update issues with support for custom fields, assignees, priorities, labels, and components. Create subtasks with automatic project and type detection, and view issues assigned to the current user
Comments: Add comments to issues with optional visibility restrictions by group or role
Metadata & Discovery: Retrieve issue types, priorities, statuses, custom fields, and create metadata for projects. Discover required fields and allowed values before creating issues
User Search: Search for users by name, email, username, or account ID
Special Features:
Auto-formatted descriptions: Automatic conversion of plain text to Atlassian Document Format (ADF) with heading, list, and link detection
Smart issue key parsing: Accepts both issue keys (PROJECT-123) and full Jira URLs
Pagination support: Efficiently handles large result sets across searches and queries
Flexible authentication: Supports Jira Cloud via API tokens
Provides comprehensive tools for managing Jira issues, projects, and workflows including creating and updating issues, searching with JQL, managing comments, retrieving project information, and handling user assignments and metadata.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-jira-stdiocreate a new bug ticket for the login page issue"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Jira Server
A Model Context Protocol (MCP) server for Jira API integration. Enables reading, writing, and managing Jira issues and projects directly from your MCP client (e.g., Claude Desktop).
β‘ Quick Install for Claude Code
The fastest way to add this MCP server to Claude Code:
claude mcp add jira npx mcp-jira-stdio@latest \
--env JIRA_BASE_URL=https://yourcompany.atlassian.net \
--env JIRA_EMAIL=your-email@example.com \
--env JIRA_API_TOKEN=your-api-tokenReplace the values with your actual Jira credentials:
JIRA_BASE_URL: Your Jira instance URL (e.g.,
https://yourcompany.atlassian.net)JIRA_EMAIL: Your Jira account email
JIRA_API_TOKEN: Your Jira API token (generate here)
That's it! The server will be automatically configured and ready to use.
Alternative: Manual Configuration
If you prefer to configure manually or use Claude Desktop, see the Configuration section below.
Related MCP server: JIRA MCP Tools
π Quick Start
1. Prerequisites
Node.js v18 or higher
Jira instance (Cloud or Server)
Jira API token
2. Installation
# Install from npm
npm install -g mcp-jira-stdio
# Or install locally in your project
npm install mcp-jira-stdioDevelopment Installation
# Clone the repository
git clone https://github.com/freema/mcp-jira-stdio.git
cd mcp-jira-stdio
# Install dependencies
npm install
# or using Task runner
task install
# Build the project
npm run build
# or
task build3. Jira API Setup
Go to your Jira instance settings
Create an API token:
Jira Cloud: Go to Account Settings β Security β Create and manage API tokens
Jira Server: Use your username and password (or create an application password)
Note your Jira base URL (e.g.,
https://yourcompany.atlassian.net)
4. Configuration
Create a .env file from the provided example:
# Copy the example environment file
cp .env.example .env
# Edit .env with your actual Jira credentials
# Or use Task runner:
task envExample .env contents:
JIRA_BASE_URL=https://your-instance.atlassian.net
JIRA_EMAIL=your-email@example.com
JIRA_API_TOKEN=your-api-tokenNote: Generate your API token at https://id.atlassian.com/manage-profile/security/api-tokens
5. Test Connection
# Test Jira connection
task jira:test
# List visible projects
task jira:projects6. Configure MCP Client
For Claude Code
Use the quick install command (recommended):
claude mcp add jira npx mcp-jira-stdio@latest \
--env JIRA_BASE_URL=https://yourcompany.atlassian.net \
--env JIRA_EMAIL=your-email@example.com \
--env JIRA_API_TOKEN=your-api-tokenFor Claude Desktop
Add to your Claude Desktop config:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/claude/claude_desktop_config.json
{
"mcpServers": {
"jira": {
"command": "mcp-jira-stdio",
"env": {
"JIRA_BASE_URL": "https://your-instance.atlassian.net",
"JIRA_EMAIL": "your-email@example.com",
"JIRA_API_TOKEN": "your-api-token"
}
}
}
}Alternative: Using npx
{
"mcpServers": {
"jira": {
"command": "npx",
"args": ["mcp-jira-stdio"],
"env": {
"JIRA_BASE_URL": "https://your-instance.atlassian.net",
"JIRA_EMAIL": "your-email@example.com",
"JIRA_API_TOKEN": "your-api-token"
}
}
}
}Restart Claude Desktop after adding the configuration.
π¦ Available Tools
Projects
jira_get_visible_projects: Retrieves all projects visible to the user.jira_get_project_info: Retrieves detailed information about a project (components, versions, roles, insights).
Issues
jira_get_issue: Retrieve issue details by key (supports optional fields/expand).jira_search_issues: Search for Jira issues using JQL with pagination and fields.jira_create_issue: Create a new issue in a project (type, priority, assignee, labels, components).jira_update_issue: Update an existing issue (summary, description, priority, assignee, labels, components).jira_create_subtask: Create a subtask under a parent issue (auto-detects subtask type).
Comments
jira_add_comment: Add a comment to an issue (optional visibility by group/role).
Metadata & Users
jira_get_create_meta: Get create metadata for a project showing all available fields (including custom fields) with their allowed values. Essential for discovering required fields before creating issues.jira_get_issue_types: List issue types (optionally per project).jira_get_users: Search for users (by query, username, or accountId).jira_get_priorities: List available priorities.jira_get_statuses: List available statuses (global or project-specific).jira_get_custom_fields: List all custom fields in Jira with their types and schemas.
My Work
jira_get_my_issues: Retrieve issues assigned to the current user (sorted by updated).
π οΈ Development
Development Commands
# Development mode with hot reload
npm run dev
task dev
# Build for production
npm run build
task build
# Type checking
npm run typecheck
task typecheck
# Linting
npm run lint
task lint
# Format code
npm run format
task fmt
# Run all checks
npm run check
task checkMCP Inspector
Debug your MCP server using the inspector:
# Run inspector (production build)
npm run inspector
task inspector
# Run inspector (development mode)
npm run inspector:dev
task inspector:devNotes:
Startup no longer blocks on Jira connectivity. If Jira env vars are missing, the server still starts and lists tools; tool calls will fail with a clear auth error until you set
JIRA_BASE_URL,JIRA_EMAIL, andJIRA_API_TOKEN.Connection testing runs only in development/test (
NODE_ENV=developmentortest). Failures are logged but do not terminate the server, so the inspector can still display tools.
Testing
# Run tests
npm test
task test
# Run tests with coverage
npm run test:coverage
task test:coverage
# Watch mode
npm run test:watch
task test:watchπ Project Structure
src/
βββ index.ts # Entry point & MCP server setup
βββ config/
β βββ constants.ts # API configuration & constants
βββ tools/
β βββ index.ts # Tool exports
β βββ get-visible-projects.ts # Get visible projects tool
βββ types/
β βββ common.ts # Common types & interfaces
β βββ jira.ts # Jira API types
β βββ tools.ts # Tool input/output schemas
βββ utils/
βββ jira-auth.ts # Jira authentication & client
βββ validators.ts # Input validation with Zod
βββ formatters.ts # Response formatting
βββ error-handler.ts # Error handling
βββ api-helpers.ts # Jira API helpersπ§ Tool Usage Examples
Get Visible Projects
// List all projects
jira_get_visible_projects({});
// List projects with additional details
jira_get_visible_projects({
expand: ['description', 'lead', 'issueTypes'],
});
// List recent projects only
jira_get_visible_projects({
recent: 10,
});β Troubleshooting
Common Issues
"Authentication failed"
Verify your API token is correct
Check that your email matches your Jira account
Ensure your Jira base URL is correct (no trailing slash)
"Connection failed"
Verify your Jira instance is accessible
Check network connectivity
Ensure Jira REST API is enabled
"Permission denied"
Verify your account has the necessary permissions
Check project permissions in Jira
Ensure you're using the correct Jira instance
MCP Connection Issues
Ensure you're using the built version (
dist/index.js)Check that Node.js path is correct in Claude Desktop config
Look for errors in Claude Desktop logs
Use
task inspectorto debug
Timeout when running multiple instances with npx
If you're running multiple Claude Code sessions simultaneously and experience timeouts, this is caused by npx cache/registry locking β not the MCP server itself. Each instance tries to verify the package, causing conflicts. To fix this, install the package globally instead:
npm install -g mcp-jira-stdio
claude mcp add jira mcp-jira-stdio \
--env JIRA_BASE_URL=... \
--env JIRA_EMAIL=... \
--env JIRA_API_TOKEN=...Debug Commands
# Test Jira connection
task jira:test
# List projects (test API connectivity)
task jira:projects
# Run MCP inspector for debugging
task inspector:dev
# Check all configuration
task checkIf the inspector shows an SSE error and the server exits immediately, ensure you are not forcing an early exit with invalid credentials. With the current behavior, the server should not exit on missing credentials; export your Jira vars to exercise the tools:
export JIRA_BASE_URL="https://your-instance.atlassian.net"
export JIRA_EMAIL="your-email@example.com"
export JIRA_API_TOKEN="your-api-token"
npm run inspectorπ Environment Variables
Variable | Required | Description | Example |
| Yes | Jira instance URL |
|
| Yes | Your Jira email |
|
| Yes | Jira API token |
|
| No | Environment mode |
|
π€ Contributing
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)Run tests and linting (
task check)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
π License
This project is licensed under the MIT License β see the LICENSE file for details.
MCP Config Setup
Configure Claude Desktop to use this MCP server interactively:
npm run setup:mcpThe script will:
Build the project if needed and detect your Node path
Prompt for
JIRA_BASE_URL,JIRA_EMAIL,JIRA_API_TOKENSave a
jiraentry into your Claude Desktop config or print the JSONOptionally generate a local
.envfor development