amocrm-mcp-prm
Provides read-only access to a lead's Telegram correspondence via the Chatsky messenger gateway, including message authors, timestamps, text, voice transcripts, and attachments.
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., "@amocrm-mcp-prm покажи полную карточку сделки 12345 с перепиской из Telegram"
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.
amocrm-mcp-prm
Форк @theyahia/amocrm-mcp 2.0.2 (MIT). Все 19 исходных инструментов работают как раньше, добавлено 12 новых, фильтры и чтение переписки из мессенджер-шлюза «Чацкий».
Что добавлено
Инструмент | Зачем |
| Читать примечания: комментарии менеджеров, звонки с длительностью и ссылкой на запись, SMS |
| Карточка сделки одним вызовом: поля, этап, ответственный, компания, контакты, примечания, звонки с контакта, задачи, история этапов |
| Сводка по сделкам без выгрузки: всего, выиграно, проиграно, разбивка по воронке, этапу, менеджеру, причине отказа, месяцу, тегу, полю |
| Переходы между этапами за период: сколько сделок вошло в этап, откуда куда, кто двигал |
| Менеджеры с id и именами |
| Причины отказа |
| Поля сделок, контактов, компаний с id и вариантами |
| Правка контактов и компаний |
| Привязать или отвязать контакты и компанию у сделки |
Переписка из Чацкого (включается, если задан CHATSKY_API_KEY):
Инструмент | Зачем |
| Переписка по сделке в Telegram и MAX: кто, когда, что написал, расшифровки голосовых, вложения. Только чтение |
| Номера компании в Чацком и их состояние |
С ключом get_lead_full сам добавляет переписку в карточку сделки. Отправки сообщений в сервере нет намеренно.
Изменения в старых инструментах:
create_lead: можно сразу привязать существующие контакт и компанию (contact_id,company_id) или создать новые в том же вызове (contact,company), а также задать теги. В этих случаях используется/leads/complex: один контакт и одна компания на сделку.list_leads: фильтрыcreated_from/to,updated_from/to,closed_from/to,responsible_user_ids,ids, сортировкаorder_byиorder_dir, режимcompact(читаемые даты, поля в виде «название → значение», без cookies и трекинга).list_events:types,created_from/to,created_by,status_after,status_before.list_tasks:due_from/to,order_dir,compact.
Даты принимаются как YYYY-MM-DD, ISO или Unix. Дата без времени читается в поясе аккаунта: переменная AMOCRM_TZ_OFFSET, по умолчанию +03:00.
Related MCP server: Bitrix24 MCP Server
Запуск
Собранный файл без зависимостей: bundle/amocrm-mcp-prm.mjs, нужен Node 18+.
{
"mcpServers": {
"amocrm": {
"command": "node",
"args": ["C:/путь/до/amocrm-mcp-prm.mjs"],
"env": {
"AMOCRM_SUBDOMAIN": "<поддомен>",
"AMOCRM_ACCESS_TOKEN": "<токен>",
"CHATSKY_API_KEY": "gw_...",
"CHATSKY_URL": "https://msghub.prmonline.ru"
}
}
}
}Переменные amoCRM те же, что у исходного сервера. CHATSKY_API_KEY создается в Чацком: «Настройки» → «Ключи API интеграций». CHATSKY_URL можно не указывать, по умолчанию https://msghub.prmonline.ru.
Сборка из исходников: npm install && npm test && npm run bundle.
Ниже README исходного проекта.
amoCRM MCP — сделки, контакты и воронка продаж через нейросеть
Если вы искали, как подключить amoCRM к ИИ-ассистенту, спросить состояние воронки обычными словами, завести сделку или найти контакт не открывая интерфейс — это оно. 19 инструментов для amoCRM: сделки, контакты, компании, воронки, задачи, примечания, поиск, события и неразобранное. OAuth 2.0 с автообновлением токена, ограничение 7 запросов/сек и повтор с экспоненциальной задержкой.
Установка
npx -y @theyahia/amocrm-mcpНастройка MCP
Добавьте в конфигурацию Claude Desktop, Cursor или любого другого MCP-клиента:
{
"mcpServers": {
"amocrm": {
"command": "npx",
"args": ["-y", "@theyahia/amocrm-mcp"],
"env": {
"AMOCRM_SUBDOMAIN": "mycompany",
"AMOCRM_ACCESS_TOKEN": "your-access-token",
"AMOCRM_REFRESH_TOKEN": "your-refresh-token",
"AMOCRM_CLIENT_ID": "your-client-id",
"AMOCRM_CLIENT_SECRET": "your-client-secret"
}
}
}
}Переменные окружения
Переменная | Обяз. | Описание |
| да | Поддомен вашего amoCRM (например, |
| да | OAuth access-токен |
| нет | OAuth refresh-токен (включает автообновление при 401) |
| нет | OAuth client ID (нужен для обновления токена) |
| нет | OAuth client secret (нужен для обновления токена) |
AMOCRM_DOMAINтоже принимается как алиасAMOCRM_SUBDOMAIN(обратная совместимость).
Инструменты (19)
Сделки
Инструмент | Описание |
| Поиск и список сделок с фильтрами (воронка, статусы, запрос). Подтягивает контакты и причины отказа. |
| Одна сделка по ID вместе со связанными контактами и элементами каталога. |
| Создать сделку с названием, бюджетом, воронкой, статусом и пользовательскими полями. |
| Обновить поля сделки — перевести между этапами, изменить бюджет, сменить ответственного. |
Контакты
Инструмент | Описание |
| Поиск контактов по имени, телефону, e-mail. |
| Один контакт со всеми пользовательскими полями. |
| Создать контакт с телефоном, e-mail и пользовательскими полями. |
Компании
Инструмент | Описание |
| Поиск компаний. Подтягивает связанные сделки и контакты. |
| Создать компанию с пользовательскими полями. |
Воронки
Инструмент | Описание |
| Все воронки продаж вместе с их статусами (этапами). |
Задачи
Инструмент | Описание |
| Список задач с фильтрами по сущности, выполненности и ответственному. |
| Создать задачу, привязанную к сделке, контакту или компании, с дедлайном. |
| Отметить задачу выполненной и добавить текст результата. |
Неразобранное
Инструмент | Описание |
| Входящие неразобранные заявки (формы, разбор почты). |
| Принять неразобранную заявку в воронку. |
Примечания
Инструмент | Описание |
| Добавить примечание (common, call_in, call_out, service_message) к любой сущности. |
Поиск
Инструмент | Описание |
| Универсальный поиск по сделкам, контактам и компаниям. |
События
Инструмент | Описание |
| Лента событий — смены статусов, звонки, примечания, связи. |
Аккаунт
Инструмент | Описание |
| Информация об аккаунте, пользователи, типы задач, настройки amojo. |
Демо-промпты
Обзор продаж:
«Покажи все сделки в воронке „Продажи“, которые сейчас на этапе „Переговоры“. С контактами.»
Работа с задачами:
«Создай задачу-перезвон по сделке #12345, дедлайн завтра в 10:00. Потом выведи все мои невыполненные задачи.»
Заведение нового клиента:
«Создай контакт „Иван Петров“ с телефоном +79001234567, потом компанию „Петров Солюшнс“ и сделку „Разработка сайта“ на 150 000 рублей в основной воронке.»
Как настроить OAuth 2.0
Откройте настройки аккаунта amoCRM:
https://YOUR_SUBDOMAIN.amocrm.ru/settings/widgets/Создайте новую интеграцию (внешняя интеграция)
Укажите redirect URI:
https://YOUR_SUBDOMAIN.amocrm.ruСкопируйте Client ID и Client Secret
Авторизуйте интеграцию, чтобы получить первичный код авторизации
Обменяйте код на токены:
curl -X POST https://YOUR_SUBDOMAIN.amocrm.ru/oauth2/access_token \
-H "Content-Type: application/json" \
-d '{
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"grant_type": "authorization_code",
"code": "YOUR_AUTH_CODE",
"redirect_uri": "https://YOUR_SUBDOMAIN.amocrm.ru"
}'Сохраните
access_tokenиrefresh_tokenиз ответаСервер сам обновит просроченный токен, если заданы
AMOCRM_REFRESH_TOKEN,AMOCRM_CLIENT_IDиAMOCRM_CLIENT_SECRET
Обработка ошибок
401 Unauthorized — автообновление токена, если настроены реквизиты для refresh, затем повтор запроса
429 Rate Limited — учитывает заголовок
Retry-After, ждёт и повторяет5xx — повтор с экспоненциальной задержкой (до 3 попыток)
Ограничение частоты — встроенная пауза 150 мс между запросами (~7 запросов/сек), чтобы укладываться в лимиты amoCRM
Разработка
git clone https://github.com/theYahia/amocrm-mcp.git
cd amocrm-mcp
npm install
npm run build
npm testЛицензия
MIT
Telegram: @vhodvai
Available Tools
31 toolsaccept_unsortedA
Accept an unsorted lead — moves it into a pipeline as a real lead. Optionally specify target pipeline, status, and responsible user.
Inputs: uid (required), user_id, status_id, pipeline_id.
add_noteA
Add a note to a lead, contact, or company. Supports common notes, incoming/outgoing call logs, and service messages.
Inputs: text (required), entity_id (required), entity_type (required), note_type.
complete_taskA
Mark a task as completed and add a result text. The result will appear in the entity's activity feed.
Inputs: task_id (required), result_text (required).
create_companyA
Create a new company in amoCRM. Use custom_fields_values for address, website, etc.
Inputs: name (required), responsible_user_id, custom_fields_values.
create_contactA
Create a new contact in amoCRM. Use custom_fields_values to set phone, email, and other fields.
Inputs: name, last_name, first_name, responsible_user_id, +1 more.
create_leadA
Create a new lead (deal) in amoCRM. Requires a name. Optionally set price, pipeline, status, responsible user, custom fields and tags. Can link an existing contact/company (contact_id, company_id) or create a new contact and company in the same call (contact, company) — uses the complex endpoint, one contact and one company per lead.
Inputs: name (required), tags, price, company, +7 more.
create_taskA
Create a task linked to a lead, contact, or company. Set deadline (complete_till as Unix timestamp) and task type (1=Call, 2=Meeting, 3=Email).
Inputs: text (required), entity_id (required), entity_type (required), complete_till (required), +2 more.
get_accountA
Get current amoCRM account info — name, plan, users, task types, etc. Use 'with' to include users_groups, task_types, and amojo_id.
Inputs: with.
get_companyA
Get a single company by ID with custom fields. Use 'with' to embed linked leads and contacts.
Inputs: company_id (required), with.
get_contactA
Get a single contact by ID with full details including custom fields (phone, email, etc.).
Inputs: contact_id (required), with.
get_leadA
Get a single lead by ID with full details. Use 'with' to include linked contacts and catalog elements.
Inputs: lead_id (required), with.
get_lead_fullA
One-call deal card: lead fields with stage and responsible names, company, contacts with phones/emails, notes (comments, calls), tasks, stage history, and the Telegram/MAX correspondence from Chatsky when configured. Use this to analyze a single deal.
Inputs: lead_id (required), notes_limit, messages_limit, include_field_history.
leads_summaryA
Aggregate leads server-side without returning them: totals, won/lost/open, and breakdowns by pipeline, status, responsible user, loss reason, month, tag, or a custom field. Accepts the same filters as list_leads. Use for funnel snapshots, loss-reason and source reports.
Inputs: group_by, statuses, closed_to, max_pages, +8 more.
link_entitiesA
Attach contacts or a company to an existing lead (or link other entities). Use after create_lead when more contacts are needed, or to fix a lead created without them.
Inputs: links (required), entity_id (required), entity_type.
list_companiesA
Search and list companies in amoCRM. Use 'with' to embed linked leads and contacts.
Inputs: page, with, limit, query.
list_contactsB
Search and list contacts in amoCRM. Supports full-text search across name, phone, and email.
Inputs: page, with, limit, query.
list_custom_fieldsA
List custom fields of leads, contacts, or companies with IDs, types and enum options. Needed to set custom_fields_values or to group leads_summary by a field.
Inputs: entity_type (required).
list_eventsA
List events (activity log) in amoCRM, newest first. Filter by entity, event type(s), date range, author, and target/source status. Shows status changes, calls, notes, and other activities. For stage-move counts over a period use status_transitions.
Inputs: page, type, limit, types, +7 more.
list_leadsA
Search and list deals (leads) in amoCRM. Filters: pipeline, statuses, responsible users, created/updated/closed date ranges, full-text search. Supports sorting. Set compact=true for a trimmed, readable list. For counts and breakdowns use leads_summary instead of paging through leads.
Inputs: ids, page, with, limit, +13 more.
list_loss_reasonsA
List configured loss reasons for closed-lost leads.
Inputs: no named parameters.
list_notesA
Read notes on a lead, contact, or company: manager comments, call logs with results and recording links, SMS, service messages. Newest first. Omit entity_id to scan notes across all entities for a date range.
Inputs: entity_type (required), raw, page, limit, +5 more.
list_pipelinesA
List all sales pipelines with their statuses (stages). Essential for understanding the sales funnel structure before creating or filtering leads.
Inputs: no named parameters.
list_tasksA
List tasks in amoCRM. Filter by entity (lead/contact/company), completion status, responsible user, or deadline range (overdue tasks).
Inputs: page, limit, due_to, compact, +6 more.
list_unsortedA
List incoming unsorted leads (from forms, email parsing, etc.) that need to be accepted or declined.
Inputs: page, limit, pipeline_id.
list_usersA
List amoCRM users (managers) with IDs, names, roles and groups. Use to resolve responsible_user_id and created_by.
Inputs: include_inactive.
searchA
Universal search across amoCRM — finds leads, contacts, and companies matching the query. Min 3 characters.
Inputs: query (required), limit.
status_transitionsA
Count stage moves over a period from the event log: how many unique leads entered each status, from→to transition counts, and moves per user. Use for conversion between stages and manager activity.
Inputs: created_from (required), max_pages, created_by, created_to, +3 more.
unlink_entitiesA
Detach contacts or a company from a lead (or unlink other entities). The detached entities are not deleted.
Inputs: links (required), entity_id (required), entity_type.
update_companyC
Update an existing company: name, responsible user, or custom fields.
Inputs: company_id (required), name, responsible_user_id, custom_fields_values.
update_contactC
Update an existing contact: name, responsible user, or custom fields (phone, email).
Inputs: contact_id (required), name, last_name, first_name, +2 more.
update_leadA
Update an existing lead — change name, price, status, pipeline, responsible user, or custom fields. Useful for moving deals between stages.
Inputs: lead_id (required), name, price, status_id, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 31 tools
Each tool targets a distinct resource/action and descriptions clarify boundaries (e.g. list_leads vs leads_summary vs get_lead vs get_lead_full, list_events vs status_transitions). Minor overlaps remain between universal `search` and the entity-specific list tools' full-text search, and between `list_notes` and `get_lead_full`'s notes section, but these are resolvable from descriptions.
Nearly all names follow a predictable snake_case verb_noun pattern (list_leads, create_task, complete_task, link_entities). A few deviate to noun-first or modifier style (leads_summary, status_transitions, get_lead_full), which slightly breaks the pattern but remains readable.
31 tools is on the heavy side for a single CRM server, spanning leads, contacts, companies, tasks, notes, events, unsorted, users, custom fields and analytics. Most earn their place given the domain breadth, but there is some redundancy (get_lead vs get_lead_full, list_leads vs leads_summary) that could be consolidated.
Core lead/contact/company flows include create, read and update, plus tasks, notes, events and analytics. However there are no delete operations for any entity, no update_task or get_task, and notes are only added/listed — gaps that would block lifecycle cleanup and task editing workflows.
Related MCP Connectors
Read deals, persons, organizations, activities and pipelines; create and update CRM records.
CRM1CRM and unified inbox: Telegram, WhatsApp, Instagram, email, deals, social posts and ad reports.
Read CRM records, funnels, tasks and users; create and update CRM records and tasks in Uspacy.
DataCrazy omnichannel CRM (WhatsApp, Instagram, Facebook) via the official API: leads, deals, pipeli
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides a REST API and MCP server to interact with Bitrix24 CRM, enabling CRUD operations on entities like deals, leads, contacts, and tasks via natural language.13-
- 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-
- FlicenseNot gradedqualityDmaintenanceAI-powered CRM assistant for Kommo/amoCRM that provides natural language management via Telegram bot and MCP protocol, enabling analytics, entity operations, and CRM setup.8-
- AlicenseAqualityCmaintenanceEnables interacting with Bitrix24 CRM via webhook API, offering tools for deals, contacts, tasks, users, files, and messaging.121MIT