返回目錄

mcp-for-stata

維護狀態: 活躍

sepinetam/mcp-for-stata

將 Stata 接入智慧體的 MCP 伺服器,支援計量經濟學與社會科學實證研究。

前往 GitHub專案首頁
$ dsh plugin add mcp-for-stata

258

星數

36

Fork

Python

語言

AGPL-3.0

授權條款

2025-03-28

建立於

2026-09-06

最近推送

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

安裝步驟

  1. 01

    Install MCP-for-Stata into DeepSeek Harness: `uvx stata-mcp install -c dsh`

  2. 02

    Or install for every supported client at once: `uvx stata-mcp install --all`

  3. 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 整合程度與能力邊界

DSH 整合相容

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 agentStata do-file execution via subprocess with automatic log capture and error reporting

    invokes Stata on your local device and executes generated do-filescaptures logs automatically
  • Security guard & RAM monitoring

    every Stata command issued through the MCP toolsdangerous 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 logsstructured 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).
2025-03-282026-08-14v1.22.0

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 連線狀態,輸出通過/失敗結果。

08資料與來源

  • 作者聲明github.come5b25dc90058…

    🚀 **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 個值得優先安裝的外掛,涵蓋各個分類。

DSH Plugins 是獨立的 DeepSeek Harness 外掛市集,與 DeepSeek 官方無關,也不代表官方背書。第三方外掛未經安全稽核,安裝前請審查原始碼。

每週取得最新的 DeepSeek Harness 外掛,絕不濫發。