Skip to main content
Glama
@theyahia/amocrm-mcp

@theyahia/amocrm-mcp

by theYahia

@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-mcp

Related 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

AMOCRM_SUBDOMAIN

Ja

Ihre amoCRM-Subdomain (z. B. mycompany von mycompany.amocrm.ru)

AMOCRM_ACCESS_TOKEN

Ja

OAuth-Zugriffstoken

AMOCRM_REFRESH_TOKEN

Nein

OAuth-Aktualisierungstoken (ermöglicht automatische Aktualisierung bei 401)

AMOCRM_CLIENT_ID

Nein

OAuth-Client-ID (für Token-Aktualisierung erforderlich)

AMOCRM_CLIENT_SECRET

Nein

OAuth-Client-Geheimnis (für Token-Aktualisierung erforderlich)

AMOCRM_DOMAIN wird ebenfalls als Alias für AMOCRM_SUBDOMAIN akzeptiert (Abwärtskompatibilität).

Tools (19)

Leads

Tool

Beschreibung

list_leads

Leads suchen und mit Filtern auflisten (Pipeline, Status, Suchbegriff). Kontakte und Verlustgründe einbetten.

get_lead

Ein einzelnes Lead anhand der ID mit verknüpften Kontakten und Katalogelementen abrufen.

create_lead

Ein neues Lead mit Name, Preis, Pipeline, Status und benutzerdefinierten Feldern erstellen.

update_lead

Lead-Felder aktualisieren — zwischen Phasen verschieben, Preis ändern, neu zuweisen.

Kontakte

Tool

Beschreibung

list_contacts

Kontakte nach Name, Telefon, E-Mail durchsuchen.

get_contact

Einen einzelnen Kontakt mit allen benutzerdefinierten Feldern abrufen.

create_contact

Einen Kontakt mit Telefon, E-Mail und benutzerdefinierten Feldern erstellen.

Unternehmen

Tool

Beschreibung

list_companies

Unternehmen durchsuchen. Verknüpfte Leads und Kontakte einbetten.

create_company

Ein Unternehmen mit benutzerdefinierten Feldern erstellen.

Pipelines

Tool

Beschreibung

list_pipelines

Alle Vertriebspipelines mit ihren Status (Phasen) auflisten.

Aufgaben

Tool

Beschreibung

list_tasks

Aufgaben auflisten, gefiltert nach Entität, Erledigungsstatus und verantwortlichem Benutzer.

create_task

Eine Aufgabe mit Frist erstellen, die mit einem Lead/Kontakt/Unternehmen verknüpft ist.

complete_task

Aufgabe als erledigt markieren und Ergebnistext hinzufügen.

Unsortierte

Tool

Beschreibung

list_unsorted

Eingehende unsortierte Leads auflisten (Formulare, E-Mail-Parsing).

accept_unsorted

Ein unsortiertes Lead in eine Pipeline übernehmen.

Notizen

Tool

Beschreibung

add_note

Eine Notiz (common, call_in, call_out, service_message) zu einer beliebigen Entität hinzufügen.

Suche

Tool

Beschreibung

search

Universelle Suche über Leads, Kontakte und Unternehmen.

Ereignisse

Tool

Beschreibung

list_events

Aktivitätsprotokoll — Statusänderungen, Anrufe, Notizen, Links.

Konto

Tool

Beschreibung

get_account

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

  1. Rufen Sie die Einstellungen Ihres amoCRM-Kontos auf: https://YOUR_SUBDOMAIN.amocrm.ru/settings/widgets/

  2. Erstellen Sie eine neue Integration (externe Integration)

  3. Setzen Sie die Redirect-URI auf https://YOUR_SUBDOMAIN.amocrm.ru

  4. Kopieren Sie die Client ID und das Client Secret

  5. Autorisieren Sie die Integration, um den anfänglichen Autorisierungscode zu erhalten.

  6. 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"
  }'
  1. Speichern Sie access_token und refresh_token aus der Antwort.

  2. Der Server aktualisiert abgelaufene Tokens automatisch, wenn AMOCRM_REFRESH_TOKEN, AMOCRM_CLIENT_ID und AMOCRM_CLIENT_SECRET gesetzt 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 test

Lizenz

MIT

Available Tools

19 tools
accept_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.

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

    A3.7/5.0

    Scored across 19 tools

    Disambiguation5/5

    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.

    Naming Consistency5/5

    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.

    Tool Count3/5

    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.

    Completeness3/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Enables users to interact with AmoCRM via Claude Desktop using natural language, with 17 tools for accessing CRM entities like leads, contacts, and pipelines.
      18
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      AI-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
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to interact with amoCRM, providing access to deals, contacts, companies, notes, tasks, and custom fields via natural language.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Manage Kommo CRM leads, contacts, companies, pipelines, tasks, notes, tags and custom fields from natural language. Also packaged as a Kiro Power.
      30
      28 PyPI
      2
      MIT