Skip to main content

ar-macro-mcp

Python 3.10+ MCP License: MIT

Servidor Model Context Protocol (MCP) en Python para consultar datos macroeconómicos y financieros oficiales de la República Argentina desde dos fuentes oficiales:

  • BCRA vía pyBCRAdata (>=1.0.0): Estadísticas Monetarias v4.0, Régimen de Transparencia v1.0, Estadísticas Cambiarias, Cheques Denunciados y Central de Deudores (sin token).
  • INDEC vía pyindec (>=0.1.0): los 19 endpoints del Catálogo API-INDEC (IPC, EMAE, Pobreza, Mercado de Trabajo, Salarios, Canastas, ICC, SIPM, IPI, Comercio Exterior y Población).

Nota sobre credenciales: Todas las tools del BCRA y el catálogo offline del INDEC (indec_catalog) funcionan sin autenticación. Solo las consultas a datos del INDEC requieren la variable de entorno INDEC_API_TOKEN (token JWT gratuito en api.indec.gob.ar).


Instalación y ejecución rápida (uvx)

uvx ar-macro-mcp

O en desarrollo local con uv:

git clone https://github.com/morabdiego/ar-macro-mcp.git
cd ar-macro-mcp
uv sync --dev
uv run ar-macro-mcp

Configuración en clientes MCP

Claude Desktop / Cursor / Antigravity (mcpServers)

{
  "mcpServers": {
    "ar-macro": {
      "command": "uvx",
      "args": ["ar-macro-mcp"],
      "env": {
        "INDEC_API_TOKEN": "tu-token-jwt-opcional"
      }
    }
  }
}

VS Code (.vscode/mcp.json)

{
  "servers": {
    "ar-macro": {
      "type": "stdio",
      "command": "uvx",
      "args": ["ar-macro-mcp"],
      "env": {
        "INDEC_API_TOKEN": "${input:indec_token}"
      }
    }
  },
  "inputs": [
    {
      "id": "indec_token",
      "type": "promptString",
      "description": "Token JWT gratuito de api.indec.gob.ar (opcional para BCRA)",
      "password": true
    }
  ]
}

Claude Code

claude mcp add ar-macro -e INDEC_API_TOKEN=tu-token -- uvx ar-macro-mcp

Tools, Resources y Prompts disponibles

BCRA (sin token)

Tool Descripción
bcra_monetary_variables Catálogo de variables monetarias v4.0 con filtros (categoria, periodicidad, moneda, etc.)
bcra_monetary_series Serie histórica v4.0 (idVariable, fecha, valor)
bcra_monetary_methodology Listado o ficha metodológica de una variable v4.0
bcra_currency_rates Cotizaciones diarias por fecha o maestro de divisas
bcra_currency_series Serie histórica de cotizaciones de una moneda (USD, EUR, BRL, ...)
bcra_transparency Régimen de Transparencia (savings_accounts, product_packages, fixed_terms, pledge_loans, mortgage_loans, personal_loans, credit_cards)
bcra_debtors Central de Deudores (current, history, rejected) por CUIT/CUIL/CDI
bcra_checks Listado de entidades bancarias o consulta de cheque denunciado

INDEC

Tool Token Descripción
indec_catalog No Lista los 19 endpoints, describe columnas/códigos de uno o explica signos convencionales
indec_query Sí Consulta genérica sobre cualquiera de los 19 endpoints con filtros PostgREST
indec_count Sí Cuenta exacta de filas para un endpoint y filtros
indec_ipc Sí Shortcut directo para IPC Nacional (inflación)
indec_emae Sí Shortcut directo para EMAE (actividad económica)
indec_pobreza Sí Shortcut directo para incidencia de pobreza e indigencia (EPH)
indec_salarios Sí Shortcut directo para Índice de Salarios

Resources y Prompts

  • Resource ar-macro://indec/endpoints — catálogo completo de endpoints del INDEC con links metodológicos.
  • Resource ar-macro://indec/signs — signos convencionales oficiales del INDEC.
  • Prompt argentina_macro_snapshot — plantilla para generar un panorama macroeconómico combinando BCRA e INDEC.

Tests y desarrollo

# Tests unitarios offline (cobertura >= 95%)
uv run pytest

# Tests de integración contra APIs reales
uv run pytest -m integration --no-cov

# Lint y formato
uv run ruff check .

# Inspección interactiva con MCP Inspector
npx @modelcontextprotocol/inspector uv run ar-macro-mcp

Autor y Licencia

Creado por Diego Mora (@morabdiego) · Licencia MIT.

Metadata

Release files for ar-macro-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ar-macro-mcp 0.1.0
File Size Uploaded Provenance Actions
ar_macro_mcp-0.1.0.tar.gz 161.9 kB With provenance Details for ar_macro_mcp-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ar-macro-mcp 0.1.0
File Interpreter ABI Platform Actions
ar_macro_mcp-0.1.0-py3-none-any.whl Python 3 none any Details for ar_macro_mcp-0.1.0-py3-none-any.whl

Total release size: 173.2 kB

Release files / ar_macro_mcp-0.1.0.tar.gz

Download URL ar_macro_mcp-0.1.0.tar.gz
Size 161.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1e1dd9bd990ff662346afe9e117814a605d2e7de185949a3a76c5d320f41dbac
BLAKE2b-256 checksum
How to use checksums
2a5be24cf5e773ac6a99ce95849494f0b79ba035d1c62e22dbdc711ebf7797c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Release files / ar_macro_mcp-0.1.0-py3-none-any.whl

Download URL ar_macro_mcp-0.1.0-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8cf122591f8ea8c9ce8769d540f22c58ad23802b98684feaf321a67fee8703a8
BLAKE2b-256 checksum
How to use checksums
55d571d31a6870c1303e80c3ac17b30d3e0cf87e1138e5de940094fb34d17b15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

Security for ar-macro-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ar_macro_mcp-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page