Skip to main content
Glama
amoCRM MCP Server

amoCRM MCP Server

by AntonTera

amoCRM MCP Server

MCP server for amoCRM (Kommo) API v4. Exposes tools for leads, contacts, companies, tasks, notes, pipelines, associations, analytics, and custom fields.

Built with FastMCP. Works with Claude Desktop, Cursor, and any MCP-compatible client.

Features

  • 39 MCP tools across 11 domains (leads, contacts, companies, tasks, notes, pipelines, associations, account, batch, unsorted, analytics)

  • OAuth 2.0 token refresh with disk persistence

  • Long-lived token mode for simpler single-account deployments

  • Rate limiting — 7 req/s with automatic 429 backoff and jitter

  • HAL+JSON normalization — strips _links, flattens _embedded

  • Consistent response envelopes — {data, pagination} or {error, status_code, detail}

  • stdio, SSE, and streamable-http transports

Related MCP server: AmoCRM MCP Server

Quick Start

1. Install

pip install -e .

2. Configure

Copy .env.example to .env and fill in your amoCRM credentials:

cp .env.example .env

You need at minimum:

  • AMO_SUBDOMAIN — your amoCRM account subdomain

  • AMO_ACCESS_TOKEN — OAuth access token

For automatic token refresh, also set:

  • AMO_CLIENT_ID, AMO_CLIENT_SECRET, AMO_REFRESH_TOKEN

3. Run

# stdio (default — for Claude Desktop, Cursor, etc.)
python -m amocrm_mcp

# SSE transport
AMO_TRANSPORT=sse AMO_PORT=8000 python -m amocrm_mcp

# Streamable HTTP transport
AMO_TRANSPORT=streamable-http AMO_PORT=8000 python -m amocrm_mcp

Claude Desktop config

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "amocrm": {
      "command": "python",
      "args": ["-m", "amocrm_mcp"],
      "env": {
        "AMO_SUBDOMAIN": "your-subdomain",
        "AMO_ACCESS_TOKEN": "your-token"
      }
      }
    }
}

Vercel Deployment

Current production deployment for helloevospru:

  • MCP endpoint: https://amocrm-mcp-helloevospru.vercel.app/mcp

  • Healthcheck: https://amocrm-mcp-helloevospru.vercel.app/healthz

This repository is set up for the simplest multi-account operating model:

  • one Vercel project = one amoCRM account

  • store amoCRM credentials in Vercel project environment variables

  • connect Codex to the project-specific /mcp URL

Deploy a new amoCRM account

  1. Create a new Vercel project from this repository.

  2. Add production environment variables:

    • AMO_SUBDOMAIN=<your amoCRM subdomain>

    • AMO_ACCESS_TOKEN=<your long-lived token>

    • leave AMO_CLIENT_ID, AMO_CLIENT_SECRET, and AMO_REFRESH_TOKEN empty if you use long-lived token mode

  3. Deploy to production:

npx vercel link --project <new-project-name>
npx vercel env add AMO_SUBDOMAIN production --value <subdomain>
npx vercel env add AMO_ACCESS_TOKEN production --value <long-lived-token>
npx vercel deploy --prod -y
  1. Use the project URL in Codex:

[mcp_servers.amocrm_<account_name>]
url = "https://<your-project>.vercel.app/mcp"

Recommended naming:

  • Vercel project: amocrm-mcp-<account>

  • Codex server key: amocrm_<account>

Tools

Domain

Tools

Description

Leads

leads_list, leads_get, leads_search, leads_create, leads_create_complex, leads_update

Full lead lifecycle

Contacts

contacts_get, contacts_search, contacts_create, contacts_update

Contact management

Companies

companies_get, companies_search, companies_create, companies_update

Company management

Tasks

tasks_list, tasks_get, tasks_create, tasks_update

CRM task operations

Notes

notes_list, notes_create

Notes on entities

Pipelines

pipelines_list, pipelines_get, pipelines_list_statuses

Pipeline & status info

Associations

associations_get_linked, associations_link_entities

Entity relationships

Account

account_get, account_list_users, account_list_custom_fields, account_create_custom_field, account_update_custom_field, account_delete_custom_field

Account metadata and custom field management

Batch

batch_create_leads, batch_create_contacts, batch_update_leads

Bulk operations

Analytics

analytics_get_events, analytics_get_pipeline_analytics, +1

CRM analytics

Unsorted

unsorted_list, unsorted_accept, unsorted_reject

Unsorted inbox

Getting amoCRM Credentials

  1. Go to your amoCRM account → Settings → Integrations

  2. Create a new integration (or use an existing one)

  3. Copy the access token, client ID, and client secret

  4. Your subdomain is the part before .amocrm.ru in your account URL

License

MIT

Available Tools

39 tools
account_create_custom_fieldAccount Create Custom FieldC

Create a new custom field for leads, contacts, companies, customers, or segments.

Inputs: input (required). Returns: object

account_delete_custom_fieldAccount Delete Custom FieldC

Delete a custom field for leads, contacts, companies, customers, or segments.

Inputs: input (required). Returns: object

account_getAccount GetB

Get account information.

Use with_related to embed additional data: amojo_id, amojo_rights, users_groups, task_types, version, entity_names, datetime_settings.

Inputs: input (required). Returns: object

account_list_custom_fieldsAccount List Custom FieldsB

List custom field definitions for an entity type.

Returns field_id, name, type, and enum values for each custom field.

Inputs: input (required). Returns: object

account_list_usersAccount List UsersB

List all users in the account with pagination.

Inputs: input (required). Returns: object

account_update_custom_fieldAccount Update Custom FieldC

Update an existing custom field for leads, contacts, companies, customers, or segments.

Inputs: input (required). Returns: object

analytics_get_eventsAnalytics Get EventsA

Retrieve account events with optional filters.

Supports filtering by entity type (lead, contact, company, customer, task), entity ID, date range (unix timestamps), and event types. Event entity_type uses singular form (lead, not leads). entity_id requires entity_type to be set.

Filter encoding verified against live amoCRM API:

  • filter[entity][] for entity type

  • filter[entity_id][] for entity ID (requires exactly 1 entity type)

  • filter[created_at][from/to] for date range (unix timestamps)

  • filter[type][] for event types

Inputs: input (required). Returns: object

analytics_get_pipeline_analyticsAnalytics Get Pipeline AnalyticsA

Computed pipeline analytics: leads grouped by status_id and responsible_user_id (FR-21, ADR-005).

This is a computed aggregation, not a native amoCRM analytics endpoint. Internally fetches all leads for the specified pipeline and date range (paginating as needed), then groups and counts by status_id and responsible_user_id. Latency scales with lead count (~4s per 250 leads).

Inputs: input (required). Returns: object

associations_get_linkedAssociations Get LinkedC

Get all entities linked to a given entity.

Inputs: input (required). Returns: object

batch_create_contactsBatch Create ContactsA

Create multiple contacts in a single API call (max 50).

Each item is a contact object with optional fields: name, first_name, last_name, responsible_user_id, custom_fields_values. Returns per-item results including both successes and failures.

Inputs: input (required). Returns: object

batch_create_leadsBatch Create LeadsA

Create multiple leads in a single API call (max 50).

Each item is a lead object with optional fields: name, price, status_id, pipeline_id, responsible_user_id, custom_fields_values. Returns per-item results including both successes and failures.

Inputs: input (required). Returns: object

batch_update_leadsBatch Update LeadsA

Update multiple leads in a single API call (max 50).

Each item must include an 'id' field plus fields to update: name, price, status_id, pipeline_id, responsible_user_id, custom_fields_values. Returns per-item results including both successes and failures.

Inputs: input (required). Returns: object

companies_createCompanies CreateC

Create a new company.

Inputs: input (required). Returns: object

companies_getCompanies GetB

Get a single company by ID.

Use with_related to embed related entities.

Inputs: input (required). Returns: object

companies_updateCompanies UpdateC

Update an existing company by ID.

Inputs: input (required). Returns: object

contacts_createContacts CreateC

Create a new contact.

Inputs: input (required). Returns: object

contacts_getContacts GetB

Get a single contact by ID.

Use with_related to embed related entities.

Inputs: input (required). Returns: object

contacts_updateContacts UpdateC

Update an existing contact by ID.

Inputs: input (required). Returns: object

leads_createLeads CreateC

Create a new lead.

Inputs: input (required). Returns: object

leads_create_complexLeads Create ComplexA

Create a lead with embedded contact and company in one atomic call (FR-20, C-4).

Posts to /api/v4/leads/complex for atomic creation. Constraints enforced via Pydantic validation: max 1 contact, max 1 company, max 40 custom fields per entity.

Inputs: input (required). Returns: object

leads_getLeads GetB

Get a single lead by ID.

Use with_related to embed contacts, companies, or catalog_elements.

Inputs: input (required). Returns: object

leads_listLeads ListC

List leads with optional filters and pagination.

Supports filtering by responsible_user_id, status_id, pipeline_id, created_at/updated_at/closed_at date ranges, and search query. Use with_related to embed contacts, companies, or catalog_elements.

Inputs: input (required). Returns: object

leads_updateLeads UpdateC

Update an existing lead by ID.

Inputs: input (required). Returns: object

notes_createNotes CreateC

Create a note on an entity (lead, contact, company, or customer).

Supports different note types: common, call_in, call_out, etc. Use params for type-specific parameters.

Inputs: input (required). Returns: object

notes_listNotes ListA

List notes for an entity with optional note_type filter and pagination.

Inputs: input (required). Returns: object

pipelines_getPipelines GetA

Get a single pipeline by ID, including its statuses.

Inputs: input (required). Returns: object

pipelines_listPipelines ListC

List all pipelines in the account.

Inputs: input (required). Returns: object

pipelines_list_statusesPipelines List StatusesA

List all statuses (stages) within a pipeline.

Inputs: input (required). Returns: object

tasks_createTasks CreateC

Create a new task.

Optionally link to an entity via entity_id and entity_type.

Inputs: input (required). Returns: object

tasks_getTasks GetC

Get a single task by ID.

Inputs: input (required). Returns: object

tasks_listTasks ListB

List tasks with optional filters and pagination.

Supports filtering by entity_type, entity_id, responsible_user_id, and completion status.

Inputs: input (required). Returns: object

tasks_updateTasks UpdateC

Update an existing task by ID.

Inputs: input (required). Returns: object

unsorted_acceptUnsorted AcceptB

Accept an unsorted lead into a pipeline.

Moves the unsorted lead identified by uid into the specified pipeline and status. Optionally assigns to a specific user.

Inputs: input (required). Returns: object

unsorted_listUnsorted ListB

List unsorted (incoming) leads with pagination.

Returns leads from the unsorted inbox that have not yet been accepted into a pipeline or rejected.

Inputs: input (required). Returns: object

unsorted_rejectUnsorted RejectB

Reject (decline) an unsorted lead.

Removes the unsorted lead identified by uid from the inbox. Uses DELETE method on the decline endpoint.

Inputs: input (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 39 tools

    Disambiguation4/5

    Most tools are clearly separated by resource and action (leads, contacts, companies, tasks, notes, pipelines, analytics). A few boundaries are slightly fuzzy, especially leads_create vs. leads_create_complex vs. batch_create_leads, but the descriptions make their intended use distinguishable.

    Naming Consistency5/5

    Tool names follow a consistent snake_case resource_action pattern throughout, such as leads_list, leads_get, leads_create, companies_search, and tasks_update. Minor variations like batch_create_leads and leads_create_complex still fit the same predictable naming style.

    Tool Count2/5

    With 39 tools, the surface is quite large and exceeds the typical well-scoped range, making discovery and selection harder for an agent. The breadth reflects amoCRM's domain, but many CRUD and batch variants could be consolidated or scoped more tightly.

    Completeness3/5

    The server covers core CRM workflows across leads, contacts, companies, tasks, notes, pipelines, unsorted items, associations, and analytics. However, lifecycle coverage is incomplete: delete operations are absent for major entities, and notes/pipelines have limited write operations.

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that provides 36 tools for interacting with the amoCRM (Kommo) API v4, covering leads, contacts, companies, and tasks. It supports full entity lifecycles, account analytics, and bulk operations with integrated OAuth 2.0 and rate limiting.
      2
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Minimal MCP server for integrating with amoCRM (API v4): manage deals, contacts, notes, and OAuth2 authentication.
      12
      -
    • A
      license
      C
      quality
      D
      maintenance
      Enables AI agents to manage Kommo CRM (formerly AmoCRM) entities including leads, contacts, companies, tasks, notes, pipelines, and products through natural language commands via the Model Context Protocol.
      39
      16 npm
      1
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Self-hosted MCP server that connects AI assistants to Kommo CRM (API v4), enabling real-time CRM actions such as creating/managing leads, tasks, notes, and more through 29 tools.
      29
      1
      MIT