YouTrack MCP Server
Read, create and update JetBrains YouTrack issues, fields, tags and activity history from workflows
The YouTrack MCP server connects workflows to JetBrains YouTrack. It provides 13 tools: read issues, their change history and projects; and write - create issues, comment, edit summary and description, change state and custom fields, assign, and tag.
Setup
- Get a permanent token from your YouTrack instance:
- Open your YouTrack profile > Account Security > Tokens > New token.
- Copy the token. Permanent tokens start with
perm:(older YouTrack) orperm-(2024 and later). Session tokens and personal access tokens from other products do not work.
- Go to Resources > MCP Servers > Add Server (OWNER or ADMIN).
- Choose YouTrack.
- Give it a Name and fill in:
| Field | Required | Description |
|---|---|---|
| Base URL | Yes | Your instance, e.g. https://your-instance.youtrack.cloud - for self-hosted YouTrack include any path prefix (https://your-server/youtrack) |
| API Key | Yes | The permanent token |
- Under Available in workspaces, pick the workspaces, then click Add Server.
The token acts as the user who created it: that user's permissions decide what workflows can read and change.
Token and URL gotchas
- Same instance. A token works only on the instance that issued it: a cloud token (
*.youtrack.cloud) does not work against a self-hosted server, and vice versa. - Self-hosted path prefix. If YouTrack runs under a path, include it in Base URL. Without it you get login-page HTML instead of API answers.
- Use the final HTTPS address. An HTTP-to-HTTPS redirect drops the token.
- Reverse proxies and SSO. A proxy that intercepts unauthenticated requests answers with a login page (or "Restart login cookie not found"). Let everything under
<Base URL>/api/pass through unmodified. - Quick check: opening
<Base URL>/api/users/me?fields=login,namewith the token should name the token's owner.
Working with issues
- Issue keys are project-prefixed, e.g.
PROJ-123(theidReadablefield of every issue). Pass that key, not the internal id like2-1234. - Field values must match exactly, case included - state names, priorities, types. Check an issue's custom fields and their values with
get_issuefirst when unsure. An unknown value is rejected with an error, never ignored. - One change per call. A state change can be refused by the project's workflow rules even when the state exists; read the issue back with
get_issueto confirm. create_issueand its extras. If the issue is created but its type or tags cannot be applied, the tool still returns the new issue, with a warning saying what was not applied - so a retry does not create a duplicate. The warning is shown on the node.
Tools
Reading
get_issues
Fetch issues from YouTrack with optional search query.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | No | YouTrack search query (e.g., 'State: Open', 'project: MYPROJ') |
fields | string | No | Comma-separated fields to return. Default: "id,idReadable,summary,description,created,resolved,updated". |
limit | number | No | Maximum number of issues to return. Default: 100. |
skip | number | No | Number of issues to skip (for pagination) Default: 0. |
get_issue
Get a single issue by ID with full details.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId | string | Yes | Issue ID (e.g., PROJ-123) |
fields | string | No | Comma-separated fields to return. Default: "id,idReadable,summary,description,created,resolved,updated,customFields(name,value(name,text))". |
get_issue_activities
Get activity/change history for an issue (status changes, field updates)
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId | string | Yes | Issue ID (e.g., PROJ-123) |
categories | string | No | Activity categories to filter (e.g., 'IssueStateCategory,IssueCreatedCategory') Default: "IssueStateCategory". |
fields | string | No | Fields to return for activities. Default: "id,timestamp,author(login,name),field(name,customField(name)),added(name),removed(name)". |
get_all_activities
Get all activities across issues (useful for bulk cycle time analysis)
| Parameter | Type | Required | Description |
|---|---|---|---|
categories | string | No | Activity categories to filter. Default: "IssueStateCategory". |
start | number | No | Start timestamp (Unix ms) |
end | number | No | End timestamp (Unix ms) |
limit | number | No | Maximum activities to return (default 200, max 500) |
get_projects
List all accessible projects.
| Parameter | Type | Required | Description |
|---|---|---|---|
fields | string | No | Fields to return. Default: "id,name,shortName,description". |
created, resolved and updated are Unix millisecond timestamps; resolved is null while an issue is open. Activity records carry timestamp, author, the changed field and added / removed values - enough to see when an issue entered and left each state. get_all_activities adds a target naming the issue.
Writing
create_issue
Create a new issue in a project (addressed by its shortName, e.g. 'PROJ'). Optionally set the Type field and tags in the same call.
| Parameter | Type | Required | Description |
|---|---|---|---|
projectShortName | string | Yes | Project shortName / key, e.g. 'PROJ' (see get_projects) |
summary | string | Yes | Issue summary (title) |
description | string | No | Issue description (Markdown) |
type | string | No | Value for the Type field, e.g. 'Bug', 'Task'. |
tags | array of string | No | Tags to add to the new issue. |
add_comment
Add a comment to an issue. Markdown is rendered by YouTrack.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId | string | Yes | Issue key (e.g., PROJ-123) |
text | string | Yes | Comment text (Markdown) |
update_issue
Change an issue's summary and/or description. Pass only the fields to change.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId | string | Yes | Issue key (e.g., PROJ-123) |
summary | string | No | New summary (title) |
description | string | No | New description (Markdown) |
set_state
Set an issue's State (e.g. Open, In Progress, Fixed). The value must match one of the project's state names exactly (case-sensitive).
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId | string | Yes | Issue key (e.g., PROJ-123) |
state | string | Yes | Target state name, e.g. 'In Progress'. |
set_field
Set any custom field on an issue by name (e.g. field 'Priority' value 'Critical', field 'Type' value 'Bug', field 'Fix versions' value '2.1'). The value must match one of the field's allowed values exactly.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId | string | Yes | Issue key (e.g., PROJ-123) |
field | string | Yes | Custom field name as shown in YouTrack, e.g. 'Priority'. |
value | string | Yes | Value to set, e.g. 'Critical'. |
assign_issue
Assign an issue to a user by login, or unassign it by passing null or leaving login out.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId | string | Yes | Issue key (e.g., PROJ-123) |
login | string or null | No | YouTrack user login (e.g. 'jdoe'). null or omitted → Unassigned. |
add_tags
Add one or more tags to an issue. A tag that does not exist yet is created.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId | string | Yes | Issue key (e.g., PROJ-123) |
tags | array of string | Yes | Tag names, e.g. ['urgent', 'needs review']. |
remove_tags
Remove one or more tags from an issue.
| Parameter | Type | Required | Description |
|---|---|---|---|
issueId | string | Yes | Issue key (e.g., PROJ-123) |
tags | array of string | Yes | Tag names to remove. |
Example Workflows
Weekly engineering digest
- Trigger - Schedule (Monday 9:00).
- Action -
youtrack:get_issueswith queryState: Open. - Action -
youtrack:get_all_activitiesover the past week. - Agent - Compute cycle times, flag issues stuck in one state, summarize what shipped.
- Action - Send the digest with
slack:send_message.
Ticket from a form
- Trigger - App (a form in Apps).
- Action -
youtrack:create_issuewithprojectShortNameSUP,summary{{trigger.data.fields.subject}}anddescription{{trigger.data.fields.message}}. - Action -
youtrack:add_tagswithissueId{{steps.create.output.response.idReadable}}andtags["from-form"].