mcp-jira-stdio
MCP server for Jira integration with stdio transport. Enables reading, writing, and managing Jira issues and projects directly from Claude Desktop. Supports issue creation, updates, comments, JQL search, and project management.
README
MCP Jira Server
<a href="https://glama.ai/mcp/servers/@freema/mcp-jira-stdio"> <img width="380" height="200" src="https://glama.ai/mcp/servers/@freema/mcp-jira-stdio/badge" /> </a>
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 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-stdio
Development 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 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:
# Copy the example environment file
cp .env.example .env
# Edit .env with your actual Jira credentials
# Or use Task runner:
task env
Example .env contents:
JIRA_BASE_URL=https://your-instance.atlassian.net
JIRA_EMAIL=your-email@example.com
JIRA_API_TOKEN=your-api-token
Note: 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:projects
6. Configure MCP Client
Add to your Claude Desktop config:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json - Linux:
~/.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_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).
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 check
MCP 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:dev
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
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 check
🔍 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:
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
jiraentry into your Claude Desktop config or print the JSON - Optionally generate a local
.envfor development
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。