
Gretl MCP
Runs Gretl and Hansl econometrics scripts, commands, and package builds, with GUI launch.
- GitHub stars
- 3
- tools
- 12
- transport
- STDIO
- env vars
- 4
- last updated
- May 15, 2026
What it does
- Runs work through
gretl_run_script,gretl_run_commands, andgretl_run_script_file, which return output, artifacts, and GUI details - Manages packages with
gretl_packageandgretl_make_package, and inspects installed commands withgretl_capabilitiesandgretl_help - Runs dataset summaries and OLS with
gretl_dataset_summaryandgretl_olson local files only; URLs are rejected - Requires a local Gretl 2026b or newer install with
gretlcliand runs over stdio, with safe mode on by default - Designed for econometrics teaching, forecasting comparisons, and generating Hansl workflows from prompts
Tools
12 toolsPublic tool metadata for what this MCP can expose to an agent.
gretl_versionChecks Gretl availability.
Checks Gretl availability.
No parameter schema in public metadata yet.
gretl_gui_versionChecks Gretl GUI availability.
Checks Gretl GUI availability.
No parameter schema in public metadata yet.
gretl_gui_launchLaunches the visible Gretl desktop GUI.
Launches the visible Gretl desktop GUI.
No parameter schema in public metadata yet.
gretl_capabilitiesLists installed Gretl commands, functions, and package help.
Lists installed Gretl commands, functions, and package help.
No parameter schema in public metadata yet.
gretl_run_scriptRuns a Gretl/Hansl script and requires GUI opening by default.
Runs a Gretl/Hansl script and requires GUI opening by default.
No parameter schema in public metadata yet.
gretl_run_commandsRuns raw Gretl command lines and requires GUI opening by default.
Runs raw Gretl command lines and requires GUI opening by default.
No parameter schema in public metadata yet.
gretl_run_script_fileRuns an existing local `.inp` file and requires GUI opening by default.
Runs an existing local `.inp` file and requires GUI opening by default.
No parameter schema in public metadata yet.
gretl_packageRuns native `pkg` actions such as install, query, run-sample, unload, remove, and index.
Runs native `pkg` actions such as install, query, run-sample, unload, remove, and index.
No parameter schema in public metadata yet.
gretl_make_packageBuilds `.gfn` or `.zip` function packages with `makepkg`.
Builds `.gfn` or `.zip` function packages with `makepkg`.
No parameter schema in public metadata yet.
gretl_helpReturns Gretl help for a command.
Returns Gretl help for a command.
No parameter schema in public metadata yet.
gretl_dataset_summaryOpens a local dataset, returns summary statistics, and requires GUI opening by default.
Opens a local dataset, returns summary statistics, and requires GUI opening by default.
No parameter schema in public metadata yet.
gretl_olsOpens a local dataset, estimates an OLS model, and requires GUI opening by default.
Opens a local dataset, estimates an OLS model, and requires GUI opening by default.
No parameter schema in public metadata yet.
Configuration
GRETL_CLIOptional explicit path to gretlcli or gretlcli.exe.
GRETL_GUIOptional explicit path to the visible Gretl GUI executable.
GRETLMCP_WORKSPACE_DIROptional parent directory for Gretl run workspaces and generated artifacts.
GRETLMCP_OPEN_GUISet to false to prevent script-running tools from opening visible Gretl GUI windows by default.
Readme
Gretl MCP
Built for AI agents: run Hansl/Gretl workflows, get graph screenshots, and view calculations in the real Gretl GUI.
It lets MCP clients run Gretl/Hansl scripts, raw Gretl command lines, existing
.inp files, package operations, package builds, help lookups, dataset
summaries, and OLS models. The generic gretl_run_script tool is the main path
for prompt-generated Gretl workflows: the client writes Hansl from the user's
request, runs it through Gretl, and returns Gretl's output plus generated
artifacts.
Keywords: Claude Gretl, MCP econometrics, Hansl AI, Gretl GUI automation.
Key Features
Details
- Repository
- github.com/ondrejlapes/gretlmcp
- Categories
- Data & Analytics, Research & Academic
- Package
gretl-mcp- Transport
- STDIO
- Registry
- MCP registry, active
Similar to Gretl MCP
More Data & Analytics
graphpad-prismPluginzygi/bio_tool_skills5 starsExpert assistance with GraphPad Prism scientific graphing and statistics software, specializing in Prism scripting for automation, batch processing, and data an
kaggleSkillshepsci/kaggle-skill593 installsA Kaggle skill that runs competitions, datasets, notebooks, and writeups through one command-line entry point.
report-generatorSkillclaude-office-skills/skills5.4K installsProfessional data report generator that builds dashboards, KPI summaries, and charts from CSV, Excel, or JSON.
Desktop CommanderMCP serverwonderwhy-er10.4K starsTerminal commands, file operations, and process control for local machines, exposed as MCP tools.
Financial Modeling Prep MCP ServerMCP serverimbenrabi149 starsAccess to Financial Modeling Prep data: stocks, ETFs, crypto, forex, commodities, and economics.
AutotsMCP serverwinedarksea1.4K starsAutomated time series forecasting, anomaly detection, and event risk analysis over local or live data.