bitrix-mcp
Provides Telegram forwarding for Bitrix24 portal events, alongside an event history archive.
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., "@bitrix-mcp Show my open CRM deals and create follow-up tasks for them"
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.
bitrix-mcp
English · Русский
Universal, full-featured, portable MCP server for the Bitrix24 REST API. Read and write. Not tied to any one application — it's a generic Bitrix24 gateway that any MCP client or agent can mount (Claude Code, Claude Desktop, Cursor, Windsurf, Cline, or your own Python/Node agent).
Language: Python + the official MCP SDK (
mcp.server.mcpserver, 2.x)Transports:
stdio(default, most portable/reliable) and Streamable HTTP (stateless JSON — no fragile long-lived SSE bridge)Coverage: universal
b24_call/b24_batchreach 100% of the REST API; a catalogue built from the official docs (1930 methods) tells the agent which method it needs and what parameters it takes; 99 typed tools cover the high-traffic domains with the tricky bits handled.Portal events: three ways to receive them — pull channel (works behind NAT and VPN), outgoing-webhook receiver, poller — plus a history archive and Telegram forwarding: docs/EVENTS.md
Why this exists / what it fixes
Rebuilt from field notes on a previous wrapper. The bugs that motivated it are fixed by design, not patched around:
Old behavior | Fix here |
| Params sent as JSON POST body, so nested |
Access errors swallowed into a fake "0 results" ( | Errors are never swallowed — a Bitrix |
|
|
Scrum kanban read from the wrong place | Correct flow baked in: active-sprint filter + |
Fragile | Prefer stdio (no bridge) or stateless Streamable HTTP. |
|
|
Bitrix sometimes reports a failure as | Checked by key presence, not truthiness — |
|
|
Moving a task on a Scrum sprint board has no single API call, and every obvious candidate fails while reporting success: |
|
Related MCP server: BitrixMCP
Install
If nothing is installed on the machine, take the portable archive
(dist/bitrix-mcp-portable.zip, built by python scripts/build_portable.py).
It carries its own Python and every library — no uv, no pip, no PyPI access.
Unzip it, drop a .env with your webhook next to it, and run the bundled
launcher: it asks which agent you use (Claude Code, Claude Desktop, Cursor) and
writes the server into that agent's config. Without the launcher:
runtime\python.exe install_mcp.py --agent cursor.
Do not run the portable folder through uv run --directory: it ships no
src/ — the package is already installed under runtime — so uv would build an
empty wheel. Its runtime is runtime\python.exe -m bitrix_mcp.
From source:
uv sync # create venv + install
# or, as a tool on PATH:
uv tool install . # exposes the `bitrix-mcp` commandConfigure
Set the default webhook (see .env.example):
export BITRIX_WEBHOOK_URL="https://your-portal.bitrix24.ru/rest/1/xxxxxxxx/"
# optional:
export BITRIX_READ_ONLY=1 # block all writesThe webhook comes from Bitrix: Profile → Webhooks → inbound webhook, format
https://<portal>/rest/<user_id>/<token>/. The token is a credential — keep it
out of source control (.env is gitignored).
Auth precedence per call: personal_webhook → webhook_url →
X-B24-Webhook HTTP header → BITRIX_WEBHOOK_URL. Pass personal_webhook to
act (and write) as a specific user.
Run
bitrix-mcp # stdio (default)
bitrix-mcp --http # Streamable HTTP on 127.0.0.1:8000/mcp
bitrix-mcp --http --host 0.0.0.0 --port 5015 # shared network serviceConnect a client
Claude Code (stdio, recommended):
claude mcp add -s user bitrix24 -- uv run --directory C:/Scripts/BitrixMCP bitrix-mcpRepo-shared .mcp.json (stdio):
{
"mcpServers": {
"bitrix24": {
"command": "uv",
"args": ["run", "--directory", "C:/Scripts/BitrixMCP", "bitrix-mcp"],
"env": { "BITRIX_WEBHOOK_URL": "https://your-portal.bitrix24.ru/rest/1/xxxx/" }
}
}
}Claude Code (HTTP):
bitrix-mcp --http --port 5015 # then, on the client:
claude mcp add -s user --transport http bitrix24 http://HOST:5015/mcpClaude Desktop (stdio) — %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"bitrix24": {
"command": "uv",
"args": ["run", "--directory", "C:/Scripts/BitrixMCP", "bitrix-mcp"],
"env": { "BITRIX_WEBHOOK_URL": "https://your-portal.bitrix24.ru/rest/1/xxxx/" }
}
}
}(For a remote HTTP instance, Desktop still needs the mcp-remote bridge; stdio
above avoids it entirely.)
Tool catalog (99)
Universal — b24_call, b24_batch, b24_test_connection, b24_list_methods
CRM — b24_crm_list, b24_crm_get, b24_crm_fields, b24_crm_add, b24_crm_update, b24_crm_delete, b24_crm_timeline_comment_add, b24_crm_timeline_comment_list, b24_crm_category_list (pipelines), b24_crm_status_list (stages/dictionaries), b24_crm_activity_list, b24_crm_activity_add, b24_crm_activity_delete, b24_crm_productrows_get, b24_crm_productrows_set, b24_crm_currency_list, b24_crm_requisite_list, b24_crm_deal_contacts_get, b24_crm_deal_contacts_set (classic entities and SPA via entity_type_id)
Tasks — b24_tasks_list, b24_task_get, b24_task_add, b24_task_update, b24_task_complete, b24_task_delete, b24_task_comments_list, b24_task_comment_add, b24_task_stages_get, b24_task_checklist_list, b24_task_checklist_add, b24_task_elapsed_add, b24_task_result_list
Scrum — b24_scrum_sprint_list, b24_scrum_kanban_stages, b24_scrum_board, b24_scrum_task_move
Calendar — b24_calendar_event_list, b24_calendar_section_list, b24_calendar_event_add, b24_calendar_event_update, b24_calendar_event_delete
Disk — b24_disk_storage_list, b24_disk_folder_items, b24_disk_file_get, b24_disk_file_content (server-side download → base64), b24_disk_folder_add, b24_disk_file_upload, b24_disk_file_delete
Users/structure — b24_user_get, b24_user_search, b24_user_current, b24_department_get
Groups (workgroups) — b24_group_list, b24_group_users, b24_group_create, b24_group_update, b24_group_delete
Messaging — b24_im_recent, b24_im_dialog_messages, b24_im_message_add, b24_im_notify_personal, b24_im_user_get, b24_im_chat_create, b24_im_chat_user_add, b24_feed_post_add
Lists (universal lists) — b24_lists_get, b24_lists_element_list, b24_lists_element_add, b24_lists_element_update, b24_lists_element_delete
Catalog / products — b24_catalog_list, b24_catalog_section_list, b24_catalog_product_list, b24_catalog_product_get, b24_catalog_product_add, b24_catalog_product_update, b24_crm_product_list
Sale (orders) — b24_sale_order_list, b24_sale_order_get
Documents — b24_documentgenerator_templates, b24_documentgenerator_add
Bizproc — b24_bizproc_template_list, b24_bizproc_start
Telephony — b24_telephony_statistics
Anything still not typed here is reachable through b24_call (e.g. mail,
open-lines, sale basket writes, admin/app-placement methods).
Retrospective-app integration
This server has no knowledge of any downstream app. An agent connects to both
this server and your app's MCP, reads Bitrix here, and relays into the app's
contract. Field names from b24_tasks_list / b24_calendar_event_list map
directly onto PushSprintTask / PushCalendarEvent, so the mapping is trivial —
but that translation lives in the agent, not here.
Documentation
docs/USAGE.md — how to drive the tools: auth, filters, pagination, batch, errors, recipes.
ARCHITECTURE.md — components, call flow, deployment; diagrams in docs/diagrams/.
ROADMAP.md — status, history, and out-of-scope boundaries.
Development
uv sync # install runtime + dev deps
uv run pytest -q # offline unit tests (no portal needed)
uv run python scripts/smoke.py "<webhook>" # live read-only access map (run from a network with portal access)Verification scripts
Each one exits non-zero when a check fails, so they can be chained in CI. Those marked offline need no portal; the rest need a reachable webhook.
Script | What it proves | Needs |
| The server boots on both transports and registers every tool | offline |
| The sanitizer strips webhooks/tokens from output and from httpx logs | offline |
| No secret is present in tracked files or anywhere in git history | offline |
| poll → ack → history → stats against a seeded store | offline |
| Requirement R-1: catalogue + scope diagnosis reach the whole API | portal |
|
| portal |
| Push & Pull channel subscribes and receives | portal |
| Outgoing-webhook receiver end to end, including TLS | portal |
| Filter DSL routes the right events | offline |
| The bot and chat really accept a message | Telegram |
| Live read-only access map across every domain | portal |
| Regenerates | docs checkout |
Probes (diagnostics, no pass/fail verdict): pull_probe.py, probe_listener.py,
tg_conn_probe.py.
Diagrams are regenerated with java -jar plantuml.jar -tpng docs/diagrams/*.puml.
Notes on limits
fetch_all=trueis capped byBITRIX_MAX_PAGES(default 40 pages ≈ 2000 records) and reportstruncated: truewhen it hits the cap — it never silently stops short.The read-only guard classifies writes by method verb; typed write tools are always classified correctly.
b24_call/b24_batchuse the heuristic.
Licence
MIT — see LICENSE.
Security
Found a vulnerability? Please report it privately, not in a public issue — see SECURITY.md. The webhook URL this server uses is a bearer credential for the whole portal.
Support author
BTC: bc1q3frrup5neh7nhfg944etu2agd4j9u0vg3jyee6
ETH(Arbitrum): 0x43B349d8Cea83215D707EBa3bc35e9917f746b0a
TRX: THSzvy49KNeqRjXsGkurh2A5G4avV4RgN4
XRP: rLWZjS3DMupC4ZdXCX3BVYn4dEtC3iNhgy
SOL: 3xwfybxJ6Tz5t6pjBBkL5yYQCZo6wfbv932UNA4ThdP8
ADA: addr1q926ys75jp5wn2pv32a3t8r8pdhr7w02v0t9j4a8pmg0ruww5rlkctu4lnz2hfcwa5qfn3zhsd0s23r22uqwzx9gu6cq5c4e76
TON: UQC4qlAOD9Nly4K_66GJ_yCsSM3x2sB0vZ2GrBQbc--gZUui
DOGE: DTjNYmbtymzcjUiV4MsZY8MP4dM7MJ6qLC
XMR: 44qRqM6YtnxXUhkgCFqDDrKMPjWriu69FLBoop8Kwp7e1VQsBUJoVQ8JYQjfMV5C6uidTUgSSyoJ65mq8aYG2esZ1rrqfwt
Available Tools
99 toolsb24_batchA
Run up to 50 REST calls in a single request (chained, with back-references).
Reduces API-limit pressure: 50 sub-calls count as one hit. Commands run in
order; a later command can consume an earlier one's output using Bitrix's
$result[key][field] reference syntax placed literally inside its params.
Args: commands: e.g. [{"key":"make","method":"crm.deal.add","params":{"fields":{"TITLE":"X"}}}, {"key":"note","method":"crm.timeline.comment.add", "params":{"fields":{"ENTITY_ID":"$result[make]","ENTITY_TYPE":"deal","COMMENT":"hi"}}}] halt: stop on first error if true.
Returns: JSON string: {"result": {key: }, "result_error": {key: err}, "result_next": {...}, "result_total": {...}}.
Write safety: with BITRIX_READ_ONLY=1 the whole batch is refused if any command is a write method.
Inputs: commands (required), halt, webhook_url, personal_webhook. Returns: result
b24_bizproc_startA
Launch a business process on a document (bizproc.workflow.start).
Potentially impactful — a workflow can move stages, send mail, create tasks. Returns the running workflow id.
Inputs: document_id (required), template_id (required), parameters, webhook_url, +1 more. Returns: result
b24_bizproc_template_listARead-onlyIdempotent
List workflow templates (bizproc.workflow.template.list).
Returns templates (ID, NAME, DOCUMENT_TYPE, AUTO_EXECUTE). Use a template ID plus a concrete document id with b24_bizproc_start.
Inputs: webhook_url, document_type, personal_webhook. Returns: result
b24_calendar_event_addB
Create a calendar event (calendar.event.add). Returns the new event id.
Inputs: name (required), date_to (required), date_from (required), extra, +5 more. Returns: result
b24_calendar_event_deleteADestructive
Delete a calendar event (calendar.event.delete). Irreversible.
Inputs: id (required), owner_id, owner_type, webhook_url, +1 more. Returns: result
b24_calendar_event_listARead-onlyIdempotent
List calendar events in a date range (calendar.event.get).
owner_id defaults to the acting user.
Bitrix returns every field of every event in the range and offers no
server-side projection or paging here, so this trims client-side: by
default each event keeps a compact set of fields and at most limit
events come back. total always reports how many matched, and
truncated says whether you are seeing all of them — narrow the date
range or raise limit rather than assuming the tail is empty. Ask for
select=['*'] only when you genuinely need the full ~60 fields; a busy
month measured ~1 MB that way.
Returns: JSON: {"events": [...], "count": , "total": , "truncated": , "ownerId": , "type": "user"|"group", "fields": "default"|"all"|}.
Inputs: date_to (required), date_from (required), limit, select, +4 more. Returns: result
b24_calendar_event_updateC
Update a calendar event (calendar.event.update).
Inputs: id (required), fields (required), owner_id, owner_type, +2 more. Returns: result
b24_calendar_section_listBRead-onlyIdempotent
List calendars (sections) for an owner (calendar.section.get).
Inputs: owner_id, owner_type, webhook_url, personal_webhook. Returns: result
b24_callA
Call ANY Bitrix24 REST method directly — the universal escape hatch.
This is the most reliable tool and covers the entire API surface. Prefer it whenever a typed tool does not fit, or when a typed tool behaves oddly.
Parameters go as a JSON POST body, so nested arrays (filter, fields, select, order) are passed exactly as you write them — no manual encoding needed.
Args: method: REST method name (no leading slash), e.g. 'crm.deal.get'. params: JSON object of parameters, e.g. {"id": 42} or {"filter": {">=DATE_CREATE": "2026-01-01"}, "select": ["ID","TITLE"]}. webhook_url / personal_webhook: auth overrides (see server instructions).
Returns: JSON string with the full response envelope, e.g. {"result": , "total": <int?>, "next": <int?>, "time": {...}}. On failure: {"error": true, "code": "<BITRIX_CODE>", "message": "..."}.
Write safety: if BITRIX_READ_ONLY=1, methods that mutate data (add/update/ delete/...) are refused with code B24_READONLY.
Inputs: method (required), params, webhook_url, personal_webhook. Returns: result
b24_catalog_listARead-onlyIdempotent
List catalogs (catalog.catalog.list): the commercial catalogs / iblocks.
Inputs: start, filter, fetch_all, webhook_url, +1 more. Returns: result
b24_catalog_product_addB
Create a catalog product (catalog.product.add). Returns {"product": {...}}.
Inputs: fields (required), webhook_url, personal_webhook. Returns: result
b24_catalog_product_getARead-onlyIdempotent
Fetch one catalog product (catalog.product.get). Returns {"product": {...}}.
Inputs: id (required), webhook_url, personal_webhook. Returns: result
b24_catalog_product_listARead-onlyIdempotent
List catalog products (catalog.product.list) with pagination.
Common filter keys: iblockId (catalog id), id, name. Returns a pagination envelope of product objects.
Inputs: order, start, filter, select, +3 more. Returns: result
b24_catalog_product_updateC
Update a catalog product (catalog.product.update).
Inputs: id (required), fields (required), webhook_url, personal_webhook. Returns: result
b24_catalog_section_listBRead-onlyIdempotent
List catalog sections/categories (catalog.section.list).
Common filter keys: iblockId, id, name, sectionId (parent).
Inputs: order, start, filter, fetch_all, +2 more. Returns: result
b24_changes_sinceARead-onlyIdempotent
List what changed since last time - the event path that works anywhere.
Uses only outbound requests, so it needs no public URL, no firewall rule and no push server: this is the fallback when neither the outgoing-webhook receiver nor the Push&Pull channel is available.
A cursor per feed is kept locally, so calling this repeatedly with no arguments walks forward through changes. The first call without 'since' starts from 24 hours ago rather than the beginning of time.
Limits worth knowing: this reports the state at poll time, not every intermediate change, and it cannot see deletions - a deleted record simply stops appearing. For per-change fidelity use the pull channel or the outgoing webhook.
Returns:
JSON: {"feed", "method", "since", "count", "items": [...],
"cursor": {"previous","current","advanced"}, "has_more": ,
"verified": }. verified false means this feed's response shape
follows the documentation but has not been confirmed against real data.
Inputs: feed, limit, since, archive, +4 more. Returns: result
b24_crm_activity_addA
Create a CRM activity (crm.activity.add). Returns the new activity id.
Activities are complex; call b24_call('crm.activity.fields') first to see the required shape (especially COMMUNICATIONS for calls/emails).
Inputs: fields (required), webhook_url, personal_webhook. Returns: result
b24_crm_activity_deleteCDestructive
Delete a CRM activity (crm.activity.delete). Irreversible.
Inputs: id (required), webhook_url, personal_webhook. Returns: result
b24_crm_activity_listARead-onlyIdempotent
List CRM activities — calls, meetings, emails, tasks (crm.activity.list).
Common filter keys: OWNER_TYPE_ID (1 lead,2 deal,3 contact,4 company), OWNER_ID, TYPE_ID (1 meeting,2 call,3 task,4 email), COMPLETED ('Y'/'N'), RESPONSIBLE_ID, '>=CREATED'. Returns a pagination envelope.
Inputs: order, start, filter, select, +3 more. Returns: result
b24_crm_addA
Create a CRM record. Returns the new id (classic) or {"item": {...}} (modern).
Writing requires a webhook with the acting user's permissions — pass personal_webhook to create under a specific user.
Inputs: fields (required), entity, webhook_url, entity_type_id, +1 more. Returns: result
b24_crm_category_listARead-onlyIdempotent
List pipelines/categories of a CRM entity type (crm.category.list).
Returns categories (id, name, sort). A category is a pipeline; its stages come from b24_crm_status_list or crm.status.list with the right ENTITY_ID.
Inputs: entity_type_id (required), webhook_url, personal_webhook. Returns: result
b24_crm_currency_listBRead-onlyIdempotent
List portal currencies (crm.currency.list): CURRENCY, base flag, format, rate.
Inputs: webhook_url, personal_webhook. Returns: result
b24_crm_deal_contacts_getBRead-onlyIdempotent
List contacts linked to a deal (crm.deal.contact.items.get).
Inputs: deal_id (required), webhook_url, personal_webhook. Returns: result
b24_crm_deal_contacts_setB
Set the contacts linked to a deal (crm.deal.contact.items.set).
Inputs: deal_id (required), contact_ids (required), webhook_url, personal_webhook. Returns: result
b24_crm_deleteADestructive
Delete a CRM record. Irreversible — deletes on the portal.
Inputs: id (required), entity, webhook_url, entity_type_id, +1 more. Returns: result
b24_crm_fieldsARead-onlyIdempotent
Describe an entity's fields, including user fields (UF_*).
Essential before add/update so you use correct field codes and enum ids.
Inputs: entity, webhook_url, entity_type_id, personal_webhook. Returns: result
b24_crm_getARead-onlyIdempotent
Fetch a single CRM record by id (all fields).
Returns the record payload (classic entities return the fields object; the modern crm.item API returns {"item": {...}}).
Inputs: id (required), entity, webhook_url, entity_type_id, +1 more. Returns: result
b24_crm_listARead-onlyIdempotent
List CRM records with filtering, sorting, and pagination.
Args: entity: classic entity name (default 'deal'). entity_type_id: set to use crm.item.list for SPA/modern objects. filter/select/order/start/fetch_all: standard list controls.
Returns: JSON pagination envelope {items, count, total, next, has_more, truncated}.
Inputs: order, start, entity, filter, +5 more. Returns: result
b24_crm_product_listARead-onlyIdempotent
List classic CRM catalog products (crm.product.list) with pagination.
Common filter keys: NAME, SECTION_ID, ACTIVE ('Y'/'N'), CATALOG_ID.
Inputs: order, start, filter, select, +3 more. Returns: result
b24_crm_productrows_getBRead-onlyIdempotent
List the product rows of a deal/lead/quote (crm.item.productrow.list).
Inputs: owner_id (required), owner_type (required), webhook_url, personal_webhook. Returns: result
b24_crm_productrows_setB
Replace the product rows of a deal/lead/quote (crm.item.productrow.set).
Inputs: rows (required), owner_id (required), owner_type (required), webhook_url, +1 more. Returns: result
b24_crm_requisite_listARead-onlyIdempotent
List requisites — legal/bank details of contacts & companies (crm.requisite.list).
Common filter keys: ENTITY_TYPE_ID (3 contact, 4 company), ENTITY_ID, PRESET_ID.
Inputs: start, filter, select, fetch_all, +2 more. Returns: result
b24_crm_status_listARead-onlyIdempotent
List CRM status dictionary entries — stages, sources, types (crm.status.list).
Returns a pagination envelope of status entries (STATUS_ID, NAME, ENTITY_ID, SORT). This is how you resolve a stage code like 'C7:NEW' to a human name.
Inputs: entity_id, webhook_url, personal_webhook. Returns: result
b24_crm_timeline_comment_addB
Post a comment to a CRM record's timeline. Returns the new comment id.
Inputs: comment (required), entity_id (required), entity_type (required), webhook_url, +1 more. Returns: result
b24_crm_timeline_comment_listARead-onlyIdempotent
List timeline comments of a CRM record (crm.timeline.comment.list).
Inputs: entity_id (required), entity_type (required), start, fetch_all, +2 more. Returns: result
b24_crm_updateB
Update fields of an existing CRM record. Returns success/the updated item.
Inputs: id (required), fields (required), entity, webhook_url, +2 more. Returns: result
b24_department_getARead-onlyIdempotent
List/describe company departments (department.get).
Bitrix's department.get has no server-side filter — it silently
ignores a filter param and returns the entire department list
regardless of what's in it (confirmed against a live portal). An ID
key (int or list) is sent the way Bitrix actually supports it (a
top-level ID); any other key (NAME, %NAME substring, PARENT, UF_HEAD,
...) is matched client-side after fetching the full tree, so filtering
here genuinely works instead of quietly dumping everything.
Inputs: id, start, filter, fetch_all, +2 more. Returns: result
b24_disk_file_contentARead-onlyIdempotent
Download a Disk file's content and return it as base64.
Resolves DOWNLOAD_URL via disk.file.get, then fetches the bytes server-side (so the portal WAF sees the request, not your client). Guarded by max_size_mb.
Returns: {"id","name","size","content_type","base64"} or an error envelope.
Inputs: file_id (required), max_size_mb, webhook_url, personal_webhook. Returns: result
b24_disk_file_deleteADestructive
Delete a Disk file (disk.file.delete). Moves to trash on the portal.
Inputs: file_id (required), webhook_url, personal_webhook. Returns: result
b24_disk_file_getARead-onlyIdempotent
Get file metadata incl. DOWNLOAD_URL (disk.file.get).
Note: files attached to task/chat messages may require the acting user to be a participant — pass that user's personal_webhook if you get ACCESS_DENIED.
Inputs: file_id (required), webhook_url, personal_webhook. Returns: result
b24_disk_file_uploadA
Upload a file into a Disk folder (disk.folder.uploadfile).
Returns the created file object. Content must be base64; the fileContent parameter is sent as [name, base64] with a unique name generated on collision.
Inputs: name (required), folder_id (required), content_base64 (required), webhook_url, +1 more. Returns: result
b24_disk_folder_addA
Create a subfolder (disk.folder.addsubfolder). Returns the new folder object.
Inputs: name (required), parent_folder_id (required), webhook_url, personal_webhook. Returns: result
b24_disk_folder_itemsARead-onlyIdempotent
List the contents of a Disk folder (disk.folder.getchildren).
Returns a pagination envelope of files and subfolders (ID, NAME, TYPE, DOWNLOAD_URL for files, ...).
Inputs: folder_id (required), start, filter, fetch_all, +2 more. Returns: result
b24_disk_storage_listARead-onlyIdempotent
List available Disk storages (disk.storage.getlist): personal, group, company.
Returns a pagination envelope of storage objects (ID, NAME, ENTITY_TYPE, ...). Use a storage's root folder id with b24_disk_folder_items to browse it.
Inputs: start, fetch_all, webhook_url, personal_webhook. Returns: result
b24_documentgenerator_addA
Generate a document from a template and CRM record (crm.documentgenerator.document.add).
Returns the created document (id, downloadUrl, pdfUrl, ...).
Inputs: entity_id (required), template_id (required), entity_type_id (required), values, +2 more. Returns: result
b24_documentgenerator_templatesARead-onlyIdempotent
List document templates (crm.documentgenerator.template.list).
Filter examples: {'active':'Y'}, {'entityTypeId':2} (deals). Returns a pagination envelope of templates (id, name, ...).
Inputs: start, filter, fetch_all, webhook_url, +1 more. Returns: result
b24_events_ackA
Mark events as processed so the next poll does not return them again.
Acking never deletes anything: acknowledged events stay readable through b24_events_history. Re-acking an id is a no-op, so retrying is safe.
Returns: JSON: {"acked": , "requested": }.
Inputs: ids (required). Returns: result
b24_events_historyARead-onlyIdempotent
Search the archive of captured events - "what happened to X, and when".
Answers questions the REST API cannot: Bitrix exposes no change history for most entities, and for Scrum boards it does not expose the task-to-column mapping at all. Whatever this server observed is kept here with its full payload, including before/after values when the portal sent them.
Ignores ack state: processed events remain part of the history.
Args: entity/entity_id: narrow to one object, e.g. entity='task', entity_id='477818'. since/until: time window; '7d' means the last seven days.
Returns: JSON: {"events": [...], "count": , "window": {"since","until"}}. An empty list means nothing was captured - which is not proof that nothing happened, only that this server was not listening at the time.
Inputs: event, limit, since, until, +3 more. Returns: result
b24_events_pollARead-onlyIdempotent
Read new portal events captured by this server (unprocessed first).
Events arrive either from the portal's outgoing webhook (documented event names like ONTASKUPDATE) or from the Push&Pull channel (names shaped 'module/command', e.g. 'tasks/task_update'). Both land in the same store.
Typical loop: poll -> act -> b24_events_ack with the ids you handled.
Returns: JSON: {"events": [{"id","event","source","entity","entity_id","ts", "received_at","received_iso","acked","payload"}], "count": , "last_id": <int|null>}. Empty list means nothing new.
Inputs: event, limit, after_id, include_acked. Returns: result
b24_events_statsARead-onlyIdempotent
Report what the event feed has captured and whether it is configured.
Use this first when events are not arriving: it distinguishes "nothing happened" from "nothing is listening".
Returns:
JSON: {"store": {"path","exists","size_bytes"}, "counts": {...},
"receiver": {"configured","path"}, "cursors": {...}}.
receiver.configured false means the outgoing-webhook endpoint refuses
every delivery until BITRIX_EVENT_TOKEN is set.
Inputs: no named parameters. Returns: result
b24_feed_post_addA
Publish a post to the Live Feed (log.blogpost.add).
PUBLIC / broadly visible depending on dest. Use with care. Returns the
new post id.
Inputs: message (required), dest, title, webhook_url, +1 more. Returns: result
b24_group_createB
Create a workgroup/project (sonet_group.create). Returns the new group id.
Inputs: fields (required), webhook_url, personal_webhook. Returns: result
b24_group_deleteADestructive
Delete a workgroup (sonet_group.delete). Irreversible.
Inputs: group_id (required), webhook_url, personal_webhook. Returns: result
b24_group_listARead-onlyIdempotent
List workgroups/projects (sonet_group.get) with a working filter.
Filter keys include NAME, '%NAME' (substring), ACTIVE ('Y'/'N'), CLOSED, OWNER_ID, SUBJECT_ID. Returns a pagination envelope of group objects (ID, NAME, DESCRIPTION, SCRUM_MASTER_ID, ...).
Inputs: order, start, filter, select, +3 more. Returns: result
b24_group_updateB
Update a workgroup (sonet_group.update).
Inputs: fields (required), group_id (required), webhook_url, personal_webhook. Returns: result
b24_group_usersARead-onlyIdempotent
List members of a workgroup (sonet_group.user.get).
Returns members with USER_ID and ROLE ('A' owner/moderator, 'E' member, ...).
Inputs: group_id (required), webhook_url, personal_webhook. Returns: result
b24_im_chat_createB
Create a group chat (im.chat.add). Returns the new chat id (use 'chat' as DIALOG_ID).
Inputs: title (required), users (required), description, webhook_url, +1 more. Returns: result
b24_im_chat_user_addC
Add users to a group chat (im.chat.user.add).
Inputs: users (required), chat_id (required), webhook_url, personal_webhook. Returns: result
b24_im_dialog_messagesARead-onlyIdempotent
Read message history of a chat/dialog (im.dialog.messages.get).
Returns messages plus the referenced users/files. Page back with last_id.
Inputs: dialog_id (required), limit, last_id, webhook_url, +1 more. Returns: result
b24_im_message_addA
Send an IM message to a chat or user (im.message.add).
Visible to chat participants / the recipient. Returns the new message id.
Inputs: message (required), dialog_id (required), webhook_url, personal_webhook. Returns: result
b24_im_notify_personalA
Send a personal notification to a user (im.notify.personal.add).
Appears in the recipient's notification center. Returns the notification id.
Inputs: message (required), user_id (required), webhook_url, personal_webhook. Returns: result
b24_im_recentARead-onlyIdempotent
List the acting user's recent chats/dialogs (im.recent.get).
Returns recent conversations with their DIALOG_ID, last message, and unread counters. Use a DIALOG_ID with b24_im_dialog_messages to read history.
Inputs: skip_chat, webhook_url, personal_webhook. Returns: result
b24_im_user_getBRead-onlyIdempotent
Get a user's IM profile (im.user.get): name, avatar, work status, online.
Inputs: user_id, webhook_url, personal_webhook. Returns: result
b24_list_methodsARead-onlyIdempotent
Discover which REST methods/scopes this webhook can access.
Calls scope (granted scopes) and, when full=true, methods (all
method names). Handy for figuring out what the portal exposes before writing
a b24_call.
Returns: JSON: {"scopes": [...], "methods": [...optional...]}.
Inputs: full, webhook_url, personal_webhook. Returns: result
b24_lists_element_addB
Create a list element (lists.element.add). Returns the new element id.
Inputs: fields (required), iblock_id (required), iblock_type_id (required), webhook_url, +1 more. Returns: result
b24_lists_element_deleteBDestructive
Delete a list element (lists.element.delete). Irreversible.
Inputs: iblock_id (required), element_id (required), iblock_type_id (required), webhook_url, +1 more. Returns: result
b24_lists_element_listARead-onlyIdempotent
List elements (records) of a list (lists.element.get) with pagination.
Field codes are usually PROPERTY_ for custom properties plus NAME, ID, CREATED_BY, etc. Use b24_call('lists.field.get', ...) to inspect field codes.
Inputs: iblock_id (required), iblock_type_id (required), order, start, +5 more. Returns: result
b24_lists_element_updateC
Update a list element (lists.element.update).
Inputs: fields (required), iblock_id (required), element_id (required), iblock_type_id (required), +2 more. Returns: result
b24_lists_getARead-onlyIdempotent
List the available Lists of a given type (lists.get).
Returns the list definitions (IBLOCK_ID, NAME, ...). Use an IBLOCK_ID with b24_lists_element_list to read its records.
Inputs: iblock_type_id (required), iblock_code, webhook_url, personal_webhook. Returns: result
b24_method_schemaARead-onlyIdempotent
Get a method's exact parameters from the official documentation.
Call this instead of guessing a signature. Reports each parameter's name, type, whether it is required, and its description, plus the scope needed and whether the method is deprecated.
Returns: JSON: {"found": true, "method", "scope", "deprecated", "doc", "params": [{"name","type","required","desc"}]}. If unknown: {"found": false, "did_you_mean": [...]} - the method may still be callable, since the catalog covers documented methods only.
Inputs: method (required). Returns: result
b24_method_searchARead-onlyIdempotent
Find the right REST method for a task, across the whole documented API.
Use this before b24_call whenever you are unsure a method exists or what it
is named. Covers every documented method, including the many that the
portal's own methods listing omits.
Returns: JSON: {"results": [{"method","scope","deprecated","required_params", "all_params","doc"}], "count", "catalog": {...}}. Follow up with b24_method_schema for full parameter details.
Inputs: query (required), limit, scope, include_deprecated. Returns: result
b24_sale_order_getARead-onlyIdempotent
Fetch a single store order (sale.order.get). Returns {"order": {...}}.
Inputs: id (required), webhook_url, personal_webhook. Returns: result
b24_sale_order_listARead-onlyIdempotent
List store orders (sale.order.list) with pagination.
Common filter keys: id, statusId, '>=dateInsert', userId, '>=price'. Returns a pagination envelope of order objects.
Inputs: order, start, filter, select, +3 more. Returns: result
b24_scope_gapsARead-onlyIdempotent
Diagnose what this webhook cannot reach, and why.
Reads the scopes actually granted and compares them against the full documented API. Use this when a call fails with ERROR_METHOD_NOT_FOUND or ACCESS_DENIED: on a live portal those two are easy to confuse with "the module is not installed", and they usually mean the scope was simply not ticked when the webhook was created.
Returns: JSON: {"granted_scopes": [...], "reachable_methods": , "blocked_methods": , "missing_scopes": {scope: method_count}, "hint": "..."}.
Inputs: webhook_url, personal_webhook. Returns: result
b24_scrum_boardARead-onlyIdempotent
One-shot board snapshot: the active sprint plus its kanban columns.
Convenience that runs the correct two-step flow for you and returns {"sprint": {...active sprint...}, "stages": [...columns...]}. Returns a clear message if the group has no active sprint.
Inputs: group_id (required), webhook_url, personal_webhook. Returns: result
b24_scrum_kanban_stagesARead-onlyIdempotent
Get the real kanban columns of a sprint (tasks.api.scrum.kanban.getStages).
Returns the column definitions (id, name, ...). Feed a column id as STAGE_ID into b24_tasks_list (with the same GROUP_ID) to list tasks in that column.
Inputs: sprint_id (required), webhook_url, personal_webhook. Returns: result
b24_scrum_sprint_listARead-onlyIdempotent
List sprints of a Scrum group (tasks.api.scrum.sprint.list).
Returns a pagination envelope of sprint objects (id, name, dateStart, dateEnd, status, ...). Use the active sprint's id with b24_scrum_kanban_stages to get the real board columns.
Inputs: group_id (required), start, status, fetch_all, +2 more. Returns: result
b24_scrum_task_moveA
Move a task to a column on a Scrum sprint board.
Bitrix has no single "move" call, and the obvious candidates each fail in a way that looks like success — all of the following was established by watching a real board, not by reading API responses:
tasks.api.scrum.kanban.addTaskonly places a card that is not currently on the board. For a card already sitting in a column it returnstrueand does nothing at all — no field change, no history entry, no movement.tasks.task.updatewithSTAGE_IDdoes change the field and does write a history entry that everyone can see, but the card does not move. That is the worst outcome: colleagues see "stage changed" in the log while the board still shows the old column.task.stages.movetaskanswersfalse— it governs the plain group kanban, not sprint boards.
What works is taking the card off the board and putting it back in the
target column: kanban.deleteTask then kanban.addTask. This tool does
that, in that order.
deleteTask does not delete the task and does not produce a second
card. It removes only the column placement; the task, its sprint membership
and everything on it survive, so addTask puts the same card back.
Measured before and after a move: identical id, GUID, creation date, story
points, checklist, logged time and tags — the only difference was one added
history row. Moving the same card repeatedly is safe.
Do not verify the result with b24_task_get: STAGE_ID is unreliable
for sprint boards — it read 0 while the card was visibly sitting in the
target column. The board is the source of truth; the pull channel's
tasks / task_update event carries AFTER.STAGE_INFO and is the only
reliable read.
Returns: JSON: {"moved": true, "task_id", "sprint_id", "stage_id", "steps": {"removed_from_board": ..., "added_to_stage": ...}, "note": "..."}.
Inputs: task_id (required), stage_id (required), sprint_id (required), webhook_url, +1 more. Returns: result
b24_task_addA
Create a task (tasks.task.add). Returns {"task": {...}} with the new id.
Inputs: fields (required), webhook_url, personal_webhook. Returns: result
b24_task_checklist_addC
Add a checklist item to a task (task.checklistitem.add).
Inputs: id (required), title (required), is_complete, webhook_url, +1 more. Returns: result
b24_task_checklist_listBRead-onlyIdempotent
List a task's checklist items (task.checklistitem.getlist).
Inputs: id (required), webhook_url, personal_webhook. Returns: result
b24_task_comment_addA
Add a comment to a task (task.commentitem.add). Returns the new comment id.
Inputs: id (required), text (required), webhook_url, personal_webhook. Returns: result
b24_task_comments_listARead-onlyIdempotent
List a task's comments, from wherever this portal actually keeps them.
Bitrix stores task comments in one of two places and does not tell you
which: the legacy forum topic (task.commentitem.getlist) or the task's
chat. On a chat-based portal forumTopicId is null and the forum method
answers with an empty list even when comments exist — confirmed live: a
comment added through b24_task_comment_add returned a real id, was visible
in the chat, and the forum method still reported nothing. Reading only the
forum therefore produces a false "no comments", which reads exactly like a
write that failed.
So: read the forum first, and when it comes back empty fall back to the
task chat. source says which one answered, so an empty result is
trustworthy rather than ambiguous.
Returns: JSON: {"comments": [...], "count": , "source": "forum"|"chat"|"none", "task_id": }. Chat-sourced entries carry "is_system": true for Bitrix's own notices (task created, time logged), which have no author.
Inputs: id (required), limit, webhook_url, personal_webhook. Returns: result
b24_task_completeC
Mark a task complete (tasks.task.complete).
Inputs: id (required), webhook_url, personal_webhook. Returns: result
b24_task_deleteBDestructive
Delete a task (tasks.task.delete). Irreversible.
Inputs: id (required), webhook_url, personal_webhook. Returns: result
b24_task_elapsed_addB
Log time spent on a task (task.elapseditem.add). Returns the entry id.
Inputs: id (required), seconds (required), comment, webhook_url, +1 more. Returns: result
b24_task_getARead-onlyIdempotent
Fetch a single task by id (tasks.task.get). Returns {"task": {...}}.
Inputs: id (required), select, webhook_url, personal_webhook. Returns: result
b24_task_result_listBRead-onlyIdempotent
List a task's results (tasks.task.result.list) — the marked outcomes of the task.
Inputs: id (required), webhook_url, personal_webhook. Returns: result
b24_tasks_listARead-onlyIdempotent
List tasks with filtering, sorting, and pagination (tasks.task.list).
Common filter keys: RESPONSIBLE_ID, CREATED_BY, GROUP_ID (project/group), STATUS (1 new,2 pending,3 in progress,4 supposedly done,5 completed,6 deferred), STAGE_ID (kanban column), >=CREATED_DATE, etc. Common select: ['ID','TITLE','STATUS','RESPONSIBLE_ID','GROUP_ID','CREATED_BY', 'DEADLINE','STAGE_ID','COMMENTS_COUNT','TAGS'].
Caveat for Scrum sprint boards (confirmed live, not just theoretical): STAGE_ID here is reliable for a regular group kanban, but for a task on an active sprint it goes stale the moment the card is moved the correct way (b24_scrum_task_move / a real drag on the board) — Bitrix tracks that move in a separate structure with no public method to read it back. Filtering by STAGE_ID on a sprint board is approximate at best.
Returns: JSON pagination envelope {items, count, total, next, has_more, truncated}.
Inputs: order, start, filter, select, +3 more. Returns: result
b24_task_stages_getARead-onlyIdempotent
Get kanban stages of a regular (non-Scrum) project/group (task.stages.get).
For Scrum groups use b24_scrum_kanban_stages instead — their columns belong to the active sprint, not the group.
Inputs: group_id (required), is_admin, webhook_url, personal_webhook. Returns: result
b24_task_updateA
Update a task (tasks.task.update).
Also used to move kanban stage (STAGE_ID) — but only for a regular group's kanban (task.stages.get). For a task on an active Scrum sprint board, STAGE_ID here is accepted with no error and reads back correctly, but does NOT relocate the card on the real board (confirmed live: reload the page and it's still in the old column). Use b24_scrum_task_move instead when the task's sprintId is set.
Inputs: id (required), fields (required), webhook_url, personal_webhook. Returns: result
b24_telegram_configureA
Change what gets forwarded to Telegram, without editing files.
Use this to help someone set forwarding up: ask what they want to hear about, translate it into a filter (or pick a preset), set it, then call b24_telegram_test so they see it working.
The bot token is NOT settable here - a credential belongs in .env (BITRIX_TELEGRAM_TOKEN), not in a chat transcript.
Args: events: preset name or filter string. 'nothing' silences forwarding while keeping the rest of the configuration. chat_id: where to post. Find it by messaging the bot and reading getUpdates, or by adding the bot to a channel as administrator. reset: drop overrides so the .env values apply again.
Returns: JSON: the resulting configuration, plus "changed": [...] listing what this call actually modified.
Inputs: reset, events, chat_id, enabled. Returns: result
b24_telegram_statusARead-onlyIdempotent
Show how event forwarding to Telegram is currently configured.
Start here when nothing arrives in the chat: this separates "not configured" from "configured but filtered out" from "nothing happened".
Returns: JSON: {"enabled","token_configured","chat_id","filter","filter_parsed", "overrides", "backlog": , "presets": {...}}. An empty filter forwards nothing - that is the default, on purpose.
Inputs: no named parameters. Returns: result
b24_telegram_testA
Verify the bot and chat work, or preview what the filter would forward.
preview_only=true answers "would I get spammed?" without sending anything:
it replays recent captured events through the current filter and shows the
messages that would have been produced.
Returns: JSON on success: {"sent": true, "bot": {...}, "chat": {...}}. With preview_only: {"would_forward": , "of_recent": , "sample": ["..."]}. On failure the Telegram error is returned verbatim - 400 usually means a wrong chat_id, 403 means the bot was never added to that chat.
Inputs: message, preview_only. Returns: result
b24_telephony_statisticsARead-onlyIdempotent
List call statistics (voximplant.statistic.get) with pagination.
Common filter keys: '>=CALL_START_DATE', 'PORTAL_USER_ID', 'CALL_TYPE' (1 outbound, 2 inbound), 'CALL_FAILED_CODE', 'PHONE_NUMBER'. Returns a pagination envelope of call records (CALL_ID, duration, cost, recording URL...).
Inputs: start, filter, fetch_all, sort_field, +3 more. Returns: result
b24_test_connectionARead-onlyIdempotent
Verify the webhook works and report the acting user and portal.
Calls profile (identity + portal) and reports the resolved webhook. Use
this first when diagnosing auth/permission problems.
Returns: JSON: {"ok": true, "portal": "...", "user": {"ID","NAME","LAST_NAME","ADMIN"...}} or an error envelope with the Bitrix code.
Inputs: webhook_url, personal_webhook. Returns: result
b24_user_currentARead-onlyIdempotent
Return the acting user's profile (user.current): id, name, admin flag, etc.
Inputs: webhook_url, personal_webhook. Returns: result
b24_user_getARead-onlyIdempotent
Find users (user.get) with a real filter and pagination.
Filter keys include ID, ACTIVE ('Y'/'N'), NAME, LAST_NAME, EMAIL, UF_DEPARTMENT, WORK_POSITION, and '%'-prefixed substring variants (e.g. {'%LAST_NAME': 'Ivan'}). Always filter to keep the result bounded.
Returns: JSON pagination envelope {items, count, total, next, has_more, truncated}.
Inputs: id, order, start, filter, +3 more. Returns: result
b24_user_searchARead-onlyIdempotent
Free-text search for users (user.search).
Better than user.get when you only have a partial name. Returns a pagination envelope of user objects.
Inputs: query (required), start, fetch_all, only_active, +2 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 99 tools
The typed tools are mostly distinct by resource and action, and the descriptions clarify tricky overlaps such as regular vs Scrum stages and forum vs chat comments. However, the universal b24_call/b24_batch duplicate every operation, and a few pairs are conceptually close (crm_product_list vs catalog_product_list, events_poll vs changes_since), so selection is not entirely frictionless.
All tools carry the b24_ prefix and use snake_case; most follow a resource_action pattern such as b24_task_get, b24_crm_add, and b24_calendar_event_list. Deviations like b24_documentgenerator_templates, b24_scrum_board, b24_telephony_statistics, and b24_tasks_list vs b24_task_get keep it from perfect consistency.
99 tools far exceeds the well-scoped 3-15 range and is an extreme surface for a single MCP server. Since b24_call and b24_batch already expose the entire REST API, many typed wrappers are redundant and add significant selection cost.
Coverage is broad across CRM, tasks, calendar, Disk, IM, groups, catalog, events, and more, and b24_call/b24_batch provide an escape hatch for untyped or undocumented operations. Still, typed CRUD is uneven — several resources lack update/delete or member-management tools — but agents can work around those gaps.
Maintenance
Related MCP Connectors
MCP server that delivers up-to-date Bitrix24 REST API documentation.
MCP server enabling AI agents to manage Bitrix24 features via standardized protocol
Remote MCP for Kommo CRM: leads, contacts, tasks, notes, pipelines, chats, Salesbot. OAuth.
Remote MCP for amoCRM and Kommo: leads, contacts, tasks, pipelines, chats, Salesbot. OAuth.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceMCP server for interacting with Bitrix24 REST API, enabling CRUD operations on deals, contacts, companies, users, leads, and tasks, plus analytics and risk assessment.2-
- AlicenseBqualityCmaintenanceUniversal MCP server for the Bitrix24 REST API, enabling full read and write access to CRM, tasks, calendar, disk, and more. Supports any MCP client with stdio or Streamable HTTP transport.881MIT
- FlicenseNot gradedqualityBmaintenanceProduction-grade MCP server for Bitrix24 Cloud with 45 tools, safe by default. Connects Claude Desktop to your Bitrix24 tenant for AI-driven CRM, tasks, messaging, and calendar operations.-
- AlicenseBqualityCmaintenanceA complete MCP server over the Bitrix24 REST API, enabling CRM, tasks, chats, files, calendar, HR, smart processes, mail, telephony, business processes, and events through 30 tools and ~290 actions. Supports incoming webhook or OAuth 2.0 authentication and works over stdio or Streamable HTTP.4360 npm3MIT