Back to Home
tmonk icon

stata-workbench

Verified Safe

by 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

Run Command
uvx --refresh --from mcp-stata@latest mcp-stata

Environment 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

Stats

Interest Score39
Security Score8
Cost ClassLow
Stars6
Forks0
Last Update2026-01-19

Tags

statavs code extensionideai integrationdata sciencestatisticsmcp