Bitrix24 MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Bitrix24 MCP
A Model Context Protocol server for Bitrix24 task planning.
Bitrix24 MCP equips AI assistants with tools to search users and workgroups, search/list tasks, search and use regular chats, read and send messages in task chats, fetch task details (optionally with legacy comments), list deal fields and deals, fetch deal details and product rows, add/update/delete deals, create/update tasks and subtasks, list epics and create/update Scrum tasks (epic/story points/backlog or sprint), fetch and filter Scrum backlog tasks in one call, and manage Kanban/My Planner columns (get stages, move/reorder tasks).
Install using pip:
pip install bitrix24-lkp-mcpSet your webhook URL and configure your MCP client:
{
"mcpServers": {
"bitrix24": {
"command": "uvx",
"args": ["bitrix24-lkp-mcp"],
"env": {
"BITRIX_WEBHOOK_URL": "https://your-domain.bitrix24.com/rest/1/token/"
}
}
}
}Docker
For containerized usage, the image defaults to streamable-http transport and exposes
http://localhost:8000/mcp.
Build the image:
docker build -t bitrix24-lkp-mcp .Run the container (inject webhook at runtime, never bake secrets into images):
docker run --rm \
-p 8000:8000 \
-e BITRIX_WEBHOOK_URL="https://your-domain.bitrix24.com/rest/1/token/" \
bitrix24-lkp-mcpRun with Docker Compose:
export BITRIX_WEBHOOK_URL="https://your-domain.bitrix24.com/rest/1/token/"
docker compose up --buildFor local MCP desktop clients (Cursor/Claude/Codex), keep using stdio transport via uvx.
Related MCP server: bitrix24-mcp-server
Features
Bitrix24 MCP provides tools for AI-assisted task planning:
Search tasks by title with partial matching.
Search regular chats by remembered title or participant words, then read or send messages.
Read and send messages in the chat attached to a task.
Get full task details including description for AI analysis.
Create subtasks under parent tasks automatically.
Manage CRM deals (list/get/products/add/update/delete).
Built-in rate limiting (respects Bitrix24's 2 req/sec limit).
Secure authentication via Bitrix24 inbound webhooks.
Bitrix24 MCP requires Python 3.11+.
Configuration
1. Create Bitrix24 Webhook
Go to your Bitrix24 portal
Navigate to Developer resources → Other → Inbound webhook
Click Add inbound webhook
Set permissions:
task(existing task tools),tasks(REST 3.0 task-chat send), andim(chat search and messages)Copy the webhook URL
2. Set Environment Variable
export BITRIX_WEBHOOK_URL="https://your-domain.bitrix24.com/rest/1/your-token/"3. Configure MCP Client
Cursor - Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"bitrix24": {
"command": "uvx",
"args": ["bitrix24-lkp-mcp"],
"env": {
"BITRIX_WEBHOOK_URL": "https://your-domain.bitrix24.com/rest/1/token/"
}
}
}
}Claude Desktop - Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"bitrix24": {
"command": "uvx",
"args": ["bitrix24-lkp-mcp"],
"env": {
"BITRIX_WEBHOOK_URL": "https://your-domain.bitrix24.com/rest/1/token/"
}
}
}
}Claude Code - Add to ~/.claude.json:
{
"mcpServers": {
"bitrix24": {
"command": "uvx",
"args": ["bitrix24-lkp-mcp"],
"env": {
"BITRIX_WEBHOOK_URL": "https://your-domain.bitrix24.com/rest/1/token/"
}
}
}
}Codex CLI - Add to ~/.codex/config.toml:
[mcp_servers.bitrix24]
command = "uvx"
args = ["bitrix24-lkp-mcp"]
env = { "BITRIX_WEBHOOK_URL" = "https://your-domain.bitrix24.com/rest/1/token/" }4. Optional: Run with streamable-http transport
Default transport is stdio. To run an HTTP endpoint instead:
python -m bitrix_mcp --transport streamable-http --host 0.0.0.0 --port 8000 --path /mcpCodex CLI (streamable-http) - Add to ~/.codex/config.toml:
[mcp_servers.bitrix24]
url = "http://127.0.0.1:8000/mcp"
startup_timeout_sec = 20
tool_timeout_sec = 60You can also configure startup via environment variables:
export BITRIX_MCP_TRANSPORT="streamable-http"
export BITRIX_MCP_HOST="0.0.0.0"
export BITRIX_MCP_PORT="8000"
export BITRIX_MCP_PATH="/mcp"
# Optional streamable-http flags:
export BITRIX_MCP_JSON_RESPONSE="false"
export BITRIX_MCP_STATELESS_HTTP="false"Available Tools
task_search
Search for tasks by title. Use this to find a task when user provides task name.
Returns matching tasks with id, title, responsibleId, groupId, parentId, status, and url.
Parameter | Type | Required | Description |
| string | Yes | Task title to search for |
| int | No | Maximum results (default: 10) |
task_get
Get detailed information about a task by ID. Returns title, description, assignee, and group.
Also includes attachmentFileIds (from Bitrix24 UF_TASK_WEBDAV_FILES; empty list if none).
Also includes stageId (Kanban stage ID, if the task is in a project with stages; otherwise null).
Also includes chatId when Bitrix24 has attached a modern task chat.
Parameter | Type | Required | Description |
| int | Yes | Task ID |
| bool | No | Include task comments (legacy API via |
chat_search
Search accessible group chats by title or participant name and find users for direct messages. Use this when the user remembers words from a chat name or participant. Bitrix24 uses indexed word-prefix matching rather than arbitrary message-content search. Direct-chat results can include users with whom the webhook user has not previously chatted.
Group chats and direct-message candidates have independent pagination. The result includes
groupChats, groupChatsTotal, groupChatsNextOffset, directChats, directChatsTotal, and
directChatsNextOffset.
Parameter | Type | Required | Description |
| string | Yes | Search phrase, at least 2 characters |
| int | No | Results per result type, 1-50 (default: 10) |
| int | No | Group-chat offset (default: 0) |
| int | No | Direct-user offset (default: 0) |
chat_get
Read chat metadata and recent messages. Messages include IDs, author information, timestamps,
text, unread state, and attachment metadata. Use one returned cursor at a time: olderCursor as
the next lastId, or newerCursor as the next firstId.
Parameter | Type | Required | Description |
| string or int | Yes | Numeric direct-user ID, |
| int | No | Message limit, 1-50 (default: 20) |
| int | No | Load messages older than this message ID |
| int | No | Load messages newer than this message ID |
chat_send
Send a text message to a regular chat. Returns the message ID assigned by Bitrix24.
Parameter | Type | Required | Description |
| string or int | Yes | Numeric direct-user ID, |
| string | Yes | Text message, up to 20,000 characters |
| int | No | Message ID to reply to |
task_chat_get
Read the modern chat attached to a task. The tool accepts a task ID, resolves its chatId, and
returns the same normalized history and cursors as chat_get. Find the task first with
task_search when only part of its title is known.
Parameter | Type | Required | Description |
| int | Yes | Task ID |
| int | No | Message limit, 1-50 (default: 20) |
| int | No | Load messages older than this message ID |
| int | No | Load messages newer than this message ID |
task_chat_send
Send a text message to the modern chat attached to a task. Returns taskId and sent; the
Bitrix24 method does not return a message ID.
Parameter | Type | Required | Description |
| int | Yes | Task ID |
| string | Yes | Text message, up to 20,000 characters |
The existing task-comment support remains available for portals and task cards that use legacy comments. Chat tools do not create chats, manage members, upload files, edit or delete messages, monitor conversations, search message contents, or access Open Channels. All chat access follows the webhook user's membership and permissions.
crm_deal_get
Get CRM deal details by ID (via crm.deal.get).
Returns normalized core deal fields plus dynamic userFields (UF_CRM_*) and parentIds (PARENT_ID_*).
Parameter | Type | Required | Description |
| int | Yes | Deal ID |
crm_deal_fields
Get available deal field definitions (via crm.deal.fields).
Use this to discover selectable/filterable field names in your portal, including custom fields.
crm_deal_list
Get CRM deals list (via crm.deal.list) with pagination metadata.
Returns raw deal rows in items plus total, next, hasMore, and start.
Note: Bitrix24 keeps this method operational but recommends crm.item.list for new development.
Parameter | Type | Required | Description |
| object | No | Bitrix24 filter object (e.g. |
| object | No | Sort object (e.g. |
| list[string] | No | Fields to return (default: |
| int | No | Pagination offset (0, 50, 100, ...) |
| int | No | Shortcut for primary-contact filtering ( |
crm.deal.list does not support CONTACT_IDS (multi-contact filtering). For that, use crm.item.list or crm.deal.contact.items.*.
crm_deal_productrows_get
Get products attached to a deal (via crm.deal.productrows.get).
Returns dealId, items, and count.
Parameter | Type | Required | Description |
| int | Yes | Deal ID |
crm_deal_add
Create a CRM deal (via crm.deal.add).
Returns id and created.
Parameter | Type | Required | Description |
| object | Yes | Deal fields payload (must be non-empty) |
crm_deal_update
Update a CRM deal (via crm.deal.update).
Returns id and updated.
Parameter | Type | Required | Description |
| int | Yes | Deal ID (must be > 0) |
| object | Yes | Deal fields payload (must be non-empty) |
crm_deal_delete
Delete a CRM deal (via crm.deal.delete).
Returns id and deleted.
Parameter | Type | Required | Description |
| int | Yes | Deal ID (must be > 0) |
task_comment_add
Add a comment to a task (via task.commentitem.add).
Parameter | Type | Required | Description |
| int | Yes | Task ID |
| string | Yes | Comment text |
task_create
Create a new task or subtask. Use parentId to create a subtask under an existing task.
Parameter | Type | Required | Description |
| string | Yes | Task title |
| int | Yes | Assignee user ID |
| string | No | Task description |
| int | No | Workgroup/Scrum ID |
| int | No | Parent task ID (creates subtask) |
| string | No | Deadline (ISO 8601) |
| string | No | low, medium, high |
task_update
Update an existing task (via tasks.task.update). At least one updatable field must be provided.
Supports:
Main: title, description, priority, status (accepts common synonyms like "in progress", "done")
People: assignee (
responsibleId), participants (accomplices), observers (auditors)Dates: deadline, planned start/end
Project: group/project, parent task
Kanban stage:
stageId(if task is in a project with stages)
Parameter | Type | Required | Description |
| int | Yes | Task ID |
| string | No | Task title |
| string | No | Task description |
| string | No | low, medium, high |
| string | No | pending, in_progress, completed, deferred (also accepts: "in progress", "done") |
| int | No | Assignee user ID |
| list[int] | No | Participant user IDs |
| list[int] | No | Observer user IDs |
| string | No | Deadline (ISO 8601) |
| string | No | Planned start date (ISO 8601) |
| string | No | Planned end date (ISO 8601) |
| int | No | Workgroup/Project ID |
| int | No | Parent task ID (use 0 to clear) |
| int | No | Kanban stage ID (use 0 to clear) |
scrum_epic_list
List Scrum epics for a Scrum group (via tasks.api.scrum.epic.list). Use this to find epicId by epic name.
Parameter | Type | Required | Description |
| int | Yes | Scrum group/workgroup ID |
| string | No | Filter by epic name (case-insensitive substring match) |
| int | No | Max results (default: 50) |
scrum_backlog_tasks
Get all tasks currently in the backlog for a Scrum group. Supports optional server-side filtering by title substring, status, and assignee.
Internally this tool:
resolves backlog metadata via
tasks.api.scrum.backlog.getusinggroupIdfetches all backlog cards via paginated
tasks.task.listusing:required:
GROUP_ID+BACKLOG_IDoptional:
%TITLE(fromquery),STATUS(fromstatus),RESPONSIBLE_ID(fromresponsibleId)
Returns:
groupId- requested Scrum group/workgroup IDbacklogId- resolved backlog IDcount- total number of backlog tasks returnedtasks- normalized task cards (id,title,responsibleId,groupId,parentId,status,url)
Parameter | Type | Required | Description |
| int | Yes | Scrum group/workgroup ID |
| string | No | Task title substring filter (mapped to |
| string | No | Task status filter (mapped to |
| int | No | Assignee user ID filter (mapped to |
scrum_task_get
Get Scrum-specific fields for a task (via tasks.api.scrum.task.get), including epicId, storyPoints, and entityId.
Parameter | Type | Required | Description |
| int | Yes | Task ID |
scrum_task_update
Update Scrum fields for an existing task (via tasks.api.scrum.task.update).
Supports setting an epic by epicId or by epicName (resolved within the task's groupId).
Parameter | Type | Required | Description |
| int | Yes | Task ID |
| int | No | Epic ID (mutually exclusive with |
| string | No | Epic name (mutually exclusive with |
| string | No | Story points (string) |
| int | No | Backlog/sprint ID |
| int | No | Sorting |
scrum_task_create
Create a task in a Scrum group and attach Scrum fields.
Internally: creates the base task via tasks.task.add, then configures Scrum via tasks.api.scrum.task.update.
Parameter | Type | Required | Description |
| string | Yes | Task title |
| int | Yes | Assignee user ID |
| int | Yes | Scrum group/workgroup ID |
| string | No | Task description |
| string | No | Deadline (ISO 8601) |
| string | No | low, medium, high |
| int | No | Epic ID (mutually exclusive with |
| string | No | Epic name (mutually exclusive with |
| string | No | Story points (string) |
| int | No | Backlog/sprint ID |
| int | No | Sorting |
task_stages_get
Get Scrum board columns (stages) for the current sprint of a group/project.
For Scrum groups (entityId > 0), this tool fetches the current sprint via tasks.api.scrum.sprint.list,
then fetches stages via tasks.api.scrum.kanban.getStages.
Returns stages with id, title, sort, color, systemType, and sprintId.
Parameter | Type | Required | Description |
| int | Yes | Scrum group ID; use |
user_search
Search for users by name. Use this to find a user's ID when you need to assign tasks.
Parameter | Type | Required | Description |
| string | Yes | User name to search for |
task_list_by_user
List tasks assigned to a specific user.
Returns tasks with id, title, responsibleId, groupId, parentId, status, and url.
Parameter | Type | Required | Description |
| int | Yes | User ID |
| string | No | Filter: pending, in_progress, completed, deferred |
| int | No | Maximum results (default: 50) |
group_search
Search for workgroups/scrums by name. Use this when the user provides a group name (not an ID).
Parameter | Type | Required | Description |
| string | Yes | Group name to search for |
| int | No | Maximum results (default: 10) |
Example Usage
User: "Plan for task Auto Send welcome email"
AI: [Searches for task, reads description, proposes subtasks]
Based on the task description, here's my proposed plan:
1. Set up email service configuration
2. Create welcome email template
3. Implement user signup event listener
4. Implement email sending logic
Ready to create these subtasks?
User: "Yes, create them"
AI: [Creates subtasks with parentId pointing to original task]
Created 4 subtasks under task #456.Local Development
If you're contributing or running from source:
git clone https://github.com/lamkimphu258/bitrix24-lkp-mcp.git
cd bitrix24-lkp-mcp
uv venv
source .venv/bin/activate
uv pip install -e ".[dev]"
export BITRIX_WEBHOOK_URL="https://your-domain.bitrix24.com/rest/1/token/"
# Default (stdio)
python -m bitrix_mcp
# Optional streamable-http endpoint
python -m bitrix_mcp --transport streamable-http --host 0.0.0.0 --port 8000 --path /mcpTo point Cursor at your local checkout, set command to your local venv python:
{
"mcpServers": {
"bitrix24": {
"command": "/path/to/bitrix24-lkp-mcp/.venv/bin/python",
"args": ["-m", "bitrix_mcp"],
"env": {
"BITRIX_WEBHOOK_URL": "https://your-domain.bitrix24.com/rest/1/token/"
}
}
}
}Contribute
See CONTRIBUTING.md for development setup and guidelines.
Dependencies
Bitrix24 MCP relies on these libraries:
fastmcp- MCP server framework.httpx- Async HTTP client.pydantic- Data validation.
License
MIT License - see LICENSE for details.
Bitrix24 MCP is MIT licensed code.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Connect assistants to your workspace knowledge, skills, and work tools.
Give your AI agent 75+ business tools: tasks, projects, CRM, forms, E-Sign, team comms, automations.
Operate the Plixana CRM from any AI: contacts, deals, quotes, WhatsApp and metrics.
Operate Obriym CRM from your AI assistant: leads, deals, orders, catalog, stock, marketplaces.
Related MCP Servers
- FlicenseNot gradedqualityNot gradedmaintenanceEnables AI agents to interact with Bitrix24 CRM for managing contacts, deals, tasks, and leads via a comprehensive set of tools. It supports advanced features like sales team monitoring, performance analytics, and automated CRM searching.-
- AlicenseAqualityBmaintenanceExposes Bitrix24 REST API to AI assistants, enabling management of tasks, CRM entities, call recordings (with local transcription), users, workgroups, and Knowledge Base articles.431MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to interact with Bitrix24 CRM through standardized MCP tools, including searching and managing contacts, deals, leads, tasks, and replying in chats.MIT
- AlicenseBqualityCmaintenanceEnables AI assistants to manage Bitrix24 CRM entities, tasks, project kanban boards, and Scrum sprints through an incoming webhook, requiring explicit user confirmation for all write operations.31MIT