iiko-mcp
An MCP server for debugging iikoTransport API requests, enabling interactive calls to iiko endpoints with your own credentials.
README
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-клиенте.
Креды
Получаются один раз:
- Зарегистрируй приложение на портале разработчика iiko — https://public-api.iikoweb.ru/portal.
Получишь
appIdи одноразовыйclientSecret. - В iikoWeb → Интеграции → API-ключи сгенерируй API-ключ (
apiKey).
| Переменная окружения | Значение |
|---|---|
IIKO_API_LOGIN |
apiKey из iikoWeb |
IIKO_APP_ID |
appId с портала разработчика |
IIKO_CLIENT_SECRET |
clientSecret с портала (показывается один раз) |
IIKO_BASE_URL |
необязательно, по умолчанию https://api-ru.iiko.services |
IIKO_TIMEOUT_MS |
необязательно, по умолчанию 30000 |
Есть два способа передать креды:
- через MCP-клиент — в блоке
envконфига (примеры ниже); - через
.env-файл — скопируй.env.exampleв.env, заполни и запускайnode --env-file=.env dist/index.js.
.env в .gitignore — секреты в репозиторий не попадут.
Инструменты
| Инструмент | Назначение |
|---|---|
iiko_request |
Универсальный: любой метод + путь + тело, авто-авторизация → статус, correlationId, тело |
iiko_access_token |
Получить/обновить токен (для отладки авторизации) |
iiko_organizations |
POST /api/1/organizations |
iiko_nomenclature |
POST /api/1/nomenclature |
iiko_stop_lists |
POST /api/1/stop_lists |
iiko_deliveries_by_id |
POST /api/1/deliveries/by_id |
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 --watch
PR и issue приветствуются.
Лицензия
MIT © steamn
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
Neon Database
MCP server for interacting with Neon Management API and databases
E2B
Using MCP to run code via e2b.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.