MCP server for Jira Cloud — issues, search, comments, attachments, transitions.
io.github.freema/mcp-jira-stdio — MCP Server for Jira Cloud
The io.github.freema/mcp-jira-stdio server is an MCP server for Jira Cloud that supports working with issues. It provides capabilities for issue search, comments, attachments, and transitions, as indicated by its description.
🛠️ Key Features
Jira Cloud issue operations
Issue search
Comments handling
Attachments handling
Issue transitions
🚀 Use Cases
Query and search Jira Cloud issues
Read or manage comments on Jira issues
Work with attachments associated with Jira issues
Transition Jira issues through workflow steps
⚠️ Limitations
Scope is described for Jira Cloud and includes issues, search, comments, attachments, and transitions; other Jira entities or operations are not specified in the available data.
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:
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.
🚀 Quick Start
1. Prerequisites
Node.js v20 or higher
Jira instance (Cloud or Server)
Jira API token
2. Installation
bash
# Install from npm
npm install -g mcp-jira-stdio
# Or install locally in your project
npm install mcp-jira-stdio
Development Installation
bash
# 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 build
3. 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:
bash
# Copy the example environment filecp .env.example .env# Edit .env with your actual Jira credentials# Or use Task runner:
task env
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
bash
# 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 check
MCP Inspector
Debug your MCP server using the inspector:
bash
# Run inspector (production build)
npm run inspector
task inspector
# Run inspector (development mode)
npm run inspector:dev
task inspector:dev
Notes:
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, and JIRA_API_TOKEN.
Connection testing runs only in development/test (NODE_ENV=development or test). Failures are logged but do not terminate the server, so the inspector can still display tools.
Testing
bash
# 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
// List all projectsjira_get_visible_projects({});
// List projects with additional detailsjira_get_visible_projects({
expand: ['description', 'lead', 'issueTypes'],
});
// List recent projects onlyjira_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 inspector to 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:
# 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 check
If 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:
bash
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
JIRA_BASE_URL
Yes
Jira instance URL
https://company.atlassian.net
JIRA_EMAIL
Yes
Your Jira email
user@example.com
JIRA_API_TOKEN
Yes
Jira API token
ATxxx...
NODE_ENV
No
Environment mode
development or production
🤝 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:
bash
npm run setup:mcp
The script will:
Build the project if needed and detect your Node path
Prompt for JIRA_BASE_URL, JIRA_EMAIL, JIRA_API_TOKEN
Save a jira entry into your Claude Desktop config or print the JSON
Optionally generate a local .env for development
Install
Configuration
Environment variables
JIRA_BASE_URLrequired
Jira instance URL, e.g. https://company.atlassian.net
JIRA_EMAILrequired
Email of the Jira account the API token belongs to
JIRA_API_TOKENrequiredsecret
Jira API token (id.atlassian.com > Security > API tokens)
MCP_REDACT_SENSITIVE
Set to true to redact sensitive values from logs
LOG_LEVEL
Log verbosity: debug, info, warn or error (default: info)