Gretl MCP

v0.2.1
io.github.OndrejLapes/gretl-mcp Checked 1 hour ago Published 6 months ago

Run Hansl/Gretl econometrics workflows via MCP with GUI launch and artifacts.

Values you need

VariableWhat it is
GRETL_CLIoptional Optional explicit path to gretlcli or gretlcli.exe.
GRETL_GUIoptional Optional explicit path to the visible Gretl GUI executable.
GRETLMCP_WORKSPACE_DIRoptional Optional parent directory for Gretl run workspaces and generated artifacts.
GRETLMCP_OPEN_GUIoptional Set to false to prevent script-running tools from opening visible Gretl GUI windows by default.

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add gretl-mcp -- npx -y gretl-mcp@0.2.1
Add to claude_desktop_config.json
{
  "mcpServers": {
    "gretl-mcp": {
      "args": [
        "-y",
        "gretl-mcp@0.2.1"
      ],
      "command": "npx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "gretl-mcp": {
      "args": [
        "-y",
        "gretl-mcp@0.2.1"
      ],
      "command": "npx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "gretl-mcp": {
      "args": [
        "-y",
        "gretl-mcp@0.2.1"
      ],
      "command": "npx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.gretl-mcp]
command = "npx"
args = ["-y", "gretl-mcp@0.2.1"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: gretl_version, gretl_gui_version, gretl_gui_launch, gretl_run_script, gretl_run_commands, gretl_run_script_file, gretl_capabilities, gretl_package, ….
  4. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json