Gretl MCP
Built for AI agents: run Hansl/Gretl workflows, get graph screenshots, and view calculations in the real Gretl GUI. Its 12 documented tools cover gretl, version, gui, script. It runs locally over stdio via the published package.
People connecting automation tools to Claude, Cursor, VS Code, or another MCP client. The project is written in JavaScript.
VERIFIED ACTIVE
LAST COMMIT 2026-06-06 · ★ 3 · #131 OF 194 MAINTAINED AUTOMATION · VERIFIED 2026-08-25
MIT · JavaScript servers · how we verify → /methodology
01 · Install Gretl MCP
before you install - you'll need
GRETL_CLI, GRETL_GUI are optional or environment-specific per the README.
Claude Code
claude mcp add ondrejlapes-gretlmcp -- npx -y gretl-mcp Claude Desktop / Cursor / VS Code - add to config
{
"mcpServers": {
"ondrejlapes-gretlmcp": {
"command": "npx",
"args": [
"-y",
"gretl-mcp"
]
}
}
} Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.
Using another client? Same JSON, different key
Claude Desktop · mcpServers
Cursor · mcpServers
VS Code · servers
Windsurf · mcpServers
Zed · context_servers
Cline · mcpServers
Roo Code · mcpServers
Continue · mcpServers
LibreChat · mcpServers
Gemini CLI · mcpServers
Codex CLI · mcp_servers
Full setup guides: every client.
02 · Evidence
Security posture
What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.
runs as local process (stdio) - runs on your machine with your user's permissions
license MIT - declared in the repository
npm package gretl-mcp - unscoped; check the name against the project README before installing
registry namespace io.github.OndrejLapes is GitHub-verified and matches the repo owner
03 · What Gretl MCP can do
Prose above is summarized from the project's README and registry record - no invented capabilities.
What you can build
With this server connected, an agent can launch the visible Gretl desktop GUI, list installed Gretl commands, functions, and package help, run a Gretl/Hansl script and requires GUI opening by default, and run raw Gretl command lines and requires GUI opening by default.
The 12 tools it gives your agent
Extracted from the project's README - what Gretl MCP lets an agent do.
- 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.
04 · Who maintains Gretl MCP
Gretl MCP is maintained by ondrejlapes. It's the only MCP server we track from this author; the repo dates to May 2026.
05 · Facts
- repository
- github.com/ondrejlapes/gretlmcp
- category
- automation - ranked #131 of 194 actively-maintained automation servers as of 2026-08-25.
- registry
- io.github.OndrejLapes/gretl-mcp (active, first published 2026-05-15)
- packages
- npm:gretl-mcp
06 · Gretl MCP FAQ
Is Gretl MCP still maintained?
Yes - as of 2026-08-25, its last commit was 2026-06-06. We re-verify nightly.
What can Gretl MCP do?
With this server connected, an agent can launch the visible Gretl desktop GUI, list installed Gretl commands, functions, and package help, run a Gretl/Hansl script and requires GUI opening by default, and run raw Gretl command lines and requires GUI opening by default.
How do I install Gretl MCP?
Run `npx -y gretl-mcp`. The README documents 2 environment variables (GRETL_CLI, GRETL_GUI) to set first. GRETL_CLI, GRETL_GUI are optional or environment-specific per the README. You can also paste the ready-made client config above.
Does Gretl MCP run locally?
Yes - it's a stdio server: it runs on your machine (via npx) with your user's permissions. Your data stays local unless the server itself calls external APIs.
07 · Alternatives to Gretl MCP
Alternatives to Gretl MCP
Maintained automation servers if Gretl MCP isn't the fit.
- Claude Flow AI orchestration with hive-mind swarms, neural networks, and 87 MCP tools for enterprise dev. ★ 69,309 · 2026-08-24
- GitHub Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language. ★ 32,478 · 2026-08-25
- Windows MCP An MCP Server for computer-use in Windows OS ★ 6,808 · 2026-08-22
- Ha MCP Comprehensive Model Context Protocol server for managing Home Assistant through AI assistants. ★ 4,503 · 2026-08-24
- Stripe Agent Toolkit MCP server integrating with Stripe - tools for customers, products, payments, and more. ★ 1,760 · 2026-08-22
- Tooluniverse 2,500+ scientific tools for AI scientists: life science, research, literature, and more. ★ 1,655 · 2026-08-20
More automation MCP servers · Stats Compass · Open Agreements · OpenAdapt Agent (openadapt-flow bridge) · Zotio · Outlit
More JavaScript MCP servers · Onelogin MCP · Token Optimizer MCP · Baepsae · Open & Async · Open Agenda · see all