Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

Explore

  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Tags index
  • Submit a server
  • Pricing

Learn

  • Guides hub
  • What is MCP?
  • Install guide
  • Troubleshooting
  • Security
  • Blog
  • Blog RSS

Tools

  • All tools
  • Config generator
  • Config validator
  • MCP playground
  • OpenAPI β†’ MCP
  • Badge generator

For agents

  • API docs
  • Trust & traffic
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
  • Remote MCP β†— (opens in a new tab)

Company

  • About
  • Contact
  • X (@AllMCPs) β†— (opens in a new tab)
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on Buildlist
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ’» Developer Tools
  3. Gretl MCP
G
Health: Not checked yetWe have not completed a health check for this listing yet.Last checked 8/11/2026, 12:09:40 AM

Gretl MCP

Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository

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

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Install Config Generator

Choose your client
claude_desktop_config.json
{
  "mcpServers": {
    "gretl-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "gretl-mcp"
      ]
    }
  }
}

πŸ’‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

Install Directory Badge Claim listing AlternativesπŸ’» More in Developer Tools

Documentation Overview

Gretl MCP

npm version GitHub stars

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

  • Scriptable Gretl control through gretlcli.
  • GUI-first workflow tools that launch gretl.exe and fail if the GUI did not open.
  • Capability discovery for Gretl commands, functions, and package commands.
  • Generic execution tools for full Hansl scripts, command lists, and local .inp script files.
  • Package tools for pkg and makepkg workflows from the Gretl Function Package Guide.
  • High-level tools for version checks, command help, dataset summaries, and OLS.
  • Stdio transport, compatible with common MCP clients.
  • Safe defaults for arbitrary scripts, with documented escape hatches.

Requirements

  • Node.js 20 or newer.
  • Gretl 2026b or newer with gretlcli available.
  • An MCP client that supports stdio servers.

Getting Started

One-command install (after npm publish):

Terminal
npx -y gretl-mcp@latest --version

Local install from GitHub:

powershell
git clone https://github.com/OndrejLapes/GretlMCP.git
cd GretlMCP
npm install
npm run build

Then point your MCP client at the built server:

config.json
{
  "mcpServers": {
    "gretl": {
      "command": "node",
      "args": ["C:\\Users\\YOUR_USER\\GretlMCP\\dist\\index.js"],
      "env": {
        "GRETL_CLI": "C:\\Users\\YOUR_USER\\tools\\gretl\\gretlcli.exe",
        "GRETL_GUI": "C:\\Users\\YOUR_USER\\tools\\gretl\\gretl.exe"
      }
    }
  }
}

Visual Walkthrough

Forecast output example (actual vs forecast):

Forecast actual vs forecast

Forecast error panel:

Forecast errors

Install Gretl

Windows

Download Gretl from the official page: https://gretl.sourceforge.net/win32/

For a no-admin setup, extract the zip archive to:

text
C:\Users\YOUR_USER\tools\gretl

Verify:

powershell
& C:\Users\YOUR_USER\tools\gretl\gretlcli.exe --version

macOS

Install via Homebrew (if available on your setup) or the Gretl project site:

bash
brew install gretl
gretlcli --version

Linux

Install from your distro packages, then verify:

bash
sudo apt-get install gretl    # Debian/Ubuntu example
gretlcli --version

MCP Client Config

Use this JSON config for stdio MCP clients:

config.json
{
  "mcpServers": {
    "gretl": {
      "command": "node",
      "args": ["C:\\Users\\YOUR_USER\\GretlMCP\\dist\\index.js"],
      "env": {
        "GRETL_CLI": "C:\\Users\\YOUR_USER\\tools\\gretl\\gretlcli.exe",
        "GRETL_GUI": "C:\\Users\\YOUR_USER\\tools\\gretl\\gretl.exe"
      }
    }
  }
}

After npm publication, the standard MCP config is:

config.json
{
  "mcpServers": {
    "gretl": {
      "command": "npx",
      "args": ["-y", "gretl-mcp@latest"],
      "env": {
        "GRETL_CLI": "C:\\Users\\YOUR_USER\\tools\\gretl\\gretlcli.exe",
        "GRETL_GUI": "C:\\Users\\YOUR_USER\\tools\\gretl\\gretl.exe"
      }
    }
  }
}

Client Setup

Claude Code

Local GitHub build:

Terminal
claude mcp add gretl node C:\Users\YOUR_USER\GretlMCP\dist\index.js

npm install path:

Terminal
claude mcp add gretl npx -y gretl-mcp@latest

Codex

Local GitHub build:

toml
[mcp_servers.gretl]
command = "node"
args = ["C:\\Users\\YOUR_USER\\GretlMCP\\dist\\index.js"]

[mcp_servers.gretl.env]
GRETL_CLI = "C:\\Users\\YOUR_USER\\tools\\gretl\\gretlcli.exe"
GRETL_GUI = "C:\\Users\\YOUR_USER\\tools\\gretl\\gretl.exe"

npm install path:

toml
[mcp_servers.gretl]
command = "npx"
args = ["-y", "gretl-mcp@latest"]

[mcp_servers.gretl.env]
GRETL_CLI = "C:\\Users\\YOUR_USER\\tools\\gretl\\gretlcli.exe"
GRETL_GUI = "C:\\Users\\YOUR_USER\\tools\\gretl\\gretl.exe"

Cursor, Windsurf, Cline, and similar clients

Use the local JSON config above. If the client asks for a command and args separately, use:

text
command: node
args: C:\Users\YOUR_USER\GretlMCP\dist\index.js

VS Code

powershell
code --add-mcp "{\"name\":\"gretl\",\"command\":\"node\",\"args\":[\"C:\\\\Users\\\\YOUR_USER\\\\GretlMCP\\\\dist\\\\index.js\"],\"env\":{\"GRETL_CLI\":\"C:\\\\Users\\\\YOUR_USER\\\\tools\\\\gretl\\\\gretlcli.exe\",\"GRETL_GUI\":\"C:\\\\Users\\\\YOUR_USER\\\\tools\\\\gretl\\\\gretl.exe\"}}"

Try It Quickly

Ask your agent:

text
Run a Gretl forecasting dashboard with AR, ARIMA, and VAR. Save plots and compare RMSE/MAE.

The MCP response includes generated artifact paths, workspace/script paths, and GUI launch details.

Configuration

gretl-mcp supports environment variables and CLI flags.

Environment variables:

  • GRETL_CLI: optional path to gretlcli or gretlcli.exe.
  • GRETL_GUI: optional path to gretl or gretl.exe.
  • GRETLMCP_WORKSPACE_DIR: optional directory for Gretl run workspaces.
  • GRETLMCP_OPEN_GUI: set to false to stop tools from opening Gretl windows by default.
  • GRETLMCP_REQUIRE_GUI: set to false to allow CLI-only success when GUI opening is disabled or unavailable.
  • GRETLMCP_ENFORCE_GUI_ONLY: set to true to reject any headless workflow request.

CLI options:

powershell
gretl-mcp --gretl-cli C:\Users\YOUR_USER\tools\gretl\gretlcli.exe
gretl-mcp --gretl-gui C:\Users\YOUR_USER\tools\gretl\gretl.exe
gretl-mcp --workspace C:\Users\YOUR_USER\gretl-mcp-runs
gretl-mcp --enforce-gui-only
gretl-mcp --allow-headless
gretl-mcp --help
gretl-mcp --version

Tools

  • gretl_version: checks Gretl availability.
  • gretl_gui_version: checks Gretl GUI availability.
  • gretl_gui_launch: launches the visible Gretl desktop GUI.
  • gretl_capabilities: lists installed Gretl commands, functions, and package help.
  • gretl_run_script: runs a Gretl/Hansl script and requires GUI opening by default.
  • gretl_run_commands: runs raw Gretl command lines and requires GUI opening by default.
  • gretl_run_script_file: runs an existing local .inp file and requires GUI opening by default.
  • gretl_package: runs native pkg actions such as install, query, run-sample, unload, remove, and index.
  • gretl_make_package: builds .gfn or .zip function packages with makepkg.
  • gretl_help: returns Gretl help for a command.
  • gretl_dataset_summary: opens a local dataset, returns summary statistics, and requires GUI opening by default.
  • gretl_ols: opens a local dataset, estimates an OLS model, and requires GUI opening by default.

Safety

gretl_run_script, gretl_run_commands, and gretl_run_script_file default to safeMode: true, which blocks common shell-like commands and absolute file reads/writes. This is a guardrail, not a complete sandbox. Use safeMode: false only for trusted local work.

Dataset helper tools reject URLs and require paths to existing local files.

Examples

  • examples/homework-variance-ftest.inp: Gretl script for a homework-style F test with critical-value and p-value calculations.
  • examples/forecasting-dashboard.inp: Macro forecasting dashboard with AR, ARIMA, VAR, forecast plots, and an RMSE/MAE comparison table.
  • examples/specification-curve-analysis.inp: 32-model robustness sweep for an education coefficient with curve, confidence bands, and histogram plots.

Use Cases

  • Econometrics teaching aid with visible Gretl GUI workflows.
  • Textbook replication and assignment automation.
  • Forecasting dashboards (AR/ARIMA/VAR) with artifact outputs.
  • Monte Carlo and stress-testing workflows for research.
  • Reproducible research pipelines via saved scripts and Gretl .inp files.

GUI Mode

By default, the workflow tools open their generated Hansl script in the real Gretl desktop app while also returning structured MCP output. More importantly, they now treat GUI opening as required outside CI. If the Gretl window does not open, the tool returns ok: false even when the CLI script itself succeeded.

Set displayInGretl: false and requireGui: false on a tool call, or set GRETLMCP_OPEN_GUI=false together with GRETLMCP_REQUIRE_GUI=false, to allow CLI-only automation.

For clients that should never bypass the desktop app, set GRETLMCP_ENFORCE_GUI_ONLY=true or launch the server with --enforce-gui-only. In that mode, the workflow tools reject displayInGretl: false and requireGui: false instead of honoring them.

gretl_gui_launch can also be called directly. It starts the real Gretl desktop application, opens a local dataset/script file, or writes a prompted Hansl script and launches Gretl with --run.

This is not full click-by-click GUI control by itself. If you want the agent to observe screenshots, click menus, and make choices exactly like a human, the MCP client also needs desktop automation or computer-use capability. Gretl MCP now provides the Gretl-side launch surface for that workflow.

Local Development

Terminal
npm install
npm run typecheck
npm test
npm run build
npm run smoke
npm run stress

npm run stress drives the built MCP server through broader prompt-style workflows: macro forecasting, structural breaks, Monte Carlo simulation, textbook replication, diagnostic automation, NLS, mixed-frequency compaction, panel models, GARCH graphs, IV simulation, and a reproducible project. The foreign-language stress case is dependency-gated and requires a real Python, Rscript, or Octave executable on PATH.

To surface stress outputs for docs or QA snapshots:

Terminal
npm run stress

Then inspect the reported workspace for generated graphs/tables.

Run the built server:

powershell
node dist/index.js

Publishing

This project is structured for GitHub, npm, and MCP Registry metadata:

  • GitHub hosts source code, issues, docs, releases, and CI.
  • npm will provide the easiest user install path after publication.
  • server.json is included for registry publish.

Before publishing to npm or the MCP Registry, review docs/publishing.md.

Community

Issues and pull requests are welcome. See CONTRIBUTING.md for contribution flow and expectations.

Related MCP Servers

View all in Developer Tools View all alternatives
  • Claude Task Master logoClaude Task Master

    AI-powered task management system for AI-driven development. Features PRD parsing, task expansion, multi-provider support (Claude, OpenAI, Gemini, Perplexity, xAI), and selective tool loading for optimized context usage.

    πŸ’» Developer Tools7 views
    Compare vs Claude Task Master β†’
  • D
    DottedSign

    Automate eSignature workflows and signing tasks via natural language commands.

    πŸ’» Developer Tools0 views
    Compare vs DottedSign β†’
  • A
    Ai Netcafe

    Compare LLM cost & latency on one prompt, translate PDF keeping layout, cited research, make PPTX

    πŸ’» Developer Tools0 views
    Compare vs Ai Netcafe β†’
  • M
    MCP Registry Server

    Publish and discover MCP servers via the official MCP Registry. Powered by HAPI MCP server.

    πŸ’» Developer Tools0 views
    Compare vs MCP Registry Server β†’

Frequently Asked Questions about Gretl MCP

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "gretl-mcp": { "command": "npx", "args": ["-y", "Gretl MCP"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGretl MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gretl-mcp?style=directory)](https://allmcps.com/mcp/gretl-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/gretl-mcp"><img src="https://allmcps.com/api/badge/gretl-mcp?style=directory" alt="Gretl MCP on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ’»Developer Tools
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
0/4 checks healthy over the last 6h
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
27Quality signal: Emerging Β· 27/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools11/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to get the verified badge and attach your website.

Free dofollow backlink: after claiming, verify your product site and place a dofollow AllMCPs badge β€” we recheck it stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ’» Developer Tools β†’Best MCP servers for Developers β†’Alternatives to Gretl MCP β†’Install in Claude DesktopInstall in CursorInstall in VS Code