Skip to main content
Glama
SprutMonitor MCP Server

SprutMonitor MCP Server

Official
by extralabs

MCP-сервер СпрутМонитор

🗂️ СпрутМонитор собирает о работе компании очень много данных: время прихода и ухода, активность в программах и на сайтах, переписку в почте и мессенджерах, работу с файлами, печать, подключение флешек, срабатывания правил DLP. Всё это доступно в отчётах. Но чтобы ответить на конкретный вопрос, руководителю или специалисту по безопасности обычно приходится открыть нужный раздел, выставить фильтры, выгрузить таблицу и сопоставить цифры вручную. Если вопрос нестандартный, например «кто из отдела продаж последние две недели уходит раньше и при этом копировал клиентскую базу на внешний носитель», на это уходит много времени.

💬 Эту задачу решает MCP (Model Context Protocol). Это открытый протокол, через который языковая модель обращается к внешним системам напрямую, а не через скриншоты или пересказ пользователя. MCP-сервер описывает набор доступных инструментов, а ИИ-ассистент сам выбирает, какие из них вызвать, чтобы ответить на запрос. MCP-сервер СпрутМонитор переводит обычную речь в запросы к системе. Вы задаёте вопрос так, как задали бы его коллеге, а модель получает нужные данные, сопоставляет их и выдаёт готовый вывод с отсылкой к конкретным событиям.

🔒 Важно понимать, с какими данными идёт работа. СпрутМонитор хранит сведения, которые относятся к персональным данным и коммерческой тайне, поэтому MCP-сервер не открывает к ним обходного доступа. Он работает через API системы с правами пользователя (основного или дополнительного), и видит только то, что ему разрешено. В локальной версии данные остаются на вашем сервере, а модель получает только ту выборку, которая нужна для конкретного ответа. Какой ИИ-клиент подключать и где он будет работать, решаете вы.

Пакет: sprutmonitor-mcp (uvx sprutmonitor-mcp или pip install sprutmonitor-mcp). Сервер ходит в облако сам, отдельного удалённого MCP нет. Код основан на пакете octowatch-mcp 0.5.1 (лицензия MIT, см. LICENSE).

Требования

  • Python 3.10+

  • Хост с MCP (Cursor, Claude Desktop, VS Code)

  • Путь к web-api серверу СпрутМонитор. Например: https://cloud.sprutmonitor.ru/v3 или http://192.168.1.8:82/MonitorServer/

Related MCP server: Datadog MCP Server

Быстрый старт

python -m venv .venv
# Windows: .venv\Scripts\activate
# macOS/Linux: source .venv/bin/activate
pip install -e .
sprutmonitor-mcp

Пример для Cursor (демо-вход):

{
  "mcpServers": {
    "sprutmonitor": {
      "command": "sprutmonitor-mcp",
      "env": {
        "SPRUT_API_BASE": "https://cloud.sprutmonitor.ru/v3",
        "SPRUT_EMAIL": "demo@sprutmonitor.ru",
        "SPRUT_PASSWORD": "demo"
      }
    }
  }
}

Готовые файлы: examples/cursor-mcp-pypi.json, examples/claude-desktop-pypi.json. Запуск из исходников без установки команды в PATH: examples/cursor-mcp.json (python -m sprutmonitor_mcp и свой cwd). Шаги по хостам: docs/hosts.md.

После перезапуска хоста: «Кто я в СпрутМонитор?» или «Риски за последнюю неделю».

Свой вход и локальная установка

Режим

Что задать

Демо

demo@sprutmonitor.ru / demo

Свой кабинет

Ваш логин и пароль от аккаунта СпрутМонитор app.sprutmonitor.ru или логин и пароль дополнительного пользователя (вкладка Настройки — Доступ)

Локальный сервер

SPRUT_API_BASE = адрес web-api сервера СпрутМонитор, со схемой и префиксом (например https://host:port/MonitorServer)

Переменная

Смысл

SPRUT_EMAIL

Логин аккаунта

SPRUT_PASSWORD

Пароль

SPRUT_API_BASE

Адрес Web-api сервера СпрутМонитор, в т.ч. облако

Те же данные можно положить в .env рядом с рабочим каталогом процесса. Образец: .env.example. Проверка: инструмент sprutmonitor_whoami. Сверьте ответ с кабинетом.

Примеры вопросов

  • Какие риски за последний день?

  • Кто дольше всех простаивал вчера?

  • Продуктивность отдела за 7 дней

  • Найти слово в мониторинге за неделю

  • Список пользователей и групп

Простой — это get_idle_summary, а не list_anomalies. Формальные отклонения (опоздания, переработки) — list_anomalies. Поиск по ключевому слову — search_monitoring, а не цикл по list_monitoring.

Безопасность

Ответы tools могут содержать данные сотрудников: не выкладывайте их в открытые каналы. Подробнее: SECURITY.md.

Ограничения

  • Только чтение.

  • Нет скачивания бинарных скриншотов и видео, только метаданные потока.

Основные tools

Имена на латинице. Описание, по которому модель выбирает tool, в коде на английском.

Tool

Область

Заметка

sprutmonitor_whoami

Сессия

Хост и учётка, без пароля

list_users_groups

Дерево

Плоский список Items. Type 0 корень, 1 группа, 2 человек. Id человека — поле ID

list_risks

Риски

По умолчанию mode=summary

list_anomalies

Алерты

Формальные отклонения, не простой

get_idle_summary

Продуктивность

Ранг по InactiveTime

get_activity_summary

Активность

Топ программ и сайтов

get_timesheet

Табель

Факт против графика

get_productivity_summary

Продуктивность

Сводка по людям

list_reports

Отчёты

Расписание и очередь

Tools кабинета

Tool

Область

Заметка

get_analytics

Аналитика

view=overall|disciplina|activity|productivity

get_dashboard

Дашборд

Виджеты, крупные поля срезаются

get_chrono

Хронометраж

Лента

get_day_structure

Структура дня

list или detail

list_monitoring

Мониторинг

Один вид таблицы

search_monitoring

Поиск

filter_key по нескольким видам

get_activity_detail

Окно активности

Детализация

list_online

Онлайн

Только присутствие

list_stream_meta

Поток

Только метаданные

list_directory

Справочники

Пользователи, группы, компьютеры

get_user_info

Карточка

user_id — ID человека из дерева

get_account_readonly

Настройки Get*

Без записи и без PIN

list_api_coverage

Матрица

Что покрыто и что сознательно не входит

Аргументы и маршрутизация: docs/TOOLS.md. Протокол: docs/MCP.md.

Конфигурация

Переменная

По умолчанию

Смысл

SPRUT_DEFAULT_DAYS

1

Глубина, если нет дат и period

SPRUT_TOOLSETS

all

all, core или console (console включает core)

sprutmonitor-mcp
sprutmonitor-mcp --transport streamable-http

Второй вариант слушает http://127.0.0.1:8000/mcp.

Период: today, yesterday, last_7_days, last_30_days либо date_from / date_to. Дата без времени — целый день, date_to заканчивается в 23:59:59. В POST фильтр группы — NodeType=14, человека — NodeType=1.

Документация

Файл

Содержание

docs/README.md

Оглавление

docs/hosts.md

Установка в хост и свой вход

docs/TOOLS.md

Аргументы tools

docs/MCP.md

Протокол, ресурсы, промпты

docs/API.md

Что из API кабинета покрыто

docs/troubleshooting.md

Типовые сбои

Участие

См. CONTRIBUTING.md и CHANGELOG.md.

Лицензия

MIT — см. LICENSE.

Available Tools

22 tools
get_account_readonlyAccount read-onlyA
Read-only

Read-only account/profile Gets (SPA header contracts).

License routes are not on this cloud (HTTP 404) and are not called.

profiles: GetProfiles2 — ProfilesType 0|1|2; optional user_id + alias_type (1=user, 14=group); defaults AliasID/AliasType=-1. timetable/rules/profile_settings/computer_settings: require profile_id. computer_profiles: optional computer_guid (Guid header).

Inputs: source, compact, user_id, alias_type, +3 more. Returns: object

get_activity_detailActivity detailB
Read-only

Activity drill-down: ActivityWindow (needs activity_name) or CategoryWindow (needs category_guid).

Inputs: mode, period, compact, date_to, +6 more. Returns: object

get_activity_summaryActivity summaryC
Read-only

Top apps and sites by ActiveTime (POST /api/Activity/Overall2).

Inputs: raw, top_n, period, date_to, +3 more. Returns: object

get_analyticsGet analyticsC
Read-only

Analytics rollups: view=overall|disciplina|activity|productivity.

Inputs: view, period, compact, date_to, +3 more. Returns: object

get_chronoChronometryC
Read-only

Chronometry timeline (POST /api/Chrono/Overall2).

Inputs: limit, offset, period, compact, +5 more. Returns: object

get_dashboardGet dashboard widgetC
Read-only

Dashboard widgets (metadata only; screenshot blobs stripped when compact).

Inputs: period, widget, compact, date_to, +4 more. Returns: object

get_day_structureDay structureB
Read-only

Day structure: mode=list (DayStructureList) or detail (GetDayStructure).

detail requires user_id. Filters match console: ProductivityFilter 0–4, ActivityTypeFilter 0–2 (defaults 0).

Inputs: mode, period, compact, date_to, +5 more. Returns: object

get_idle_summaryIdle time summaryA
Read-only

Rank users by inactive (idle) time from Productivity/Overall3.

Use for: 'who was idle longest?', 'idle > N hours', InactiveTime totals. Do NOT use list_anomalies for idle — Alerts are formal deviations only.

Inputs: period, date_to, user_id, group_id, +2 more. Returns: object

get_productivity_summaryProductivity summaryC
Read-only

Per-user productivity rollup (Overall3 + stats + Analytics metrics).

Inputs: raw, period, date_to, user_id, +2 more. Returns: object

get_timesheetTimesheetC
Read-only

Timesheet / attendance summary (POST /api/TimeSheet/Overall2).

Inputs: raw, period, date_to, user_id, +2 more. Returns: object

get_user_infoGet user infoB
Read-only

User/computer detail reads (SPA GET headers).

user_data / tooltip / group: need user_id (AliasID). group = group path for that user (not load-by-GroupID). computer / users_from_computer: need computer_guid (ComputerGuid).

Inputs: period, source, compact, date_to, +3 more. Returns: object

list_anomaliesList formal alertsA
Read-only

List formal Alerts / deviations (POST /api/Alerts/Overall2).

Use for: lateness, overtime, unusual app-share, timetable-fired alerts. Do NOT use for idle/inactive duration — that is get_idle_summary (InactiveTime). Do NOT use for DLP keyword/USB policy hits — that is list_risks.

Inputs: limit, offset, period, compact, +5 more. Returns: object

list_api_coverageAPI coverage matrixA
Read-only

Static gap matrix: which console APIs are covered vs intentional out-of-scope.

Inputs: no named parameters. Returns: object

list_directoryList directoryA
Read-only

Directory reads: users/groups tree, users, groups, computers, additional operators.

users_groups is session-cached (~5 min); pass refresh=true to force reload.

Inputs: source, refresh. Returns: object

list_monitoringList monitoringA
Read-only

Single Monitoring list (Sites, Apps, Screens, Keystrokes, Mail, …).

For keyword search across many Monitoring kinds (console Tools → Search), use search_monitoring(filter_key=…) instead of calling this 13–19 times.

Sensitive kinds return text truncated when compact=true. No binary media.

Inputs: kind (required), limit, offset, period, +7 more. Returns: object

list_onlineList online presenceC
Read-only

Online presence (POST /api/Live/Overall2). No webcam or live stream frames.

Inputs: period, compact, date_to, user_id, +2 more. Returns: object

list_reportsList reportsA
Read-only

List scheduled report mailing settings and background processing tasks.

Inputs: no named parameters. Returns: object

list_risksList DLP risksA
Read-only

List or summarize DLP/rule Risks for a period.

Use for: policy/keyword/USB/AI rule hits. Default mode=summary (by_user from Analytics/Overall; by_rule/by_day/sample from Risks/Overall2). Not for idle time (get_idle_summary) or timetable deviations (list_anomalies).

Inputs: mode, limit, offset, period, +6 more. Returns: object

list_stream_metaStream metadataA
Read-only

Desktop video metadata (SPA GET contracts; no DownloadVideo).

which_content: needs user_id; uses DateTo (or period end) as DateTime. videos: needs user_id + DateFrom/DateTo (UserID header). downloads: Bearer only (exported file list).

Inputs: period, source, compact, date_to, +2 more. Returns: object

list_users_groupsList users and groupsA
Read-only

List users and groups (GetUsersGroups2). Flat Items list. Type 0=root, 1=group, 2=user. Name is NameInner. There is no AliasID field.

For a user, pass Items.ID (Type=2) as user_id. Reports call that same number AliasID. POST filters use NodeType 14=group and NodeType 1=user. Tree Type is not NodeType. Cached ~5 min per MCP session; pass refresh=true to force reload.

Inputs: refresh. Returns: object

search_monitoringSearch monitoringA
Read-only

Console Tools → Search: parallel Monitoring fan-out with FilterKey.

Use for: 'find keyword X across activity' (sites/apps/keys/mail/files/…). Prefer this over calling list_monitoring many times. Not for Risks (list_risks), idle (get_idle_summary), or formal Alerts (list_anomalies). Does not search SearchQueries.

kinds: optional comma-separated subset (e.g. "Sites,Apps,Mail" or "sites,mail"). Default = all Tools Search sources.

Inputs: filter_key (required), kinds, offset, period, +6 more. Returns: object

sprutmonitor_whoamiWho am IA
Read-only

Show which SprutMonitor API host and account the MCP server is using (password never returned).

Inputs: no named parameters. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 22 tools

    Disambiguation3/5

    Descriptions go to great lengths to cross-reference (list_risks vs list_anomalies vs get_idle_summary; list_monitoring vs search_monitoring) and that helps a lot. However, real overlap persists: get_analytics with view=activity|productivity competes with get_activity_summary and get_productivity_summary, and list_directory (users/groups tree, users, groups) overlaps list_users_groups and get_user_info. More than one or two pairs could be misselected without reading the full text.

    Naming Consistency4/5

    Strong, predictable list_/get_/search_ + noun pattern across nearly all 22 tools (list_risks, get_idle_summary, search_monitoring). Minor deviations: sprutmonitor_whoami breaks the verb_noun form with a server prefix, and mode-switching tools like get_day_structure and get_account_readonly pack multiple operations under one name.

    Tool Count3/5

    22 tools is on the heavy side and several could be consolidated (list_users_groups/list_directory/get_user_info all read the same user-group domain; get_analytics overlaps the activity/productivity summaries). Each tool does map to a distinct backend endpoint, so it is defensible, but the surface is at the upper edge for a monitoring dashboard.

    Completeness4/5

    Read coverage is broad and explicit: activity, productivity, idle, timesheets, chrono, risks, alerts, monitoring search, streams, directory, and account data, with list_api_coverage documenting intentional out-of-scope gaps. Gaps exist around write/lifecycle operations (no create/edit of reports or rules, no video download or binary media), which appear deliberate for an agent-facing read server rather than accidental.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      C
      maintenance
      Enables MCP clients to interact with SentinelOne's cybersecurity platform for security analysis, threat investigation, and asset management through natural language queries. Provides read-only access to alerts, vulnerabilities, misconfigurations, and inventory data.
      33
      104
      MIT
    • F
      license
      B
      quality
      D
      maintenance
      Enables natural-language investigation of Datadog data including logs, metrics, monitors, traces, hosts, dashboards, events, and incidents, all through read-only API access.
      14
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables natural language interaction with Wazuh SIEM for alert querying, threat hunting, vulnerability scanning, and active response actions.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables security analysts to investigate Microsoft Entra ID security logs through natural language, exposing read-only tools for user context, sign-ins, risky users, risk detections, directory audits, and conditional access policies.
      6
      MIT