mplus-mcp
mplus-mcp
Mplus를 구동하는 MCP 서버입니다: 데이터를 준비하고, 입력 파일을 작성·실행하며, 수백 줄의 고정 폭 텍스트 대신 표 형태로 출력을 읽어 들입니다.
라이선스 실행 파일 및 Mplus Demo(모델을 종속 변수 6개, 독립 변수 2개로 제한)와 함께 작동합니다.
繁體中文說明請見 README.zh-TW.md。
도구
도구 | 기능 |
| 사용 중인 실행 파일, 버전, 데모 제한 |
| 주제별 구문 참조(모델, 혼합, 불변성, 오류 …) |
| CSV/Excel/SPSS/Stata → Mplus |
| cfa, efa, path, sem, mediation, growth, lpa, lca, invariance, twolevel용 입력 구문 |
| 구문을 파일에 작성하고 실행한 뒤 출력 요약 |
| 기존 |
| 모든 |
| 한 섹션을 그대로(TECH1, 잔차, 무작위 시작값 …) |
| 적합도 지수 나란히 비교, 스케일링된 카이제곱 차이 검정 포함 |
| 요인 점수/클래스 확률 읽기, 선택적으로 CSV로 |
Related MCP server: aigroup-econ-mcp
설치
uv와 Mplus 설치가 필요합니다. 데모 빌드도 작동합니다.
Claude Code
claude mcp add mplus -- uvx --from git+https://github.com/Ian3738/mplus-mcp mplus-mcpClaude Desktop
claude_desktop_config.json에 추가하세요(macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):
{
"mcpServers": {
"mplus": {
"command": "uvx",
"args": ["--from", "git+https://github.com/Ian3738/mplus-mcp", "mplus-mcp"]
}
}
}클라이언트가 uvx를 찾지 못하면 절대 경로를 지정하세요(which uvx).
클론에서
git clone https://github.com/Ian3738/mplus-mcp
cd mplus-mcp
uv sync
claude mcp add mplus -- "$(pwd)/run-server.sh"run-server.sh는 단순 uv run으로 처리되지 않는 두 가지 상황을 위해 존재합니다: PATH에 uv가 없는 상태로 시작되는 GUI 클라이언트, 그리고 가상 환경이 동기화 폴더 밖에 있어야 하는 iCloud Drive 내부의 클론입니다.
구성
변수 | 기본값 | 용도 |
| 처음 발견된 실행 파일(아래 참조) | Mplus 실행 파일 경로. 데모보다 라이선스 버전을 우선하려면 설정하세요. |
|
| 폴더가 지정되지 않았을 때 실행이 이루어지는 위치 |
자동 검색 대상: PATH의 mplus / mpdemo, /Applications/Mplus/mplus, /Applications/MplusDemo/mpdemo, /usr/local/bin/mplus, /opt/mplus/mplus, C:\Program Files\Mplus\Mplus.exe.
.sav 파일을 읽으려면 추가 패키지가 하나 필요합니다: uv sync에 --extra spss를 추가하거나, uvx --from "git+https://github.com/Ian3738/mplus-mcp[spss]" mplus-mcp를 사용하세요.
모델에 mplus_status를 호출하도록 요청하여 설정을 확인하세요.
세션 진행 방식
data_prepare(path="ses.csv")
→ writes ses.dat, reports that `motivation` became `motivat`, hands back
NAMES = id sex y1 y2 y3 y4 x1 x2; MISSING = ALL (-999);
build_syntax(model_type="cfa", data_file="ses.dat",
names="id sex y1-y4 x1 x2",
factors={"F1": ["y1", "y2", "y3", "y4"]})
→ the input file as text
run_syntax(syntax=..., workdir="/path/holding/ses.dat", name="cfa1")
→ status, fit table, parameter estimates, any warnings, and cfa1.out on disk
compare_fit(out_paths=["cfa1.out", "cfa2.out"], chisq_diff=True)Mplus 자체에 대한 참고 사항
데이터 파일은 입력 파일이 실행되는 폴더를 기준으로 해석되므로, 서버는 항상 작업 디렉터리를
.inp폴더로 설정하고 데이터를 파일 이름만으로 참조합니다. 덕분에 공백이 포함된 폴더 이름도 작동합니다.입력 줄은 90자로 제한됩니다.
run_syntax는 더 긴 줄을 접습니다.변수 이름은 8자로 제한됩니다.
data_prepare는 이름을 바꾸고 보고합니다.실패한 실행도
.out을 작성하므로, 오류가 파싱되어 해당되는 경우 잘 알려진 원인과 함께 반환됩니다.
라이선스
MIT
Maintenance
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
Provides easy access to MLB, Baseball Savant, Statcast, and Fangraphs baseball data. Query detaile…
Structured analysis API and remote MCP tool for text, JSON records and numeric series.
IMF MCP — wraps IMF SDMX JSON REST API (dataservices.imf.org)
Provide structured access to ClinicalTrials.gov data for searching, retrieving, and analyzing clin…
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server for NONMEM pharmacometric modeling that provides structured access to model parsing, execution, and results analysis. It enables users to perform diagnostics, manage PsN workflows, and translate models to mrgsolve for PK simulations through natural language.2215MIT
- AlicenseNot gradedqualityDmaintenanceEconometrics MCP server for regression, causal inference, time series, panel data, machine learning, and broader statistical analysis workflows.10MIT
- FlicenseNot gradedqualityCmaintenanceEnables comprehensive statistical analysis including descriptive statistics, hypothesis testing, regression, and more via a FastMCP-based API.3
- FlicenseNot gradedqualityCmaintenanceMCP bridge for Demeter/Artemis EXAFS fitting. Enables headless fits, building Artemis projects, generating LaTeX reports, and launching the Artemis GUI.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/Ian3738/mplus-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server