Skip to content

SepineTam/mcp-for-stata / plugins/stata-toolbox/skills/stata-skill

stata-skill

Flagged

A packaged Stata Runner skill via official MCP-for-Stata server including stata_do, ado_package_install, help, read_log and get_data_info 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.

references/installation.md

View on GitHub
# Installation

## Overview

MCP-for-Stata runs via `uvx` without system installation. You only need to register it as an MCP server in your AI client.

## Automatic Registration (Recommended)

### One-Line Install (with uv auto-detection)

**macOS / Linux:**
```bash
curl -fsSL https://raw.githubusercontent.com/SepineTam/mcp-for-stata/master/scripts/install.sh | bash
```

**Windows (PowerShell):**
```powershell
irm https://raw.githubusercontent.com/SepineTam/mcp-for-stata/master/scripts/install.ps1 | iex
```

This script auto-installs `uv` if missing, then registers MCP-for-Stata to all supported AI clients.

### If uv is already installed

```bash
uvx stata-mcp install --all          # All supported clients at once
```

Or install to a specific client:

```bash
uvx stata-mcp install -c codex       # Codex
uvx stata-mcp install -c claude      # Claude Desktop
uvx stata-mcp install -c cc          # Claude Code
uvx stata-mcp install -c cursor      # Cursor
uvx stata-mcp install -c cline       # Cline
uvx stata-mcp install -c gemini      # Gemini CLI
uvx stata-mcp install -c opencode    # OpenCode
uvx stata-mcp install -c openclaw    # OpenClaw
uvx stata-mcp install -c hermes      # Hermes
```

Restart your AI client after installation.

## Manual Registration

If automatic registration fails, manually add the following configuration to your AI client's MCP settings:

```json
{
  "stata-mcp": {
    "command": "uvx",
    "args": ["stata-mcp"]
  }
}
```

### Client-Specific Config Locations

| Client | Config File | Format | Key |
|:---|:---|:---|:---|
| Claude Desktop | `~/Library/Application Support/Claude/claude_desktop_config.json` | JSON | `mcpServers` |
| Claude Code | `~/.claude.json` | JSON | `mcpServers` |
| Codex | `~/.codex/config.toml` | TOML | `mcp_servers` |
| Cursor | `~/.cursor/mcp.json` | JSON | `mcpServers` |
| Gemini | `~/.gemini/settings.json` | JSON | `mcpServers` |
| Cline | VS Code `globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json` | JSON | `mcpServers` |
| OpenCode | `~/.config/opencode/opencode.json` | JSON | `mcp` |
| OpenClaw | `~/.openclaw/openclaw.json` | JSON | `mcp.servers` |
| Hermes | `~/.hermes/config.yaml` | YAML | `mcp_servers` |

## Prerequisites

- Python >= 3.11
- [uv](https://docs.astral.sh/uv/) (installs automatically with `uvx`)
- A valid Stata license (Stata/BE, Stata/SE, or Stata/MP)

## Verify

```bash
uvx stata-mcp doctor
```

Checks:
- Stata executable is found
- MCP-for-Stata is properly configured
- Required directories are writable
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall