StatCraft MCP server
2026년 11월 12일 커밋로컬 MCP bridge를 통해 AI agent가 엄격한 통계 분석을 수행하고, SPSS syntax를 실행하며, 검증된 수학적 결과를 가져올 수 있도록 지원합니다.
다른 이름 kobaltgit/StatCraft
- 스타
- 52
- Tools
- —
- 다운로드, 30일
- —
- 최신 버전
- —
- 마지막 커밋
- 2026년 11월 12일
- 라이선스
- Apache-2.0
StatCraft MCP란?
StatCraft은(는) MCP server입니다. 로컬 MCP bridge를 통해 AI agent가 엄격한 통계 분석을 수행하고, SPSS syntax를 실행하며, 검증된 수학적 결과를 가져올 수 있도록 지원합니다.
프로젝트 README에서 생성된 요약
StatCraft MCP server 정보
StatCraft는 연구자와 데이터 분석가가 자연어를 통해 엄격한 통계 분석을 수행할 수 있도록 지원합니다. 이 오픈 소스 소프트웨어는 결정론적 계산 오라클 역할을 하여, Claude, ChatGPT 또는 Ollama와 같은 AI agent가 수학적 환각(hallucination) 위험 없이 복잡한 절차를 실행할 수 있게 합니다. 사용자는 18493 포트의 소켓을 통해 AI 클라이언트를 로컬 MCP bridge에 연결하거나 headless CLI 모드를 사용하여, 통계 작업을 평이한 영어로 설명하기만 하면 됩니다. 그러면 내부의 Rust 엔진이 정밀한 수학 계산을 처리합니다.
사용자는 이중 뷰 데이터 관리 시스템과 SPSS 스타일의 출력 뷰어를 갖춘 데스크톱 GUI를 통해 시스템과 상호작용합니다. 이 서버는 SPSS syntax 실행, 변수 메타데이터 관리, One-Way ANOVA, T-Tests 및 빈도 계산과 같은 모수 검정을 지원합니다. bridge가 로컬에서 실행되므로 모든 민감한 의료 또는 기업 데이터셋은 워크스테이션에 그대로 유지되어 프라이버시를 보장하며, 사용자의 화면에 결과의 실시간 시각적 동기화를 제공합니다.
활용 사례
- 1프라이버시를 보호하는 데이터 분석데이터를 외부 클라우드 서비스로 전송하지 않고 로컬 LLM을 사용하여 비공개 데이터셋에 대한 연구를 수행합니다.
프로젝트의 README를 바탕으로 작성되었습니다. 모든 활용 사례는 해당 내용의 인용문과 대조하여 확인합니다.
자동 검사
2026년 11월 15일에 실행됨전체 보고서 →아직 인증되지 않았습니다. 서버는 80점 이상의 점수, 심각한 결함 없음, 그리고 검사에 충분한 데이터를 갖추어야 합니다. 검사 방식 · 점수를 높이기 위해 수정할 항목
- 소스 저장소 연결 및 접근 가능kobaltgit/statcraft is public and reachablegithub.com/kobaltgit/statcraft ↗통과
- 패키지가 이 저장소를 소스로 명시검사되지 않음
- 빌드 출처(Sigstore 증명)검사되지 않음
- 오픈 소스 라이선스 (OSI)Apache-2.0spdx.org/licenses/Apache-2.0.html ↗통과
- 최근 1년 내 커밋 또는 릴리스Last commit or release 2026-11-12github.com/kobaltgit/statcraft ↗통과
- OpenSSF Scorecard검사되지 않음
- 패키지 이름이 인기 패키지와 유사하지 않음검사되지 않음
- 패키지 및 해당 종속성에 중요한 보안 권고 없음검사되지 않음
- 모델에 대한 숨겨진 지침 없음0 tool descriptions and the README read; no override phrases, credential paths or hidden characters통과
- 파괴적인 도구에 라벨 표시됨검사되지 않음
- 원격 엔드포인트가 MCP 핸드셰이크에 응답검사되지 않음
README
GitHub에서 보기Overview
StatCraft is a free, modern, open-source statistical software package built entirely in 100% pure Safe Rust. Designed as an uncompromising, clean-room alternative to proprietary statistical suites such as IBM SPSS Statistics, StatCraft combines academic precision, instantaneous launch times, and guaranteed crash immunity.
Whether you are conducting psychological research, analyzing clinical trials, teaching university statistics, or manipulating enterprise datasets, StatCraft provides an intuitive graphical interface alongside a deterministic, syntax-driven analytical engine.
Core Pillars & Design Principles
- 100% Safe Rust & Never Crash Guarantee: Zero
unsafeblocks, zero panics (panic!,unwrap(),expect()). Malformed datasets, empty samples, or division by zero yield explicit, typedResult<T, E>errors rather than application crashes. - Commands, Not Handlers: Every analytical procedure and user interaction is an atomic engine command (
EngineCommand). All commands support non-destructive Undo/Redo, serialize to standard SPSS syntax (.sps), and can be scripted headlessly. - Agent-Ready & MCP Bridge (Code Mode): Built-in local IPC socket (port 18493) and Model Context Protocol (MCP) server (
--mcpflag). Enables external autonomous AI agents (Antigravity, Claude, ChatGPT, Ollama) to inspect metadata, execute batch syntax, perform mathematical computations, and stream live results into the Output Viewer. - SPSS-Style Canonical Output Viewer: Hierarchical navigation outline tree paired with authentic multi-level pivot tables. Results can be copied to the clipboard with one click as structured TSV data that pastes cleanly into Microsoft Excel without distorted columns or unwanted date conversions.
- Vector-First UI: Rendered with native
eguiviaui.painter()and vector SVG icons. Strict zero-emoji and zero-unsupported Unicode symbol policy eliminates tofu squares (□) across all platforms. - Zero-Hardcode i18n: 100% of user-facing strings are decoupled into Project Fluent catalogs (
locales/en.ftl,locales/ru.ftl) with real-time runtime language switching. - Resource Guard: Thread-limited builds (
-j 1,codegen-units = 1) protect development workstations from memory exhaustion.
Key Features
[!TIP] 📖 Comprehensive Feature Guide: An exhaustive reference of all available analytical procedures, data manipulations, transformation algorithms, and keyboard shortcuts is available in FEATURES.md (English) and FEATURES_RU.md (Русский).
1. Dual-View Data Management
- Data View: High-performance, virtualized tabular grid displaying cases and variables. Supports instant toggling between raw numeric values and human-readable value labels (
1/A). - Variable View: Comprehensive metadata dictionary managing:
- Name: Normalized variable identifiers.
- Type: 9 canonical SPSS types (Numeric, Comma, Dot, Scientific, Date, Dollar, Custom Currency, String, Restricted Numeric).
- Width & Decimals: Visual width and precision control with custom vector spinners.
- Labels: Descriptive variable titles displayed in dialogs and tables.
- Values: Discrete and range value labels with dedicated modal editors.
- Missing Values: Configurable discrete missing values and continuous missing ranges.
- Columns & Align: Table layout and alignment (Left, Center, Right).
- Measure: Measurement level classification (Scale, Ordinal, Nominal) with custom vector scale icons.
2. Parametric & Descriptive Statistical Procedures
- Descriptive Statistics: Mean, Std. Error Mean, Standard Deviation, Variance, Minimum, Maximum, Range, Sum, Skewness (with SE), Kurtosis (with SE), and Valid N (listwise).
- Frequencies: Frequency counts, percentages, valid percentages, cumulative percentages, discrete missing value breakdown, percentiles, and quartiles.
- One-Sample T-Test: Student's $t$-test against customizable test values, degrees of freedom, two-tailed significance, mean differences, confidence intervals ($95%$ default or user-defined), and dual-table SPSS output.
- Independent-Samples T-Test: Two-group comparison with automatic Levene's Test for Equality of Variances ($F$, $p$), Student's $t$-test (Equal Variances Assumed), Welch's $t$-test (Equal Variances Not Assumed), and full Group Statistics table.
- Paired-Samples T-Test: Dependent group comparison providing Paired Samples Statistics, Pearson Correlation coefficients ($r$, $p$), and Paired Differences test tables.
- One-Way ANOVA: One-Way Analysis of Variance with Fisher's $F$-test, between-groups and within-groups sums of squares, Levene's Test of Homogeneity of Variances, and descriptive statistics.
3. Canonical Output Viewer
- Outline Tree Navigation: Interactive document tree on the left panel to jump directly to any procedure, log, or table.
- Pivot Tables: Multi-tier nested tables with authentic SPSS headers, alternating row striping, and right-aligned numeric formatting.
- TSV Clipboard Export: One-click
[ Copy Table (TSV) ]button with instant visual feedback and right-click context menus. Exports tables with clean headers and row separators specifically structured for Excel import. - Execution Protocols: Monospace log blocks documenting executed SPSS syntax (
GET DATA,DESCRIPTIVES,T-TEST,ONEWAY).
4. StatCraft Bridge & AI Agents (Model Context Protocol / Code Mode)
StatCraft is the world's first statistical software package natively equipped with the Model Context Protocol (MCP) and direct two-way control via autonomous AI agents (Antigravity, Claude, ChatGPT, Ollama, and local LLMs).
You No Longer Need to Learn SPSS: Statistical Analysis in Natural Language
Historically, performing rigorous statistical analysis required mastering legacy statistical GUI suites (SPSS, SAS, Stata) or writing complex code in R and Python. Researchers had to memorize arcane syntax commands (DESCRIPTIVES VARIABLES=...), navigate dozens of nested dialog boxes, or write data wrangling scripts from scratch.
With StatCraft Bridge, that barrier is completely gone: Connect your favorite AI assistant to StatCraft and describe what you want in plain human language:
"Inspect the loaded survey dataset. Compare the mean salary between males and females using an independent-samples t-test, check Levene's test for equality of variances, and explain in simple terms whether the difference is statistically significant."
The AI agent will autonomously:
- Query dataset metadata and variable dictionaries via the bridge;
- Generate and execute commands through StatCraft's core;
- Retrieve verified mathematical output tables;
- Present a plain-language summary with effect sizes and $p$-value interpretations.
Why Use StatCraft Bridge Instead of Plain LLM Chat?
- Absolute Mathematical Exactness vs. LLM Hallucinations: Large Language Models frequently hallucinate when processing thousands of numbers, calculating means, or estimating non-linear test statistics. StatCraft serves as the deterministic calculation oracle: the LLM guides the inquiry, while native Rust handles the math with $\le 10^{-6}$ precision verified against SciPy and SPSS algorithms.
- Real-Time Visual Synchronization on Your Screen: As the agent executes procedures, the StatCraft desktop GUI updates live in front of you. Authentic Pivot Tables appear in the Output Viewer, syntax logs record the audit trail, and all results can be copied into Excel with a single click.
- 100% Local & Privacy-Preserving:
The socket bridge runs locally (
127.0.0.1:18493). Your medical, corporate, or private research data never leaves your workstation. - Autonomous Code Mode:
Agents can run arbitrary SPSS syntax scripts (
.sps), sort cases, filter subsets, recode scales, handle missing values, and trigger any of StatCraft's statistical modeling procedures.
How to Connect Your AI Agent
- Desktop GUI: Open
Extensions -> MCP Bridge / Copilotin StatCraft. The dialog provides live server status, activity logs, and one-click configuration snippets for Antigravity, Claude Desktop, and Cursor. - Headless CLI (stdio MCP): Configure
statcraft.exe --mcpinside your MCP client settings.
Layered Architecture (L0 – L6)
StatCraft is engineered in strict compliance with the ArtCraft Layering Law. Dependencies flow strictly downwards:
L6: statcraft_app Desktop GUI (egui / eframe / DialogKit / Output Viewer)
└── L5: statcraft_syntax CommandBus, SPS syntax parser, engine transactions
├── L4: statcraft_reporting Pivot table models, TSV / HTML / Text export
└── L2: statcraft_algo Pure statistical math (Golden Oracle vs SciPy)
└── L1: statcraft_core In-memory dataset, RawTable, VariableDictionary
└── L0: statcraft_io Data codecs (CSV/TSV streaming, Excel .xlsx/.xls/.ods, SPSS .sav/.zsav)
Cross-cutting utility crates:
* statcraft_bridge Local IPC socket (18493) and Model Context Protocol (MCP) server
* statcraft_i18n Fluent localization engine with zero hardcoded strings
* xtask Developer tools: file-guard, layers, design-guard, parity, test-corpus
Getting Started
Prerequisites
- Rust toolchain (version 1.80 or newer recommended).
Building and Running
Clone the repository and launch the desktop application:
git clone https://github.com/kobaltgit/StatCraft.git
cd StatCraft
# Run StatCraft in release mode (strictly single-threaded compiler guard)
cargo run --package statcraft_app --release -j 1
Running Tests and Quality Guards
StatCraft enforces a strict Definition of Done (DoD). All tests and architectural linters must pass with zero warnings:
# Run all workspace unit, integration, and golden oracle tests
cargo test --workspace -j 1
# Check file size limits across all crates (anti-monolith guard)
cargo run -p xtask -j 1 -- file-guard
# Check architectural layering rules (L0 - L6 strict downwards dependencies)
cargo run -p xtask -j 1 -- layers
# Check dialog UI design system compliance (DialogKit guard)
cargo run -p xtask -j 1 -- design-guard
# Verify SPSS feature parity status
cargo run -p xtask -j 1 -- parity
Project Structure
| Crate / Path | Responsibility |
|---|---|
crates/statcraft_app |
Desktop user interface, docking windows, DialogKit, data grid, output viewer |
crates/statcraft_syntax |
Engine command bus, transactions, undo/redo, SPSS syntax serializer |
crates/statcraft_algo |
Pure mathematical algorithms (t-tests, ANOVA, regression, correlations, factor PCA, nonparametrics, frequencies) |
crates/statcraft_core |
In-memory DataSet, RawTable, VariableDictionary, measurement scales, metadata |
crates/statcraft_io |
Data codecs: streaming CSV/TSV, Excel workbooks (.xlsx/.xls/.ods), and SPSS files (.sav/.zsav) |
crates/statcraft_i18n |
Localization engine powered by Project Fluent (locales/*.ftl) |
xtask |
CI/CD automation: file-guard, layers, design-guard, parity |
docs/ |
Architecture guides, design specs, roadmaps, and development chronicle |
Documentation
- Comprehensive Feature Guide (FEATURES.md) / Справочник возможностей (RU) — Exhaustive catalog of all implemented statistical procedures, data transformations, formulas, and UI tools.
- Contributor Guide (CONTRIBUTING.md) — Comprehensive development regulations, Resource Guard (-j 1), architecture rules, and Definition of Done.
- SPSS Feature Parity Checklist — Comprehensive tracking of implemented SPSS commands and menus.
- SPSS Algorithms Mathematical Audit — Rigorous Clean-Room verification against IBM SPSS 24 Algorithms guide via Craft Anything.
- Strategic Roadmap — Long-term technical phases and module milestones.
- Canonical Design Guide — Standard layout specifications for all modal dialogs (
DialogKit). - Development Chronicle (EN) / Хроника разработки (RU) — Detailed historical devlog of every architectural milestone.
💖 Support & Sponsorship
StatCraft is an ambitious, mathematically rigorous, clean-room statistical suite built in 100% pure Safe Rust with zero legacy C/Fortran code. Developing clean-room analytical algorithms (parametric & non-parametric tests, ANOVA, Levene, regression, syntax pipelines, and canonical pivot tables) requires immense research and mathematical verification.
If StatCraft helps your academic research, university coursework, or statistical workflows, and you would like to support its ongoing development:
👉 https://app.lava.top/kobaltgit
(Accepts Russian cards, CIS, and international payment options)
License
This project is dual-licensed under:
- MIT License (LICENSE-MIT)
- Apache License, Version 2.0 (LICENSE-APACHE)
You may choose either license at your option.
All brand assets and logos in assets/ are property of the StatCraft project (kobaltGIT).
StatCraft MCP 질문
AI agent가 통계 테스트를 수행하기 위해 StatCraft를 사용할 수 있나요?
네, AI agent는 MCP bridge를 통해 연결하여 메타데이터를 조회하고, 배치 syntax를 실행하며, 수학적 계산을 수행하고 결과를 스트리밍할 수 있습니다.
StatCraft는 어떤 프로그래밍 언어로 구축되었나요?
StatCraft는 100% 순수 Safe Rust로 구축되었습니다.