YouTrack MCP
Provides integration with YouTrack, an issue tracking and project management tool by JetBrains, enabling management of issues, sprints, knowledge base articles, and projects.
Click on "Deploy 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., "@YouTrack MCP create a new issue in PROJECT-1 for fixing the login bug"
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.
YouTrack MCP TypeScript Server
A Model Context Protocol (MCP) server for YouTrack integration, providing a standardized interface for LLMs to interact with YouTrack's issue tracking, agile management, and knowledge base features.
Features
Issue Management
Create, read, update, delete issues
Add comments and attachments
Search issues with advanced filtering
Track issue time and estimation
Agile & Sprint Management
Create and manage sprints
Assign issues to sprints
Track sprint progress
State Management & Workflows
Transition issues through states
Start working on issues with automatic assignment
Complete issues with proper resolution
Knowledge Base Integration
Create and manage articles
Link issues to knowledge base articles
Search knowledge base content
Project Management
List and filter projects
Get project details and customization options
Related MCP server: YouTrack MCP Server
Installation
# Clone the repository
git clone https://github.com/itsalfredakku/youtrack-mcp.git
cd youtrack-mcp-ts
# Install dependencies
npm install
# Build the project
npm run buildConfiguration
Copy the example environment file and configure it with your YouTrack instance details:
cp .env.example .envEdit the .env file with your specific configuration:
# YouTrack instance URL (without trailing slash)
YOUTRACK_URL=https://your-instance.youtrack.cloud
# YouTrack permanent token
# Generate from: Profile > Account Security > Tokens
YOUTRACK_TOKEN=your-permanent-token-here
# Optional: Default project ID
PROJECT_ID=PROJECT-1
# Optional: Enable webhooks (true/false)
ENABLE_WEBHOOKS=false
# Optional: Webhook server port (default: 3000)
WEBHOOK_PORT=3000
# Optional: Webhook secret for signature verification
WEBHOOK_SECRET=your-webhook-secret
# Optional: Log level (error, warn, info, debug)
LOG_LEVEL=info
# Optional: Cache TTL in milliseconds (default: 300000 = 5 minutes)
CACHE_TTL=300000
# Optional: Enable cache (true/false, default: true)
CACHE_ENABLED=trueUsage
Starting the Server
# Start the MCP server
npm start
# Start in development mode with auto-reload
npm run devInteracting with the Server
The YouTrack MCP server exposes tools following the Model Context Protocol. LLM applications can discover and use these tools to interact with YouTrack.
Example: Creating an Issue
{
"tool": "create_issue",
"params": {
"projectId": "PROJECT-1",
"summary": "Implement new feature",
"description": "We need to implement the new feature as described in the specs.",
"type": "Task",
"priority": "Normal"
}
}Example: Searching Issues
{
"tool": "search_issues",
"params": {
"query": "project: PROJECT-1 #bug state: Open",
"limit": 10
}
}Example: Starting Work on an Issue
{
"tool": "start_working_on_issue",
"params": {
"issueId": "PROJECT-1-123",
"comment": "Starting implementation of this feature",
"estimatedTime": "2d"
}
}Available Tools
The server provides 60+ tools for interacting with YouTrack. Here are some of the most commonly used:
Issue Management
create_issue- Create a new issueget_issue- Get issue detailsupdate_issue- Update an issueadd_issue_comment- Add a comment to an issuesearch_issues- Search for issues
Agile & Sprint Management
list_sprints- List all sprintscreate_sprint- Create a new sprintassign_issue_to_sprint- Add an issue to a sprintget_sprint_issues- Get all issues in a sprint
State Management
start_working_on_issue- Begin work on an issuechange_issue_state- Change an issue's statecomplete_issue- Mark an issue as completed
Knowledge Base
create_article- Create a knowledge base articleupdate_article- Update an articleget_article- Get article detailssearch_articles- Search knowledge base articles
Project Management
list_projects- List all accessible projectsget_project_details- Get project information
Development
Prerequisites
Node.js 18.x or later
npm 8.x or later
A YouTrack instance with API access
Development Workflow
# Install dependencies
npm install
# Start in development mode with auto-reload
npm run dev
# Run linting
npm run lint
# Run type checking
npm run type-check
# Build the project
npm run buildProject Structure
src/index.ts- Main entry pointsrc/youtrack-client.ts- YouTrack API clientsrc/tools/- Individual MCP tool implementationssrc/utils/- Utility functions and helperssrc/types/- TypeScript type definitionssrc/config/- Configuration management
Testing
# Run all tests
npm test
# Run specific test suites
npm run test:queries
npm run test:issuesTroubleshooting
Common Issues
Authentication errors: Verify your YouTrack token has the necessary permissions and hasn't expired.
Project not found: Ensure the project ID exists and is accessible to your account.
API rate limiting: YouTrack may impose rate limits. Consider implementing retry logic for critical operations.
State transition errors: Some state transitions may be prohibited by your YouTrack workflow configuration.
Logs
Logs are stored in the logs directory:
combined.log- All log entrieserror.log- Error-level logs only
Set the LOG_LEVEL environment variable to control logging verbosity (error, warn, info, debug).
Contributing
Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests.
Fork the repository
Create your feature branch (
git checkout -b feature/amazing-feature)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.
Acknowledgements
Available Tools
12 toolsadminC
Administrative operations: search users, inspect fields, list field values, bulk update, create dependencies
Inputs: operation (required), query, projectId, fieldName, +4 more.
agile_boardsC
Agile boards and sprints: list boards/sprints, get details, create sprints, assign issues
Inputs: action (required), boardId, sprintId, issueId, +4 more.
analyticsC
Analytics and reporting: project statistics, time tracking, Gantt, critical path, resource allocation, milestone progress
Inputs: reportType (required), projectId, startDate, endDate, +2 more.
authB
Authentication: status, OAuth2 login, logout, re-authenticate, validate token
Inputs: action (required).
commentsC
Issue comments: list, add, update, delete
Inputs: action (required), issueId (required), commentId, text.
issuesC
Issue lifecycle: create, update, query/search, change state, comment, start/complete work
Inputs: action (required), projectId, issueId, summary, +7 more.
knowledge_baseC
Knowledge base: list, get, create, update, delete, search articles
Inputs: action (required), articleId, title, content, +4 more.
notificationsC
Notifications: status, list, clear, subscribe/unsubscribe, list subscriptions
Inputs: action (required), limit, id, name, +3 more.
projectsB
Project management: list projects, get details, validate access, list custom fields, retrieve statistics
Inputs: action (required), projectId, fields.
queryC
Raw YouTrack query using native syntax (returns issues matching the expression)
Inputs: query (required), fields, limit.
subscriptionsC
Notification subscriptions: create, update, delete, list
Inputs: action (required), id, name, filters, +3 more.
time_trackingC
Time tracking & work items: log time, manage entries and work items, generate reports
Inputs: action (required), issueId, duration, description, +8 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Each tool is grouped by clear domain (e.g., issues, agile_boards, comments) with distinct responsibilities. Overlaps like issues and query are resolved by raw query being a specialized search tool, while notifications and subscriptions are differentiated by subscription management being a subset of notifications.
All tool names follow a consistent lowercase underscore pattern (e.g., agile_boards, time_tracking). The naming is predictable and uses nouns or adjective_noun combinations, making it easy for an agent to infer functionality.
With 12 tools covering core project management domains (issues, boards, analytics, etc.), the count is well-scoped. Each tool serves a necessary purpose without unnecessary bloat or missing critical features.
The tool set provides comprehensive lifecycle coverage: issue CRUD, state transitions, comments, time tracking, project management, agile boards, knowledge base, notifications, subscriptions, analytics, and admin operations. No obvious dead ends or missing operations for a project management system.
Maintenance
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Enable secure connectivity between Sentry issues and debugging data, and LLM clients, using a Model Context Protocol (MCP) server.
Model Context Protocol server for the Apideck Unified API. Connect any MCP-compatible agent framework to 100+ accounting systems, HRIS platforms, file storage providers, and more through one integration. More information https://www.apideck.com/mcp-server
A Model Context Protocol server for Wix AI tools
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA comprehensive Model Context Protocol server for YouTrack integration, providing extensive tools for issue tracking, project management, workflow automation, and team collaboration.7 npm3MIT
- AlicenseNot gradedqualityDmaintenanceA comprehensive Model Context Protocol server that provides AI agents with 44 tools to manage JetBrains YouTrack issues, sprints, and projects via the REST API. It supports full YouTrack query language and works with both Cloud and Server instances for complete project management integration.315 npmMIT
- AlicenseNot gradedqualityBmaintenanceMCP server for interacting with YouTrack, enabling issue management, project operations, and search via natural language.42 npm99MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for comprehensive YouTrack integration, enabling issue management, work tracking, search, and knowledge base operations.297 npm6MIT