Bitrix24 MCP Server
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., "@Bitrix24 MCP Server list my recent deals with their current stages"
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.
Bitrix24 MCP Server
A comprehensive Model Context Protocol (MCP) server for Bitrix24 CRM integration, enabling AI agents to seamlessly interact with your Bitrix24 instance through a powerful set of tools.
π Features
Complete CRM Management: Create, read, update, and list contacts, deals, and tasks
Advanced Search: Search across all CRM entities with flexible filtering
Rate Limiting: Built-in rate limiting to respect Bitrix24 API limits
Type Safety: Full TypeScript implementation with comprehensive type definitions
Error Handling: Robust error handling and validation
Easy Integration: Simple setup with Claude Desktop and other MCP-compatible clients
Related MCP server: Bitrix24 MCP Server
π Available Tools
Contact Management
bitrix24_create_contact- Create new contactsbitrix24_get_contact- Retrieve contact by IDbitrix24_list_contacts- List contacts with filteringbitrix24_update_contact- Update existing contacts
Deal Management
bitrix24_create_deal- Create new dealsbitrix24_get_deal- Retrieve deal by IDbitrix24_list_deals- List deals with filteringbitrix24_update_deal- Update existing deals
Task Management
bitrix24_create_task- Create new tasksbitrix24_get_task- Retrieve task by IDbitrix24_list_tasks- List tasks with filteringbitrix24_update_task- Update existing tasks
User Management
bitrix24_get_user- Get user information by IDbitrix24_get_all_users- Get all users in the system with names and detailsbitrix24_resolve_user_names- Resolve user IDs to user namesbitrix24_get_contacts_with_user_names- Get contacts with user names resolvedbitrix24_get_deals_with_user_names- Get deals with user names resolvedbitrix24_get_leads_with_user_names- Get leads with user names resolvedbitrix24_get_companies_with_user_names- Get companies with user names resolved
Lead Management
bitrix24_create_lead- Create new leadsbitrix24_get_lead- Retrieve lead by IDbitrix24_list_leads- List leads with filteringbitrix24_get_latest_leads- Get most recent leadsbitrix24_get_leads_from_date_range- Get leads from specific date rangebitrix24_update_lead- Update existing leads
Company Management
bitrix24_create_company- Create new companiesbitrix24_get_company- Retrieve company by IDbitrix24_list_companies- List companies with filteringbitrix24_get_latest_companies- Get most recent companiesbitrix24_get_companies_from_date_range- Get companies from specific date rangebitrix24_update_company- Update existing companies
Enhanced Deal Filtering
bitrix24_get_deal_pipelines- Get all deal pipelines/categoriesbitrix24_get_deal_stages- Get deal stages for pipelinesbitrix24_filter_deals_by_pipeline- Filter deals by pipelinebitrix24_filter_deals_by_budget- Filter deals by budget rangebitrix24_filter_deals_by_status- Filter deals by stage/status
Utilities
bitrix24_search_crm- Search across CRM entitiesbitrix24_get_current_user- Get current user infobitrix24_validate_webhook- Validate webhook connectionbitrix24_diagnose_permissions- Diagnose webhook permissionsbitrix24_check_crm_settings- Check CRM settings and configurationbitrix24_test_leads_api- Test leads API endpoints
Sales Team Monitoring
bitrix24_monitor_user_activities- Monitor user activities (calls, emails, timeline interactions, response times)bitrix24_get_user_performance_summary- Get comprehensive performance summary with deal metrics and conversion ratesbitrix24_analyze_account_performance- Analyze performance for specific accounts (companies/contacts)bitrix24_compare_user_performance- Compare performance metrics between multiple usersbitrix24_track_deal_progression- Track deal progression through pipeline stages with timing analysisbitrix24_monitor_sales_activities- Monitor sales-related activities (tasks, follow-ups, meetings)bitrix24_generate_sales_report- Generate comprehensive sales reports with customizable metricsbitrix24_get_team_dashboard- Get real-time team performance dashboardbitrix24_analyze_customer_engagement- Analyze customer engagement patterns and relationship healthbitrix24_forecast_performance- Generate performance forecasts and predictive analytics
π οΈ Installation
Prerequisites
Node.js 18+
npm or yarn
Bitrix24 webhook URL
Setup
Clone and install dependencies:
git clone <repository-url>
cd bitrix24-mcp-server
npm installConfigure environment:
cp .env.example .env
# Edit .env with your Bitrix24 webhook URLBuild the project:
npm run buildTest the connection:
npm testβοΈ Configuration
Environment Variables
Create a .env file with the following variables:
BITRIX24_WEBHOOK_URL=https://your-domain.bitrix24.com/rest/USER_ID/WEBHOOK_CODE/
NODE_ENV=development
LOG_LEVEL=infoBitrix24 Webhook Setup
Go to your Bitrix24 instance
Navigate to Applications β Webhooks
Create an Incoming webhook
Copy the webhook URL (format:
https://domain.bitrix24.com/rest/USER_ID/WEBHOOK_CODE/)Set appropriate permissions for CRM and Tasks
π§ Claude Desktop Integration
Add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"bitrix24": {
"command": "node",
"args": ["/path/to/your/bitrix24-mcp-server/build/index.js"],
"env": {
"BITRIX24_WEBHOOK_URL": "https://your-domain.bitrix24.com/rest/USER_ID/WEBHOOK_CODE/"
}
}
}
}π Usage Examples
Creating a Contact
Create a new contact named John Smith with email john@example.com and phone +39 123 456 789Creating a Deal with Contact
Create a new contact for Maria Rossi with email maria@company.com, then create a deal titled "Website Development Project" for β¬5000 and link it to this contactManaging Tasks
Create a task titled "Follow up with client" with high priority, deadline tomorrow, and link it to contact ID 123Searching CRM
Search for all contacts and deals related to "example.com"ποΈ Development
Project Structure
bitrix24-mcp-server/
βββ src/
β βββ bitrix24/
β β βββ client.ts # Bitrix24 API client
β βββ tools/
β β βββ index.ts # MCP tools definitions
β βββ utils/
β β βββ logger.ts # Logging utilities
β βββ config/
β β βββ index.ts # Configuration management
β βββ index.ts # Main MCP server
βββ test/
β βββ integration.test.js # Integration tests
βββ build/ # Compiled JavaScript
βββ package.json
βββ tsconfig.json
βββ README.mdDevelopment Commands
# Install dependencies
npm install
# Build the project
npm run build
# Watch mode for development
npm run dev
# Run tests
npm test
# Start the server
npm startAdding New Tools
Define the tool in
src/tools/index.ts:
export const newTool: Tool = {
name: 'bitrix24_new_action',
description: 'Description of the new action',
inputSchema: {
type: 'object',
properties: {
// Define parameters
},
required: ['requiredParam']
}
};Add the execution handler:
case 'bitrix24_new_action':
// Implementation
return { success: true, result: 'Action completed' };Add to
allToolsarray and rebuild.
π Security Considerations
Webhook Security: Keep your webhook URL secret and rotate it regularly
Environment Variables: Never commit
.envfiles to version controlRate Limiting: The client includes built-in rate limiting (2 requests/second)
Error Handling: Sensitive information is not exposed in error messages
π Troubleshooting
Common Issues
"Webhook validation failed"
Verify your webhook URL is correct
Check that the webhook has appropriate permissions
Ensure your Bitrix24 instance is accessible
"Cannot find module" errors
Run
npm installto install dependenciesEnsure you've built the project with
npm run build
Rate limiting errors
The client automatically handles rate limiting
If you see persistent rate limit errors, consider reducing request frequency
Debug Mode
Set NODE_ENV=development and LOG_LEVEL=debug in your .env file for detailed logging.
π API Reference
Bitrix24Client Methods
Contacts
createContact(contact: BitrixContact): Promise<string>getContact(id: string): Promise<BitrixContact>updateContact(id: string, contact: Partial<BitrixContact>): Promise<boolean>listContacts(params?: ListParams): Promise<BitrixContact[]>
Deals
createDeal(deal: BitrixDeal): Promise<string>getDeal(id: string): Promise<BitrixDeal>updateDeal(id: string, deal: Partial<BitrixDeal>): Promise<boolean>listDeals(params?: ListParams): Promise<BitrixDeal[]>
Tasks
createTask(task: BitrixTask): Promise<string>getTask(id: string): Promise<BitrixTask>updateTask(id: string, task: Partial<BitrixTask>): Promise<boolean>listTasks(params?: TaskListParams): Promise<BitrixTask[]>
Users
getUser(userId: string): Promise<any>getAllUsers(): Promise<any[]>getUsersByIds(userIds: string[]): Promise<any[]>resolveUserNames(userIds: string[]): Promise<Record<string, string>>enhanceWithUserNames<T>(items: T[], userIdFields?: string[]): Promise<T[]>
Utilities
getCurrentUser(): Promise<any>searchCRM(query: string, entityTypes?: string[]): Promise<any>validateWebhook(): Promise<boolean>
π€ Contributing
Fork the repository
Create a feature branch
Make your changes
Add tests if applicable
Submit a pull request
π License
MIT License - see LICENSE file for details.
π Support
For issues and questions:
Check the troubleshooting section
Review Bitrix24 API documentation
Open an issue on GitHub
Built with β€οΈ for the AI automation community
Available Tools
50 toolsbitrix24_analyze_account_performanceC
Analyze performance and activities for specific accounts (companies/contacts)
Inputs: accountId (required), accountType (required), startDate (required), endDate, +3 more.
bitrix24_analyze_customer_engagementC
Analyze customer engagement patterns and relationship health
Inputs: startDate (required), accountId, accountType, userId, +5 more.
bitrix24_check_crm_settingsB
Check CRM settings including lead fields, statuses, and mode
Inputs: no named parameters.
bitrix24_compare_user_performanceC
Compare performance metrics between multiple users
Inputs: startDate (required), userIds, endDate, metrics, +2 more.
bitrix24_create_companyC
Create a new company in Bitrix24 CRM
Inputs: title (required), companyType, industry, phone, +7 more.
bitrix24_create_contactC
Create a new contact in Bitrix24 CRM
Inputs: name (required), lastName (required), phone, email, +3 more.
bitrix24_create_dealC
Create a new deal in Bitrix24 CRM
Inputs: title (required), amount, currency, contactId, +2 more.
bitrix24_create_leadC
Create a new lead in Bitrix24 CRM
Inputs: title (required), name, lastName, company, +7 more.
bitrix24_diagnose_permissionsB
Diagnose webhook permissions and access to different CRM entities
Inputs: no named parameters.
bitrix24_filter_deals_by_budgetC
Filter deals by budget/opportunity amount range
Inputs: minBudget (required), maxBudget, currency, limit, +2 more.
bitrix24_filter_deals_by_pipelineB
Filter deals by specific pipeline/category ID
Inputs: pipelineId (required), limit, orderBy, orderDirection.
bitrix24_filter_deals_by_statusB
Filter deals by stage/status IDs
Inputs: stageIds (required), pipelineId, limit, orderBy, +1 more.
bitrix24_forecast_performanceC
Generate performance forecasts and predictive analytics
Inputs: forecastType (required), userId, historicalPeriod, forecastPeriod, +3 more.
bitrix24_generate_sales_reportC
Generate comprehensive sales report with customizable metrics and date ranges
Inputs: reportType (required), startDate (required), endDate, userIds, +3 more.
bitrix24_get_all_usersC
Get all users in the system with their names and details
Inputs: includeInactive.
bitrix24_get_companies_from_date_rangeB
Get companies created within a specific date range
Inputs: startDate (required), endDate, limit.
bitrix24_get_companies_with_user_namesB
Get companies with user names resolved (assigned, created, modified by)
Inputs: limit, filter, orderBy, orderDirection.
bitrix24_get_companyB
Retrieve company information by ID
Inputs: id (required).
bitrix24_get_contactC
Retrieve contact information by ID
Inputs: id (required).
bitrix24_get_contacts_with_user_namesB
Get contacts with user names resolved (assigned, created, modified by)
Inputs: limit, filter.
bitrix24_get_dealC
Retrieve deal information by ID
Inputs: id (required).
bitrix24_get_deal_pipelinesB
Get all available deal pipelines/categories with their IDs and names
Inputs: no named parameters.
bitrix24_get_deals_from_date_rangeC
Get deals created within a specific date range
Inputs: startDate (required), endDate, limit.
bitrix24_get_deal_stagesB
Get all deal stages for a specific pipeline or all pipelines
Inputs: pipelineId.
bitrix24_get_deals_with_user_namesB
Get deals with user names resolved (assigned, created, modified by)
Inputs: limit, filter, orderBy, orderDirection.
bitrix24_get_latest_companiesB
Get the most recent companies ordered by creation date
Inputs: limit.
bitrix24_get_latest_contactsB
Get the most recent contacts ordered by creation date
Inputs: limit.
bitrix24_get_latest_dealsB
Get the most recent deals ordered by creation date
Inputs: limit.
bitrix24_get_latest_leadsC
Get the most recent leads ordered by creation date
Inputs: limit.
bitrix24_get_leadC
Retrieve lead information by ID
Inputs: id (required).
bitrix24_get_leads_from_date_rangeB
Get leads created within a specific date range
Inputs: startDate (required), endDate, limit.
bitrix24_get_leads_with_user_namesC
Get leads with user names resolved (assigned, created, modified by)
Inputs: limit, filter, orderBy, orderDirection.
bitrix24_get_team_dashboardC
Get real-time team performance dashboard with key metrics and alerts
Inputs: includeRealTimeMetrics, includeTopPerformers, includeAttentionNeeded, includeWorkloadDistribution, +1 more.
bitrix24_get_userC
Get user information by ID
Inputs: userId (required).
bitrix24_get_user_performance_summaryC
Get comprehensive performance summary for users including deal metrics and conversion rates
Inputs: startDate (required), userId, endDate, includeDealMetrics, +2 more.
bitrix24_list_companiesC
List companies with optional filtering and ordering
Inputs: limit, filter, orderBy, orderDirection.
bitrix24_list_contactsC
List contacts with optional filtering
Inputs: limit, filter.
bitrix24_list_dealsB
List deals with optional filtering and ordering
Inputs: limit, filter, orderBy, orderDirection.
bitrix24_list_leadsB
List leads with optional filtering and ordering
Inputs: limit, filter, orderBy, orderDirection.
bitrix24_monitor_sales_activitiesC
Monitor sales-related activities including tasks, follow-ups, and meetings
Inputs: startDate (required), userId, endDate, includeTaskCompletion, +3 more.
bitrix24_monitor_user_activitiesC
Monitor user activities including calls, emails, timeline interactions, and response times
Inputs: startDate (required), userId, endDate, includeCallVolume, +3 more.
bitrix24_resolve_user_namesB
Resolve user IDs to user names
Inputs: userIds (required).
bitrix24_search_crmC
Search across CRM entities (contacts, companies, deals, leads)
Inputs: query (required), entityTypes.
bitrix24_test_leads_apiC
Test various leads API endpoints to identify specific issues
Inputs: no named parameters.
bitrix24_track_deal_progressionB
Track deal progression through pipeline stages with timing analysis
Inputs: startDate (required), dealId, userId, pipelineId, +4 more.
bitrix24_update_companyC
Update an existing company in Bitrix24 CRM
Inputs: id (required), title, companyType, industry, +8 more.
bitrix24_update_contactC
Update an existing contact in Bitrix24 CRM
Inputs: id (required), name, lastName, phone, +4 more.
bitrix24_update_dealC
Update an existing deal in Bitrix24 CRM
Inputs: id (required), title, amount, currency, +3 more.
bitrix24_update_leadC
Update an existing lead in Bitrix24 CRM
Inputs: id (required), title, name, lastName, +8 more.
bitrix24_validate_webhookB
Validate the Bitrix24 webhook connection
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 50 tools
Most tools have distinct purposes targeting specific CRM entities (companies, contacts, deals, leads) or analytical functions, but some overlap exists, such as 'bitrix24_list_companies' and 'bitrix24_get_companies_from_date_range', which could cause confusion in selection. However, descriptions help clarify differences, like date-based filtering versus general listing.
Tool names follow a highly consistent 'bitrix24_verb_noun' pattern throughout, with clear and predictable structures like 'bitrix24_create_company' or 'bitrix24_analyze_account_performance'. There are no deviations in naming conventions, making the set easy to navigate and understand.
With 50 tools, the count is excessive for a CRM server, leading to potential overwhelm and redundancy. While the domain is broad, many tools could be consolidated (e.g., multiple 'get' and 'list' variants), making it feel heavy and less scoped than ideal for efficient agent use.
The tool set provides comprehensive coverage for Bitrix24 CRM operations, including full CRUD for core entities (companies, contacts, deals, leads), analytics, reporting, user management, and system diagnostics. There are no obvious gaps, and the surface supports complete workflows from data entry to performance tracking.
Maintenance
Related MCP Connectors
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.
Your own CRM, fully customizable and agent-driven. Start with contacts, companies and a sales pipeli
Sales CRM: leads, calls, texts, email campaigns and deals, plus an AI caller, for AI agents.
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.-
- FlicenseNot gradedqualityDmaintenanceEnables language models to interact with Bitrix24 CRM, providing tools to manage deals, leads, contacts, tasks, activities, users, files, chat messages, and live chat sessions.1-
- 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
- AlicenseAqualityBmaintenanceEnables interacting with Bitrix24 CRM via webhook API, offering tools for deals, contacts, tasks, users, files, and messaging.121MIT