jira-mcp
Provides comprehensive Jira integration with tools for issue management, search, comments, attachments, project metadata, and workflow transitions.
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., "@jira-mcpfind issues assigned to me"
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.
Jira MCP Server
A comprehensive Model Context Protocol (MCP) server for Jira integration, reproducing the exact functionality from the Dust repository. This server provides 16 powerful tools for complete Jira project management through AI assistants.
๐ Features
๐ Connection & Information
Connection validation and detailed server info
Real-time status monitoring with health checks
๐ Advanced Search & Retrieval
Flexible issue search with JQL support and filters
Detailed issue information with full field expansion
Pagination support for large result sets
๐ Complete Issue Management
Create issues with full field support (custom fields, components, versions)
Update existing issues with field validation
Workflow transitions with comment support
Issue linking with relationship management
๐ฌ Communication & Attachments
Comment management with visibility controls
File attachment support (URLs, base64, conversation files)
Attachment validation and size limits
๐๏ธ Metadata & Administration
Project discovery and management
Issue type and field introspection
User search and management
Link type configuration
Related MCP server: Jira MCP Server
๐ฆ Installation
Clone and install dependencies:
git clone <repository-url> cd mcp-jira npm installConfigure environment variables:
cp .env.example .env # Edit .env with your Jira credentialsBuild the project:
npm run build
๐ Authentication Setup
1. Generate Jira API Token
Click "Create API token"
Give it a label (e.g., "MCP Server")
Copy the generated token
2. Configure Environment Variables
Create a .env file in the project root:
# Required: Your Jira API token
JIRA_API_TOKEN=your_api_token_here
# Required: Your Jira account email
JIRA_EMAIL=your-email@company.com
# Required: Your Jira instance URL (no trailing slash)
JIRA_BASE_URL=https://yourcompany.atlassian.net
# Optional: Server port (default: 3000)
PORT=3000๐ Usage
Development Mode
npm run devProduction Mode
npm run build
npm startThe server will start on port 3000 (or your configured PORT).
๐ ๏ธ Available MCP Tools (16 Total)
๐ Connection & Info
jira_get_connection_info- Validate connection and show server details
๐ Search & Retrieval
jira_search_issues- Advanced issue search with JQL and filtersjira_get_issue- Get detailed issue information
๐ Issue Management
jira_create_issue- Create issues with full field supportjira_update_issue- Update existing issue fieldsjira_transition_issue- Move issues through workflowjira_get_transitions- Get available workflow transitions
๐ Issue Linking
jira_create_issue_link- Link related issuesjira_delete_issue_link- Remove issue linksjira_get_issue_link_types- Get available link types
๐ฌ Comments & Attachments
jira_add_comment- Add comments to issuesjira_upload_attachments- Upload files to issues
๐๏ธ Metadata & Administration
jira_get_projects- List accessible projectsjira_get_issue_types- Get available issue typesjira_get_fields- Get system and custom fieldsjira_search_users- Find users by name/email
๐ API Endpoints
POST /mcp - Main MCP communication endpoint
GET /mcp - Server-to-client notifications via SSE
DELETE /mcp - Session termination
GET /health - Health check with Jira connection status
๐งช Testing the Server
1. Health Check
curl http://localhost:3000/health2. Using MCP Client
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const client = new Client({
name: 'jira-test-client',
version: '1.0.0'
});
const transport = new StreamableHTTPClientTransport(
new URL('http://localhost:3000/mcp')
);
await client.connect(transport);
// Test connection
const connectionInfo = await client.callTool('jira_get_connection_info', {});
console.log('Connection:', connectionInfo);
// Search for issues
const issues = await client.callTool('jira_search_issues', {
projectKey: 'PROJ',
maxResults: 10
});
console.log('Issues:', issues);
// Create an issue
const newIssue = await client.callTool('jira_create_issue', {
projectKey: 'PROJ',
issueType: 'Task',
summary: 'Test issue from MCP',
description: 'Created via MCP server'
});
console.log('New issue:', newIssue);3. Claude Code Integration
Add to your Claude Code MCP configuration:
{
"mcpServers": {
"jira": {
"command": "node",
"args": ["/path/to/mcp-jira/dist/server.js"],
"env": {
"JIRA_API_TOKEN": "your_token",
"JIRA_EMAIL": "your-email@company.com",
"JIRA_BASE_URL": "https://yourcompany.atlassian.net"
}
}
}
}๐ Project Structure
mcp-jira/
โโโ package.json # Dependencies and scripts
โโโ tsconfig.json # TypeScript configuration
โโโ .env.example # Environment variable template
โโโ src/
โ โโโ server.ts # Main MCP server with 16 tools
โ โโโ jira_api_helper.ts # Jira API integration functions
โ โโโ types.ts # Zod schemas and TypeScript types
โ โโโ utils.ts # MCP utilities and helpers
โ โโโ file_utils.ts # File handling utilities
โโโ dist/ # Compiled JavaScript (after build)
โโโ README.md # This documentationโ๏ธ Development
Scripts
npm run build- Compile TypeScript to JavaScriptnpm run dev- Run in development mode with hot reloadnpm start- Run the compiled servernpm run clean- Remove compiled files
Architecture
Result-based error handling - All operations return
Result<T, Error>Comprehensive validation - Zod schemas for all inputs
Session management - Persistent MCP connections
Type safety - Full TypeScript coverage
Modular design - Separated concerns across files
Key Features
Authentication wrapper - Centralized Jira API auth
File processing - Support for URLs, base64, conversation attachments
Pagination support - Handle large datasets efficiently
Caching layer - Simple in-memory caching for performance
Error context - Detailed error messages with suggestions
๐ Security
Token-based authentication - Uses Jira API tokens
Input validation - All inputs validated with Zod schemas
File size limits - 10MB limit for attachments
Safe file types - Blocks potentially dangerous file extensions
Environment isolation - Credentials stored in environment variables
๐ Troubleshooting
Common Issues
Authentication Failed
Verify your API token is correct
Check that your email matches your Jira account
Ensure JIRA_BASE_URL doesn't have a trailing slash
Permission Denied
Verify you have the required Jira permissions
Check project access rights
Ensure issue type is available in the project
Connection Issues
Verify JIRA_BASE_URL is accessible
Check firewall/network restrictions
Test connection with
/healthendpoint
Tool Errors
Check the MCP tool response for detailed error messages
Verify input parameters match the expected schema
Use
jira_get_connection_infoto test basic connectivity
Debug Mode
Set environment variable for detailed logging:
DEBUG=mcp-jira npm run dev๐ License
MIT License
๐ค Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests for new functionality
Submit a pull request
๐ References
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ygrenzinger/jira-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server