Spaces:
Runtime error
Runtime error
| title: statsmodels MCP Service | |
| emoji: 🔧 | |
| colorFrom: blue | |
| colorTo: indigo | |
| sdk: docker | |
| pinned: false | |
| license: mit | |
| # statsmodels MCP Service | |
| 这是 `statsmodels` 的 MCP 封装部署包,支持: | |
| - 本地 `stdio`(Claude Desktop / CLI) | |
| - HTTP 传输(Docker / HuggingFace Spaces),端点为 `/mcp` | |
| ## Available Tools | |
| - `health_check` | |
| - `ols_fit_from_records` | |
| - `glm_binomial_from_formula` | |
| - `arima_fit_and_forecast` | |
| - `adf_stationarity_test` | |
| - `describe_dataframe` | |
| 详细参数见:`statsmodels/mcp_output/README_MCP.md` | |
| ## Local stdio Usage | |
| ```bash | |
| cd statsmodels/mcp_output | |
| python mcp_plugin/main.py | |
| ``` | |
| 或: | |
| ```bash | |
| MCP_TRANSPORT=stdio python start_mcp.py | |
| ``` | |
| ## HTTP Usage (Local/Docker) | |
| ```bash | |
| MCP_TRANSPORT=http MCP_PORT=7860 python statsmodels/mcp_output/start_mcp.py | |
| ``` | |
| MCP 客户端连接地址: | |
| - `http://127.0.0.1:7860/mcp` | |
| ## Docker | |
| ```bash | |
| ./run_docker.sh | |
| ``` | |
| 或在 PowerShell 中: | |
| ```powershell | |
| ./run_docker.ps1 | |
| ``` | |