Gretl MCP
v0.2.1Run Hansl/Gretl econometrics workflows via MCP with GUI launch and artifacts.
Values you need
| Variable | What it is | |
|---|---|---|
GRETL_CLI | optional | Optional explicit path to gretlcli or gretlcli.exe. |
GRETL_GUI | optional | Optional explicit path to the visible Gretl GUI executable. |
GRETLMCP_WORKSPACE_DIR | optional | Optional parent directory for Gretl run workspaces and generated artifacts. |
GRETLMCP_OPEN_GUI | optional | 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.1Add 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
- 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).
- Restart or reload the client so it starts the server.
- 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, ….
- 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