llms.txt: machine-readable documentation index. Markdown version of this page is also available.

YouTrack Developer Portal Help

MCP Tools

Model Context Protocol (MCP) is a new standard that enables apps like chatbots and other AI tools talk to other services, like YouTrack, in a consistent and safe way. The YouTrack MCP server gives these tools real-time access to read and update issues in YouTrack, using your own account permissions. It includes a set of built-in tools you can use to find, create, and update things like issues and comments.

For the instructions on how to configure the connection between your AI client and YouTrack, see YouTrack documentation.

When your MCP client supports OAuth authorization, it can connect to YouTrack without storing a permanent token locally. For details about OAuth clients, preregistered MCP clients, and CIMD client auto-creation, see OAuth Clients.

Predefined MCP tools let you search, create, and update issues and articles, work with drafts, attachments, and time tracking, retrieve project and user information, and search official YouTrack documentation. For more information about predefined MCP tools in YouTrack, see Predefined MCP Tools.

You can also create custom MCP tools and include them in your custom YouTrack app. Custom tools are backend JavaScript modules that use the same scripting API as workflows and other backend app modules. For instructions on how to create your own MCP tools, see Custom MCP Tools. For shared scripting guidance, see YouTrack JavaScript API.

Security

When using the YouTrack MCP server, you're letting your AI agent perform various tasks, such as creating and updating issues on your behalf. Predefined MCP tools include operations that read data and operations that create or update data. Tools run with the authenticated user's permissions and respect YouTrack visibility restrictions. The predefined tool scripts are read-only and cannot be edited in place.

If you want to modify any of the predefined MCP tools, copy them into a separate app package and update the code. For details on how to write custom MCP tools, see Custom MCP Tools.

Monitoring Changes Made by AI Tools

For additional security, YouTrack admins may want to monitor changes made by AI tools. They can implement such monitoring using workflow rules. On-change workflow rules can determine whether a change is made by an MCP request and run custom logic for such cases.

You can check whether an LLM performed a change through an MCP request by using isMcpRequest method of the context object in a workflow rule that gets triggered on changes.

Here is an example of a simple on-change workflow rule that implements additional monitoring and tags all issues updated by an LLM with a special tag:

const entities = require('@jetbrains/youtrack-scripting-api/entities'); exports.rule = entities.Issue.onChange({ title: 'Mark issues touched by an LLM via MCP with a tag', guard: (ctx) => ctx.isMcpRequest, // triggers only on MCP change requests action: (ctx) => ctx.issue.addTag('by-ai') });
24 November 2026