Gretl MCP
An MCP server that allows agents to run Hansl/Gretl econometrics workflows. It enables users to prompt the server to execute Gretl commands and retrieve results, supporting both CLI and GUI interactions for tasks like forecasting and data analysis.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Run econometric models via Hansl scripts
- Generate forecast outputs and error panels
- Execute Gretl CLI commands from an agent
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
gretl-mcp 0.2.1
{
"version": "0.2.1",
"transport": "stdio",
"identifier": "gretl-mcp",
"registryType": "npm",
"environmentVariables": [
{
"name": "GRETL_CLI",
"format": "string",
"description": "Optional explicit path to gretlcli or gretlcli.exe."
},
{
"name": "GRETL_GUI",
"format": "string",
"description": "Optional explicit path to the visible Gretl GUI executable."
},
{
"name": "GRETLMCP_WORKSPACE_DIR",
"format": "string",
"description": "Optional parent directory for Gretl run workspaces and generated artifacts."
},
{
"name": "GRETLMCP_OPEN_GUI",
"format": "string",
"description": "Set to false to prevent script-running tools from opening visible Gretl GUI windows by default."
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"gretl-mcp": {
"command": "npx",
"args": [
"-y",
"gretl-mcp@0.2.1"
],
"env": {
"GRETL_CLI": "<YOUR_GRETL_CLI>",
"GRETL_GUI": "<YOUR_GRETL_GUI>",
"GRETLMCP_WORKSPACE_DIR": "<YOUR_GRETLMCP_WORKSPACE_DIR>",
"GRETLMCP_OPEN_GUI": "<YOUR_GRETLMCP_OPEN_GUI>"
}
}
}
}Cline
{
"mcpServers": {
"gretl-mcp": {
"command": "npx",
"args": [
"-y",
"gretl-mcp@0.2.1"
],
"env": {
"GRETL_CLI": "<YOUR_GRETL_CLI>",
"GRETL_GUI": "<YOUR_GRETL_GUI>",
"GRETLMCP_WORKSPACE_DIR": "<YOUR_GRETLMCP_WORKSPACE_DIR>",
"GRETLMCP_OPEN_GUI": "<YOUR_GRETLMCP_OPEN_GUI>"
}
}
}
}VS Code
{
"servers": {
"gretl-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"gretl-mcp@0.2.1"
],
"env": {
"GRETL_CLI": "<YOUR_GRETL_CLI>",
"GRETL_GUI": "<YOUR_GRETL_GUI>",
"GRETLMCP_WORKSPACE_DIR": "<YOUR_GRETLMCP_WORKSPACE_DIR>",
"GRETLMCP_OPEN_GUI": "<YOUR_GRETLMCP_OPEN_GUI>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"gretl-mcp": {
"command": "npx",
"args": [
"-y",
"gretl-mcp@0.2.1"
],
"env": {
"GRETL_CLI": "<YOUR_GRETL_CLI>",
"GRETL_GUI": "<YOUR_GRETL_GUI>",
"GRETLMCP_WORKSPACE_DIR": "<YOUR_GRETLMCP_WORKSPACE_DIR>",
"GRETLMCP_OPEN_GUI": "<YOUR_GRETLMCP_OPEN_GUI>"
}
}
}
}Let your agent find its tools
Find servers like Gretl MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.