bitrix24-mcp-server
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-server
Self-hosted Model Context Protocol server for Bitrix24 CRM and smart-process automations (SPAs). Uses built-in Node.js SQLite (node:sqlite) for zero external database setup.
Features
Bitrix24 OAuth 2.0: Automatic authorization flow, token refresh, and AES-256-GCM encryption at rest in SQLite.
MCP OAuth 2.1: Dynamic client registration (DCR), S256 PKCE, and static bearer token (
MCP_AUTH_TOKEN) fallback.CRM & SPA Discovery: Built-in entities (Lead, Deal, Contact, Company, Invoice) and custom SPAs (
crm.type.list), fields, categories/funnels, and stages with schema caching.Two-Step Writes: Create, update, and stage-move operations are prepared first and executed only after explicit confirmation (
bitrix_confirm_operation).
Related MCP server: BitrixMCP
Quick Start
Requirements: Node.js 22.5+ and a Bitrix24 OAuth local/public application with crm scope.
cp .env.example .env
npm ci
npm run build
npm startConfigure your Bitrix24 local application paths:
Handler path: https://your-server.example.com/oauth/bitrix/callback
Initial installation path: https://your-server.example.com/oauth/bitrix/installConnect an MCP Client
Streamable HTTP endpoint:
https://your-server.example.com/mcpClaude / Claude Code / Codex (OAuth 2.1):
claude mcp add --transport http bitrix24 https://your-server.example.com/mcp # or codex mcp add bitrix24 --url https://your-server.example.com/mcp && codex mcp login bitrix24Static Bearer Token:
{ "mcpServers": { "bitrix24": { "url": "https://your-server.example.com/mcp", "headers": { "Authorization": "Bearer <MCP_AUTH_TOKEN>" } } } }Stdio: Set
MCP_TRANSPORT=stdioand runnode dist/index.js.
Available Tools
Read-only:
bitrix_list_connections,bitrix_discover_portal,bitrix_list_crm_entities,bitrix_describe_entitybitrix_list_fields,bitrix_list_categories,bitrix_list_stages,bitrix_refresh_schema_cachebitrix_search_items,bitrix_get_item,bitrix_list_users
Write (requires write_with_confirmation mode):
bitrix_prepare_create_item,bitrix_prepare_update_item,bitrix_prepare_move_item_stagebitrix_confirm_operation,bitrix_cancel_operation,bitrix_list_pending_operations
Configuration
Variable | Required | Default | Description |
| yes | — | Public server URL (HTTPS, or |
| no |
| SQLite database file path (or |
| yes | — | Bitrix24 OAuth app client ID |
| yes | — | Bitrix24 OAuth app client secret |
| no | — | Portal domain for OAuth redirect and custom domain allowlist |
| yes | — | Static bearer token (min 32 chars) |
| yes | — | 32-byte base64 or 64-char hex key for AES-256-GCM |
| no |
|
|
Docker (Local)
docker compose up --buildSQLite data is persisted in the sqlite_data volume mounted at /app/data.
Deploy to Dokploy
GHCR & GitHub Actions (
.github/workflows/deploy.yml):On push to
main, GitHub Actions builds and pushesghcr.io/sergei93/b24-mcp:latestand triggersDOKPLOY_DEPLOY_WEBHOOK.In Dokploy: add GHCR registry (
Settings → Registry, PAT withread:packages).
Create Compose Service:
Create → Compose → GitHub→ select repository → set Compose Path todocker-compose.dokploy.yml.Disable auto-deploy on push in Dokploy, copy the Webhook URL from
Compose → Webhook, and save it asDOKPLOY_DEPLOY_WEBHOOKin GitHub Repository Secrets.
Environment & Domain:
Fill required variables in Dokploy
Environment(APP_URL,BITRIX_CLIENT_ID,BITRIX_CLIENT_SECRET,MCP_AUTH_TOKEN,TOKEN_ENCRYPTION_KEY, optionalBITRIX_PORTAL_DOMAIN).In
Domains, point your HTTPS domain to serviceappon port3000.
This server cannot be deployed
Maintenance
Related MCP Connectors
Native MCP access to CRM contacts, organizations, deals and tasks with user permissions.
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.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA comprehensive MCP server for Bitrix24 CRM integration that enables AI agents to manage contacts, deals, tasks, leads, and companies. It also provides advanced tools for sales team monitoring, performance analytics, and automated CRM search capabilities.1 npm-
- 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 gradedqualityCmaintenanceProduction-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.-
- AlicenseNot gradedqualityDmaintenanceA secure, self-hosted MCP server for Bitrix24 CRM that enables reading CRM data and performing confirmation-gated writes through schema discovery and OAuth integration.1 npmMIT