Logo di aigroup-econ-mcp

aigroup-econ-mcp

Community
jackdark425

Econometrics MCP server for regression, causal inference, time series, panel data, and statistical analysis workflows.

Autorejackdark425
Repositoryaigroup-econ-mcp
LinguaPython
Fork
4
Stelle
10
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    aigroup-econ-mcp mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    10 stelle e 4 fork nel repository collegato.

aigroup-econ-mcp

License: MIT Python Version Tools

Econometrics MCP server for regression, causal inference, time series, panel data, machine learning, and broader statistical analysis workflows.

Overview

aigroup-econ-mcp is a professional econometrics-oriented MCP server designed to help AI assistants and MCP clients perform structured quantitative analysis.

It covers:

  • parameter estimation and regression analysis
  • causal inference workflows
  • microeconometrics and panel data
  • time series and volatility models
  • machine learning for econometric tasks
  • spatial econometrics, decomposition, and inference tools

Highlights

  • 66 professional tools across core econometrics domains
  • Multiple input formats including CSV, JSON, TXT, and Excel
  • Multiple output formats including JSON, Markdown, and text
  • Support for MCP clients such as RooCode, Claude-compatible tools, and other MCP hosts
  • Broad method coverage from OLS and IV to ARIMA, GARCH, GAM, and causal forests
  • Designed for research and applied analysis rather than narrow single-task workflows

Tool Groups

The server currently groups its 66 tools across the following categories:

  • Basic parametric estimation — OLS, MLE, GMM
  • Causal inference — DID, IV, PSM, fixed/random effects, RDD, synthetic control, event study, and more
  • Decomposition analysis — Oaxaca-Blinder, ANOVA, time-series decomposition
  • Machine learning — random forest, gradient boosting, SVM, neural networks, clustering, DML, causal forest
  • Microeconometrics — logit, probit, multinomial logit, Poisson, negative binomial, Tobit, Heckman
  • Missing data handling — simple imputation and MICE
  • Model diagnostics and robust inference — specification tests, GLS, WLS, robust errors, regularization, simultaneous equations
  • Nonparametric methods — kernel regression, quantile regression, spline regression, GAM
  • Spatial econometrics — weights matrices, Moran's I, Geary's C, LISA, spatial regression, GWR
  • Statistical inference — bootstrap and permutation tests
  • Time series and panel data — ARIMA, exponential smoothing, GARCH, unit-root tests, VAR/SVAR, cointegration, dynamic panel, panel VAR, structural breaks, time-varying parameter models

Quick Start

Requirements

  • Python >= 3.10
  • uvx recommended for easiest usage, or pip

Run with uvx

bash
uvx aigroup-econ-mcp

If uvx keeps using an older cached build:

bash
uvx --no-cache aigroup-econ-mcp

Install with pip

bash
pip install aigroup-econ-mcp
aigroup-econ-mcp

macOS users: install libomp for XGBoost-backed tools

A subset of machine-learning tools links against xgboost, which requires the OpenMP runtime (libomp.dylib) at import time. Without it, these four tools return a tool_unavailable payload even though the server itself starts fine:

  • ml_kmeans_clustering
  • ml_hierarchical_clustering
  • ml_double_machine_learning
  • ml_causal_forest

Install once with Homebrew:

bash
brew install libomp

Linux / Windows users are unaffected — the xgboost wheels bundle or locate OpenMP automatically.

MCP Client Configuration

Claude-compatible MCP clients / RooCode / similar tools

json
{
  "mcpServers": {
    "aigroup-econ-mcp": {
      "command": "uvx",
      "args": ["aigroup-econ-mcp"]
    }
  }
}

Input & Output Support

Supported input formats

  • CSV
  • JSON
  • TXT
  • Excel (.xlsx, .xls)

Typical usage patterns:

  • direct structured data input
  • raw file content input
  • local file path input

Supported output formats

  • json (default — structured Pydantic result serialized)
  • markdown (human-readable tables and coefficient stars)
  • text (compact str(model.model_dump()) fallback)

Example Use Cases

  • OLS and generalized regression modeling
  • difference-in-differences and instrumental variable analysis
  • matching and regression discontinuity workflows
  • random forest / gradient boosting / causal forest analysis
  • ARIMA, GARCH, VAR, and cointegration modeling
  • panel diagnostics and dynamic panel estimation

Calling tools

Every tool accepts parameters either inline (direct lists) or from a file via file_path. The server returns a JSON string; on failure the payload has a uniform {"ok": false, "error": {...}} shape.

Inline: OLS regression

json
{
  "name": "basic_parametric_estimation_ols",
  "arguments": {
    "y_data": [1.0, 2.1, 2.9, 4.1, 5.0, 5.9, 7.1, 8.0, 8.9, 10.1],
    "x_data": [[1.0], [2.0], [3.0], [4.0], [5.0],
               [6.0], [7.0], [8.0], [9.0], [10.0]],
    "output_format": "json"
  }
}

File-based: causal DID from a CSV

Your CSV first column is the dependent variable (y_data), the rest are covariates (x_data). For domain-specific keys like treatment, time_period, outcome, supply a .json file:

json
// policy.json
{"treatment": [0,0,1,1,0,0,1,1],
 "time_period": [0,1,0,1,0,1,0,1],
 "outcome":    [4.1,4.8,3.9,5.6,4.0,4.7,3.8,5.5]}
json
{
  "name": "causal_difference_in_differences",
  "arguments": {"file_path": "policy.json", "output_format": "markdown"}
}

Time series: ARIMA with forecast

json
{
  "name": "time_series_arima_model",
  "arguments": {
    "data": [/* monthly observations */],
    "order": [1, 1, 1],
    "forecast_steps": 6,
    "output_format": "markdown"
  }
}

Interpreting fit_warnings

Several models return a fit_warnings array. A non-empty value means the statistic was a fallback placeholder — treat the associated numbers with care. For example, a Cox regression with singular Hessian:

json
{
  "coefficients": [...],
  "std_errors": [1.0, 1.0, 1.0],
  "p_values":   [1.0, 1.0, 1.0],
  "fit_warnings": [
    "Hessian inversion failed; std_errors are placeholder 1.0 — Z/p values below are not real"
  ]
}

Seeing p=1.0 with no warning means "not significant"; the same with a warning means "could not compute".

Debug mode

Set AIGROUP_ECON_MCP_DEBUG=1 before launching the server to include Python tracebacks inside the structured error payload — useful when developing new MCP clients.

Project Structure

text
aigroup-econ-mcp/
├── aigroup_econ_mcp/       # MCP server + CLI
│   ├── cli.py              #   argparse entry point
│   ├── server.py           #   FastMCP wire-up
│   ├── registry.py         #   ToolSpec registry
│   ├── _registrations.py   #   all 66 tools registered here
│   └── errors.py
├── tools/                  # adapter layer (I/O + formatting)
├── econometrics/           # algorithms
├── resources/
├── prompts/
├── docs/
│   ├── ARCHITECTURE.md
│   ├── PUBLISHING.md
│   └── TESTING.md
├── tests/
├── CHANGELOG.md
└── pyproject.toml

See docs/ARCHITECTURE.md for layer boundaries and how to add a new tool.

Development

bash
uv sync
uv run pytest           # full suite, ~12 s (271 tests)
uv run pytest -m "not slow"   # fast iteration, ~1.5 s (264 tests)
uv run ruff check .
uv run ruff format .

All 66 registered tools are covered by a four-tier test pyramid: registration-shape → smoke → mathematical-correctness (known-DGP) → real MCP stdio protocol. See docs/VERIFICATION.md for the testing paradigm, ground-truth DGPs, tolerance rationale, and the record of real bugs this approach has surfaced (9 to date). See docs/TESTING.md for quick-run commands and the test-file layout.

Troubleshooting

uvx resolves an old version

uvx caches per-version, so if a published release is not picked up:

bash
uvx --refresh aigroup-econ-mcp
# or
uv cache clean

License & Usage

This project is released under the MIT License.

You may use, copy, modify, merge, publish, distribute, sublicense, and sell copies of this software, including in academic, research, internal, and commercial environments, provided that the original copyright notice and license text are preserved.

Please keep in mind:

  • the software is provided "AS IS", without warranty of any kind
  • you must retain the relevant copyright and permission notice in copies or substantial portions of the software
  • statistical results still depend on data quality, assumptions, and correct methodological choices by the user

See the full text in LICENSE.

Acknowledgments

Core Scientific Ecosystem

  • statsmodels — statistical modeling foundations
  • pandas — data manipulation and tabular workflows
  • scikit-learn — machine learning components
  • linearmodels — panel data and econometric modeling support
  • arch — volatility and ARCH/GARCH modeling

Community & Protocol Ecosystem

  • Model Context Protocol — MCP integration model
  • The broader econometrics and open-source scientific computing community

Support

Installazione

TypingMind
Prerequisiti:

Node.js 18+

{
  "mcpServers": {
    "jackdark425-aigroup-econ-mcp": {
      "command": "uvx",
      "args": [
        "aigroup_econ_mcp"
      ]
    }
  }
}

Usa MCP aigroup-econ-mcp con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso aigroup-econ-mcp, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi aigroup-econ-mcp come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di aigroup-econ-mcp.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "jackdark425-aigroup-econ-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "aigroup_econ_mcp"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di aigroup-econ-mcp, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di aigroup-econ-mcp.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare aigroup-econ-mcp per aiutarmi con questa attività?
aigroup-econ-mcp
Certo. Ho letto.
Ecco cosa ho trovato con aigroup-econ-mcp.

Domande frequenti

A cosa serve il server MCP aigroup-econ-mcp?

aigroup-econ-mcp è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare aigroup-econ-mcp MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare aigroup-econ-mcp con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP aigroup-econ-mcp con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando aigroup-econ-mcp, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego aigroup-econ-mcp MCP a TypingMind?

aigroup-econ-mcp funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre aigroup-econ-mcp MCP in TypingMind?

aigroup-econ-mcp mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare aigroup-econ-mcp MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se aigroup-econ-mcp richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇