@theyahia/amocrm-mcp
@theyahia/amocrm-mcp
Produktionsreifer MCP-Server für die amoCRM API. 19 Tools für Leads, Kontakte, Unternehmen, Pipelines, Aufgaben, Notizen, Suche, Ereignisse und unsortierte Leads. OAuth 2.0 mit automatischer Token-Aktualisierung. Ratenbegrenzung (7 Anfragen/Sek.). Wiederholung mit exponentiellem Backoff.
Installation
npx -y @theyahia/amocrm-mcpRelated MCP server: KommoMCP
MCP-Konfiguration
Fügen Sie dies zu Ihrer Claude Desktop-, Cursor- oder einer beliebigen MCP-Client-Konfiguration hinzu:
{
"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"
}
}
}
}Umgebungsvariablen
Variable | Erforderlich | Beschreibung |
| Ja | Ihre amoCRM-Subdomain (z. B. |
| Ja | OAuth-Zugriffstoken |
| Nein | OAuth-Aktualisierungstoken (ermöglicht automatische Aktualisierung bei 401) |
| Nein | OAuth-Client-ID (für Token-Aktualisierung erforderlich) |
| Nein | OAuth-Client-Geheimnis (für Token-Aktualisierung erforderlich) |
AMOCRM_DOMAINwird ebenfalls als Alias fürAMOCRM_SUBDOMAINakzeptiert (Abwärtskompatibilität).
Tools (19)
Leads
Tool | Beschreibung |
| Leads suchen und mit Filtern auflisten (Pipeline, Status, Suchbegriff). Kontakte und Verlustgründe einbetten. |
| Ein einzelnes Lead anhand der ID mit verknüpften Kontakten und Katalogelementen abrufen. |
| Ein neues Lead mit Name, Preis, Pipeline, Status und benutzerdefinierten Feldern erstellen. |
| Lead-Felder aktualisieren — zwischen Phasen verschieben, Preis ändern, neu zuweisen. |
Kontakte
Tool | Beschreibung |
| Kontakte nach Name, Telefon, E-Mail durchsuchen. |
| Einen einzelnen Kontakt mit allen benutzerdefinierten Feldern abrufen. |
| Einen Kontakt mit Telefon, E-Mail und benutzerdefinierten Feldern erstellen. |
Unternehmen
Tool | Beschreibung |
| Unternehmen durchsuchen. Verknüpfte Leads und Kontakte einbetten. |
| Ein Unternehmen mit benutzerdefinierten Feldern erstellen. |
Pipelines
Tool | Beschreibung |
| Alle Vertriebspipelines mit ihren Status (Phasen) auflisten. |
Aufgaben
Tool | Beschreibung |
| Aufgaben auflisten, gefiltert nach Entität, Erledigungsstatus und verantwortlichem Benutzer. |
| Eine Aufgabe mit Frist erstellen, die mit einem Lead/Kontakt/Unternehmen verknüpft ist. |
| Aufgabe als erledigt markieren und Ergebnistext hinzufügen. |
Unsortierte
Tool | Beschreibung |
| Eingehende unsortierte Leads auflisten (Formulare, E-Mail-Parsing). |
| Ein unsortiertes Lead in eine Pipeline übernehmen. |
Notizen
Tool | Beschreibung |
| Eine Notiz (common, call_in, call_out, service_message) zu einer beliebigen Entität hinzufügen. |
Suche
Tool | Beschreibung |
| Universelle Suche über Leads, Kontakte und Unternehmen. |
Ereignisse
Tool | Beschreibung |
| Aktivitätsprotokoll — Statusänderungen, Anrufe, Notizen, Links. |
Konto
Tool | Beschreibung |
| Kontoinformationen, Benutzer, Aufgabentypen, amojo-Einstellungen. |
Demo-Prompts
Vertriebsübersicht:
„Zeig mir alle Leads in der Pipeline ‚Vertrieb‘, die sich aktuell in der Phase ‚Verhandlung‘ befinden. Inklusive Kontaktinformationen.“
Aufgabenverwaltung:
„Erstelle eine Folgeanruf-Aufgabe für Lead #12345, Frist morgen um 10:00 Uhr. Danach liste alle meine unerledigten Aufgaben auf.“
Neukunden-Onboarding:
„Erstelle einen Kontakt ‚Ivan Petrov‘ mit Telefon +79001234567, erstelle dann ein Unternehmen ‚Petrov Solutions‘ und ein Lead ‚Website Development‘ für 150.000 RUB in der Haupt-Pipeline.“
OAuth-2.0-Einrichtungsanleitung
Rufen Sie die Einstellungen Ihres amoCRM-Kontos auf:
https://YOUR_SUBDOMAIN.amocrm.ru/settings/widgets/Erstellen Sie eine neue Integration (externe Integration)
Setzen Sie die Redirect-URI auf
https://YOUR_SUBDOMAIN.amocrm.ruKopieren Sie die Client ID und das Client Secret
Autorisieren Sie die Integration, um den anfänglichen Autorisierungscode zu erhalten.
Tauschen Sie den Code gegen Tokens ein:
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"
}'Speichern Sie
access_tokenundrefresh_tokenaus der Antwort.Der Server aktualisiert abgelaufene Tokens automatisch, wenn
AMOCRM_REFRESH_TOKEN,AMOCRM_CLIENT_IDundAMOCRM_CLIENT_SECRETgesetzt sind.
Fehlerbehandlung
401 Nicht autorisiert: Aktualisiert das Token automatisch, wenn Aktualisierungsdaten konfiguriert sind, und versucht es dann erneut.
429 Ratenlimit: Beachtet den
Retry-After-Header, wartet und versucht es erneut.5xx-Serverfehler: Wiederholung mit exponentiellem Backoff (bis zu 3 Versuche).
Ratenbegrenzung: Integrierte Verzögerung von 150 ms zwischen Anfragen (~7 Anfragen/Sek.), um innerhalb der amoCRM-Limits zu bleiben.
Entwicklung
git clone https://github.com/theYahia/amocrm-mcp.git
cd amocrm-mcp
npm install
npm run build
npm testLizenz
MIT
Available Tools
19 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, and custom fields.
Inputs: name (required), price, status_id, pipeline_id, +2 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_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.
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_eventsA
List events (activity log) in amoCRM. Filter by entity type, entity ID, or event type. Shows status changes, calls, notes, and other activities.
Inputs: page, type, limit, entity, +1 more.
list_leadsA
Search and list deals (leads) in amoCRM. Supports filtering by pipeline, statuses, and full-text search. Use 'with' to embed contacts or loss reasons.
Inputs: page, with, limit, query, +2 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, or responsible user.
Inputs: page, limit, entity_id, entity_type, +2 more.
list_unsortedA
List incoming unsorted leads (from forms, email parsing, etc.) that need to be accepted or declined.
Inputs: page, limit, pipeline_id.
searchA
Universal search across amoCRM — finds leads, contacts, and companies matching the query. Min 3 characters.
Inputs: query (required), limit.
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 19 tools
Each tool maps to a distinct resource and action, such as list_leads vs get_lead vs create_lead, and list_unsorted/accept_unsorted are clearly separate from regular lead tools. No two tools appear to do the same job.
Tool names consistently use lowercase snake_case verb_noun patterns like list_leads, create_contact, complete_task, and accept_unsorted. The bare 'search' is a reasonable exception for a universal action and does not break the overall convention.
At 19 tools, the set falls into the heavy 16-25 range and begins to feel borderline bloated, even though the CRM domain covers many entities. The organization by entity helps, but the count is above the ideal 3-15 sweet spot.
Core lead and task workflows are well covered, but contacts and companies lack update/delete operations, there is no get_company, and unsorted leads can only be accepted, not declined. These are notable lifecycle gaps that agents may need to work around.
Maintenance
Related MCP Connectors
Manage projects, tasks, time tracking, and team collaboration through natural language.
Operate Obriym CRM from your AI assistant: leads, deals, orders, catalog, stock, marketplaces.
A CRM you talk to: leads, deals and a pipeline board inside ChatGPT, Grok and other MCP clients.
Ask your Quickbase apps in plain language. Read-only by default; writes need human approval.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables users to interact with AmoCRM via Claude Desktop using natural language, with 17 tools for accessing CRM entities like leads, contacts, and pipelines.181MIT
- 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-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with amoCRM, providing access to deals, contacts, companies, notes, tasks, and custom fields via natural language.MIT
- AlicenseAqualityBmaintenanceManage Kommo CRM leads, contacts, companies, pipelines, tasks, notes, tags and custom fields from natural language. Also packaged as a Kiro Power.3028 PyPI2MIT