stata-workbench
Verified Safeby tmonk
Overview
A VS Code compatible extension that enables running Stata code directly from the editor, displaying output and graphs, and allowing AI agents to interact with Stata through an MCP server backend.
Installation
uvx --refresh --from mcp-stata@latest mcp-stataEnvironment Variables
- MCP_STATA_UVX_CMD
- MCP_STATA_PACKAGE_SPEC
- STATA_SETUP_TIMEOUT
Security Notes
The extension's core functionality involves executing user-provided Stata code via a local backend (mcp-stata) that wraps the Stata executable. This is an inherent risk of a code execution tool but is handled in a controlled environment. The extension uses `child_process.spawnSync` for `uvx` installation/verification and `fs.writeFileSync`/`fs.readFileSync` for managing MCP configuration files and temporary scripts in expected locations. Network communication is primarily with a local MCP server (localhost). Content Security Policy (CSP) is used in webviews. No obvious hardcoded secrets were found.
Similar Servers
spec-workflow-mcp
Facilitates structured, specification-driven software development by providing a workflow engine, real-time dashboards, and tools for task management, approvals, and detailed implementation logging, integrated with AI agents and VSCode.
mcp-stata
Connects AI agents to a local Stata installation for executing commands, analyzing data, generating visualizations, and inspecting results.
ai-calls-editor
Facilitates AI-powered code refactoring within a VS Code environment by exposing an MCP server to AI assistants.
aigroup-stata-mcp
A Stata integration server based on Model Context Protocol (MCP) that allows AI assistants to execute Stata scripts, fetch data information, and run statistical analysis.