youtrack-mcp

itsalfredakku/youtrack-mcp

3.3

If you are the rightful owner of youtrack-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The YouTrack MCP Server provides seamless integration with AI agents for efficient project management and issue tracking through YouTrack's REST API.

Tools
  1. get_project_status

    Get current project status including issue statistics.

  2. create_issue

    Create new issues with summary, description, type, and priority.

  3. query_issues

    Search issues using YouTrack query syntax.

  4. update_issue

    Update existing issues (state, assignee, priority, etc.).

  5. get_project_issues_summary

    Get aggregated statistics of issues by state, priority, and type.

YouTrack MCP Server

An MCP (Model Context Protocol) server that provides YouTrack REST API access to AI agents like GitHub Copilot, enabling real-time project management and issue tracking.

Features

  • 🔍 Query and Search Issues: Use YouTrack's powerful query syntax to find issues
  • 📊 Real-time Project Status: Get current project statistics and issue distributions
  • Create New Issues: Add issues with full metadata (type, priority, description)
  • 📝 Update Issues: Modify existing issues (state, assignee, priority, etc.)
  • Comment Management: Add and retrieve issue comments
  • 👥 User Search: Find and search YouTrack users
  • 📈 Project Analytics: Generate summaries and timeline reports
  • 🔄 Bulk Operations: Update multiple issues simultaneously
  • 🎣 Webhook Support: Real-time notifications (optional)
  • 💾 Smart Caching: Improved performance with intelligent caching
  • 📋 Comprehensive Logging: Detailed logs for monitoring and debugging

Quick Start

  1. Clone and install:
git clone https://github.com/yourusername/youtrack-mcp.git
cd youtrack-mcp
npm install
  1. Configure environment:
cp .env.example .env
# Edit .env with your YouTrack URL and token
  1. Build and run:
npm run build
npm start

Configuration

Environment Variables

VariableRequiredDescriptionDefault
YOUTRACK_URLYouTrack instance URL-
YOUTRACK_TOKENPermanent token-
DEFAULT_PROJECT_IDDefault project ID-
ENABLE_WEBHOOKSEnable webhook serverfalse
WEBHOOK_PORTWebhook server port3000
WEBHOOK_SECRETWebhook signature secret-
LOG_LEVELLogging levelinfo
CACHE_ENABLEDEnable cachingtrue
CACHE_TTLCache TTL (ms)300000

MCP Client Configuration

Add to your MCP settings (e.g., in Cline, Claude Desktop, or other MCP clients):

{
  "mcpServers": {
    "youtrack": {
      "command": "node",
      "args": ["path/to/youtrack-mcp/dist/index.js"],
      "env": {
        "YOUTRACK_URL": "https://your-instance.youtrack.cloud",
        "YOUTRACK_TOKEN": "your-token"
      }
    }
  }
}

Available Tools

1. get_project_status

Get current project status including issue statistics.

2. create_issue

Create new issues with summary, description, type, and priority.

3. query_issues

Search issues using YouTrack query syntax.

4. update_issue

Update existing issues (state, assignee, priority, etc.).

5. get_project_issues_summary

Get aggregated statistics of issues by state, priority, and type.

Usage Examples

Query open bugs

query_issues({ query: "project: PROJ-1 type: Bug state: Open" })

Create a new feature request

create_issue({
  projectId: "PROJ-1",
  summary: "Add dark mode support",
  description: "Users want a dark theme option",
  type: "Feature",
  priority: "Normal"
})

Update issue state

update_issue({
  issueId: "PROJ-123",
  updates: {
    state: "In Progress",
    assignee: "john.doe"
  }
})

Development

# Run in development mode
npm run dev

# Build for production
npm run build

# Start production server
npm start

License

MIT