Skip to main content
Glama
CongJyu

spss-studio-mcp

by CongJyu

SPSS Studio MCP for Mac

Make SPSS an Agent's "statistics engine + chart factory": paper-ready charts, deep result parsing, verified methods, and safe execution.

This MCP is Mac Only, for Windows versions, see flupke91/spss-studio-mcp.

English繁體中文(香港)

License: MIT Python Tests

spss-studio-mcp is an MCP (Model Context Protocol) server for IBM SPSS Statistics. It gives Agent clients such as Codex / Claude Code / Cursor:

  • Paper-ready charts: 11 spss_chart_* tools export PNG / TIFF (1950×1500 @300 dpi) in one call and return the file path for direct submission to journals;

  • Deep result parsing: OMS text → Markdown tables + structured JSON + statistical summaries for 16 analysis families (t / F / r / B / Wald / α / χ² / p / effect sizes);

  • Verified methods: all 37 analysis tools plus 11 supporting tools are verified on real SPSS Statistics 32 for Mac;

  • Mediation / moderation: spss_mediation (Baron & Kenny three-step regression + Sobel test) and spss_moderation (mean-centred interaction regression);

  • Safety layer: dangerous-command blocking, data path allowlist, dry_run preflight, and JSONL audit logging.

Everything is verified on IBM SPSS Statistics 32.0.0.0 for macOS — 105 unit tests pass, including a self-contained real-machine reproduction manifest. Per-case results: docs/macos_verification.md.


Quick Start

macOS (SPSS Statistics 32 for Mac is auto-discovered inside the .app bundle under /Applications; Python ≥3.10 required):

cd spss-studio-mcp
bash scripts/install_macos.sh              # creates .venv, installs deps, configure-claude
.venv/bin/spss-studio-mcp status           # SPSS batch: OK
.venv/bin/spss-studio-mcp configure-codex  # optional: Codex config

Then drive it from your client in natural language, e.g.:

Run descriptive statistics and reliability analysis on examples/data/survey_study.sav
Independent-samples t-test on examples/data/experiment_study.sav (grouping: group, dependent: posttest)
Mediation analysis on examples/data/mediation_study.sav: autonomy → satisfaction → performance
Histogram with normal density of engagement_total in examples/data/survey_study.sav, PNG 300dpi

Related MCP server: mcp-macos-cua

Paper-Ready Charts (Core Feature)

Tool

Purpose

spss_chart_histogram / spss_chart_histogram_density

Histogram / histogram with normal density

spss_chart_scatter

Scatter plot of two variables

spss_chart_bar / spss_chart_bar_error

Bar chart of category means / with 95% CI error bars

spss_chart_line / spss_chart_area

Time-series line / area charts

spss_chart_boxplot

Grouped box-and-whisker plot

spss_chart_errorbar

Mean ± CI error bar chart

spss_chart_qqplot

Normal Q-Q plot

spss_chart_km_curve

Kaplan-Meier survival curve

spss_chart_histogram_density(
    variable="engagement_total",
    title="Engagement total distribution (with normal density)",
    image_format="PNG",            # PNG / TIFF
    width_px=1950, height_px=1500, dpi=300,
    data_file="examples/data/survey_study.sav",
)
# → returns the image file path, ready for submission

Format note: chart output is PNG and TIFF only. Windows vector EMF export was removed because SPSS for macOS cannot produce EMF metafiles (its OMS FORMAT=DOC archive contains only raster PNG wrapped in .eps). Use image_format="PNG" or "TIFF".

Structured Results & Statistical Summaries

spss_structured_result(
    syntax="T-TEST GROUPS=group(1 2) /VARIABLES=posttest.",
    data_file="examples/data/experiment_study.sav",
)
# → {markdown, json: {tables, summary}, files, warnings}

The Markdown returned by run_syntax ends with a ### Statistical Summary block containing a plain-language conclusion plus key statistics. Extraction details for the 16 analysis families: docs/result_parsing.md.

Sample Datasets

examples/data/ ships five research-style datasets (fixed random seeds, fully reproducible):

File

Scenario

Key variables

survey_study.sav

Survey: 200 students' learning engagement

gender / major / q1q12 / engagement_total

experiment_study.sav

Experiment: 120 participants, pre/post memory training

group / pretest / posttest / gain

survival_study.sav

Survival: 150 follow-up cases

treatment / time / status

mediation_study.sav

Mediation: 300 employees

autonomy / satisfaction / performance

longitudinal_study.sav / long_study.sav

Longitudinal: 60 people, 3 waves

id / group / time / score

Safe Execution

  • Dangerous commands (HOST / ERASE / DELETE FILE, ...) are blocked at the start of a line;

  • Data files must live under examples/, the system temp dir, or a directory declared in SPSS_ALLOWED_DIRS;

  • spss_run_syntax(..., dry_run=True) validates without executing;

  • Audit logs are written to logs/audit.jsonl by default (override with SPSS_AUDIT_LOG).

See docs/security.md.

Documentation

License

MIT (upstream: flupke91/spss-studio-mcp, MIT).

MIT (upstream: Exekiel179/SPSS-MCP, MIT).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    C
    maintenance
    Connects AI agents to a local Stata installation, enabling execution of Stata code, data inspection, graph generation, and result verification through natural language interactions.
    81
    AGPL 3.0
  • A
    license
    A
    quality
    D
    maintenance
    Enables AI agents to control macOS desktop apps via screenshots, mouse clicks, keyboard input, accessibility queries, and AppleScript.
    11
    15
    MIT
  • A
    license
    A
    quality
    A
    maintenance
    Enables 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.
    51
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides 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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CongJyu/spss-studio-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server