AGPL-3.0 開源的 Stata MCP server,一道指令 `uvx stata-mcp install -c dsh` 即可接入 DeepSeek Harness 作為 mcp tools 使用,內建安全守衛、記憶體監控與 doctor 環境檢查。
DSH 整合
相容
作者聲明
安全稽核
未稽核
最後核實
2026-08-21
授權條款
AGPL-3.0
01它能幫你完成什麼?
Let the DeepSeek Harness agent drive Stata on your local machine for econometric and empirical analysis
Stata do-file execution with automatic log capture, regression / empirical results, plus paper replication, hypothesis testing and result interpretation workflows
Social-science and economics researchers who run DeepSeek Harness (dsh) and hold a licensed Stata installation
Register Stata as an MCP server for dsh with a single command — no manual JSON config
A working stata-mcp MCP server inside DeepSeek Harness, ready for the agent to call Stata tools
Researchers and developers who want Stata MCP tools in DeepSeek Harness without hand-editing MCP configuration files
02如何將外掛接入 DeepSeek Harness?
先決條件
- uv — package installer and virtual environment manager
- DeepSeek Harness (dsh) or another supported agent
- A licensed copy of Stata installed at the default path (the Stata CLI must exist on macOS and Linux)
- Your API-KEY from an LLM provider
安裝步驟
- 01
Install MCP-for-Stata into DeepSeek Harness: `uvx stata-mcp install -c dsh`
- 02
Or install for every supported client at once: `uvx stata-mcp install --all`
- 03
If uv is missing, install it via the uv guide or the project's install script (`install.sh` on macOS/Linux, `install.ps1` on Windows), which auto-installs uv
驗證整合成功
- Run `uvx stata-mcp doctor` — it displays basic information about your device and checks whether your setup is supported (OS, Python, uv, Stata CLI, config, guard, PyPI reachability)
03DSH 整合程度與能力邊界
Installed inside DeepSeek Harness as an MCP server via the one-command installer (`uvx stata-mcp install -c dsh`), exposing Stata execution as MCP tools to the dsh agent
Agent-driven Stata execution
natural-language analysis requests from the dsh agent→Stata do-file execution via subprocess with automatic log capture and error reporting
invokes Stata on your local device and executes generated do-filescaptures logs automaticallySecurity guard & RAM monitoring
every Stata command issued through the MCP tools→dangerous commands (`!`, `shell`, `erase`, etc.) blocked before execution; memory exhaustion prevented with configurable RAM limits
Data handlers & log readers
CSV, DTA, XLSX, SPSS datasets and Stata logs→structured data access across these formats plus text and SMCL log reading
One-command multi-agent installer + doctor check
`uvx stata-mcp install -c <client>` or `--all`→MCP config written for the chosen agent(s); `uvx stata-mcp doctor` reports whether the setup is supported
writes MCP configuration files for the target agentdownloads the stata-mcp package from PyPI via uvx
04適合誰?何時不該用?
適合
- Social-science and economics researchers who run DeepSeek Harness (dsh) and hold a licensed Stata installation
- Researchers and developers who want Stata MCP tools in DeepSeek Harness without hand-editing MCP configuration files
不適合
- A licensed copy of Stata from StataCorp is mandatory — the project does not distribute Stata software, so users must independently purchase and install it, and the README lists 'Stata License' as a prerequisite.
- The standard config assumes Stata is installed at the default path, and on macOS/Linux the Stata CLI must exist on the system; non-default setups need manual env configuration.
05相容性、維護與安全提醒
- A licensed copy of Stata from StataCorp is mandatory — the project does not distribute Stata software, so users must independently purchase and install it, and the README lists 'Stata License' as a prerequisite.
- The standard config assumes Stata is installed at the default path, and on macOS/Linux the Stata CLI must exist on the system; non-default setups need manual env configuration.
- Installation downloads stata-mcp from PyPI through uvx, so it needs network access; package downloads can be slow or fail in some regions (a troubleshooting doc is referenced for China).
AGPL-3.0 · actively maintained (latest release v1.22.0, 2026-08-13)
06常見問題
MCP-for-Stata 如何接入 DeepSeek Harness?
執行 `uvx stata-mcp install -c dsh` 即可。本專案提供 DeepSeek Harness Day 0 支援與專門的接入指南,安裝程式會自動寫好 MCP 設定,不需手動編輯 JSON。
與 DeepSeek Harness 的整合是原生還是 MCP?
透過 MCP:MCP-for-Stata 是一個獨立的 MCP server,由 `uvx stata-mcp` 啟動,一道指令安裝程式會把它註冊進 DeepSeek Harness,與 Claude Code、Codex、OpenClaw 等其他 agent 的接入方式一致。
需要哪些前置條件?
uv 套件管理工具、安裝在預設路徑的正版 Stata(macOS/Linux 需存在 Stata CLI)、DeepSeek Harness 等任一 agent,以及你的 LLM API key。
內建哪些安全防護?
安全守衛會在執行前攔截危險的 Stata 指令(如 `!`、`shell`、`erase`),RAM 監控以可設定的上限避免記憶體耗盡;資料存取邊界可設定,日誌會被自動擷取。
如何驗證安裝是否成功?
執行 `uvx stata-mcp doctor`,它會顯示裝置基本資訊並逐項檢查系統、Python、uv、相依套件、Stata CLI、設定、安全守衛與 PyPI 連線狀態,輸出通過/失敗結果。
07相關的 DSH 工作流程
ruflo
作者 ruvnet
原版智慧體元框架(meta-harness):支援多智慧體叢集部署、自主工作流編排與對話式 AI 系統構建,內建自適應記憶、自學習智慧與 RAG 檢索,原生整合 Claude Code / Codex / Hermes 等大量工具。
reactive-resume
作者 amruthpillai
注重隱私的開源簡歷生成器,安全、可定製、可移植,永久免費,支援自託管。
everos
作者 evermind-ai
為所有 AI 智慧體提供的便攜統一記憶層,本地優先、Markdown 原生、資料歸使用者所有,跨應用與工作流自進化。
yao
作者 yaoapp
在桌面、移動端、瀏覽器或 API 上統一管理你的智慧體與工作區,看板式任務追蹤,支援自託管。
08資料與來源
🚀 **DeepSeek Harness Day 0 Support**: Install MCP-for-Stata in DeepSeek Harness with `uvx stata-mcp install -c dsh`.
此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-08-21。發現錯誤?提交更正。
最佳 DeepSeek Harness 外掛
從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。
