bitrix24-tasks-mcp-server
v1.8.0Bitrix24 MCP server for tasks, projects, users, and CRM
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
bitrix24_create_task
Create a new task in Bitrix24
| Parameter | Type | Description |
|---|---|---|
title * | string | Task title |
checklist | array | Optional checklist items to create inside the task |
creatorId | string | Creator user ID |
deadline | string | Deadline (ISO 8601) |
description | string | Task description |
diskFolderId | string | Optional Bitrix24 disk folder ID for uploads. Defaults to BITRIX24_DISK_FOLDER_ID or the webhook user storage root folder |
filePaths | array | Optional local file paths (absolute or relative to MCP process cwd) to upload and attach to the task (images and other files) |
parentTaskId | string | Parent task ID (PARENT_ID) for subtask linkage |
priority | string | 0=Low, 1=Normal, 2=High |
projectId | string | Project/group ID (GROUP_ID) |
responsibleId | string | Responsible user ID |
bitrix24_get_task_summary
Read a strict bounded task projection for workflow intake and routing. DESCRIPTION is capped at 12000 characters; TITLE is display metadata and must not be used as a routing signal.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID |
select | array | Optional Bitrix task fields. Defaults to ID, TITLE, DESCRIPTION, GROUP_ID, STAGE_ID, STATUS, CHANGED_DATE, RESPONSIBLE_ID. |
bitrix24_get_task_stage
Read the current task stage and minimal routing metadata without loading comments, description, or files.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID |
bitrix24_get_task
Get task by ID with all legacy UF_* custom fields, comments, and file attachments in one call. Comments use task chat (im) when available; attachments download via disk.file.get (not browser SSO URLs).
| Parameter | Type | Description |
|---|---|---|
id * | string | Task ID |
commentsLimit | number | Max chat messages (1-50, default 50) |
imagesOnly | boolean | Download only image attachments |
includeCommentAttachments | boolean | Download comment/chat attachments (default: true) |
includeComments | boolean | Load task comments/messages (default: true) |
includeContent | boolean | Download file bytes; images are also returned as MCP image content (default: true) |
includeSystemMessages | boolean | Include system chat messages |
includeTaskFiles | boolean | Download files linked in task description and UF_TASK_WEBDAV_FILES (default: true) |
preferApi | string | Comments API: auto (chat then legacy), chat only, or legacy only |
saveToDirectory | string | Optional local directory to save downloaded files |
bitrix24_list_tasks
List tasks with optional filtering and ordering
| Parameter | Type | Description |
|---|---|---|
filter | object | Bitrix24 tasks filter object |
limit | number | Maximum number of tasks to return |
onlyMy | boolean | Return only tasks where current webhook user is responsible |
orderBy | string | Field to order by |
orderDirection | string | Order direction |
bitrix24_get_latest_tasks
Get the most recent tasks ordered by creation date
| Parameter | Type | Description |
|---|---|---|
limit | number | Maximum number of tasks to return |
bitrix24_get_tasks_from_date_range
Get tasks created within a specific date range
| Parameter | Type | Description |
|---|---|---|
startDate * | string | Start date in YYYY-MM-DD format |
endDate | string | End date in YYYY-MM-DD format (optional) |
limit | number | Maximum number of tasks to return |
bitrix24_get_task_comments
Get task comments/messages. Uses modern task chat API (im.dialog.messages.get) when available, falls back to legacy task.commentitem.getlist. Downloads attachments from chat files or ATTACHED_OBJECTS.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID |
attachmentIds | array | Optional attachment/file IDs to download |
commentIds | array | Optional comment/message IDs to return (post-filter) |
filter | object | Legacy comment FILTER (task.commentitem.getlist only) |
firstId | number | Chat pagination: load messages newer than this ID (0 for first page) |
imagesOnly | boolean | Download only image attachments |
includeAttachments | boolean | Include attachment metadata and optional file download (default: true) |
includeContent | boolean | Download file bytes and include base64 for images (default: true) |
includeSystemMessages | boolean | Include system chat messages (chat API only) |
lastId | number | Chat pagination: load messages older than this ID |
limit | integer | Max messages for chat API (1-50, default 50) |
orderBy | string | Sort field (legacy API; chat uses POST_DATE asc/desc) |
orderDirection | string | Sort direction |
preferApi | string | API strategy: auto (chat then legacy), chat only, or legacy only |
saveToDirectory | string | Optional local directory path to save downloaded attachment files |
bitrix24_get_comments_after
Read compact comments newer than a known comment/message ID. Returns text and metadata only; never downloads attachments or file bytes.
| Parameter | Type | Description |
|---|---|---|
afterCommentId * | string | Return only comments/messages whose numeric ID is greater than this watermark |
taskId * | string | Task ID |
includeSystemMessages | boolean | Include system messages |
limit | integer | Maximum comments to inspect and return |
maxCommentChars | integer | Per-comment text cap. Truncated comments include originalChars and sha256. |
maxTotalChars | integer | Hard cap for text across the returned page. |
preferApi | string | API strategy |
bitrix24_update_task
Update an existing task in Bitrix24
| Parameter | Type | Description |
|---|---|---|
id * | string | Task ID |
deadline | string | Deadline (ISO 8601) |
description | string | Task description |
parentTaskId | string | Parent task ID (PARENT_ID) for subtask linkage |
priority | string | 0=Low, 1=Normal, 2=High |
projectId | string | Project/group ID (GROUP_ID) |
responsibleId | string | Responsible user ID |
status | string | 1=New, 2=Pending, 3=In Progress, 4=Completed, 5=Deferred |
title | string | Task title |
bitrix24_update_task_custom_fields
Update one or more Bitrix24 task custom fields (UF_TASK_*). Reads current values first, protects populated fields by default, and verifies the write.
| Parameter | Type | Description |
|---|---|---|
fields * | object | Map of UF_TASK_* field codes to Bitrix24-compatible scalar, array, object, or null values (1-20 fields) |
taskId * | string | Bitrix24 task ID |
overwriteExisting | boolean | Allow replacing non-empty current values. Defaults to false. |
bitrix24_get_task_stages
Get Kanban/My Plan stages for a Bitrix24 task group or user plan
| Parameter | Type | Description |
|---|---|---|
entityId * | string | Group/project ID for Kanban stages, or user ID for My Plan stages |
entityType | string | G=group/project Kanban, U=user My Plan |
bitrix24_can_move_task_in_stages
Check whether the webhook user can move tasks in a Bitrix24 Kanban/My Plan object
| Parameter | Type | Description |
|---|---|---|
entityId * | string | Group/project ID for Kanban stages, or user ID for My Plan stages |
entityType | string | G=group/project Kanban, U=user My Plan |
bitrix24_move_task_to_stage
Move a task to another Kanban/My Plan stage using task.stages.movetask. Provide stageId directly or stageName with entityId.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID |
after | string | Optional task ID after which this task should be placed |
before | string | Optional task ID before which this task should be placed |
entityId | string | Group/project ID for Kanban stages, or user ID for My Plan stages. Required when using stageName. |
entityType | string | G=group/project Kanban, U=user My Plan |
stageId | string | Target stage ID |
stageName | string | Target stage title. Used to resolve stageId when stageId is omitted. |
bitrix24_get_task_files
Download files attached to a Bitrix24 task (UF_TASK_WEBDAV_FILES and [disk file id=...] in description). Returns metadata and optional base64 content for images.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID |
diskFileIds | array | Optional disk file IDs to download (with or without "n" prefix). If omitted, all files referenced by the task are fetched. |
imagesOnly | boolean | Download only image files (png, jpg, gif, webp, etc.) |
includeContent | boolean | Download file bytes and include base64 for images (default: true) |
saveToDirectory | string | Optional local directory path to save downloaded files |
bitrix24_get_task_files_metadata
Read one bounded page of task attachment metadata without downloading file bytes or emitting base64.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID |
afterFileId | string | Pagination watermark from nextAfterFileId |
diskFileIds | array | Optional exact disk file IDs; omitted means all task file references |
imagesOnly | boolean | Return image metadata only |
limit | integer | Maximum metadata records in one page |
bitrix24_add_task_comment
Post a comment/message to a task. Modern path: tasks.task.chat.message.send + im.disk.file.commit; legacy fallback: task.commentitem.add.
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID |
authorId | string | Legacy API only: author user ID for task.commentitem.add |
diskFolderId | string | Optional Bitrix24 disk folder ID for uploads |
filePaths | array | Local files to upload and attach to the comment/message |
preferApi | string | API strategy: auto (chat then legacy), chat only, or legacy only |
text | string | Comment text (required if no filePaths) |
bitrix24_publish_task_composite
Idempotently publish a bounded ordered set of final comments/evidence attachments and then move the task to one exact stage with read-back verification. Use one call for final workflow publication.
| Parameter | Type | Description |
|---|---|---|
comments * | array | |
evidenceSha256 * | string | SHA-256 of the evidence manifest being published |
runId * | string | Stable workflow run/dispatch ID |
targetStageId * | string | Exact target stage ID |
taskId * | string | Task ID |
diskFolderId | string | Optional Bitrix Disk folder for evidence uploads |
expectedCurrentStageId | string | Optional compare-and-set guard for the current stage |
preferApi | string |
bitrix24_attach_files_to_task
Upload local files (images, documents) to Bitrix24 Disk and attach them to an existing task
| Parameter | Type | Description |
|---|---|---|
filePaths * | array | Local file paths to upload and attach |
taskId * | string | Task ID |
diskFolderId | string | Optional Bitrix24 disk folder ID. Defaults to BITRIX24_DISK_FOLDER_ID or user storage root |
bitrix24_add_task_checklist_item
Add a checklist item to a task
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID |
title * | string | Checklist item title |
isComplete | boolean | Checklist item completion status |
isImportant | boolean | Mark checklist item as important |
parentId | number | Parent checklist item ID (for nested items) |
sortIndex | number | Sort index for checklist item |
bitrix24_list_task_checklist_items
List checklist items for a task
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID |
orderBy | string | Checklist order field |
orderDirection | string | Order direction |
bitrix24_update_task_checklist_item
Update a checklist item in a task
| Parameter | Type | Description |
|---|---|---|
itemId * | string | Checklist item ID |
taskId * | string | Task ID |
isComplete | boolean | Checklist item completion status |
isImportant | boolean | Mark checklist item as important |
parentId | number | Parent checklist item ID (for nested items) |
sortIndex | number | Sort index for checklist item |
title | string | Checklist item title |
bitrix24_delete_task_checklist_item
Delete a checklist item from a task
| Parameter | Type | Description |
|---|---|---|
itemId * | string | Checklist item ID |
taskId * | string | Task ID |
bitrix24_get_task_dependencies
Get task dependencies from DEPENDS_ON field
| Parameter | Type | Description |
|---|---|---|
taskId * | string | Task ID |
bitrix24_add_task_dependency
Create dependency link between two tasks
| Parameter | Type | Description |
|---|---|---|
taskIdFrom * | string | Source task ID (dependency starts from this task) |
taskIdTo * | string | Target task ID (dependency points to this task) |
linkType | number | 0=start-start, 1=start-finish, 2=finish-start, 3=finish-finish |
bitrix24_delete_task_dependency
Delete dependency link between two tasks
| Parameter | Type | Description |
|---|---|---|
taskIdFrom * | string | Source task ID |
taskIdTo * | string | Target task ID |
linkType | number | 0=start-start, 1=start-finish, 2=finish-start, 3=finish-finish |
bitrix24_create_project
Create a new workgroup/project in Bitrix24
| Parameter | Type | Description |
|---|---|---|
name * | string | Project name |
description | string | Project description |
opened | string | Visibility flag (Y=public, N=private) |
ownerId | string | Owner user ID |
bitrix24_get_project
Retrieve project information by ID
| Parameter | Type | Description |
|---|---|---|
id * | string | Project ID |
bitrix24_list_projects
List projects/workgroups with optional filtering
| Parameter | Type | Description |
|---|---|---|
filter | object | Bitrix24 project filter object |
limit | number | Maximum number of projects to return |
orderBy | string | Field to order by |
orderDirection | string | Order direction |
bitrix24_update_project
Update an existing project/workgroup in Bitrix24
| Parameter | Type | Description |
|---|---|---|
id * | string | Project ID |
active | string | Activate/deactivate project |
closed | string | Close/open project |
description | string | Project description |
name | string | Project name |
opened | string | Visibility flag (Y=public, N=private) |
ownerId | string | Owner user ID |
bitrix24_search_tasks_projects
Search tasks and projects by title/name and description
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query text |
includeProjects | boolean | Search in projects |
includeTasks | boolean | Search in tasks |
limit | number | Maximum number of entities per type |
bitrix24_validate_webhook
Validate Bitrix24 webhook connection for tasks/projects scope
bitrix24_diagnose_permissions
Diagnose webhook permissions for tasks and projects endpoints
bitrix24_get_user
Get user information by ID
| Parameter | Type | Description |
|---|---|---|
userId * | string | User ID to retrieve |
bitrix24_get_all_users
Get all users in the system
bitrix24_find_users_by_full_name
Find active Bitrix24 users by exact normalized full name using server-side user filters. Returns none, unique, or ambiguous status; use an ID only when status is unique.
| Parameter | Type | Description |
|---|---|---|
fullName * | string | Full name with 2 or 3 parts, for example "Анастасия Лозовая" or "Лозовая Анастасия Андреевна" |
activeOnly | boolean | Return only active users (default: true) |
emailDomain | string | Optional exact email domain filter, with or without @, for example krit.pro |
bitrix24_resolve_user_names
Resolve user IDs to user names
| Parameter | Type | Description |
|---|---|---|
userIds * | array | Array of user IDs to resolve to names |
bitrix24_get_crm_sources
Read all CRM lead sources via crm.status.list (ENTITY_ID=SOURCE). Returns STATUS_ID codes and NAME labels. Discover the mail source before creating leads; this tool only reads configuration.
bitrix24_get_crm_lead_stages
Read all CRM lead stages/statuses via crm.status.list (ENTITY_ID=STATUS), including STATUS_ID, NAME, SEMANTICS and colors. Verify NEW before creating a lead; these are CRM stages, not task stages.
bitrix24_get_crm_fields
Read CRM field metadata via crm.lead.fields, crm.company.fields or crm.contact.fields. Includes standard and UF_CRM_* custom fields, types, labels, required/read-only/multiple flags and enumeration items with their IDs. Does not read card values or change CRM settings.
| Parameter | Type | Description |
|---|---|---|
customOnly | boolean | Return only UF_CRM_* custom fields |
entity | string | CRM entity whose field schema to read (default: lead) |
fieldNames | array | Optional exact field codes. Missing or inaccessible fields produce an error; omit to discover all fields. |
bitrix24_get_crm_user_fields
Read only CRM custom/user fields (UF_CRM_*) and enum item IDs using the entity fields API. Discover Message-ID, run ID and parse-status field codes/values before a write. This returns field definitions, not customer data.
| Parameter | Type | Description |
|---|---|---|
entity | string | CRM entity whose field schema to read (default: lead) |
fieldNames | array | Optional exact field codes. Missing or inaccessible fields produce an error; omit to discover all fields. |
bitrix24_find_crm_lead_by_message_id
Read-only CRM lead lookup by exact Message-ID in an existing single string UF_CRM_* field. Validate the field, read all matching pages and return none/unique/ambiguous with card URLs. Use before retrying an uncertain write; this tool never creates a lead.
| Parameter | Type | Description |
|---|---|---|
messageId * | string | |
messageIdField * | string |
bitrix24_find_crm_user_by_email
Find one active Bitrix24 employee by exact email and select a configured fallback when none is found.
| Parameter | Type | Description |
|---|---|---|
email * | string | |
fallbackUserId | string |
bitrix24_find_crm_company
Find a CRM company sequentially by exact INN, phone, email, then exact normalized title. Returns none, unique, or ambiguous.
| Parameter | Type | Description |
|---|---|---|
email | string | |
inn | string | |
phone | string | |
title | string |
bitrix24_resolve_or_create_crm_company
Reuse one matching company, return candidates on ambiguity, or create a draft company without creating an obvious duplicate.
| Parameter | Type | Description |
|---|---|---|
additionalFields | object | Optional confirmed Bitrix24 field values. Core fields cannot override safe defaults. |
assignedById | string | |
comments | string | |
email | string | |
inn | string | |
phone | string | |
requisitePresetId | string | |
title | string |
bitrix24_find_crm_contact
Find a CRM contact by client phone and then client email. Does not infer contact data.
| Parameter | Type | Description |
|---|---|---|
email | string | |
phone | string |
bitrix24_resolve_or_create_crm_contact
Reuse one matching client contact, report ambiguity, or create a contact only when phone or email is supplied.
| Parameter | Type | Description |
|---|---|---|
name * | string | |
additionalFields | object | Optional confirmed Bitrix24 field values. Core fields cannot override safe defaults. |
assignedById | string | |
comments | string | |
companyId | string | |
email | string | |
lastName | string | |
phone | string | |
secondName | string |
bitrix24_create_crm_lead_idempotent
Create a NEW CRM lead with Message-ID duplicate lookup, same-host serialization, read-back verification and recovery lookup after an uncertain REST response. Orchestrators must serialize distributed workers and reconcile uncertain writes before retrying.
| Parameter | Type | Description |
|---|---|---|
assignedById * | string | |
comments * | string | |
messageId * | string | |
messageIdField * | string | |
runId * | string | |
runIdField * | string | |
sourceId * | string | |
title * | string | |
additionalFields | object | Optional confirmed Bitrix24 field values. Core fields cannot override safe defaults. |
companyId | string | |
contactId | string | |
email | string | |
lastName | string | |
name | string | |
parseStatus | string | |
parseStatusField | string | |
phone | string |
bitrix24_get_crm_entity
Get a CRM lead, company, or contact by ID and return its Bitrix24 detail URL.
| Parameter | Type | Description |
|---|---|---|
entity * | string | |
id * | string |