> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up Kommo in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/kommo
Last updated: 2026-11-24

Share Kommo with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or long-lived token sign-in, 28 tools (16 read-only).

---

To give your team Kommo in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Kommo integration in a Metorial portal, and each person signs in to Kommo with their own account. Agents can manage sales leads, contacts, companies, and pipelines in a messenger-based CRM. The integration has 28 tools, 16 read-only, 11 write and 1 destructive, plus 4 triggers.

**What you will learn**

- How an admin shares Kommo in a portal and how each person connects
- The 2 OAuth scopes Kommo can request, and what each one allows
- How to keep the 16 read-only tools and reject the other 12

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with Kommo for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **OAuth 2.0** (default) | OAuth | Signs in to Kommo after entering `subdomain` |
| **Long-lived Token** | API token | `token` and `subdomain` |

The portal and `metorial setup` use **OAuth 2.0** unless someone picks another method.

### OAuth 2.0

Before the sign-in, setup asks for:

- `subdomain`: Your Kommo account subdomain (e.g., "mycompany" from mycompany.kommo.com)

People sign in to Kommo and approve the scopes you allow. The integration can request:

| Scope | Name | What it allows |
| --- | --- | --- |
| `crm` | CRM | Access to leads, contacts, companies, pipelines, tasks, and other CRM data |
| `notifications` | Notifications | Access to manage webhooks and notifications |

### Long-lived Token

To connect, a person enters these values:

- `token`: Your Kommo long-lived API token
- `subdomain`: Your Kommo account subdomain (e.g., "mycompany" from mycompany.kommo.com)

### Setup settings

Whichever method you pick, setup also asks for:

- `subdomain`: Your Kommo account subdomain (e.g., "mycompany" from mycompany.kommo.com)

## Use your own Kommo OAuth app

With your own OAuth app, people see your company's name on the Kommo consent screen, and the client ID and secret belong to you.

1. **Start the credentials in Metorial**

   In the dashboard, select **Settings**, then **Organization Settings**. Under **Integrations and MCP**, select **Provider Auth**, then **Create Auth Credentials**. Choose Kommo and copy the **Redirect URI**.

2. **Register the app with Kommo**

   Create an OAuth app or client in Kommo and add the redirect URI from Metorial as its redirect or callback URL.

3. **Finish in Metorial**

   Copy the app's client ID and client secret. Back in Metorial, enter a **Name**, the **Client ID** and the **Client Secret**, review **Scopes**, and select **Create**. Then pick these credentials for the Kommo integration.

## Admin: share Kommo in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose Kommo. Under **Auth Method**, keep **OAuth 2.0** or pick another. For how members connect, choose **Each person connects**, so everyone signs in to Kommo as themselves.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from Kommo.

4. **Choose who gets it**

   Add the access groups that should see Kommo. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user Kommo integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search kommo
```

## Employee: connect Kommo

### In the portal

1. **Open Kommo in the catalog**

   Sign in to your portal and open Kommo. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A Kommo sign-in tab opens. Sign in and approve the permissions listed.

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search kommo
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **OAuth 2.0**. To connect with **Long-lived Token** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your Kommo connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list kommo
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 16 read-only tools, such as `get_lead` and `get_task`, and lose the 11 write tools, such as `add_note` or `create_lead`, and the destructive tool `manage_incoming_lead`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list kommo
metorial tools <integration-id>
metorial call <integration-id> get_account -d '{}'
```

`metorial tools` lists the 28 tools, minus any you rejected. `get_account` takes no input. It gets Kommo account information including account name, subdomain, current user, currency, and configured task types and user groups.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (16)

- `get_contact`: Retrieve a single contact by its ID. Needs `contactId`.
- `list_contacts`: Search and list contacts in Kommo.
- `get_company`: Retrieve a single company by its ID. Needs `companyId`.
- `list_notes`: List notes attached to a lead, contact, or company. Needs `entityType` and `entityId`.
- `list_custom_fields`: List custom fields for leads, contacts, or companies. Needs `entityType`.
- `list_pipelines`: List all sales pipelines and their stages.
- `list_leads`: Search and list sales leads in Kommo.
- `get_lead`: Retrieve a single lead by its ID. Needs `leadId`.
- `list_companies`: Search and list companies in Kommo.
- `get_account`: Get Kommo account information including account name, subdomain, current user, currency, and configured task types and user groups.
- `list_users`: List account users or get a specific user by ID.
- `list_tasks`: Search and list tasks in Kommo.
- `list_events`: List events (audit log) from the Kommo account.
- `list_incoming_leads`: List incoming leads awaiting processing.
- `get_task`: Get a task by ID, including its deadline, responsible user, linked entity, completion state, and result.
- `list_loss_reasons`: List the account’s lead loss reasons.

### Write tools (11)

- `update_contact`: Update an existing contact. Needs `contactId`.
- `add_note`: Add a note to a lead, contact, or company. Needs `entityType`, `entityId`, `noteType` and `noteParams`.
- `create_contact`: Create a new contact in Kommo.
- `create_task`: Create a new task in Kommo. Needs `text` and `completeTill`.
- `update_lead`: Update an existing lead. Needs `leadId`.
- `manage_tags`: List existing tags or create new tags for leads, contacts, or companies. Needs `action` and `entityType`.
- `create_company`: Create a new company in Kommo. Needs `name`.
- `create_lead`: Create a new sales lead in Kommo. Needs `name`.
- `update_task`: Update an existing task. Needs `taskId`.
- `manage_entity_links`: List, create, or remove links between entities. Needs `action`, `entityType` and `entityId`.
- `update_company`: Update an existing company. Needs `companyId`.

### Destructive tools (1)

- `manage_incoming_lead`: Accept an incoming lead into the sales pipeline or decline it.

## Triggers

Kommo has 4 triggers, which fire on events in Kommo:

- `contact_events`: Triggers when a contact is added, updated, deleted, restored, changes responsible user, or receives a note.
- `lead_events`: Triggers when a lead is added, updated, deleted, restored, changes status, changes responsible user, or receives a note.
- `company_events`: Triggers when a company is added, updated, deleted, restored, changes responsible user, or receives a note.
- `task_events`: Triggers when a task is added, updated, deleted, or changes responsible user.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use Kommo there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [Kommo on metorial.com](https://metorial.com/integrations/kommo): the integration overview