
Диадок MCP (RU) — ЭДО, документы, контрагенты
io.github.ilyautovPublished by GitHub account ilyautovv0.3.0Updated Oct 24, 2026
API Диадока в ИИ-ассистенте: документы ЭДО, контрагенты, подписание, МЧД
Overview
Local MCP server that lets an AI assistant work with Diadoc e-document exchange: documents, counterparties, signing, machine-readable powers of attorney and XML
- What you can do
- Search, describe and call Diadoc API methods by name, covering 114 endpoints grouped by section (documents, counterparties, employees, messages, organizations, powers of attorney, signing, XML, events, print forms, document shelf, workflow). Read incoming and outgoing documents, their statuses and available actions. Look up counterparties by INN and KPP and check whether they are connected to e-document exchange. Download print forms and generate or parse XML. Perform write and irreversible operations after confirmation.
- When to use it
- Useful when you work in Diadoc and want an assistant to review incoming documents that need action, summarize document flow with a counterparty over a period, check counterparty registration, or fetch print forms for accounting.
- Requirements
- Runs locally via uvx (PyPI package diadoc-mcp-ru) or as a Claude Desktop .mcpb file; needs Python 3.10 or newer. Requires a Diadoc application identifier in DIADOC_CLIENT_ID, obtained from Kontur (a license for production, a test environment for trials), and a user token in DIADOC_TOKEN from the Authenticate method. Network access to the Diadoc API.
Installation
In SourceWeft
- Open Диадок MCP (RU) — ЭДО, документы, контрагенты in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
diadoc-mcp-ru
API Диадока для ИИ-ассистентов: входящие и исходящие документы, статусы документооборота, контрагенты и приглашения к ЭДО, подписание, МЧД, печатные формы.
[PyPI] [CI] [License: MIT] [Методов] [Сайт] [Звёзды]
[Install in VS Code] [Install in Cursor]
Каталог собран из первоисточника (документация developer.kontur.ru/doc/diadoc-api) и лежит в репозитории как
diadoc_mcp/endpoints.yaml: 114 методов, из них 78 на чтение,
29 на запись и 7 необратимых. Сервер исполняет ровно этот файл,
поэтому таблица ниже не может разойтись с кодом.
Установка
Два пути, выбирайте по тому, есть ли у вас терминал.
Без терминала: файл .mcpb
Скачайте diadoc-mcp-ru-vX.Y.Z.mcpb со страницы релизов
и откройте двойным щелчком. Claude Desktop поставит сервер сам и спросит ключи
в отдельном окне, в конфиг лезть не придётся. Нужен Python 3.10 или новее:
зависимости сервер доставит себе при первом запуске.
В терминале
Claude Desktop, claude_desktop_config.json:
Ключи
Идентификатор приложения запрашивается у Контура письмом, для продуктива нужна лицензия, для проб есть тестовый контур. Токен пользователя выдаёт метод Authenticate по логину и паролю или по сертификату.
Ключи можно не держать в окружении: сервер умеет кабинеты и кладёт их в
~/.ru-mcp/cabinets.json с правами 600, вне репозитория.
Карта методов
Как это выглядит в чате
Вы: входящие документы
Три инструмента вместо 114 функций: агент ищет метод словами, читает его карточку и вызывает. Запись и необратимое спрашивают подтверждение.
Что обычно просят:
- Показать входящие документы, по которым нужно действие.
- Свести документооборот с контрагентом за период.
- Найти контрагента по ИНН и КПП и проверить, подключён ли он к ЭДО.
- Скачать печатную форму документа для бухгалтерии.
Безопасность
Сервер работает на машине пользователя, ключи наружу не уходят. У методов три класса доступа: чтение идёт сразу, запись и необратимые действия требуют подтверждения. Заголовок авторизации не покидает домены сервиса даже при вызове произвольного пути.
Проверить установку
Печатает, сколько методов загрузилось, найдены ли ключи и откуда. Секреты не
показывает. С --live делает один дешёвый реальный вызов на чтение.
Родня
Ядро вынесено в schema-mcp-core. Соседние серверы: vk-mcp-ru, sbis-mcp-ru, chestny-znak-mcp-ru. Маркетплейсы живут отдельно: marketplaces-mcp-ru.
MIT. Автор Илья Утов.
Все проекты одним списком, разобранные по назначению: ilyautov.github.io.
Privacy Policy
diadoc-mcp-ru не собирает и не передаёт ваши данные: ключи лежат локально в
~/.ru-mcp/cabinets.json, запросы идут только в API Диадок (Контур), телеметрии нет.
Полный текст: PRIVACY_POLICY.md.
Source: README.md at commit c959d40
Tools
0Version history
1- v0.3.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts