SPSS-MCP Extended
This server lets AI assistants control IBM SPSS Statistics end-to-end — from reading and cleaning data to running analyses, generating charts, and exporting reports — using plain-language requests translated into verified SPSS syntax.
Data discovery & inspection — list .sav files, view variables/metadata, read data rows, get file summaries, and import CSV to .sav without SPSS.
Basic statistics — frequencies, descriptives, crosstabs, t-tests, ANOVA, correlations, regression, normality/outlier checks, nonparametric tests.
Advanced analysis — factor analysis, reliability/Cronbach’s alpha, scale scoring, repeated-measures ANOVA, logistic/ordinal regression, generalized linear models, mixed models, Cox regression, Kaplan-Meier, MANOVA, GLM.
Clustering & classification — discriminant analysis, hierarchical clustering, two-step cluster, K-means/quick cluster, and proximity matrices.
Data management — recode, autorecode, compute, IF transforms, SELECT IF, sorting, weighting, filtering, missing values, variable/value labels, formats, declaring variables, saving files.
Restructuring & merging — match files (join by key), add files (stack cases), star join, aggregate, rank, flip (transpose), and long/wide reshaping.
Reporting & export — export SPSS output to DOC/XLS/HTML/SPV via OMS, generate scatterplots, histograms, boxplots, bar charts, and custom tables.
Time-series & specialized procedures — ARIMA modeling and ratio statistics.
Flexible syntax execution — run any raw SPSS syntax directly or validate it without executing.
Operational convenience — status checking, method discovery/schema/support metadata, automatic persistence of .spv/.sps outputs, and file-only tools that work even without SPSS installed.
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., "@SPSS-MCP Extended Run a frequency analysis on age and income, with charts."
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.
SPSS-MCP Extended
A Model Context Protocol (MCP) server that gives AI assistants direct access to IBM SPSS Statistics — covering the full research pipeline from data preparation to reporting.
Describe your analysis in plain language — SPSS-MCP translates it into SPSS syntax, runs it against the real SPSS engine, and returns Markdown-formatted results.
v2.0 — 69 tools, 100% live-tested on IBM SPSS Statistics 27.
What's New in v2.0
v2.0 substantially extends the original v0.3.0 analysis bridge (37 tools) into a complete workflow — data cleaning, transformation, merging, restructuring, analysis, charting, and export.
Metric | v0.3.0 base | v2.0 |
Total tools | 37 | 69 (+32) |
Data management (RECODE, COMPUTE, labels...) | 0 | 14 |
Restructuring & merging (MATCH FILES, AGGREGATE, FLIP...) | 0 | 8 |
Reporting, export & charts | 0 | 6 |
Advanced procedures (K-means, ARIMA, PROXIMITIES...) | 0 | 4 |
Live-verified tools | 33/37 (89%) | 69/69 (100%) |
Syntax bugs fixed | — | 16 |
SPSS command coverage | ~26% | ~85% |
Key engineering improvements
Auto factor/group range detection — MANOVA and DISCRIMINANT used to fail when
(min,max)ranges were missing; now ranges are read from the data via pyreadstat. Works with zero configuration.Data-management success detection — commands like RECODE and SAVE produce no OMS tables; the runner now recognizes them and reports success correctly.
Working output export — SPSS's
OUTPUT EXPORTcommand requires a GUI Viewer that doesn't exist in batch mode (verified live). Export runs throughOMS /DESTINATIONinstead, producing real DOC / XLS / HTML files.OMS flush-race protection — OMS destination files appear moments after job completion; the export tool polls before declaring failure.
Verified syntax catalog — 57 SPSS commands extracted from IBM's 2,414-page Command Syntax Reference with page citations (
SYNTAX_CATALOG.md), all templates battle-tested against live SPSS 27.
Syntax bugs fixed in v2.0 (16)
compute_scale_score (missing commas in MEAN()), genlin (/PRINT= invalid), genlinmixed (nonexistent /PRINT subcommand + missing terminator), manova (missing factor ranges), discriminant (missing group range), twostep_cluster (invalid /DISTANCE=EUCLID), ordinal_regression (nonexistent /TEST=PARALLEL), correlations (invalid /PRINT=TAILS(2)), factor (wrong /CRITERIA order, no PCA method), nonparametric_tests (missing value pairs), cluster_hierarchical (bare terminator), plus 5 more found during v2.0 development — see TEST_REPORT.md for the complete audit trail.
Related MCP server: Datyra MCP
Requirements
Windows 10/11
Python 3.10+
IBM SPSS Statistics (version 20–31)
Claude Code (or any MCP client) with MCP support
Quick Install
From PyPI (Recommended)
pip install spss-mcp-extended
# Auto-configure Claude Code
spss-mcp configure-claude
# Restart Claude CodeOne-Click (from source)
git clone https://github.com/rasitnarcicek/spss-mcp-extended.git
cd spss-mcp-extended
install.batThen restart Claude Code. Done!
Manual Install (from source)
# 1. Install
pip install -e .
# 2. Auto-configure Claude Code
spss-mcp configure-claude
# 3. Restart Claude CodeConfiguration
Basic Setup
Recommended: let SPSS-MCP auto-configure Claude Code for you:
spss-mcp configure-claudeThis command:
detects your SPSS installation
merges
mcpServers.spssinto Claude Code's user config (~/.claude.json)creates a timestamped backup before updating existing settings
If you prefer manual setup, add this to Claude Code settings (Ctrl+, → search mcpServers):
{
"mcpServers": {
"spss": {
"command": "spss-mcp",
"args": ["serve", "--transport", "stdio"]
}
}
}SPSS Path (if not auto-detected)
Create .env file (see .env.example):
SPSS_INSTALL_PATH=C:\Program Files\IBM\SPSS Statistics\27Slow SPSS startup?
SPSS_STARTUP_TIMEOUT=300This is separate from SPSS_TIMEOUT, which controls the per-job timeout after the engine is running.
Optional: Install Skills
Skills make analysis more reliable and auto-save results:
set SKILLS_DIR=%USERPROFILE%\.claude\skills
xcopy /E /I skills\spss-analyst "%SKILLS_DIR%\spss-analyst"
xcopy /E /I skills\spss-mcp-guard "%SKILLS_DIR%\spss-mcp-guard"Restart Claude Code after installation.
Usage
Just describe your analysis in natural language:
Recode age into three groups: 18-30, 31-50, 51+ and save as new variableMerge survey.sav and demographics.sav by respondent idCompute BMI = weight/height^2, then test gender differences with t-testExport all results to a Word documentClaude will:
Read your data file
Generate SPSS syntax
Execute the analysis
Return formatted results
Save
.spvand.spsfiles
Output Files
Every analysis produces:
File | Description |
| SPSS Viewer file (open in SPSS for full charts) |
| SPSS syntax file (the exact commands that ran) |
| Exported reports (via |
Default location: %TEMP%\spss-mcp\results\
Available Tools (69 total)
File & Data (10)
spss_check_status · spss_list_files · spss_list_variables · spss_read_metadata · spss_read_data · spss_file_summary · spss_import_csv · spss_list_supported_methods · spss_get_method_schema · spss_get_method_support
Basic Statistics (9)
spss_frequencies · spss_descriptives · spss_crosstabs · spss_t_test · spss_anova · spss_correlations · spss_regression · spss_normality_outliers · spss_nonparametric_tests
Advanced Analysis (13)
spss_factor · spss_reliability_alpha · spss_compute_scale_score · spss_repeated_measures_anova · spss_logistic_regression · spss_ordinal_regression · spss_genlin · spss_mixed · spss_genlinmixed · spss_cox_regression · spss_kaplan_meier · spss_manova · spss_glm_univariate
Clustering & Classification (3)
spss_discriminant · spss_cluster_hierarchical · spss_twostep_cluster
Data Management (14) — new in v2.0
spss_recode · spss_autorecode · spss_compute · spss_if_transform · spss_select_if · spss_sort_cases · spss_weight · spss_filter · spss_missing_values · spss_variable_labels · spss_value_labels · spss_formats · spss_declare_variables · spss_save_file
Restructuring & Merging (8) — new in v2.0
spss_match_files · spss_add_files · spss_star_join · spss_aggregate · spss_rank · spss_flip · spss_vars_to_cases · spss_cases_to_vars
Reporting & Charts (6) — new in v2.0
spss_export_output · spss_graph_scatter · spss_graph_histogram · spss_graph_boxplot · spss_graph_bar · spss_custom_tables
Advanced Procedures (4) — new in v2.0
spss_quick_cluster · spss_proximities · spss_arima · spss_ratio_statistics
Generic
spss_run_syntax — execute any raw SPSS syntax
spss_validate_syntax — dry-run validation without execution
Full parameter reference: TOOLS_REFERENCE.md
Troubleshooting
SPSS not detected
Run spss-mcp status. If SPSS shows ✗:
Create
.envfile with SPSS path (see.env.example)Restart Claude Code
Analysis timeout
SPSS_TIMEOUT=300MCP server not connecting
Check JSON syntax in settings
Verify
spss-mcpcommand works in terminalRe-run
spss-mcp configure-claudeRestart Claude Code
Platform Support
Platform | File Tools | Analysis Tools |
Windows 10/11 | ✓ | ✓ (requires SPSS) |
macOS | ✓ | ✗ |
Linux | ✓ | ✗ |
Analysis tools require SPSS XD API (Windows-only).
Development
# Compile check
python -m compileall src/spss_mcp
# Unit tests
pytest
# Live integration test (requires installed SPSS)
python test_v2_tools.py
# Format code
black src/ tests/
isort src/ tests/
# CLI commands
spss-mcp status # Check environment
spss-mcp setup-info # Generate config
spss-mcp configure-claude # Auto-update Claude Code settingsLicense
MIT — see LICENSE. Copyright (c) 2026 Mehmet Raşit Narçiçek.
Links
Quick Start: QUICK_START.md
Test Report (69/69 live): TEST_REPORT.md
Verified IBM Syntax Catalog: SYNTAX_CATALOG.md
Tools Reference: TOOLS_REFERENCE.md
Issues: https://github.com/rasitnarcicek/spss-mcp-extended/issues
MCP Protocol: https://modelcontextprotocol.io
Available Tools
69 toolsspss_add_filesA
Stack cases from multiple files (concatenate/union): ADD FILES. file_paths: >=2 .sav files; key_variables: optional BY variables. output_path: stacked result file. Requires IBM SPSS Statistics.
Inputs: file_paths (required), drop, keep, output_path, +1 more. Returns: result
spss_aggregateB
Group-wise summaries: AGGREGATE /BREAK=vars /aggvar=FUNC(source). aggregations: list of {'new_var': name, 'function': MEAN|SUM|MIN|MAX|SD|N|NMISS|FIRST|LAST, 'source': var}. Requires IBM SPSS Statistics.
Inputs: file_path (required), aggregations (required), break_variables (required), output_path. Returns: result
spss_anovaB
Run SPSS one-way ANOVA (ONEWAY). Optionally includes post-hoc tests (e.g., TUKEY, BONFERRONI, LSD). Requires IBM SPSS Statistics to be installed.
Inputs: factor (required), dependent (required), file_path (required), post_hoc. Returns: result
spss_arimaC
Box-Jenkins ARIMA time-series model: ARIMA depvar /MODEL=(p,d,q). p/d/q: autoregressive, difference, moving-average orders. log_transform: None, 'LG10' (base-10), or 'LN' (natural). Requires IBM SPSS Statistics.
Inputs: file_path (required), dependent_variable (required), d, p, +5 more. Returns: result
spss_autorecodeB
Automatically recode string/categorical values into consecutive integers. order: ASCENDING (default) or DESCENDING. Requires IBM SPSS Statistics.
Inputs: file_path (required), variables (required), order, new_names, +1 more. Returns: result
spss_cases_to_varsA
Restructure long → wide format: CASESTOVARS /ID=... /INDEX=.... id_variables: case identifiers; index_variables: the repeated-measure index. output_path: restructured result file. Requires IBM SPSS Statistics.
Inputs: file_path (required), id_variables (required), index_variables (required), output_path, +1 more. Returns: result
spss_check_statusA
Check the SPSS MCP server status: which capabilities are available (SPSS installed vs file-only mode), SPSS path, library versions, and configuration. Call this first to understand what tools are available.
Inputs: no named parameters. Returns: result
spss_cluster_hierarchicalC
Run hierarchical cluster analysis with dendrogram. Supports multiple linkage methods and distance measures. Requires IBM SPSS Statistics to be installed.
Inputs: file_path (required), variables (required), method, measure, +2 more. Returns: result
spss_computeB
Create a new variable or overwrite an existing one with a computed expression. expression: any SPSS numeric expression, e.g. 'weight/(height**2)' or 'MEAN(q1,q2,q3)'. Requires IBM SPSS Statistics.
Inputs: file_path (required), expression (required), target_variable (required), output_path. Returns: result
spss_compute_scale_scoreA
Compute a scale score (SUM or MEAN) from multiple item variables, with optional reverse coding and minimum valid item count. Requires IBM SPSS Statistics to be installed.
Inputs: items (required), file_path (required), new_variable (required), method, +4 more. Returns: result
spss_correlationsB
Run SPSS CORRELATIONS to compute Pearson or Spearman correlation matrix. Requires IBM SPSS Statistics to be installed.
Inputs: file_path (required), variables (required), method, two_tailed. Returns: result
spss_cox_regressionB
Run Cox proportional hazards regression for survival analysis. Supports time-dependent covariates, stratification, and model diagnostics. Requires IBM SPSS Statistics to be installed.
Inputs: file_path (required), predictors (required), time_variable (required), status_variable (required), +5 more. Returns: result
spss_crosstabsA
Run SPSS CROSSTABS to create a contingency table between two categorical variables. Optionally includes chi-square test and row/column percentages. Requires IBM SPSS Statistics to be installed.
Inputs: file_path (required), row_variable (required), column_variable (required), include_col_pct, +2 more. Returns: result
spss_custom_tablesA
Custom pivot tables: CTABLES /TABLE rowvar [stat] BY colvar. Statistics attach to rows only (e.g. income [MEAN] BY gender) — MEAN on a categorical is rejected by SPSS. statistics: COUNT, MEAN, MEDIAN, etc. Requires IBM SPSS Statistics (Custom Tables module).
Inputs: rows (required), file_path (required), title, columns, +1 more. Returns: result
spss_declare_variablesB
Declare new empty variables: NUMERIC var (F8.2) / STRING var (A20). numeric_vars: {name: format}, string_vars: {name: format}. Requires IBM SPSS Statistics.
Inputs: file_path (required), output_path, string_vars, numeric_vars. Returns: result
spss_descriptivesB
Run SPSS DESCRIPTIVES for numeric variables. Returns N, mean, std deviation, min, max, and optional statistics. Requires IBM SPSS Statistics to be installed.
Inputs: file_path (required), variables (required), statistics. Returns: result
spss_discriminantC
Run discriminant analysis to classify cases into groups. Supports stepwise selection and cross-validation. Requires IBM SPSS Statistics to be installed.
Inputs: groups (required), file_path (required), predictors (required), method, +4 more. Returns: result
spss_export_outputA
Export procedure output directly to a file: OMS /DESTINATION FORMAT=DOC|XLS|HTML|SPV. Runs inside the same job as the procedures — call any analysis tools first, then this. NOTE: SPSS's OUTPUT EXPORT command needs a GUI Viewer, which the batch engine does not have; OMS writes the same formats without it (verified live). export_format: DOC (Word/RTF), XLS (Excel), HTML, or SPV (Viewer file).
Inputs: file_path (required), output_path (required), procedures_syntax (required), export_format. Returns: result
spss_factorB
Run SPSS FACTOR analysis (principal components or principal axis factoring). Includes eigenvalues, variance explained, and rotated factor matrix. Requires IBM SPSS Statistics to be installed.
Inputs: file_path (required), variables (required), method, rotation, +1 more. Returns: result
spss_file_summaryA
Get a summary of an SPSS .sav file: case count, variable count, variable list, and basic descriptive statistics computed locally (no SPSS needed). Does not require SPSS to be installed.
Inputs: file_path (required). Returns: result
spss_filterA
Temporarily filter cases by a 0/1 variable (reversible, unlike SELECT IF). filter_variable=None turns the filter off. Requires IBM SPSS Statistics.
Inputs: file_path (required), filter_variable. Returns: result
spss_flipB
Transpose rows and columns: FLIP. variables: subset to flip (default all); newnames_variable: use a variable's values as new column names. Requires IBM SPSS Statistics.
Inputs: file_path (required), variables, output_path, newnames_variable. Returns: result
spss_formatsC
Change variable display formats: FORMATS var (format). formats: {variable: format}, e.g. {'income': 'F8.2', 'id': 'F4.0', 'name': 'A20'}. Requires IBM SPSS Statistics.
Inputs: formats (required), file_path (required), output_path. Returns: result
spss_frequenciesA
Run SPSS FREQUENCIES on one or more variables. Returns frequency tables with counts, percentages, and optional statistics. Requires IBM SPSS Statistics to be installed.
Inputs: file_path (required), variables (required), statistics. Returns: result
spss_genlinC
Run generalized linear model (GENLIN) with flexible distribution and link functions. Supports Poisson, binomial, gamma, negative binomial, and other distributions. Requires IBM SPSS Statistics to be installed.
Inputs: dependent (required), file_path (required), predictors (required), link, +4 more. Returns: result
spss_genlinmixedB
Run generalized linear mixed model combining GLM with random effects. Supports non-normal outcomes with hierarchical structure. Requires IBM SPSS Statistics to be installed.
Inputs: dependent (required), file_path (required), fixed_effects (required), link, +3 more. Returns: result
spss_get_method_schemaA
Get the JSON schema for a registry-backed SPSS method. Useful for structured orchestration and parameter inspection before execution.
Inputs: tool_name (required). Returns: result
spss_get_method_supportA
Get support metadata for a registry-backed SPSS method, including command family, support tier, coverage assertions, and documentation tags.
Inputs: tool_name (required). Returns: result
spss_glm_univariateB
Run univariate general linear model (GLM) with factorial designs. Supports estimated marginal means, contrasts, and post-hoc tests. Requires IBM SPSS Statistics to be installed.
Inputs: factors (required), dependent (required), file_path (required), emmeans, +4 more. Returns: result
spss_graph_barA
Bar chart: GRAPH /BAR(SIMPLE|GROUPED|STACKED)=COUNT or STAT(var) BY catvar. statistic: COUNT (default), MEAN, SUM, or other SPSS aggregate function. Requires IBM SPSS Statistics.
Inputs: variable (required), file_path (required), style, title, +2 more. Returns: result
spss_graph_boxplotA
Boxplot by group: EXAMINE var BY catvar /PLOT BOXPLOT. NOTE: SPSS 27's GRAPH command has no /BOXPLOT subcommand (verified live, Error #17804) — boxplots are produced via EXAMINE. categorical_variable=None gives a single-variable boxplot.
Inputs: variable (required), file_path (required), title, categorical_variable. Returns: result
spss_graph_histogramC
Histogram: GRAPH /HISTOGRAM[(NORMAL)]=var. normal_curve=True overlays the normal curve. Requires IBM SPSS Statistics.
Inputs: variable (required), file_path (required), title, normal_curve. Returns: result
spss_graph_scatterB
Scatterplot: GRAPH /SCATTERPLOT(BIVAR)=y WITH x [BY panel]. Requires IBM SPSS Statistics.
Inputs: file_path (required), x_variable (required), y_variable (required), title, +1 more. Returns: result
spss_if_transformB
Conditionally assign a value: IF (condition) target = expression. condition: SPSS logical expression, e.g. 'age >= 30 and gender = 1'. Requires IBM SPSS Statistics.
Inputs: condition (required), file_path (required), expression (required), target_variable (required), +1 more. Returns: result
spss_import_csvA
Convert a CSV file to SPSS .sav format directly using pandas + pyreadstat — no IBM SPSS Statistics installation required. Much faster than going through SPSS syntax because it bypasses the SPSS engine entirely. Saves the .sav file next to the CSV by default, or to a custom output_path.
Inputs: csv_path (required), encoding, delimiter, output_path, +1 more. Returns: result
spss_kaplan_meierA
Run Kaplan-Meier survival analysis with log-rank test. Produces survival curves and compares groups. Requires IBM SPSS Statistics to be installed.
Inputs: file_path (required), time_variable (required), status_variable (required), status_event_value (required), +3 more. Returns: result
spss_list_filesA
List SPSS .sav files in a directory. Useful for discovering available datasets when the user hasn't specified a file path.
Inputs: directory (required), recursive. Returns: result
spss_list_supported_methodsA
List registry-backed SPSS methods available for structured execution. Use this to discover cold methods that have schemas, templates, and coverage assertions.
Inputs: no named parameters. Returns: result
spss_list_variablesA
List all variable names and their labels from an SPSS .sav file. Optionally filter by a search term. Does not require SPSS to be installed.
Inputs: file_path (required), search. Returns: result
spss_logistic_regressionB
Run binary or multinomial logistic regression. Supports stepwise selection, categorical predictors, and model diagnostics. Requires IBM SPSS Statistics to be installed.
Inputs: dependent (required), file_path (required), predictors (required), method, +4 more. Returns: result
spss_manovaA
Run multivariate analysis of variance (MANOVA) for multiple dependent variables. Tests multivariate effects and provides univariate follow-ups. Requires IBM SPSS Statistics to be installed.
Inputs: factors (required), file_path (required), dependents (required), method, +4 more. Returns: result
spss_match_filesA
Combine variables across files (join by key): MATCH FILES. file_paths: >=2 .sav files; key_variables: BY variables (files must be sorted on them). output_path: merged result file. Requires IBM SPSS Statistics.
Inputs: file_paths (required), drop, keep, output_path, +1 more. Returns: result
spss_missing_valuesA
Declare user-missing values: MISSING VALUES var (spec). missing_spec: {variable: spec}, e.g. {'age': '99'} or {'q1': 'LOWEST THRU 0; 99'}. An empty string spec ('') clears missing values with NONE. Requires IBM SPSS Statistics.
Inputs: file_path (required), missing_spec (required), output_path. Returns: result
spss_mixedC
Run linear mixed-effects model (multilevel model) with random effects. Supports nested and crossed random effects, repeated measures structures. Requires IBM SPSS Statistics to be installed.
Inputs: dependent (required), file_path (required), fixed_effects (required), method, +5 more. Returns: result
spss_nonparametric_testsC
Run common nonparametric tests in SPSS: Mann-Whitney U, Wilcoxon signed-rank, or Kruskal-Wallis. Requires IBM SPSS Statistics to be installed.
Inputs: file_path (required), test_type (required), variables (required), group_values, +1 more. Returns: result
spss_normality_outliersA
Run SPSS EXAMINE to check normality and outliers for numeric variables, with optional diagnostic plots. Requires IBM SPSS Statistics to be installed.
Inputs: file_path (required), variables (required), plots. Returns: result
spss_ordinal_regressionB
Run ordinal regression (PLUM) for ordered categorical outcomes. Supports multiple link functions and parallel lines test. Requires IBM SPSS Statistics to be installed.
Inputs: dependent (required), file_path (required), predictors (required), link, +3 more. Returns: result
spss_proximitiesB
Distance/similarity matrix: PROXIMITIES varlist /MEASURE=EUCLID. measure: EUCLID, SEUCLID, COSINE, CORRELATION, BLOCK, CHEBYCHEV, MINKOWSKI(p), POWER(p,r), CHISQ, PH2. view: CASE (rows) or VARIABLE (columns). Requires IBM SPSS Statistics.
Inputs: file_path (required), variables (required), view, measure, +2 more. Returns: result
spss_quick_clusterB
K-means clustering: QUICK CLUSTER varlist /CRITERIA CLUSTER(k) MXITER(n). save_cluster_variable: saves cluster membership as a new variable. print_anova: adds the ANOVA table. Requires IBM SPSS Statistics.
Inputs: file_path (required), variables (required), n_clusters, print_anova, +2 more. Returns: result
spss_rankA
Rank cases: RANK VARIABLES=vars (A|D) /RANK INTO var. Options: ntiles (N-tile groups), percent (percent ranks), normal (normal scores), fraction (BLOM|TUKEY|VW|RANKIT), by_variables (within-group ranks). Requires IBM SPSS Statistics.
Inputs: file_path (required), variables (required), order, normal, +6 more. Returns: result
spss_ratio_statisticsB
Ratio statistics: RATIO STATISTICS num WITH den [BY group] /PRINT=stats. statistics: MEAN, MEDIAN, MIN, MAX, STDDEV, AAD, COD, PRD, CIN(95), etc. Requires IBM SPSS Statistics.
Inputs: file_path (required), numerator (required), denominator (required), statistics, +1 more. Returns: result
spss_read_dataA
Read rows of data from an SPSS .sav file as a Markdown table. Optionally filter to specific variables and limit row count. Does not require SPSS to be installed.
Inputs: file_path (required), max_rows, variables, apply_value_labels. Returns: result
spss_read_metadataA
Read variable names, types, labels, and value labels from an SPSS .sav file. Returns a detailed Markdown report of the file's structure. Does not require SPSS to be installed.
Inputs: file_path (required). Returns: result
spss_recodeB
Recode variable values in a .sav file. rules: list of {'old': value | [lo,hi] | [v1,v2,...] | 'ELSE', 'new': value | 'COPY' | 'SYSMIS'}. into_variables: optional list of new target variables (preserves originals). output_path: optional path to save the transformed file. Requires IBM SPSS Statistics.
Inputs: rules (required), file_path (required), variables (required), output_path, +1 more. Returns: result
spss_regressionA
Run SPSS linear regression. Specify a dependent variable and one or more predictors. Returns coefficients, R-squared, ANOVA table, and significance tests. Requires IBM SPSS Statistics to be installed.
Inputs: dependent (required), file_path (required), predictors (required), method, +1 more. Returns: result
spss_reliability_alphaA
Run SPSS RELIABILITY analysis (Cronbach's alpha). Returns scale reliability and item statistics for psychometric workflows. Requires IBM SPSS Statistics to be installed.
Inputs: file_path (required), variables (required), model, scale_name. Returns: result
spss_repeated_measures_anovaA
Run SPSS repeated-measures ANOVA (within-subject GLM). Provide within-factor name, number of levels, and one variable per level. Requires IBM SPSS Statistics to be installed.
Inputs: levels (required), file_path (required), variables (required), within_factor_name (required), +1 more. Returns: result
spss_run_syntaxA
Execute arbitrary SPSS syntax commands and return the output as Markdown. Optionally specify a data_file to automatically prepend GET FILE. By default, this also persists .spv (SPSS viewer) and .sps (executed syntax) files. Requires IBM SPSS Statistics to be installed.
Inputs: syntax (required), data_file, select_if, filter_variable, +2 more. Returns: result
spss_save_fileC
Save the active dataset with optional rename/keep/drop: SAVE OUTFILE. rename: {old: new}, keep: variables to keep, drop: variables to drop. Requires IBM SPSS Statistics.
Inputs: file_path (required), output_path (required), drop, keep, +2 more. Returns: result
spss_select_ifB
Permanently keep only cases matching a condition: SELECT IF (condition). Use output_path to save the filtered result as a new .sav file. Requires IBM SPSS Statistics.
Inputs: condition (required), file_path (required), output_path. Returns: result
spss_sort_casesC
Sort cases by one or more variables. sort_keys: list of {'variable': name, 'order': 'A'|'D'} dicts. Requires IBM SPSS Statistics.
Inputs: file_path (required), sort_keys (required), output_path. Returns: result
spss_star_joinC
SQL-style join of two .sav files: STAR JOIN /SELECT ... /FROM ... /JOIN ... ON key=key. base_key/join_key: matching variable names; select_fields: optional list like ['t0.age','t1.income']. Requires IBM SPSS Statistics.
Inputs: base_key (required), join_key (required), base_file (required), join_file (required), +4 more. Returns: result
spss_t_testB
Run SPSS t-test. Supports one_sample, independent, and paired test types. Requires IBM SPSS Statistics to be installed.
Inputs: file_path (required), test_type (required), variables (required), test_value, +1 more. Returns: result
spss_twostep_clusterA
Run two-step cluster analysis with automatic cluster number determination. Handles large datasets and mixed variable types. Requires IBM SPSS Statistics to be installed.
Inputs: file_path (required), distance, continuous, categorical, +3 more. Returns: result
spss_validate_syntaxA
Validate SPSS syntax without executing it. Checks for basic syntax errors. Requires IBM SPSS Statistics to be installed.
Inputs: syntax (required). Returns: result
spss_value_labelsB
Set value labels: VALUE LABELS var value 'label'. value_labels: {variable: {value: label}}, e.g. {'gender': {1: 'Male', 2: 'Female'}}. Requires IBM SPSS Statistics.
Inputs: file_path (required), value_labels (required), output_path. Returns: result
spss_variable_labelsC
Set variable labels: VARIABLE LABELS var 'label'. labels: {variable: label}. Requires IBM SPSS Statistics.
Inputs: labels (required), file_path (required), output_path. Returns: result
spss_vars_to_casesB
Restructure wide → long format: VARSTOCASES /MAKE newvar FROM varlist. make_specs: list of {'new_var': name, 'variables': [var1, var2, ...]}; index_name: index variable name; id_name: case ID variable. Requires IBM SPSS Statistics.
Inputs: file_path (required), make_specs (required), id_name, index_name, +2 more. Returns: result
spss_weightA
Weight cases by a variable (or turn weighting off with weight_variable=None). Takes effect for subsequent procedures on the same file. Requires IBM SPSS Statistics.
Inputs: file_path (required), weight_variable. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 69 tools
Most tools map to distinct SPSS commands or data operations, and the statistical procedures are clearly separated by test type. However, there is some overlap between spss_list_variables and spss_read_metadata, and spss_graph_boxplot reuses the same EXAMINE mechanism as spss_normality_outliers.
All tools share the spss_ prefix and use lower_snake_case, which creates a strong overall pattern. The convention is slightly inconsistent because some names are verb-driven (list_variables, run_syntax) while others are noun-style SPSS command names (frequencies, descriptives, crosstabs), but the pattern remains predictable.
With 69 tools, this server is far above the typical well-scoped range and will create significant selection overhead for agents. The broad SPSS domain explains some of the count, but the presence of spss_run_syntax and registry-based method tools makes many thin wrapper tools feel redundant.
The server covers a wide range of SPSS functionality: file inspection, data transformation, statistical analysis, survival analysis, clustering, graphs, and output export. Minor gaps exist for some specialized procedures and newer SPSS modules, but core data-management and analysis workflows are thoroughly supported.
Maintenance
Related MCP Connectors
Ask questions of SPSS .sav survey data: crosstabs with significance, and AI coding of open ends.
A statistical analyst in your AI chat: bring data and a question, get a citable, re-runnable report.
Connect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...
AI access to Quadratic spreadsheets: open files, run Python/SQL, query connected databases.
Related MCP Servers
- 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 gradedqualityCmaintenanceEnables AI assistants to perform data analysis on local datasets through natural language, orchestrating Python, R, SQL, Spark, Jupyter, Power BI, and Tableau engines for statistics, machine learning, dashboard generation, and batch processing.Apache 2.0
- AlicenseBqualityBmaintenanceEnables AI agents to run IBM SPSS Statistics on macOS for statistical analyses, generate paper-ready charts, extract structured results, and execute mediation/moderation analyses with safety controls.51MIT
- AlicenseBqualityBmaintenanceEnables AI agents to safely execute statistical analyses, parse results into Markdown and JSON, and generate publication-ready charts through a local IBM SPSS Statistics installation on macOS and Windows.5137 PyPI1MIT