MoySklad MCP Server
MoySklad MCP Server lets AI agents manage a MoySklad account end-to-end via 60 tools covering products, stock, orders, warehouse operations, finances, and reports.
Search, create, and update products/services; manage sale/buy/min prices (rubles <-> kopecks handled automatically)
Query stock levels, reserves, in-transit quantities, and per-warehouse breakdowns
Find and create counterparties (customers/suppliers) by name, INN, or phone
Manage the full order lifecycle: customer orders, purchase orders, shipments (demands), supplies, and returns
Create warehouse documents: moves, enters, losses, inventories
Handle finances: incoming/outgoing payments, cash receipts/expenses, and invoices
Generate reports: profit, sales, turnover, money balances, and dashboard metrics
Access reference data: stores, organizations, employees, currencies, product folders, price types, metadata
Manage webhooks and audit logs
Use generic document tools to list/retrieve any MoySklad entity not covered by dedicated tools
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MoySklad MCP Server Show me stock levels for all warehouses"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP-сервер для МойСклад — 60 инструментов для ИИ-агента: товары, склад, заказы, финансы
Если вы искали, как подключить МойСклад к Claude или другому ИИ-агенту, — этот сервер закрывает весь торгово-складской цикл через JSON API 1.2: каталог и цены, остатки по складам, контрагенты, заказы покупателей и поставщикам, отгрузки, приёмки, перемещения, инвентаризации, списания, возвраты, счета, платежи и касса, отчёты по прибыли и оборотам, аудит и вебхуки. Спрашиваете «сколько футболок свободно к продаже» или «какая маржа по каждому товару за август» — получаете таблицу с цифрами, а не выгрузку в Excel. Цены во всех инструментах в рублях (перевод в копейки, которых требует API МойСклад, сервер делает сам), лимит запросов соблюдается автоматически.
Часть WWmcp — набора MCP-серверов для развивающихся рынков.
Быстрый старт
Claude Desktop
Добавьте в claude_desktop_config.json:
{
"mcpServers": {
"moysklad": {
"command": "npx",
"args": ["-y", "@theyahia/moysklad-mcp"],
"env": {
"MOYSKLAD_TOKEN": "your-bearer-token"
}
}
}
}Чтобы использовать логин и пароль вместо токена, замените блок env на:
"env": { "MOYSKLAD_LOGIN": "you@example.com", "MOYSKLAD_PASSWORD": "your-password" }Claude Code
claude mcp add moysklad --env MOYSKLAD_TOKEN=your-bearer-token -- npx -y @theyahia/moysklad-mcpCursor / Windsurf
Добавьте в настройки MCP:
{
"moysklad": {
"command": "npx",
"args": ["-y", "@theyahia/moysklad-mcp"],
"env": { "MOYSKLAD_TOKEN": "your-bearer-token" }
}
}Related MCP server: fulfil-mcp
Авторизация
Переменная | Описание |
| Bearer-токен (предпочтительно) |
| HTTP Basic-авторизация |
Токен выдаётся в МоёмСкладе: Настройки → Пользователи → Токены доступа (также работает POST /security/token с Basic-авторизацией). Генерация нового токена отзывает предыдущий.
Нужные права: у пользователя или токена должен быть доступ к тем сущностям, с которыми вы работаете. Читающим инструментам нужны права просмотра, создающим и изменяющим — права редактирования соответствующего типа документов. Вебхуки и часть отчётов требуют платного тарифа МойСклад.
Цены
API МойСклад хранит деньги в копейках (1 рубль = 100 копеек). Сервер конвертирует автоматически:
На вход: передавайте цены и суммы в рублях (например,
1500.50)На выход: цены и суммы возвращаются в рублях
(Отчёт
get_dashboardпроксируется как есть, поэтому денежные значения в нём остаются в копейках.)
Если у товара есть цена продажи, МойСклад требует тип цены. Сервер сам подставляет тип цены по умолчанию из вашего аккаунта (берёт из list_price_types); чтобы выбрать конкретный, передайте price_type_href.
Инструменты (60)
Товары и каталог
Инструмент | Описание |
| Поиск товаров по названию или артикулу |
| Товар по UUID ( |
| Создать товар (тип цены подставляется автоматически) |
| Обновить цены продажи, закупки и минимальную |
| Сквозной поиск по товарам, модификациям, услугам и комплектам |
| Типы цен (первый — по умолчанию) |
| Поиск модификаций / комплектов / услуг |
| Создать услугу |
Остатки
Инструмент | Описание |
| Текущие остатки (количество, резерв, в пути) |
| Остатки в разрезе складов |
| Быстрый срез текущих остатков |
Контрагенты
Инструмент | Описание |
| Поиск по названию, ИНН или телефону |
| Полная карточка ( |
| Создать покупателя или поставщика |
Заказы и отгрузки
Инструмент | Описание |
| Жизненный цикл заказа покупателя |
| Заказы поставщикам |
| Отгрузка, привязанная к заказу и складу |
| Приёмка (поступление от поставщика) |
| Возвраты от покупателей и поставщикам |
Складские документы
Инструмент | Описание |
| Перемещение между складами |
| Оприходование |
| Списание |
| Инвентаризация |
Финансы
Инструмент | Описание |
| Входящие и исходящие банковские платежи |
| Приходные и расходные кассовые ордера |
| Счета покупателям и от поставщиков |
Отчёты
Инструмент | Описание |
| Прибыль по товарам (выручка, себестоимость, маржа) |
| Продажи по товарам (количество, выручка) |
| Показатели дашборда за день, неделю, месяц |
| Оборачиваемость товаров за период |
| Текущие остатки денег по счетам и кассам |
Справочники и аудит
Инструмент | Описание |
| Склады и юрлица |
| Справочные данные |
| Метаданные сущностей (статусы, атрибуты) — здесь берутся href статусов заказа |
| Журнал событий аккаунта и история одной сущности |
Вебхуки и универсальные инструменты
Инструмент | Описание |
| Управление вебхуками (CREATE/UPDATE/DELETE/PROCESSED) |
| Универсальные список и получение для любого типа сущностей, не покрытого выше |
HTTP-транспорт
HTTP_PORT=3000 npx @theyahia/moysklad-mcp
# или
npx @theyahia/moysklad-mcp --http 3000Эндпоинты: POST /mcp (JSON-RPC), GET /health (статус). CORS выключен по умолчанию — HTTP-эндпоинт действует от имени вашего токена МойСклад, поэтому задавайте MOYSKLAD_HTTP_CORS_ORIGIN только если доверенному браузерному origin это действительно нужно.
Конфигурация (переменные окружения)
Переменная | По умолчанию | Описание |
| — | Bearer-токен |
| — | Basic-авторизация |
|
| Сколько запросов разрешено в трёхсекундном окне |
|
| Максимум параллельных запросов (МойСклад допускает 5 на пользователя) |
| — | Разрешённый CORS-origin для HTTP-транспорта |
| — | Запустить транспорт Streamable HTTP на этом порту |
Ограничение частоты запросов
МойСклад считает «вес за 3 секунды» (≈45 единиц для токена решения, меньше для логина с паролем; отчёты get_stock и get_stock_by_store стоят по 5 единиц каждый). Встроенный лимитер — token bucket, который списывается по весу запроса, и по умолчанию он консервативен (MOYSKLAD_RATE_BUCKET=20), потому что API может временно отключить доступ после серии 429. Повторы на 429/5xx идут с задержкой и учитывают заголовок X-Lognex-Retry-After. С токеном решения корзину можно поднять ближе к 45.
Решение проблем
Симптом | Причина и что делать |
| Задайте |
| Токен недействителен или истёк, либо у пользователя нет прав на сущность. Новый токен отзывает старые. |
| Не хватает обязательного поля (например, исходящему платежу может требоваться статья расходов — передайте |
Много | Снизьте объём запросов или положитесь на встроенный лимитер; поднимайте |
| Среда выполнения не отправляет gzip — используйте Node ≥18 (его |
Вебхуки и часть отчётов не работают | Требуют платного тарифа МойСклад. |
E-commerce-стек
Сервис | MCP-сервер | Что делает |
МойСклад |
| Склад, товары, заказы |
СДЭК |
| Доставка, трекинг |
DaData |
| Проверка адресов |
ЮKassa |
| Платежи |
Демо-промпты
«Покажи все товары с низким остатком (меньше 10 штук) и их текущие цены»
«Создай заказ покупателя для контрагента „ООО Рога и Копыта“ на 50 штук „Widget Pro“ по 1500 рублей, потом сделай отгрузку с основного склада»
«Перемести 20 штук SKU LP15 с основного склада в магазин, затем подними отчёт по прибыли за этот месяц»
Разработка
npm install # зависимости + git-хуки (husky)
npm run build # tsc -> dist/
npm run lint # eslint
npm run typecheck # tsc --noEmit
npm test # vitest (требуется Node >=20)
npm run coverage # vitest с покрытиемОпубликованный рантайм поддерживает Node ≥18; тестовая оснастка требует Node ≥20.
Справочник API
Основан на JSON API 1.2 МойСклад.
Лицензия
MIT
Available Tools
60 toolscreate_cash_inB
Create a cash receipt order (приходный кассовый ордер). Amount in RUBLES.
Inputs: agent_href (required), sum_rubles (required), organization_href (required), description, +2 more.
create_cash_outB
Create a cash expense order (расходный кассовый ордер). Amount in RUBLES.
Inputs: agent_href (required), sum_rubles (required), organization_href (required), description, +1 more.
create_counterpartyB
Create a new counterparty. Set companyType to 'legal', 'entrepreneur', or 'individual'.
Inputs: name (required), inn, email, phone, +2 more.
create_customer_orderC
Create a customer order. Prices in RUBLES (converted to kopecks).
Inputs: positions (required), agent_href (required), organization_href (required), description.
create_demandA
Create a shipment (demand) to fulfill a customer order. Links to a warehouse.
Inputs: positions (required), agent_href (required), store_href (required), organization_href (required), +2 more.
create_enterC
Create a stock enter (оприходование) — add stock into a warehouse.
Inputs: positions (required), store_href (required), organization_href (required), description.
create_inventoryB
Create an inventory count (инвентаризация) for a warehouse.
Inputs: store_href (required), organization_href (required), positions, description.
create_invoice_inC
Create a supplier invoice (счёт поставщика). Prices in RUBLES.
Inputs: positions (required), agent_href (required), organization_href (required), description.
create_invoice_outB
Create a sales invoice (счёт покупателю). Prices in RUBLES.
Inputs: positions (required), agent_href (required), organization_href (required), description.
create_lossB
Create a stock write-off (списание) from a warehouse.
Inputs: positions (required), store_href (required), organization_href (required), description.
create_moveB
Create a stock transfer (move) between two warehouses.
Inputs: positions (required), organization_href (required), source_store_href (required), target_store_href (required), +1 more.
create_payment_inB
Create an incoming bank payment (входящий платёж). Amount in RUBLES.
Inputs: agent_href (required), sum_rubles (required), organization_href (required), description, +2 more.
create_payment_outB
Create an outgoing bank payment (исходящий платёж). Amount in RUBLES.
Inputs: agent_href (required), sum_rubles (required), organization_href (required), description, +1 more.
create_productB
Create a new product. Prices in RUBLES (converted to kopecks internally).
Inputs: name (required), vat, code, volume, +7 more.
create_purchase_orderB
Create a purchase order (заказ поставщику). Prices in RUBLES.
Inputs: positions (required), agent_href (required), organization_href (required), store_href, +1 more.
create_purchase_returnB
Create a purchase return (возврат поставщику). Prices in RUBLES.
Inputs: positions (required), agent_href (required), store_href (required), organization_href (required), +1 more.
create_sales_returnA
Create a sales return (возврат покупателя). Prices in RUBLES.
Inputs: positions (required), agent_href (required), store_href (required), organization_href (required), +1 more.
create_serviceC
Create a service. Prices in RUBLES.
Inputs: name (required), vat, code, description, +2 more.
create_supplyB
Create an incoming supply (purchase receipt). Prices in RUBLES.
Inputs: positions (required), agent_href (required), organization_href (required), store_href, +3 more.
create_webhookB
Register a new webhook for entity events (CREATE/UPDATE/DELETE/PROCESSED).
Inputs: url (required), action (required), entityType (required), diffType.
delete_webhookB
Delete a registered webhook by UUID.
Inputs: id (required).
get_auditA
Get the account audit/event log (who changed what, when).
Inputs: limit, offset, moment_to, moment_from.
get_counterpartiesC
Search counterparties (customers/suppliers) by name, INN, or phone.
Inputs: limit, offset, search, filter_inn, +1 more.
get_counterpartyA
Get full details of a counterparty by UUID.
Inputs: id (required), raw.
get_customer_orderA
Get a single customer order by UUID with expanded positions.
Inputs: id (required).
get_dashboardB
Get dashboard metrics (sales, orders, money) for a day/week/month. Money values are in kopecks.
Inputs: period.
get_documentA
Generic: get a single document of any MoySklad entity type by UUID (positions expanded).
Inputs: id (required), entity_type (required).
get_documentsA
Generic: list documents of any MoySklad entity type (fallback for entities without a dedicated tool).
Inputs: entity_type (required), limit, filter, offset, +1 more.
get_entersB
List stock enter (оприходование) documents.
Inputs: limit, offset, search.
get_entity_auditA
Get the change history of a single entity by type and UUID.
Inputs: id (required), entity_type (required).
get_inventoriesA
List inventory count (инвентаризация) documents.
Inputs: limit, offset, search.
get_invoices_outB
List sales invoices (счета покупателям).
Inputs: limit, offset, search.
get_lossesB
List stock write-off (списание) documents.
Inputs: limit, offset, search.
get_metadataA
Get metadata for an entity type (states, attributes, price types). Use to find order state hrefs for update_customer_order_status.
Inputs: entity_type (required).
get_money_reportA
Get current money balances by bank account and cash register. Balances in RUBLES.
Inputs: no named parameters.
get_movesB
List stock transfer (move) documents.
Inputs: limit, offset, search.
get_ordersC
Get customer orders with filtering and sorting. Sums in RUBLES.
Inputs: limit, order, expand, offset, +3 more.
get_productA
Get a single product by UUID. Prices returned in RUBLES.
Inputs: id (required), raw.
get_profit_reportA
Get profit report by product. Shows sales, costs, returns, profit, margin.
Inputs: limit, offset, moment_to, moment_from.
get_purchase_ordersB
List purchase orders (заказы поставщикам).
Inputs: limit, offset, search.
get_sales_reportC
Get sales report by product. Shows quantities sold and revenue.
Inputs: limit, offset, moment_to, moment_from.
get_stockC
Get current stock/inventory report. Shows quantities, reserves, and in-transit.
Inputs: limit, offset, search, group_by, +1 more.
get_stock_by_storeA
Get stock report broken down by warehouse/store. Shows how much of each product is in each store.
Inputs: limit, offset, search.
get_stock_currentA
Fast current stock report (assortment id -> stock), optionally for one warehouse.
Inputs: store_href.
get_turnoverB
Get product turnover (обороты) over a period: opening, income, outcome, closing. Sums in RUBLES.
Inputs: limit, offset, moment_to, moment_from.
list_currenciesA
List currencies with ISO codes and rates.
Inputs: limit, offset.
list_employeesB
List employees (for document owners/responsible persons).
Inputs: limit, offset.
list_organizationsA
List all organizations (your legal entities) with names, INN, and meta hrefs.
Inputs: limit, offset.
list_price_typesA
List the account's price types (the first is the default). Use a price type href when setting product prices.
Inputs: no named parameters.
list_product_foldersC
List product groups/folders.
Inputs: limit, offset.
list_storesB
List all warehouses/stores with names, addresses, and meta hrefs.
Inputs: limit, offset.
list_webhooksA
List all registered webhooks with URL, action, entity type, and status.
Inputs: limit, offset.
search_assortmentA
Unified search across products, variants, services and bundles. Returns name, type, price.
Inputs: limit, offset, search.
search_bundlesC
Search bundles (kits/sets).
Inputs: limit, offset, search.
search_productsA
Search products in MoySklad by name or article. Prices returned in RUBLES.
Inputs: limit, offset, search, filter_article.
search_servicesD
Search services.
Inputs: limit, offset, search.
search_variantsB
Search product variants (modifications).
Inputs: limit, offset, search.
update_customer_order_statusC
Change the status/state of a customer order.
Inputs: id (required), state_href (required).
update_pricesB
Update sale/buy/min prices for a product. Prices in RUBLES.
Inputs: id (required), buy_price_rubles, min_price_rubles, sale_price_rubles.
update_webhookB
Update a webhook (URL, action, entity type, enabled state).
Inputs: id (required), url, action, enabled, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 60 tools
Most tools have clearly distinct purposes, but there is some overlap among stock reports (get_stock, get_stock_by_store, get_stock_current) and among search tools (search_products, search_assortment, search_variants). The descriptions help resolve ambiguity, but an agent might still struggle to pick the right one in edge cases.
The naming mostly follows a consistent verb_noun pattern (search_*, get_*, create_*, update_*, list_*, delete_*). However, there is a mix of 'get' and 'list' for collection endpoints (get_orders vs list_invoices_out), and some verbs are more specific than others (update_prices, update_customer_order_status). Overall, the pattern is readable and predictable.
With 60 tools, this is far beyond the 25+ threshold for 'too many'. Even for an ERP-like system like MoySklad, the sheer number makes the toolset unwieldy and difficult for an agent to navigate efficiently. The scope is broad, but the count is excessive.
The toolset covers a wide range of MoySklad operations, including products, orders, stock, payments, webhooks, and reports. However, there are notable gaps: many entities only have create and read but lack update and delete (e.g., products, counterparties, payments). The generic get_documents/get_document partially compensate, but the missing CRUD operations create dead ends.
Maintenance
Related MCP Connectors
MCP server for SkuVault — products, inventory, sales, purchase orders and stock adjustments.
Unified MCP server for 70+ eCommerce platforms: products, orders, customers, and more.
MCP server for Getfly CRM — customers, opportunities, orders, tickets and tasks.
Hosted MCP server for OTTO Market, Kaufland and Mirakl sellers: orders, stock, listings and ads.
Related MCP Servers
- AlicenseBqualityCmaintenanceWildberries Seller API MCP server providing 15 tools for managing products, prices, stocks, orders, sales, warehouses, supplies, statistics, feedbacks, and ABC analysis with built-in rate limiting and 409 penalty protection.3016MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Fulfil.io ERP with 29 tools for inventory, orders, shipments, customers, purchasing, returns, warehouse operations, and analytics. Integrates with Claude Desktop and other MCP clients via Fulfil.io REST API v2.9 npmMIT
- AlicenseBqualityCmaintenanceProduction-grade MCP server for RetailCRM e-commerce CRM. Provides 39 tools and 2 prompt skills to manage orders, customers, products, inventory, payments, tasks, references, and analytics via API v5.3950 npm2MIT
- AlicenseCqualityBmaintenanceMCP server for the Wildberries Seller API: 202 tools for prices, promotions, ads, orders, supplies, reviews, finance and analytics. Multi-store, encrypted tokens, web dashboard and self-diagnostics; Docker with SSE or stdio.197529 PyPI9MIT