A production-ready connector for RetailCRM's API v5 that surfaces 15 tools across orders, customers, products, reference data, and analytics. You get full CRUD on orders and customers, product listing, warehouse and payment type lookups, plus summary stats for date ranges. Two prompt skills handle daily order reviews and quick customer searches. Built with retry logic for rate limits and server errors, 15-second timeouts, and supports both stdio and HTTP streaming modes. Useful if you're running a RetailCRM store and want Claude to handle order updates, customer merges, or pull sales reports without jumping into the admin panel.
Production-grade MCP server for RetailCRM e-commerce CRM. 39 tools + 2 prompt skills for managing orders, customers, products, inventory, payments, tasks, references, and analytics via API v5.
Read tools return a compact, shaped summary of only the fields an agent needs — not the full RetailCRM payload. Control verbosity per call:
| Param | Effect |
|---|---|
| (default) | detail:"summary" — essential fields + a pagination block |
detail:"full" | All shaped fields (line items, delivery, payments, address…) |
raw:true | The untouched RetailCRM response (for debugging) |
⚠️ v3 is a breaking change vs v2: default output is now the shaped summary instead of raw JSON. Pass
raw:trueto restore the old payload.
| Tool | Description |
|---|---|
list_orders | List orders by status, customer, number, date range |
get_order | Get one order by ID or externalId |
create_order | Create an order; link an existing customer (customer_id/customer_external_id) or create one inline |
update_order | Update status, customer, delivery, comments |
orders_history | Order change history incl. status transitions (incremental sync) |
| Tool | Description |
|---|---|
list_customers | Search customers by name, email, phone, date |
get_customer | Get one customer by ID or externalId |
create_customer | Create a customer |
update_customer | Edit an existing customer |
merge_customers | Merge duplicates (destructive) |
customers_history | Customer change log (growth/churn, incremental sync) |
| Tool | Description |
|---|---|
list_products | Catalog products by name, group, active, price |
list_product_groups | Product category tree |
store_inventories | Stock levels & cost prices per offer/warehouse |
| Tool | Description |
|---|---|
order_payment_create | Record a payment on an order |
order_payment_edit | Edit a payment |
order_payment_delete | Delete a payment (destructive) |
| Tool | Description |
|---|---|
customer_notes_list / customer_notes_create / customer_notes_delete | Free-text customer notes |
tasks_list / tasks_create / tasks_edit | Follow-up tasks/reminders |
| Tool | Description |
|---|---|
list_segments | Customer segments (RFM/marketing cohorts) |
list_costs / create_cost | Expense records for margin analytics |
| Tool | Description |
|---|---|
files_list / files_get / files_upload | Attach & retrieve files (raw octet-stream upload) |
| Tool | Description |
|---|---|
list_statuses / list_delivery_types / list_payment_types / list_stores | Order/delivery/payment/store reference data |
list_sites | Sites the API key can act on (fill the site param) |
list_countries / list_order_types / list_order_methods | Address & order reference data |
| Tool | Description |
|---|---|
get_orders_summary | Period-scoped order stats: exact count + revenue, AOV, status distribution |
get_customers_summary | New-customer count for a date range |
| Skill | Description |
|---|---|
new-orders | Quick daily overview of today's orders |
customer-search | Find a customer by name, email, or phone |
site code on create/edit tools (see list_sites).yourstore part of yourstore.retailcrm.ru).| Variable | Required | Description |
|---|---|---|
RETAILCRM_DOMAIN | Yes | Your RetailCRM domain (e.g. yourstore.retailcrm.ru) |
RETAILCRM_API_KEY | Yes | API key (sent via the X-API-KEY header) |
RETAILCRM_READONLY | No | 1 to expose only read tools (hide create/update/merge/delete) |
RETAILCRM_RATE_LIMIT | No | Client-side requests/second cap (RetailCRM allows ~10/s) |
PORT / HOST | No | HTTP server bind (default 3000 / 127.0.0.1, --http mode only) |
RETAILCRM_HTTP_ALLOWED_HOSTS | No | Comma-separated allowed Host values for DNS-rebinding protection |
RETAILCRM_DNS_PROTECTION | No | off to disable DNS-rebinding protection (HTTP mode) |
RETAILCRM_URLis still accepted as a fallback forRETAILCRM_DOMAIN.
{
"mcpServers": {
"retailcrm": {
"command": "npx",
"args": ["-y", "@theyahia/retailcrm-mcp"],
"env": {
"RETAILCRM_DOMAIN": "yourstore.retailcrm.ru",
"RETAILCRM_API_KEY": "your-api-key"
}
}
}
}
Run as an HTTP server instead of stdio:
RETAILCRM_DOMAIN=yourstore.retailcrm.ru \
RETAILCRM_API_KEY=your-key \
npx @theyahia/retailcrm-mcp --http
POST /mcp — MCP Streamable HTTP endpoint (stateless: a fresh server is created per request)GET /health — health check (JSON with version, tool count)GET/DELETE /mcp — 405 (not used in stateless mode)127.0.0.1:3000. DNS-rebinding protection is on by default for local binds.npx @smithery/cli install @theyahia/retailcrm-mcp
1. Daily order overview: "Show me all orders created today with status 'new'. Summarize the total count and revenue."
2. Customer lookup and order history: "Find the customer with email anna@example.com. Show their full profile and recent orders."
3. Stock check: "Is the product with externalId SKU-42 in stock, and in which warehouse?"
RetailCRM does not support API-created webhooks. Use Triggers in the admin panel (Settings > Triggers) to send HTTP requests to external endpoints on order/customer events.
isError: true, so the agent can self-correct (e.g. retry with by:"externalId").npm install
npm test # vitest (mock-based; no live API key needed)
npm run lint # eslint
npm run typecheck # tsc --noEmit
npm run dev # stdio dev mode (tsx)
npm run build # clean + compile to dist/
MIT
RETAILCRM_URL*secretAPI key for the service