
tmonk/mcp-stata
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
tmonk/mcp-stata は [https://github.com/tmonk/mcp-stata.] からインポートされた MCP サーバー候補です
概要
tmonk/mcp-stata は [https://github.com/tmonk/mcp-stata.] からインポートされた MCP サーバー候補です
概要(AI 翻訳)
mcp-stataは、空中研究者のための有力なツールキットです。 エージェントは、ローカルのスタタのインストールをネイティブに制御し、エージェントがファイルを実行したり、データを検査したり、保存した結果を確認し、グラフをエクスポートしたりすることができます。 ワークフローの研究者が利用するスキルカタログには、多くの場合、データの監査、レプリケーションおよび堅牢性チェック、仕様比較、出版物QA、レフリー応答、およびレガシーコードの近代化が含まれます。 ニュース .
完全に統合されたVSコードの拡張子がIDEを離れずにStaコードを実行するのが好きで、またAIエージェントのインタラクションを許可している場合は、他のプロジェクトをチェックしてください:Stata Workbench。
トーマス・モンク、ロンドンの経済学校によって造られる。
このサーバーでは、LLM を以下にすることができます。
- Stataのコードを省略:任意のStataコマンドを実行します(
sysuse auto]、regress price mpg])。 - Inspect data: データセットの要約と変数のコードブックを取得します。 -Export Graphic:Stataグラフ(ヒストグラム、散布)を生成し、表示します。 -Streaming グラフキャッシング: コマンド実行時に自動的にグラフをキャッシュします。
- 結果の確認:プログラム的に保存された結果([[
r()]]、[e()])を正確に検証します.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Stata MCP Server (mcp-stata)
mcp-stata is an agentic toolkit for empirical researchers. It gives AI agents native control over a local Stata installation, allowing agents to run do-files, inspect data, check stored results, and export graphs. Contains a skills catalog for workflows researchers use often: auditing data, replication and robustness checks, specification comparisons, publication QA, referee responses, and modernization of legacy code. Featured in News.
If you’d like a fully integrated VS Code extension to run Stata code without leaving your IDE, and also allow AI agent interaction, check out my other project: Stata Workbench.
Built by Thomas Monk, London School of Economics.
This server enables LLMs to:
- Execute Stata code: run any Stata command (e.g.
sysuse auto,regress price mpg). - Inspect data: retrieve dataset summaries and variable codebooks.
- Export graphics: generate and view Stata graphs (histograms, scatterplots).
- Streaming graph caching: automatically cache graphs during command execution for instant exports.
- Verify results: programmatically check stored results (
r(),e()) for accurate validation. - Drive paper workflows: run structured research audits, estimation planning, specification comparisons, publication checks, and reproducibility diagnostics.
- Use modern MCP surfaces: discover prompts, project/session resources, artifacts, and safety metadata through structured tool envelopes.
Quickstart
1 · Install
macOS/Linux:
curl -LsSf https://mcp-stata-install.tdmonk.com/install.sh | bash
Windows (PowerShell):
irm https://mcp-stata-install.tdmonk.com/install.ps1 | iex
Client-specific examples:
| Client | macOS/Linux | Windows (PowerShell) |
|---|---|---|
| Claude Code | bash <(curl -LsSf https://mcp-stata-install.tdmonk.com/install.sh) --agent claude |
& ([scriptblock]::Create((irm https://mcp-stata-install.tdmonk.com/install.ps1 | iex))) --agent claude |
インストール
uvx --refresh --refresh-package mcp-stata --from mcp-stata@latest mcp-stata設定
{
"mcpServers": {
"mcp-stata": {
"command": "uvx",
"args": [
"--refresh",
"--refresh-package",
"mcp-stata",
"--from",
"mcp-stata@latest",
"mcp-stata"
]
}
}
}