Fin Data Acquisition
csmar432/finai-research
根据REFINEDDESIGN.md中的变量定义,自动获取所需数据并生成可执行的回归分析脚本(Python/Stata)。
A packaged Stata Runner skill via official MCP-for-Stata server including statado, adopackageinstall, help, readlog and getdatainfo tools.
$ npx skills add SepineTam/mcp-for-stata --skill stata-skill -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install SepineTam/mcp-for-stata stata-skill --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/SepineTam/mcp-for-stata.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/stata-toolbox/skills/stata-skill .claude/skills/stata-skill && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "stata-skill" agent skill from https://github.com/SepineTam/mcp-for-stata/tree/master/plugins/stata-toolbox/skills/stata-skill into .claude/skills/stata-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-skill", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/SepineTam/mcp-for-stata/tree/master/plugins/stata-toolbox/skills/stata-skillType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add SepineTam/mcp-for-stata --skill stata-skill -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install SepineTam/mcp-for-stata stata-skill --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SepineTam/mcp-for-stata.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/stata-toolbox/skills/stata-skill .agents/skills/stata-skill && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "stata-skill" agent skill from https://github.com/SepineTam/mcp-for-stata/tree/master/plugins/stata-toolbox/skills/stata-skill into .agents/skills/stata-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-skill", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add SepineTam/mcp-for-stata --skill stata-skill -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install SepineTam/mcp-for-stata stata-skill --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SepineTam/mcp-for-stata.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/stata-toolbox/skills/stata-skill .cursor/skills/stata-skill && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "stata-skill" agent skill from https://github.com/SepineTam/mcp-for-stata/tree/master/plugins/stata-toolbox/skills/stata-skill into .cursor/skills/stata-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-skill", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/SepineTam/mcp-for-stata.git --path plugins/stata-toolbox/skills/stata-skill--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add SepineTam/mcp-for-stata --skill stata-skill -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install SepineTam/mcp-for-stata stata-skill --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SepineTam/mcp-for-stata.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/stata-toolbox/skills/stata-skill .gemini/skills/stata-skill && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "stata-skill" agent skill from https://github.com/SepineTam/mcp-for-stata/tree/master/plugins/stata-toolbox/skills/stata-skill into .gemini/skills/stata-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-skill", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install SepineTam/mcp-for-stata stata-skillInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add SepineTam/mcp-for-stata --skill stata-skill -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/SepineTam/mcp-for-stata.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/stata-toolbox/skills/stata-skill .github/skills/stata-skill && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "stata-skill" agent skill from https://github.com/SepineTam/mcp-for-stata/tree/master/plugins/stata-toolbox/skills/stata-skill into .github/skills/stata-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-skill", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add SepineTam/mcp-for-stata --skill stata-skill -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install SepineTam/mcp-for-stata stata-skill --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/SepineTam/mcp-for-stata.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/stata-toolbox/skills/stata-skill .opencode/skills/stata-skill && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "stata-skill" agent skill from https://github.com/SepineTam/mcp-for-stata/tree/master/plugins/stata-toolbox/skills/stata-skill into .opencode/skills/stata-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "stata-skill", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
stata-skillA packaged Stata Runner skill via official MCP-for-Stata server including statado, adopackageinstall, help, readlog and getdatainfo tools.
Stata Skill is an agent skill from SepineTam/mcp-for-stata. A packaged Stata Runner skill via official MCP-for-Stata server including statado, adopackageinstall, help, readlog and getdatainfo tools. Use it when (1) need to execute Stata do-file; (2) missing ado-packages; (3) find code error caused by syntax in Stata; (4) want to read smcl and text format log file with rich text output; (5) first encounter a data file and want to understand its structure and content.
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 10 other files, including reference files (for example `examples/esttab-senior-guidance.md`, `examples/graph-export-guidance.md` and `references/ado_package_install.md`).
It sits in Research & Science, covering Econometrics and empirical research. It works with Model Context Protocol. The repository describes itself as: Stata-MCP: A MCP server for integrating Stata into your agent loop with a safety-first design. The licence is AGPL-3.0.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit d339615. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
uvxFrom the folder's file list and the shell code blocks in SKILL.md.
Links to these hosts (documentation or services it may open):
aidea-labs.comgithub.comsepinetam.github.ioFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Stata Skill loads about 2.7k tokens when it runs, and up to ~7.1k if it reads all its reference files. Until then it costs about 107 tokens; SKILL.md has 1,300 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from SepineTam/mcp-for-stata at commit d339615, republished under its AGPL-3.0 licence (© SepineTam). 1,300 words, ~2,708 tokens.
.claude/skills/stata-skill/SKILL.md (or your agent's skills folder). This skill also uses 8 other files; get the full folder from GitHub.Official plugin for MCP-for-Stata maintained in collaboration with SepineTam.
MCP-for-Stata (Stata-MCP) is an MCP (Model Context Protocol) server that exposes Stata's statistical and econometric capabilities to LLMs. This toolset supports executing do-files, querying data file structures, installing ado packages, reading Stata logs, and looking up command documentation.
This skill requires the MCP-for-Stata server to be installed and running. If you have not configured it yet, follow @references/installation.md. After installation, verify with uvx stata-mcp doctor. Restart your AI client after installation (required for the first-time setup).
Trigger this skill when the user mentions any of the following scenarios:
get_data_infoWhen the user provides a data file path (.dta, .csv, .xlsx, .sav) or says "look at this data," call get_data_info first.
Key points:
data_path: absolute path to the data filevars_list: if the user only cares about specific variables, pass a list of variable names; otherwise omit (defaults to all)head: defaults to 0 (no preview rows). Only set to a positive integer when the user explicitly asks to see rowsReturn value includes: data source, number of observations, variable list, variable types, and descriptive statistics (mean, standard error, min, max) for each variable.
Note: results are cached based on MD5 hash of file content. Repeated queries on the same file hit the cache.
stata_doWhen the user asks to run Stata commands, perform regression analysis, generate graphs, process data, etc., call stata_do.
Pre-requisites:
.do file (using the Write tool)<WORKING_DIR>/.statamcp/stata-mcp-dofile/ or <WORKING_DIR>)stata_do(dofile_path=..., log_file_name=...)Key parameters:
dofile_path: absolute path to the do-filelog_file_name: custom log filename without timestamp, optionalread_log_when_error: defaults to false. When true, only returns log content when Stata returns an error code (e.g., r(198))enable_smcl: defaults to true, also generates .smcl log (Unix only)Return value: log_file_path (text and smcl paths); may contain log_content on error.
Notes:
ado_package_installTreat ado_package_install as a high-risk, opt-in tool. Do not call it merely
because a command is missing. First identify the exact package and source, then
ask the user to approve that package and source. The MCP tool is available only
when the operator starts the MCP server with the unsafe profile.
Key parameters:
package: package name. For GitHub source, use "user/repo" formatsource: "ssc" (default), "github", or "net"is_replace: defaults to falsepackage_source_from: required only when source="net", specifies a validated HTTPS URLAuthorization and validation: SSC and net package names may contain only
ASCII letters and numbers. GitHub repositories must use owner/repository
format and match the exact repository allowlist.
Unknown sources, local paths, IP hosts, credentials, queries, fragments, and
non-default ports are rejected. The MCP client will ask the user to approve the
exact request during the tool call; do not attempt to bypass or pre-answer it.
The Python API does not require caller confirmation. The CLI prompts unless
-y or --yes is supplied.
Examples:
ado_package_install("outreg2") — request approval to install an SSC packageado_package_install("SepineTam/TexIV", source="github") — request approval to install an allowlisted GitHub repositoryNote: GitHub repository contents receive no security protection. Inspect the
repository before installation. The tool never installs the GitHub helper.
Successful installs automatically attempt help(..., replace=true) for the
likely command name; if the package exposes other commands, refresh those
commands explicitly.
helpWhen the user asks about the syntax, options, or usage of a Stata command, or wants to verify a command before troubleshooting an error, call help.
Key parameter:
cmd: Stata command name (e.g., "regress", "describe", "xtset")replace: defaults to false. When true, bypasses cached help and refreshes it from StataReturn value: Stata help text string. A cache hit is prefixed with
Saved result for {cmd} or Cached result for {cmd}.
Notes:
help(cmd=..., replace=true) to refresh itread_logWhen the user asks to view a Stata execution log, analyze output results, or wants to inspect the full log after stata_do execution, call read_log.
Key parameters:
file_path: absolute path to the log fileoutput_format: "core" (default, removes framework lines), "dict" (structured command-result pairs), or "full" (all original content)lines: content truncation. 0 returns all; positive returns first N items; negative returns last |N| itemsNotes:
<WORKING_DIR>/<FOLDER_TAG>/ (security boundary)[BETA] enable_structured_log and is disabled by defaultWhen the user has NOT specified how an output should be produced, apply these presets — do not ask, do not invent alternatives. An explicit user request always overrides them.
| Output | Default | Detailed example |
|---|---|---|
| Regression | reghdfe with fixed effects in absorb() and vce(cluster <id>) at the treatment/assignment level; never regress when fixed effects are involved, never reflex , robust | @examples/esttab-senior-guidance.md (setup section also covers reghdfe/ftools installation) |
| Regression tables | esttab (from estout), .tex with label booktabs fragment for papers, .rtf/.csv for quick sharing | @examples/esttab-senior-guidance.md |
| Figures | graph export name.png, width(2000) replace; PDF only for LaTeX papers | @examples/graph-export-guidance.md |
Package availability: reghdfe (+ ftools) and estout may not be installed.
Check with help(cmd=...); if missing, use ado_package_install per section 3
— never ssc install inside a do-file. If installation is unavailable, tell
the user exactly what to install manually.
get_data_info — explore data structureado_package_install; inspect GitHub repositories firststata_do — execute the do-fileread_log — inspect execution results if neededhelp — look up official command documentation (Unix only)stata_do — re-execute to verifyado_package_install("pkgname") — request approval and install the packagehelp(cmd="pkg_name", replace=true) — explicitly refresh and check package usagestata_do — executeSTATA_MCP__IS_GUARD=false (not recommended)STATA_MCP__IS_MONITOR=true and STATA_MCP__RAM_LIMITado_package_install from SSC source may take time; skip if the package is already installed| Name | Location | Description |
|---|---|---|
| Installation | @references/installation.md | Installation and configuration guide for MCP-for-Stata |
| stata_do | @references/stata_do.md | Detailed guide for the execution tool |
| get_data_info | @references/get_data_info.md | Detailed guide for the data exploration tool |
| help | @references/help.md | Detailed guide for the documentation tool |
| read_log | @references/read_log.md | Detailed guide for the log reader tool |
| ado_package_install | @references/ado_package_install.md | Detailed guide for the package installer tool |
| esttab example | @examples/esttab-senior-guidance.md | Senior-level example for exporting regression tables |
| graph export example | @examples/graph-export-guidance.md | Defaults and pitfalls example for exporting figures |
| Documentation | sepinetam.github.io/mcp-for-stata | Full user documentation |
| Homepage | MCP-for-Stata official website | Project homepage |
| Source Code | github.com/sepinetam/mcp-for-stata | GitHub repository |
© SepineTam, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 8 other files (references) in plugins/stata-toolbox/skills/stata-skill of SepineTam/mcp-for-stata.
Open the folder on GitHubat commit d339615
Stata Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Stata Skill this skillSepineTam/mcp-for-stata | 264 | — | ~2.7k | Automated safety check: Pass | AGPL-3.0 | |
| Fin Data Acquisitioncsmar432/finai-research | 109 | — | ~2k | Automated safety check: Pass | MIT | |
| Fin Generate Ideacsmar432/finai-research | 109 | — | ~2.5k | Automated safety check: Pass | MIT | |
| Fin Idea Discoverycsmar432/finai-research | 109 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Fin Novelty Checkcsmar432/finai-research | 109 | — | ~1.4k | Automated safety check: Pass | MIT | |
| Stata Replicationpedrohcgs/claude-code-my-workflow | 1.7k | — | ~2.1k | Automated safety check: Notes | MIT |
csmar432/finai-research
根据REFINEDDESIGN.md中的变量定义,自动获取所需数据并生成可执行的回归分析脚本(Python/Stata)。
csmar432/finai-research
针对经济金融研究方向的创意生成与评估。生成8-12个可发表的研究idea,过滤后在数据可行的情况下进行小规模实证验证,输出排序后的研究想法报告。
csmar432/finai-research
经济金融研究的完整想法发现流程。从研究方向出发,经过文献综述、想法生成、新颖性验证、实证方法设计和数据获取,输出经过数据实证验证的可执行研究方案。
csmar432/finai-research
验证经济金融研究想法的新颖性。在JF、JFE、RFS、JME等顶刊及arXiv中搜索近三年文献,输出结构化新颖性报告和定位策略。
pedrohcgs/claude-code-my-workflow
End-to-end Stata replication pipeline — scaffolds numbered .do files in scripts/stata/, executes them via the stata-mcp MCP server, captures logs and outputs to output/, and produces…
brycewang-stanford/Auto-Empirical-Research-Skills
A skill your agent uses when aer-identification has fixed the design, after methodology choice and before aer-robustness or aer-tables-figures, to run an AER-track analysis with StatsPAI — the…
SepineTam/mcp-for-stata
Inspect, validate, summarize, and render local Stata-MCP audit evidence under .statamcp.
SepineTam/mcp-for-stata
A skill your agent uses when the user needs to inspect, audit, or diagnose the safety of a Stata do-file.
SepineTam/mcp-for-stata
Run a local smoke test for the Stata-MCP server. An agent skill from SepineTam/mcp-for-stata.
SepineTam/mcp-for-stata
A skill your agent uses when you need to find Stata on the user's machine or configure stata-mcp to use it.
SepineTam/mcp-for-stata
Generate RFC and IMPL documents from a user-provided feature/fix description.
Works with
Categories
A packaged Stata Runner skill via official MCP-for-Stata server including statado, adopackageinstall, help, readlog and getdatainfo tools. Stata Skill is an agent skill from SepineTam/mcp-for-stata. A packaged Stata Runner skill via official MCP-for-Stata server including statado, adopackageinstall, help, readlog and getdatainfo tools.
Stata Skill fits situations like: need to execute Stata do-file; missing ado-packages; find code error caused by syntax in Stata; want to read smcl and text format log file with rich text output.
Run `npx skills add SepineTam/mcp-for-stata --skill stata-skill -a claude-code`. Or copy the skill folder (plugins/stata-toolbox/skills/stata-skill in SepineTam/mcp-for-stata) into .claude/skills/stata-skill in your project. Claude Code loads it when a task matches its description.
Run `npx skills add SepineTam/mcp-for-stata --skill stata-skill -a codex`. Or copy the skill folder (plugins/stata-toolbox/skills/stata-skill in SepineTam/mcp-for-stata) into .agents/skills/stata-skill in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add SepineTam/mcp-for-stata --skill stata-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/stata-skill, .gemini/skills/stata-skill, .github/skills/stata-skill and .opencode/skills/stata-skill in your project.
Going by SKILL.md and its folder, Stata Skill needs the command-line tools its instructions call (uvx). Our summary lists: Python 3.
SKILL.md names 3 domains. As links in the text: aidea-labs.com, github.com and sepinetam.github.io. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Stata Skill is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.4k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Stata Skill: Fin Data Acquisition (csmar432/finai-research, 109 stars), Fin Generate Idea (csmar432/finai-research, 109 stars), Fin Idea Discovery (csmar432/finai-research, 109 stars) and Fin Novelty Check (csmar432/finai-research, 109 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
SepineTam (a GitHub user) maintains it in SepineTam/mcp-for-stata, which has 264 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on October 6, 2026.
Source: SepineTam/mcp-for-stata on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.