YouTrack
Access the YouTrack REST API to manage projects and track issues in real-time.
YouTrack MCP Server
Enterpriseβgrade MCP server for JetBrains YouTrack giving AI assistants (Claude, VSCode MCP extensions, Continue.dev, Cline, Zed, custom connectors) safe, tool-based access to issues, sprints, dependencies (Gantt + critical path), time tracking and knowledge base content.
Table of Contents
- Quick Start
- Highlights
- Environment & Configuration
- MCP Client Integration
- Usage Examples
- Analytics (Gantt & Critical Path)
- Tool Catalog Summary
- Architecture
- Development
- Troubleshooting
- Security & Permissions
- Roadmap
- Contributing
- License
Quick Start
git clone https://github.com/itsalfredakku/youtrack-mcp.git
cd youtrack-mcp
npm install
cp .env.example .env # set YOUTRACK_URL + YOUTRACK_TOKEN
npm run build
npm start # stdio MCP server
Remote (SSE) for hosted usage / ChatGPT custom connector:
npm run start:remote # http://localhost:3001/mcp/sse
Health check:
curl http://localhost:3001/health
Highlights
| Domain | Capabilities |
|---|---|
| Dynamic Configuration | π Auto-loads custom field values (State, Priority, Type) from YOUR YouTrack instance on startup - no more hardcoded examples! |
| Issues | CRUD, comments, transitions, dependency links, estimation, count queries |
| Issue History | π Activity tracking, audit trail, change history with filtering |
| Bulk Operations | π Apply commands to multiple issues, silent execution, auto-completion |
| Search Enhancement | π Query auto-completion, context-aware suggestions |
| Saved Queries | π Create, manage, and share saved searches |
| Agile | Sprint create/manage, issue assignment, progress metrics |
| Knowledge Base | Article create/update/search, tagging, linkage |
| Projects | Discovery, metadata, field summaries |
| Analytics | Gantt generation, dependency routing, critical path |
| Time Tracking | Log work, time summaries, reporting hooks |
| Performance | TTL caching, structured logging, graceful fallbacks |
| Reliability | Consistent response envelope & error normalization |
| API Coverage | π ~80% of YouTrack REST API (12 of 15 domain areas) |
π New: Dynamic Configuration
The MCP server now automatically adapts to your YouTrack customization! On startup, it:
- β Fetches your actual State values (e.g., "In Progress", "Code Review")
- β Loads your Priority values (e.g., "Critical", "High", "Medium")
- β Discovers your Issue Types (e.g., "Bug", "Feature", "Epic")
- β Generates accurate query examples that work with YOUR setup
No more errors from AI assistants suggesting "state: Open" when your instance uses "state: In Progress"!
See Dynamic Configuration Documentation for details.
Environment & Configuration
Minimal .env:
YOUTRACK_URL=https://your-instance.youtrack.cloud
YOUTRACK_TOKEN=your-permanent-token
PROJECT_ID=PROJECT-1
LOG_LEVEL=info
CACHE_ENABLED=true
CACHE_TTL=300000
ENABLE_WEBHOOKS=false
WEBHOOK_PORT=3000
WEBHOOK_SECRET=
| Variable | Required | Description | Default |
|---|---|---|---|
YOUTRACK_URL | β | Base URL (no trailing slash) | β |
YOUTRACK_TOKEN | β | Permanent token (Profile β Tokens) | β |
PROJECT_ID | β | Default project shortName | β |
LOG_LEVEL | β | error/warn/info/debug | info |
CACHE_ENABLED | β | Enable inβmemory cache | true |
CACHE_TTL | β | Cache TTL ms | 300000 |
ENABLE_WEBHOOKS | β | Start webhook listener | false |
WEBHOOK_PORT | β | Webhook port | 3000 |
WEBHOOK_SECRET | β | HMAC secret | β |
MCP Client Integration
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"youtrack": {
"command": "node",
"args": ["/abs/path/youtrack-mcp/dist/index.js"],
"env": {
"YOUTRACK_URL": "https://your-instance.youtrack.cloud",
"YOUTRACK_TOKEN": "token",
"PROJECT_ID": "PRJ" // Optional
}
}
}
}
VSCode (.vscode/settings.json):
{
"servers": {
"youtrack": {
"command": "node",
"args": ["./dist/index.js"],
"env": {
"YOUTRACK_URL": "https://your-instance.youtrack.cloud",
"YOUTRACK_TOKEN": "token",
}
}
}
}
Github Coding Agent:
"mcpServers": {
"youtrack": {
"type": "sse",
"url": "https://your-instance.youtrack.cloud/mcp/sse",
"headers": {
"Authorization": "Bearer <your-token>"
},
"tools": [
"issues",
"projects",
"users"
]
}
}
Continue.dev (continue.json):
{
"mcp": {
"servers": [
{
"name": "youtrack",
"command": "node",
"args": ["/abs/youtrack-mcp/dist/index.js"],
"env": {
"YOUTRACK_URL": "https://your-instance.youtrack.cloud",
"YOUTRACK_TOKEN": "token"
}
}
]
}
}
Cline / Generic:
{
"mcpServers": {
"youtrack": {
"command": "node",
"args": ["/abs/youtrack-mcp/dist/index.js"],
"env": {
"YOUTRACK_URL": "https://your-instance.youtrack.cloud",
"YOUTRACK_TOKEN": "token"
}
}
}
}
Zed:
{
"context_servers": {
"youtrack": {
"command": "node",
"args": ["/abs/youtrack-mcp/dist/index.js"],
"env": {
"YOUTRACK_URL": "https://your-instance.youtrack.cloud",
"YOUTRACK_TOKEN": "token"
}
}
}
}
Local test:
YOUTRACK_URL=https://your-instance.youtrack.cloud \
YOUTRACK_TOKEN=token \
node dist/index.js
Pitfalls: absolute path, no trailing slash, full token copy, JSON env values are strings.
Tool Catalog Summary
17 MCP Tools covering 12 domain areas:
| Category | Tools & Key Actions |
|---|---|
| Issues | issues - create, update, comment, search, query, count, state transitions |
| Issue History π | activities - global/issue activity tracking, audit trail, paginated history |
| Bulk Operations π | commands - apply commands to multiple issues, get suggestions, silent execution |
| Search π | search_assist - query auto-completion, context-aware suggestions |
| Saved Searches π | saved_queries - create, list, update, delete saved queries |
| Agile Boards | agile_boards - list boards/sprints, assign issues, track progress |
| Knowledge Base | knowledge_base - create/update articles, search, manage hierarchy |
| Projects | projects - list, get details, validate access, custom fields |
| Users & Groups | users - list/search users, groups, team management |
| Time Tracking | time_tracking - log work, get entries, reports |
| Analytics | analytics - Gantt charts, critical path, resource allocation |
| Custom Fields | custom_fields - manage fields, bundles, project fields |
| Comments | comments - add, update, delete issue comments |
| Subscriptions | subscriptions - manage notification preferences |
| Auth | auth - OAuth2 status, login, token validation |
See Tool Reference for complete documentation.
Architecture
Clients (Claude / VSCode / Continue / Zed)
β MCP (stdio or SSE)
ββββββββββΌβββββββββ
β Orchestrator β registry, routing, validation
ββββββββββ¬βββββββββ
β domain calls
ββββββββββΌβββββββββ
β Domain Clients β issues / projects / agile / kb / analytics / time
ββββββββββ¬βββββββββ
β REST
ββββββββββΌβββββββββ
β YouTrack API β
βββββββββββββββββββ
Traits: strong typing, graceful degradation, normalized errors, pluggable caching/logging.
Development
npm install
npm run dev # watch
npm run lint # eslint
npm run type-check # types
npm test # tests
npm run build # dist output
Structure: src/index.ts (entry), src/api/domains (domain clients), src/tools.ts (tool registry), src/utils, src/logger.ts.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| 401 Unauthorized | Missing scope / expired token | Regenerate token with required permissions |
| Project not found | Hidden / archived / wrong ID | Use internal ID or verify access |
| Empty analytics | No issues in project | Seed baseline issues |
| SSE disconnects | Proxy idle timeout | Enable keep-alive / tune LB |
Checklist: absolute path, no trailing slash, full token, JSON env strings. Use LOG_LEVEL=debug for deep inspection.
Security & Permissions
Recommended token capabilities: Issues (R/W), Projects (Read), Knowledge Base (R/W), Agile/Sprints (R/W), Time Tracking (if applicable). Store tokens as environment secrets; never commit.
Contributing
- Fork & branch (
feature/x) - Implement + tests
npm run lint && npm run type-check- Open PR with rationale
License
MIT Β© 2025
Acknowledgements
JetBrains YouTrack β’ MCP community β’ TypeScript ecosystem
Feedback / ideas? Open an issue or discussion.
Related Servers
UpTier
Desktop task manager with clean To Do-style UI and 25+ MCP tools for prioritization, goal tracking, and multi-profile workflows.
Breathe HR
Provides secure, read-write access to Breathe HR data for AI assistants.
Anki MCP
A Model Context Protocol (MCP) server that provides seamless integration with Anki, enabling AI assistants to interact with your flashcard collection. Create, read, update, and manage Anki cards programmatically through a standardized interface.
early-mcp
Complete MCP server for Early (Timeular) time tracking - 46 tools for tracking, entries, activities, folders, tags, reports. Created with Claude
Lunch Roulette MCP Server
Manages and randomly selects from a list of lunch restaurants, storing choices and visit statistics locally.
Browser Use
A simple note storage system with tools to add and summarize notes using a custom URI scheme.
WayStation
A universal remote MCP server that connects to popular productivity tools such as Notion, Monday, AirTable, and many more.
eSignatures
Contract and template management for drafting, reviewing, and sending binding contracts.
ζι’ MCP Server
A Markdown formatting tool to apply themes and publish articles to WeChat Official Accounts.
Airflow MCP
Interact with Apache Airflow using natural language to manage and monitor your data workflows.