Skip to main content
Glama
veterinar

retailcrm-mcp

by veterinar

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
HOSTNoHTTP server bind host (default 127.0.0.1, --http mode only)127.0.0.1
PORTNoHTTP server bind port (default 3000, --http mode only)3000
RETAILCRM_URLNoFallback for RETAILCRM_DOMAIN (full URL).
RETAILCRM_DOMAINNoYour RetailCRM domain (e.g. yourstore.retailcrm.ru)
RETAILCRM_API_KEYYesAPI key (sent via X-API-KEY header)
RETAILCRM_PHP_BINNoPHP executable for local (non-Docker) path (default php)php
RETAILCRM_READONLYNoSet to '1' to expose only read tools
RETAILCRM_PHP_BRIDGENoPath to bin/retailcrm-api.php (set automatically in Docker)
RETAILCRM_RATE_LIMITNoClient-side requests/second cap
RETAILCRM_DNS_PROTECTIONNoSet to 'off' to disable DNS-rebinding protection
RETAILCRM_HTTP_ALLOWED_HOSTSNoComma-separated allowed Host values

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
prompts
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list_orders

List orders with filters by status, customer name, number, and created-date range. Returns (summary): pagination + array of {id, number, status, total, customer, phone, itemCount, createdAt}. Use detail:'full' for line items/delivery/payments, raw:true for the untouched payload.

get_order

Get a single order by RetailCRM id or externalId. Returns a shaped order; detail:'full' adds items, delivery, payments, comments.

create_order

Create an order with line items and delivery. Link an existing customer via customer_id/customer_external_id, or pass first_name (+phone/email) to create one inline. Returns {success, id, order?}.

update_order

Update an order (status, customer, delivery, comments). Only the fields you pass are sent. Returns {success}.

orders_history

Order change history incl. status transitions; supports incremental sync via filter_since_id and a date window. Returns {history[], pagination}.

list_customers

List/search customers by name, email, phone, created-date. Returns (summary): pagination + array of {id, name, email, phone, ordersCount, totalSpent}. detail:'full' adds address/externalId/all phones.

get_customer

Get a single customer by id or externalId. Returns a shaped customer; detail:'full' adds address and contact details.

create_customer

Create a customer with name, contacts, address, optional externalId. Returns {success, id}.

update_customer

Edit an existing customer (name, email, phones, address) by id or externalId. Only the fields you pass are sent. Returns {success}.

merge_customers

Merge duplicate customers into a target; merged records are DELETED. Returns {success}.

customers_history

Customer field-change log for growth/churn signals and incremental sync. Returns {history[], pagination}.

list_products

List catalog products with filters by name, active, group, price range. Returns pagination + array of {id, name, article, active, url, groups, offers}.

list_product_groups

List product groups (category tree). Returns {productGroup[], pagination}.

store_inventories

Stock levels (and cost prices) per offer/warehouse. Use details:true for the per-store breakdown. Returns {offers[], pagination}.

order_payment_create

Record a payment against an order (amount, type, status, paid_at). Returns {success, id}.

order_payment_edit

Edit an existing order payment (amount/status/paid_at). Returns {success}.

order_payment_delete

Delete an order payment by id. Returns {success}.

customer_notes_list

List free-text notes attached to customers. Returns {notes[], pagination}.

customer_notes_create

Add a note to a customer (by id or externalId). Returns {success, id}.

customer_notes_delete

Delete a customer note by id. Returns {success}.

tasks_list

List follow-up tasks/reminders, filterable by status/performer/customer. Returns {tasks[], pagination}.

tasks_create

Create a task (text, due datetime, performer, linked order/customer). Returns {success, id}.

tasks_edit

Edit a task or mark it complete. Returns {success}.

list_segments

List customer segments (RFM/marketing cohorts). Returns {segments[], pagination}.

list_costs

List expense records (for margin/profit analytics) by date and cost group. Returns {costs[], pagination}.

create_cost

Create an expense record, optionally attributed to an order. Returns {success, id}.

files_list

List files attached to orders/customers. Returns {files[], pagination}.

files_get

Get a file's metadata by id. Returns {file}.

files_upload

Upload a file (UTF-8 text or base64 binary). Returns {success, file}.

list_statuses

All order statuses (codes, names, groups, ordering). Call before filtering/updating orders by status.

list_delivery_types

All delivery types with codes, names, default costs.

list_payment_types

All payment types with codes and names.

list_stores

All warehouses/stores (codes, names, types).

list_sites

All sites/stores the API key can act on — use the returned code as the site param on multi-site create/edit.

list_countries

Valid country ISO codes for addresses/delivery.

list_order_types

All order types (codes/names) — valid values for create_order's order_type.

list_order_methods

All order methods (acquisition channels).

get_orders_summary

Period-scoped order summary: exact totalCount for the date range plus revenue, average order value, and status distribution aggregated over up to max_pages×100 orders (partial:true if the window exceeds that).

get_customers_summary

Period-scoped new-customer count for a date range. Returns {period, newCustomers}.

Prompts

Interactive templates invoked by user choice

NameDescription
new-ordersShow all orders created today — quick daily overview.
customer-searchFind a customer by name, email, or phone.

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/veterinar/retailcrm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server