iiko-mcp
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., "@iiko-mcp What are my organizations in iiko?"
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.
iiko-mcp
MCP-сервер для ручной отладки запросов к iikoTransport API
(api-ru.iiko.services). Подключается к любому MCP-клиенту (Cursor, Claude
Desktop, Claude Code) и даёт инструменты, чтобы дёргать эндпоинты iiko и смотреть
сырые ответы — со своими кредами.
EN: An MCP server for debugging iikoTransport API requests. Bring your own credentials, plug it into any MCP client, and call iiko endpoints interactively.
Авторизация — v2 (POST /api/v2/access_token с apiKey/appId/clientSecret,
JWT на 1 час, кэшируется в памяти). Старый /api/1/access_token отключается iiko.
Быстрый старт
git clone https://github.com/steamn/iiko-mcp.git
cd iiko-mcp
npm install
npm run buildДальше — задать креды (см. ниже) и подключить в MCP-клиенте.
Related MCP server: mcp-server-apidebug
Креды
Получаются один раз:
Зарегистрируй приложение на портале разработчика iiko — https://public-api.iikoweb.ru/portal. Получишь
appIdи одноразовыйclientSecret.В iikoWeb → Интеграции → API-ключи сгенерируй API-ключ (
apiKey).
Переменная окружения | Значение |
|
|
|
|
|
|
| необязательно, по умолчанию |
| необязательно, по умолчанию |
Есть два способа передать креды:
через MCP-клиент — в блоке
envконфига (примеры ниже);через
.env-файл — скопируй.env.exampleв.env, заполни и запускайnode --env-file=.env dist/index.js.
.env в .gitignore — секреты в репозиторий не попадут.
Инструменты
Инструмент | Назначение |
| Универсальный: любой метод + путь + тело, авто-авторизация → статус, correlationId, тело |
| Получить/обновить токен (для отладки авторизации) |
|
|
|
|
|
|
|
|
iiko_request — главный: им можно вызвать любой эндпоинт из
документации iiko, даже если готового шортката нет.
Подключение
Cursor — .cursor/mcp.json
{
"mcpServers": {
"iiko": {
"command": "node",
"args": ["/absolute/path/to/iiko-mcp/dist/index.js"],
"env": {
"IIKO_API_LOGIN": "your-api-key",
"IIKO_APP_ID": "your-app-id",
"IIKO_CLIENT_SECRET": "your-client-secret"
}
}
}
}Claude Desktop — claude_desktop_config.json
Тот же блок mcpServers. После правки конфига перезапусти клиент — инструменты
iiko_* появятся в списке.
Безопасность
Никогда не коммить реальные
clientSecret/apiKey. Держи их в.env(он в.gitignore) или в конфиге MCP-клиента вне репозитория.Если секрет утёк — перевыпусти его на портале разработчика, старый отзовётся.
Разработка
npm run dev # tsc --watchPR и issue приветствуются.
Лицензия
MIT © steamn
Available Tools
6 toolsiiko_access_tokeniiko: получить токенA
Получить (или принудительно обновить) access_token v2. Полезно для отладки авторизации: показывает выданный JWT.
Inputs: force, apiLogin.
iiko_deliveries_by_idiiko: статус доставокC
Статус доставок по orderIds (POST /api/1/deliveries/by_id).
Inputs: orderIds (required), organizationId (required), apiLogin.
iiko_nomenclatureiiko: меню/номенклатураC
Меню организации (POST /api/1/nomenclature).
Inputs: organizationId (required), apiLogin.
iiko_organizationsiiko: организацииA
Список организаций (POST /api/1/organizations). Возвращает organizationId для остальных вызовов.
Inputs: apiLogin.
iiko_requestiiko: произвольный запросA
Универсальный отладочный вызов iiko API: любой метод и путь с автоматической v2-авторизацией. Возвращает HTTP-статус, correlationId и тело ответа. Пример: method=POST, path=/api/1/organizations, body={}.
Inputs: path (required), body, method, apiLogin.
iiko_stop_listsiiko: стоп-листыC
Стоп-листы по организациям (POST /api/1/stop_lists).
Inputs: organizationIds (required), apiLogin.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The tools are mostly distinct resources, but the universal iiko_request overlaps with every specific wrapper, creating potential confusion about which to use. Although iiko_request is clearly for debugging, an agent might still misselect it for a routine operation.
All tool names follow a consistent snake_case convention with the iiko_ prefix, and they all use noun-like resource names. The naming pattern is uniform and predictable across the set.
Six tools is a well-scoped number for an API integration server, covering core resources with a generic fallback. It is within the ideal 3-15 range and each tool earns its place.
The specialized tools cover the primary endpoints (organizations, nomenclature, stop lists, deliveries), and the iiko_request tool provides a catch-all for any other API operation. This ensures no functional gaps or dead ends.
Maintenance
Related MCP Connectors
MCP compatibility and transport verification server.
MCP compatibility and transport verification server.
MCP compatibility and transport verification server.
MCP compatibility and transport verification server.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server that provides tools for exploring and testing APIs through Swagger/OpenAPI documentation.5199 npm12MIT
- AlicenseAqualityDmaintenanceA standalone MCP server for API debugging, login authentication, API configuration management, and indexed API execution.5MIT
- AlicenseAqualityCmaintenanceAn MCP server that helps you build against the Partner Center REST API, providing scenario discovery, REST examples, authentication guidance, and error decoding without making live API calls.29112 npm2MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for making API calls with authentication support. Allows configuring multiple API endpoints and performing GET, POST, PUT, DELETE requests, including form data and file uploads.-