STATISTICA MCP
This MCP server lets an agent control STATISTICA 12 via COM to inspect state, manage .sta/.stw files, run statistical analyses, edit data, export reports, and execute custom SVB macros.
Check COM availability, STATISTICA version/path, and list all analysis modules.
Open .sta/.stw files, list sheets, describe spreadsheets, and read variable values.
Modify data: write variables, add/rename/delete variables, resize, set case names, sort, select cases, recode, set formulas, measurement levels, value labels.
Import/export data and save sheets as .sta/.stw/.csv/.xlsx.
Run descriptive statistics, frequency tables, Pearson correlations, t-tests, regression, ANOVA/GLM, cluster analysis, factor analysis/PCA, and normality tests.
Perform time-series operations: ARIMA, autocorrelation/partial autocorrelation, cross-correlation, spectral analysis, smoothing, exponential smoothing, differencing, seasonal decomposition, shifting, lagged correlation products, and fit lines.
Create and export STATISTICA graphs and screenshots/dialog panels to PNG/JPG/EMF/STG/PDF.
Run any STATISTICA analysis via run_analysis with step-based property sets, method calls, runs, results, and graph saves; introspect dialogs with describe_analysis.
Work in live attach mode against an already-open STATISTICA instance or open a persistent visible window.
Execute STATISTICA BASIC (SVB) macros against the active spreadsheet.
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., "@STATISTICA MCP open LAB3.sta, run descriptives on v9 and v10"
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.
STATISTICA MCP
MCP-сервер для полноценного управления STATISTICA 12 через её COM-интерфейс. Позволяет агенту (opencode, Claude Desktop и т.п.) работать с файлами .sta/.stw, редактировать данные, запускать собственные процедуры STATISTICA (базовая статистика, корреляция, t-тесты, регрессия, временные ряды и любые другие модули) и забирать результаты таблицами.
Ноль внешних зависимостей. Node.js реализует протокол MCP сам, PowerShell-worker обращается к COM. npm install не нужен.
Требования
Компонент | Версия | Проверено |
Windows | 10/11 | да |
Node.js | >= 18 | 24.19.0 |
STATISTICA 12 | любая | 12.5.192.7 (x64) |
PowerShell | 5.1 (системный) | да |
Интернет не требуется.
Проверить, что COM доступен:
$app = New-Object -ComObject "STATISTICA.Application"
$app.Visible = $false
$app.Version
$app.Quit()Related MCP server: spss-studio-mcp
Установка
Распаковать проект в любую папку (например
C:\tools\statistica-mcp).Добавить сервер в
~/.config/opencode/opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"statistica": {
"type": "local",
"command": ["node", "C:\\tools\\statistica-mcp\\statistica\\server.mjs"],
"enabled": true
}
}
}Для Claude Desktop — %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"statistica": {
"command": "node",
"args": ["C:\\tools\\statistica-mcp\\statistica\\server.mjs"]
}
}
}Перезапустить клиент.
Путь в конфиге — именно на
server.mjs. Он определяет расположениеsta.ps1относительно себя, поэтому папку можно переносить целиком, но нельзя отделятьsta.ps1отserver.mjs.
Проверка установки
В папке проекта:
node selftest.mjs "C:\путь\к\LAB3.sta"Скрипт создаёт временную копию файла, прогоняет 55 проверок (все инструменты, включая анализы, формулы, правку данных, уровни измерения, метки значений, запаздывание и сглаживание ВР, экспоненциальное сглаживание, SVB-макрос, нормальность, ANOVA, кластерный и факторный анализ, 2D/3D-графики, fit-линию, экспорт PNG/PDF/CSV/XLSX, скриншот окна и импорт) и печатает результат. Исходный файл не изменяется.
Проверка кода
Встроенный линтер без зависимостей (аналог ruff check): синтаксис JS (node --check), синтаксис PowerShell (AST-парсер), разрешение import и dot-source, разбор JSON, наличие обработчиков у инструментов, а также стиль (CRLF, хвостовые пробелы, финальный перевод строки, табы, длинные строки).
node scripts/check.mjs # проверка
node scripts/check.mjs --fix # исправить CRLF / хвостовые пробелы / финальный перевод
node scripts/check.mjs --strict # предупреждения тоже считать ошибкой
node scripts/check.mjs --external # дополнительно prettier / eslint / PSScriptAnalyzer, если установленыИли через npm: npm run check, npm run check:fix, npm run check:strict. Код возврата — 1 при ошибках. Правила форматирования продублированы в .editorconfig.
Архитектура
Подробное описание устройства — в отдельном файле
ARCHITECTURE.md: схема компонентов, жизненный цикл вызова
инструмента, режимы работы и особенности COM.
graph LR
A["Агент<br/>opencode / Claude"] -->|"JSON-RPC 2.0 (stdio)"| B["MCP-сервер<br/>server.mjs + src/*"]
B -->|"spawn + временные JSON-файлы"| C["Воркер<br/>sta.ps1 + worker/*"]
C -->|"COM (CallByName)"| D["STATISTICA 12<br/>statist.exe"]
D -->|"лист / граф / таблица"| C
C -->|"result JSON"| B
B -->|"content: text"| Aserver.mjs— тонкая точка входа; разбор протокола и логика — вsrc/, инструменты — по группам вsrc/tools/. На stdout только JSON-RPC, логи в stderr.sta.ps1— точка входа воркера; код — вworker/иworker/commands/(по функцииInvoke-<cmd>на команду).Один вызов = один файл
.sta; по умолчанию stateless, режимattachработает с открытым окном.
Инструменты
Общие
Инструмент | Назначение |
| Доступность COM, версия, путь к |
| Список всех модулей анализа (id + имя) для |
| Открыть |
| Список листов файла (индекс, имя, размер) без загрузки данных. |
| Чтение данных. Числовые колонки — векторно, текстовые — строками; пропуски → |
| Полная перезапись переменных; числовая колонка требует ровно по значению на наблюдение. |
| Добавление пустых переменных ( |
| Переименование коротких/длинных имён (по имени или индексу). |
| Удаление диапазона переменных. |
| Изменение размера таблицы. |
| Чтение и запись имён наблюдений (текстовых меток строк). |
| Сортировка по одному или нескольким ключам (имена наблюдений переезжают вместе со строками). |
| Оставить только строки, удовлетворяющие условию ( |
| Перекодирование значений переменной по таблице |
| Уровень измерения переменной ( |
| Текстовые метки значений переменной ( |
| Запись формулы в переменную ( |
| Импорт текста/Excel в STATISTICA. |
| Экспорт листа штатным CSV-писателем. |
| Сохранение листа в новый файл ( |
| Склейка нескольких PNG в один файл (вертикально/горизонтально) — двухпанельные рисунки для отчётов. |
| Построение графика ( |
| Показать окно STATISTICA и снять экран для отчёта ( |
| Запустить или переиспользовать видимое окно STATISTICA (с опциональным файлом) и оставить его открытым — для работы через |
| Открыть диалог модуля анализа и снять саму панель пакета (Time Series/Forecasting, Transformations и др.); |
Режим «вживую» (attach)
Любой инструмент данных/анализа принимает attach: true. В этом режиме worker не создаёт новый процесс, а подключается к уже открытому окну STATISTICA (Marshal.GetActiveObject), правит его активный лист и не закрывает программу. Так значения и формулы видны и обновляются прямо в открытом документе. Если path не указан — берётся активный лист (в attach-режиме путь необязателен).
Чтобы не запускать окно вручную, используйте open — он запускает (или переиспользует уже открытый) видимый экземпляр, открывает файл и оставляет его открытым. GetActiveObject при нескольких копиях возвращает один экземпляр (первый), поэтому open переиспользует запущенный, чтобы attach попадал в то же окно.
set_formula { "path": "...\\LAB3.sta", "variable": "TS_Prod", "formula": "v9*v10", "attach": true }
write_variables { "path": "...\\LAB3.sta", "columns": [{"index": 5, "values": [ ... ]}], "attach": true }Статистика
Инструмент | Модуль / механизм |
| Быстрый расчёт в Node по данным из COM (N, missing, mean, sd, se, min, q1, median, q3, max, sum). |
| Описательные статистики движком Basic Statistics (включая квантили, асимметрию, эксцесс). |
| Проверка нормальности (Basic Statistics): описательные статистики + Шапиро–Уилк и Колмогоров–Смирнов/Лилиефорс + гистограмма. |
| Матрица корреляций Пирсона. |
| Частотные таблицы и гистограммы. |
| t-тесты: |
| Множественная регрессия (модуль GRM). |
| Дисперсионный анализ / GLM (модуль 4100): таблица ANOVA ( |
| Иерархический кластерный анализ (модуль 2201): расписание объединений, матрица расстояний, описательные статистики. |
| Факторный анализ / метод главных компонент (модуль 2101): собственные значения, нагрузки, общности. |
| Строит лаговые произведения ряда ( |
| Считает оценку на одном лаге ( |
| Временные ряды: |
| МНК-аппроксимация |
| Выполнить код STATISTICA BASIC (SVB) или |
| График и его экспорт в изображение ( |
Универсальный движок
Инструмент | Назначение |
| Интроспекция диалога анализа: свойства, методы и известные enum-константы. Помогает собрать запрос к |
| Запуск любой процедуры последовательностью шагов. |
Шаги run_analysis
{
"path": "C:\\data\\LAB3.sta",
"module": 1901,
"steps": [
{ "set": { "Variables": "2", "FocusTimeSeriesVariable": 1 } },
{ "call": "ARIMAAndAutocorrelationFunctions" },
{ "set": { "NumberOfAutoregressiveParameters": 1, "NumberOfMovingAverageParameters": 0 } },
{ "run": true },
{ "set": { "NumberOfCasesToForecast": 12 } },
{ "result": "Summary" },
{ "result": "ForecastCases" },
{ "saveGraph": "C:\\out\\forecast.png", "result": "PlotSeriesAndForecasts" }
]
}set— присвоить свойства диалога (массивы и строки допустимы;Variablesпринимает"1 3 5","2-4"или массив индексов).call— вызвать метод диалога (например,SpectralFourierAnalysis,Transformations,ExponentialSmoothingAndForecasting). Опциональноargs.run— выполнить анализ (Application.Analysis(...).Run).result— прочитать свойство после запуска. Результат маршалится как таблица, массив, коллекция или идентификатор документа. Если свойство параметризованное (напримерSummary(1)), индекс подставляется автоматически.saveGraph— прочитать свойство-график (по умолчаниюGraphs) и сохранить его; путь определяется расширением (.png/.jpg/.emf— изображение,.stg— родной формат STATISTICA). Сохраняются только графики: таблицы из того же результата (например,Autocorrelations= таблица + график) пропускаются, поэтому файл пишется ровно по указанному пути без суффиксов. Родительские папки создаются.
Неверные свойства/методы не прерывают анализ: они попадают в блок Warnings ответа.
Примеры
Описательные и корреляция
descriptives_engine { "path": "...\\LAB3.sta", "variables": [2, 3, 4] }
correlation { "path": "...\\LAB3.sta", "variables": [2, 3, 5] }Параметрическая регрессия
regression { "path": "...\\LAB3.sta", "dependent": 2, "predictors": [1] }ARIMA с прогнозом
time_series {
"path": "...\\LAB3.sta", "procedure": "arima", "variables": [2],
"arOrder": 1, "maOrder": 0, "difference": true, "forecasts": 12
}Сглаживание и спектр
time_series { "path": "...", "procedure": "smoothing", "variables": [2], "window": 3 }
time_series { "path": "...", "procedure": "spectral", "variables": [2] }Формула и корреляционное произведение
set_formula { "path": "...\\LAB3.sta", "variable": 19, "formula": "v9*v10" }
correlation_matrix { "path": "...\\LAB3.sta", "variable": "TS_Nrm", "lags": 12, "smooth": 3 }ANOVA и факторный анализ
anova { "path": "...\\LAB3.sta", "dependent": 2, "between": [1, 3] }
factor { "path": "...\\LAB3.sta", "variables": [2, 3, 4], "method": "principal_components", "factors": 2 }Правка данных
case_names { "path": "...\\LAB2.sta", "names": ["янв", "фев", "мар"] }
sort_data { "path": "...\\LAB2.sta", "variables": [1, 2], "order": [0, 1] }
select_cases{ "path": "...\\LAB2.sta", "variable": 2, "op": "notmissing", "save": "...\\clean.sta" }
recode { "path": "...\\LAB2.sta", "variable": 1, "map": { "1": 10, "2": 20 }, "default": 0 }График в файл (2D-диаграмма рассеяния)
graph {
"path": "...\\LAB3.sta", "module": 11003, "variables": "2 | 11",
"properties": { "GraphType": 0 }, "out": "C:\\...\\reports\\scatter.png"
}Любая процедура — движок
list_analysis_modules {}
describe_analysis { "path": "...\\LAB3.sta", "module": 4100 } // GLM
run_analysis {
"path": "...\\LAB3.sta", "module": 1301,
"steps": [
{ "set": { "Statistics": 0 } },
{ "run": true },
{ "set": { "Variables": "2-4", "Mean": true, "ValidN": true } },
{ "result": "Summary" }
]
}Особенности COM, учтённые сервером
ProgID
STATISTICA.Applicationработает, а_Application— нет. Сборка interop не используется, всё черезNew-Object -ComObject+Microsoft.VisualBasic.Interaction::CallByName.Параметризованные свойства (
Data(case,var),VData(var),VariableName(n)) требуютCallByNameсCallType::Get/::Let.Массивы маршалятся только типизированные.
put_VData(n, [double[]])записывает колонку векторно; длина массива должна быть ровноNumberOfCases.Пропуски.
VDataвозвращает-999999998для «никогда не записанных» ячеек, а у переменной может быть собственный код (VariableMissingData, в реальных файлах встречается-9999). Сервер считает пропуском оба.GetDataприnbVars > 1добавляет метку строки, поэтому колонки читаются по одной.CallByNameне сочетается с массивом значений в одном аргументе — из-за этого используетсяcomSetOneи ручная сборка[object[]].Time Series
TypeOfTransformation. Сеттер не принимает флаговые константы (0x40000000 + n) и падает сAccess Violation; нужно передавать индекс без флага:Smoothing = 1,Fourier = 5,Autocorrelation = 7,Descriptive = 8,Differencing = 4. Таблица — вdescribe_analysis.ARIMA
NumberOfCasesToForecastзадаётся послеRun.Формулы. Формула хранится в длинном имени переменной.
VariableLongName— индексируемое свойство с аксессоромSet,CallByNameего не берёт; присваивать нативно ($ss.VariableLongName(idx) = "=..."), затемRecalculate(idx).Графики. Чтение
.Graphsсамо строит график (явныйRunу графового модуля даётE_UNEXPECTED); экспорт —Graph.SaveAs(path), расширение задаёт формат.Live-режим.
Marshal.GetActiveObject('STATISTICA.Application')есть в PowerShell 5.1 (нет в PowerShell 7); в режимеattachпрограмма не закрывается.Модальные окна. В headless-режиме воркер ставит
Application.DisplayAlert = $false, экспортирует таблицы черезExportTextEx/ExportXLS(без окон «features will be lost»/«Save As Text File») и перед выходом закрывает все документыClose($false), поэтому окно «Save changes to Workbook1?» не блокируетQuit.PDF.
Graph.SaveAsPDF/SaveAsFormat(PDF)возвращаютFalse; PDF собирается встроенным конвертером PNG→PDF (граф экспортируется в PNG, затем оборачивается в PDF).Скриншоты.
screenshotпоказывает окно (Visible=$true) и снимает пиксели черезGraphics.CopyFromScreen:PrintWindowне отрисовывает дочерние MDI-окна (таблицу/график), поэтому по умолчанию (mode=screen) снимается весь виртуальный экран (все мониторы) — обрезать можно вручную (window— окно приложения,document— только активная таблица/график). Свёрнутое окно восстанавливается (ShowWindow) и принудительно выводится на передний план (AppActivate/SwitchToThisWindow/SetForegroundWindow); если не удалось — ответ содержит предупреждение. Воркер объявляет себя DPI-aware (SetProcessDPIAware): без этого Windows виртуализирует экран (2560×1359 вместо 5120×2718) и кадр обрезается.Методы с
out-параметрами (Statistics,ColumnStats) черезCallByNameне работают, поэтому часть описательных статистик считает Node.
Ограничения
По умолчанию stateless: каждый вызов — новый процесс
statist.exe, задержка в несколько секунд; изменения сохраняются только сsave. Режимattachработает с открытым окном без закрытия.Пресеты покрывают популярные сценарии; полный доступ — через
run_analysis+describe_analysis.Методы с
out-параметрами (Statistics,ColumnStats) недоступны черезCallByName— часть статистик считается в Node.Графики сохраняются в изображения или
.stg; интерактивного редактирования графов нет.
Доработка
Новый инструмент: добавьте
{ tools, handlers }в подходящую группуsrc/tools/*.mjs. Она подключится сама черезsrc/tools/index.mjs.Новая команда воркера: добавьте функцию
Invoke-<cmd>($app, $ss, $req)вworker/commands/*.ps1— диспетчер найдёт её по имени.Новый анализ: обычно достаточно
run_analysis; пресет нужен только для частого сценария.Известные enum-константы перечислены в
ENUMS(src/modules.mjs); их можно дополнить из отчёта.
Файлы
statistica/
server.mjs точка входа MCP-сервера
src/
constants.mjs имя, версия, протокол, таймаут
log.mjs логи в stderr
util.mjs requirePath
protocol.mjs JSON-RPC 2.0, stdio, initialize/ping
worker.mjs запуск sta.ps1 через PowerShell, temp-файлы
modules.mjs таблицы модулей и enum-констант
format.mjs форматирование таблиц/результатов
analysis.mjs обёртка analysis() (+ экспорт PDF)
pdf.mjs конвертер PNG -> PDF (без зависимостей)
tools/
index.mjs сборка инструментов и обработчиков
inspect.mjs info, list, describe, list_sheets, read, describe_analysis
edit.mjs write, formula, add/rename/delete, sort/select/recode, levels/labels
io.mjs export_csv, save_spreadsheet, import_data, screenshot, open, dialog
stats.mjs описательные, корреляция, регрессия, ANOVA, кластер, ТС, add_lag_column, add_fit_line, run_macro, normality
engine.mjs run_analysis
sta.ps1 точка входа COM-воркера
worker/
com.ps1 низкоуровневые вызовы COM, подавление диалогов
sheet.ps1 доступ к листу (чтение/запись переменных)
result.ps1 маршалинг результатов анализа
screenshot.ps1 снимок окна STATISTICA (CopyFromScreen)
commands/
structure.ps1 describe, read, write, sort, select, recode, levels, labels, sheets
io.ps1 export_csv, save_as, import (ExportTextEx/ExportXLS)
analysis.ps1 describe_analysis, analysis
macro.ps1 run_macro (SVB, ActiveSpreadsheet)
open.ps1 open (постоянное окно)
dialog.ps1 dialog (снимок панелей анализа)
ARCHITECTURE.md схема устройства (Mermaid)
selftest.mjs самопроверка (53 проверки)
scripts/
check.mjs линтер: парсинг, импорты, стиль (--fix, --strict, --external)
.editorconfig правила форматирования
package.json зависимостей нет
reports/
development-report.md отчёт: проблемы, гипотезы, решения, итог
improvement-plan.md план дальнейшего развитияAvailable Tools
41 toolsadd_fit_lineA
Fit an ordinary least-squares line of y on x (x defaults to the case number) and write the fitted values to a new variable, so the trend can be plotted next to the data (a scriptable substitute for the interactive graph fit).
Inputs: y (required), path (required), x, name, +4 more.
add_lag_columnB
Compute the lag-m correlation product x(t)*x(t-lag) of a series, smooth it with a centered moving average, and append it as a named column to a target sheet (builds the Month + Lag1..LagK matrix step by step).
Inputs: target (required), variable (required), lag, mode, +6 more.
add_variablesB
Append new empty variables to a spreadsheet. type: 0=numeric, 1=text, 2=integer, 3=byte.
Inputs: name (required), path (required), save, type, +6 more.
case_namesB
Read (and optionally set) case names / text labels for the rows of a spreadsheet. When names is given they are written (one per case, starting at case 1).
Inputs: path (required), save, limit, names, +2 more.
delete_variablesC
Delete an inclusive range of variables by index or name.
Inputs: to (required), from (required), path (required), save, +2 more.
describe_analysisA
Introspect a STATISTICA analysis dialog before driving it: lists every settable property and callable method, plus known enum constants. Use it to build a run_analysis request.
Inputs: path (required), module (required), sheet, attach.
describe_spreadsheetB
Open a .sta/.stw file and report case count, variable count and every variable (index, short name, clean name, long name/formula, type, measurement level, missing code).
Inputs: path (required), sheet, attach.
descriptivesB
Fast descriptive statistics computed in Node from data read through COM (N, missing, mean, sd, se, min, q1, median, q3, max, sum). Missing values are honoured using each variable's declared missing code.
Inputs: path (required), sheet, attach, variables.
export_csvC
Export a sheet to CSV using the STATISTICA built-in CSV writer.
Inputs: out (required), path (required), sheet, separator.
import_dataC
Import a delimited text file or an Excel workbook into STATISTICA and optionally save it as .sta.
Inputs: source (required), save, attach, format, +4 more.
list_analysis_modulesA
List every analysis procedure exposed by STATISTICA (id + name) that can be driven with run_analysis.
Inputs: no named parameters.
list_sheetsA
List the sheets inside a .sta/.stw file (index, name, size) without loading variable data.
Inputs: path (required), sheet, attach.
read_variablesB
Read variable values. Numeric columns are read vectorized; text columns as strings. Missing values are returned as null.
Inputs: path (required), limit, sheet, attach, +2 more.
recodeB
Recode the values of one variable using a mapping (old value -> new value), optionally sending every unlisted value to default. Missing values are preserved unless missing is given.
Inputs: map (required), path (required), variable (required), save, +4 more.
rename_variablesC
Rename variables and/or change their long names, keyed by current variable name or index.
Inputs: path (required), renames (required), save, sheet, +2 more.
run_analysisA
Run ANY STATISTICA analysis by executing an ordered list of steps against its dialog. Each step is one of: {"set": {PropertyName: value}} (set dialog properties), {"call": "MethodName", "args": [...]} (invoke a dialog method, e.g. ARIMAAndAutocorrelationFunctions), {"run": true} (execute the analysis), {"result": "Summary"} (read a result document/table after the run), {"saveGraph": "C:\out\plot.png", "result": "Graphs"} (export a graph document to an image; .png/.jpg/.emf). Results are returned as tables, arrays or document handles. Use describe_analysis to discover property and method names.
Inputs: path (required), steps (required), module (required), save, +2 more.
run_macroA
Execute STATISTICA BASIC (SVB) source code (or a .svb file) with the opened spreadsheet as ActiveSpreadsheet, then optionally save the result. Use it for custom recurrent models (DWLS/Lowess/EWPR) supplied as SVB macros.
Inputs: code, path, save, sheet, +2 more.
save_spreadsheetB
Save a sheet to a new file. Extension selects the format (.sta, .stw, .csv, .xlsx).
Inputs: out (required), path (required), copy, sheet, +2 more.
select_casesB
Keep only the rows matching a condition and drop the rest (all columns are rewritten). Supports numeric and text comparisons; missing values can be matched with op "missing".
Inputs: op (required), path (required), variable (required), save, +5 more.
set_formulaA
Assign a formula to a variable (STATISTICA keeps it in the variable long name) and recompute it, e.g. formula "=v9*v10". The result values are returned for inspection. Use attach=true to write into the running STATISTICA window.
Inputs: path (required), formula (required), variable (required), save, +3 more.
set_measurementA
Set the measurement level of a variable (auto/continuous/categorical/ordinal). STATISTICA uses it to treat the variable as a factor or a covariate in analysis.
Inputs: path (required), type (required), variable (required), save, +2 more.
set_sizeB
Resize a spreadsheet. Growing adds empty cases/variables; shrinking discards the excess.
Inputs: path (required), save, cases, sheet, +2 more.
sort_dataB
Sort a spreadsheet in place by one or more keys (case names move with their rows). order may be a single value or one per key: 0/asc or 1/desc.
Inputs: path (required), variables (required), save, order, +2 more.
statistica_anovaA
Analysis of variance via STATISTICA General Linear Models (module 4100 / ANOVA). dependent is the outcome; between lists factor/covariate effects. Returns the ANOVA table (UnivariateResults) and parameter estimates.
Inputs: path (required), between (required), dependent (required), sheet, +2 more.
statistica_clusterB
Hierarchical cluster analysis (module 2201). variables are the variables to cluster; returns cluster membership, the amalgamation schedule and descriptive statistics.
Inputs: path (required), variables (required), sheet, attach.
statistica_correlationC
Pearson correlation matrix computed by the STATISTICA Basic Statistics module.
Inputs: path (required), sheet, attach, variables.
statistica_correlation_matrixB
Build lagged series products for a time series: for lags 1..lags it creates variables Lag1..LagK holding x(t)*x(t-lag) (correlation products), optionally smoothed with a moving average, and returns their preview. Use mode "shift" for plain lagged series.
Inputs: path (required), variable (required), lags, mode, +4 more.
statistica_descriptivesB
Descriptive statistics computed by the STATISTICA engine itself (Basic Statistics module), including ones the JS shortcut does not provide.
Inputs: path (required), sheet, attach, variables.
statistica_dialogB
Open an analysis module dialog in the running STATISTICA window and capture the actual setup panel to an image (Time Series/Forecasting, Transformations tabs, etc.). Use run:true to advance to the second-level panel.
Inputs: out (required), module (required), run, mode, +6 more.
statistica_factorA
Factor analysis / principal components (module 2101). Extraction method defaults to PrincipalComponents; factors sets the requested number of factors. Returns eigenvalues, loadings and communalities.
Inputs: path (required), variables (required), sheet, attach, +2 more.
statistica_frequenciesC
Frequency tables and histograms computed by the STATISTICA Basic Statistics module.
Inputs: path (required), sheet, attach, variables.
statistica_graphA
Build a STATISTICA graph and optionally export it to an image file. variables uses the module syntax, typically "x | y". properties sets additional dialog options (e.g. GraphType, FitType, ShowRawDataPoints). Common modules: 11003 2D Scatterplots, 11012 2D Line Plots, 11002 2D Histograms, 11010 2D Box Plots, 11021 3D Sequential, 11032 3D Surface.
Inputs: path (required), module (required), variables (required), out, +3 more.
statistica_infoA
Report STATISTICA COM availability, version and executable path. Run this first if STATISTICA operations fail.
Inputs: no named parameters.
statistica_normalityC
Normality diagnostics via the Basic Statistics module: descriptive summary plus Shapiro-Wilk W and Kolmogorov-Smirnov/Lilliefors tests and a histogram.
Inputs: path (required), variables (required), sheet, attach, +1 more.
statistica_openA
Launch a visible STATISTICA window (optionally opening a file) and leave it running. Subsequent calls with attach:true edit this same window — no repeated start/stop of the application.
Inputs: path, sheet.
statistica_regressionC
Multiple linear regression via STATISTICA General Regression Models. The first predictor list entry is the dependent variable? No: dependent is the outcome and predictors are the regressors.
Inputs: path (required), dependent (required), predictors (required), sheet, +2 more.
statistica_screenshotA
Launch STATISTICA visibly, optionally build a graph/analysis result, then capture the main window to a PNG/JPG image for a report. Content is prepared while hidden, then the window is shown and captured.
Inputs: out (required), run, mode, path, +7 more.
statistica_time_seriesC
Time Series / Forecasting module. procedure is one of: descriptives, autocorrelation, partial_autocorrelation, cross_correlation, arima, spectral, smoothing, shift, exponential_smoothing, differencing, seasonal_decomposition. autocorrelation/partial_autocorrelation/spectral/smoothing/differencing/descriptives operate on a single series.
Inputs: path (required), procedure (required), variables (required), lag, +21 more.
statistica_t_testA
Student t-tests via the STATISTICA Basic Statistics module. kind=single tests means against a constant; kind=dependent runs paired comparisons over the listed variables (pairs).
Inputs: kind (required), path (required), variables (required), sheet, +3 more.
value_labelsA
Attach or clear text labels for the numeric values of a variable. labels maps a numeric value to a label string or an object {label, description}; clear removes existing labels first.
Inputs: path (required), variable (required), save, clear, +3 more.
write_variablesA
Overwrite whole variables in a spreadsheet. Numeric columns require exactly one value per case; missing values may be null. Text columns accept per-row strings (shorter arrays leave the rest untouched). Changes are only persisted if save is given.
Inputs: path (required), columns (required), save, sheet, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 41 tools
Several tools have overlapping purposes: descriptives vs statistica_descriptives, statistica_correlation vs statistica_correlation_matrix (which actually builds lagged products, not a correlation matrix), add_lag_column vs statistica_correlation_matrix, and run_analysis vs run_macro. Descriptions often clarify the intended use, but the names alone can mislead.
Mostly snake_case, but the 'statistica_' prefix is applied inconsistently (statistica_regression vs descriptives, add_fit_line) and two tools share near-identical names (descriptives / statistica_descriptives). Still readable overall.
41 tools is well above the typical 3-15 range; while STATISTICA is a large suite, redundancies (duplicate descriptives, overlapping correlation/lag tools, run_analysis vs run_macro) suggest consolidation is possible.
Covers file I/O, data manipulation, many statistical procedures, graphing, and GUI control, plus generic run_analysis/run_macro escape hatches. Minor gaps like explicit merge/join or case deletion exist but are workable via macros.
Maintenance
Related MCP Connectors
A statistical analyst in your AI chat: bring data and a question, get a citable, re-runnable report.
The Excel engine for AI agents: read, check and edit Excel models over MCP.
Transform your data analysis with our Data Compute & Stats Bot. Effortlessly calculate descriptive
Ask questions of SPSS .sav survey data: crosstabs with significance, and AI coding of open ends.
Related MCP Servers
- AlicenseAqualityDmaintenanceControls the Stata GUI through Windows Stata Automation COM, enabling do-file management, command execution, and data analysis within natural language workflows.1219 PyPI7MIT
- AlicenseAqualityCmaintenanceEnables AI agents to drive IBM SPSS Statistics for statistical analysis and publication-quality chart generation through natural language, returning structured results and ensuring safe execution.2519MIT
- AlicenseNot gradedqualityDmaintenanceProvides a virtual statistician for AI agents, offering real statistical methods such as design of experiments, hypothesis testing, regression, and process control. It includes an advisor tool to recommend appropriate analyses and generates plain-language interpretations of results.MIT
- AlicenseNot gradedqualityCmaintenanceConnects AI agents to a local Stata installation so they can run Stata commands and .do files, inspect datasets and codebooks, export graphs, look up help, and verify stored r()/e() results with structured error reporting.AGPL 3.0