YouTrack MCP Server
A comprehensive Model Context Protocol server for YouTrack integration, providing extensive tools for issue tracking, project management, workflow automation, and team collaboration.
README
YouTrack MCP Server
A comprehensive Model Context Protocol (MCP) server for YouTrack integration, providing extensive tools for issue tracking, project management, workflow automation, and team collaboration.
Features
🎯 Issue Management
- CRUD Operations: Create, read, update, and delete issues
- Advanced Search: Search issues with complex filters and queries
- Bulk Operations: Update multiple issues at once
- Issue Linking: Manage relationships between issues
- Comments & Attachments: Full support for issue discussions and file attachments
- Work Items: Track time and work logs
📊 Project Management
- Project Operations: List, create, and manage projects
- Custom Fields: Define and manage custom field schemas
- Versions & Milestones: Track releases and project milestones
- Components: Organize issues by components/modules
👥 User & Team Management
- User Operations: List users, groups, and permissions
- Team Collaboration: Manage team assignments and roles
- Notifications: Handle user notifications and subscriptions
🔄 Workflow & Automation
- Workflow States: Manage issue states and transitions
- Custom Workflows: Define and execute custom workflows
- Automation Rules: Set up automated actions and triggers
📈 Analytics & Reporting
- Reports: Generate various project and issue reports
- Statistics: Get project statistics and metrics
- Time Tracking: Comprehensive time tracking and reporting
🏃♂️ Agile Features
- Agile Boards: Manage Kanban and Scrum boards
- Sprints: Create and manage sprint cycles
- Burndown Charts: Track progress with visual charts
Installation
Prerequisites
- Node.js 18.0.0 or higher
- YouTrack instance (Cloud or On-Premise)
- YouTrack API token or credentials
🚀 Lightweight Installation Options (Avoid Heavy node_modules)
Option 1: npx (Zero Installation - Recommended)
# Run directly without installing anything locally
npx youtrack-mcp
# Test the installation
npx youtrack-mcp --help
# With environment variables
YOUTRACK_BASE_URL=https://your-instance.youtrack.cloud \
YOUTRACK_TOKEN=your-token \
npx youtrack-mcp
Option 2: Global Installation (Install Once, Use Everywhere)
# Install globally from npm (only ~2MB)
npm install -g youtrack-mcp
# Test the installation
youtrack-mcp --help
# Run with environment variables
YOUTRACK_BASE_URL=https://your-instance.youtrack.cloud \
YOUTRACK_TOKEN=your-token \
youtrack-mcp
Option 3: Using pnpm (70% less disk usage)
# Install pnpm globally (one time setup)
npm install -g pnpm
# Clone and install with pnpm
git clone https://github.com/youtrack-mcp/youtrack-mcp.git
cd youtrack-mcp
pnpm install
pnpm run build
Option 4: Docker Container (Zero local dependencies)
docker run -d --name youtrack-mcp \
-e YOUTRACK_BASE_URL=https://your-instance.youtrack.cloud \
-e YOUTRACK_TOKEN=your-token \
ghcr.io/youtrack-mcp/youtrack-mcp:latest
Traditional Installation (Heavy node_modules)
git clone https://github.com/youtrack-mcp/youtrack-mcp.git
cd youtrack-mcp
npm install
npm run build
Claude Desktop Integration
Add to your claude_desktop_config.json:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
Option 1: npx (Zero Installation - Recommended)
{
"mcpServers": {
"youtrack": {
"command": "npx",
"args": ["youtrack-mcp"],
"env": {
"YOUTRACK_BASE_URL": "https://your-instance.youtrack.cloud",
"YOUTRACK_TOKEN": "your-permanent-token"
}
}
}
}
Option 2: Global Installation
{
"mcpServers": {
"youtrack": {
"command": "youtrack-mcp",
"env": {
"YOUTRACK_BASE_URL": "https://your-instance.youtrack.cloud",
"YOUTRACK_TOKEN": "your-permanent-token"
}
}
}
}
Option 3: Local Development Build
{
"mcpServers": {
"youtrack": {
"command": "node",
"args": ["/path/to/youtrack-mcp/build/index.js"],
"env": {
"YOUTRACK_BASE_URL": "https://your-instance.youtrack.cloud",
"YOUTRACK_TOKEN": "your-permanent-token"
}
}
}
}
Option 4: Docker Container
{
"mcpServers": {
"youtrack": {
"command": "docker",
"args": ["exec", "youtrack-mcp", "node", "build/index.js"],
"env": {}
}
}
}
Configuration
Authentication Methods
Permanent Token (Recommended)
YOUTRACK_BASE_URL=https://your-instance.youtrack.cloud
YOUTRACK_TOKEN=your-permanent-token
To create a permanent token:
- Go to YouTrack → Profile → Account Security → Tokens
- Click "New Token"
- Set appropriate permissions and scope
- Copy the generated token
Username/Password (Not Recommended)
YOUTRACK_BASE_URL=https://your-instance.youtrack.cloud
YOUTRACK_USERNAME=your-username
YOUTRACK_PASSWORD=your-password
Advanced Configuration
# Performance
YOUTRACK_REQUEST_TIMEOUT=30000
YOUTRACK_MAX_RETRIES=3
YOUTRACK_DEFAULT_PAGE_SIZE=50
YOUTRACK_MAX_PAGE_SIZE=100
# Caching
YOUTRACK_ENABLE_CACHE=true
YOUTRACK_CACHE_TTL=300
# Debugging
YOUTRACK_DEBUG=true
Available Tools
Issue Management
| Tool | Description |
|---|---|
youtrack_list_issues |
List issues with filtering and pagination |
youtrack_get_issue |
Get detailed issue information |
youtrack_create_issue |
Create a new issue |
youtrack_update_issue |
Update existing issue |
youtrack_delete_issue |
Delete an issue |
youtrack_search_issues |
Advanced issue search with query syntax |
youtrack_add_comment |
Add comment to an issue |
youtrack_get_comments |
Get all comments for an issue |
youtrack_update_comment |
Update existing comment |
youtrack_delete_comment |
Delete a comment |
youtrack_add_attachment |
Add file attachment to issue |
youtrack_get_attachments |
Get all attachments for an issue |
youtrack_link_issues |
Create links between issues |
youtrack_get_issue_links |
Get all links for an issue |
Project Management
| Tool | Description |
|---|---|
youtrack_list_projects |
List all accessible projects |
youtrack_get_project |
Get detailed project information |
youtrack_create_project |
Create a new project |
youtrack_update_project |
Update project settings |
youtrack_delete_project |
Delete a project |
youtrack_get_project_custom_fields |
Get custom fields for project |
youtrack_add_project_custom_field |
Add custom field to project |
youtrack_list_project_versions |
List project versions/releases |
youtrack_create_project_version |
Create new version/release |
User Management
| Tool | Description |
|---|---|
youtrack_list_users |
List all users |
youtrack_get_user |
Get user details |
youtrack_get_current_user |
Get current authenticated user |
youtrack_list_groups |
List user groups |
youtrack_get_group |
Get group details |
youtrack_list_roles |
List available roles |
Workflow Management
| Tool | Description |
|---|---|
youtrack_get_workflow_states |
Get available workflow states |
youtrack_get_workflow_transitions |
Get possible state transitions |
youtrack_apply_workflow_command |
Apply workflow command to issue |
youtrack_get_issue_commands |
Get available commands for issue |
Time Tracking
| Tool | Description |
|---|---|
youtrack_add_work_item |
Add time tracking entry |
youtrack_get_work_items |
Get work items for issue |
youtrack_update_work_item |
Update work item |
youtrack_delete_work_item |
Delete work item |
youtrack_get_time_tracking_report |
Generate time tracking report |
Reports & Analytics
| Tool | Description |
|---|---|
youtrack_get_project_statistics |
Get project statistics |
youtrack_get_issue_statistics |
Get issue-related statistics |
youtrack_generate_report |
Generate custom reports |
youtrack_get_burndown_data |
Get burndown chart data |
Agile & Boards
| Tool | Description |
|---|---|
youtrack_list_agile_boards |
List all agile boards |
youtrack_get_agile_board |
Get agile board details |
youtrack_create_agile_board |
Create new agile board |
youtrack_update_agile_board |
Update agile board |
youtrack_list_sprints |
List sprints for board |
youtrack_create_sprint |
Create new sprint |
youtrack_update_sprint |
Update sprint details |
Usage Examples
Creating an Issue
Create a new bug report with title "Login button not working" in project "WEB" with high priority
Searching Issues
Find all open issues assigned to john.doe in the mobile project created in the last 30 days
Project Management
List all projects and show their current status and team members
Time Tracking
Add 2 hours of development work to issue WEB-123 with description "Implemented login validation"
Workflow Management
Move issue WEB-123 to "In Progress" state and assign it to jane.smith
Development
Testing Installation
# Run comprehensive tests
./examples.sh
# Test specific components
./examples.sh npx # Test npx installation
./examples.sh global # Test global installation
./examples.sh claude # Generate Claude configs
./examples.sh docker # Test Docker setup
Building
npm run build
Development Mode
npm run dev
Watch Mode
npm run watch
Testing
npm test
npm run test:npx # Test npx functionality
npm run test:global # Test global installation
Linting
npm run lint
npm run lint:fix
Debugging with MCP Inspector
npm run inspector
API Documentation
This MCP server follows YouTrack's REST API structure. For detailed API reference, visit:
Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add 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.
Support
- Issues: GitHub Issues
- Documentation: API Documentation
- Community: Discussions
Acknowledgments
- JetBrains YouTrack for the excellent issue tracking platform
- Model Context Protocol for the standardized integration framework
- Anthropic Claude for AI assistant integration
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。