ar-macro-mcp
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 entornoINDEC_API_TOKEN(token JWT gratuito en api.indec.gob.ar).
¿Cómo se usa en la práctica? (En criollo)
Una vez que conectás ar-macro-mcp a tu agente (Claude Desktop, Antigravity, Cursor, VS Code o Claude Code), no tenés que escribir código ni recordar endpoints: le preguntás directamente en lenguaje natural y el agente consulta las APIs oficiales del BCRA e INDEC en tiempo real.
Ejemplos de preguntas que podés hacerle a tu agente
- "¿Cuál fue la variación neta de reservas internacionales entre 2023 y 2025?"
→ El agente consulta
bcra_monetary_variables/bcra_monetary_series(id_variable=1) contraapi.bcra.gob.ar/estadisticas/v4.0y calcula la diferencia exacta con fechas oficiales (no requiere token). - "¿Cuál fue la inflación acumulada de 2026 y la variación mensual mes a mes?"
→ El agente consulta
indec_ipc(region="Nacional",codigo="0",tipo_de_indicador="v_acum"/"v_m") contraapi.indec.gob.ar/v1/ipc_nacional(requiereINDEC_API_TOKEN). - "Comparame las tasas de plazo fijo y costos de tarjetas de crédito entre bancos"
→ El agente consulta
bcra_transparency(product="fixed_terms"/"credit_cards") contra el Régimen de Transparencia del BCRA (no requiere token). - "Armame un resumen macro de Argentina combinando reservas, tipo de cambio, IPC, EMAE y salarios"
→ El agente combina el prompt
argentina_macro_snapshotcon datos oficiales del BCRA e INDEC, sin inventar cifras ni depender de noticias.
¿Cómo le paso el token del INDEC al agente?
- En la configuración del cliente MCP (bloque
"env"de abajo): lo pegás una sola vez y el cliente se lo pasa automáticamente al servidoruvx ar-macro-mcp. - En VS Code: usando
"${input:indec_token}", el IDE te pide el token de forma segura (tipo contraseña) al iniciar el servidor. - Archivo
.envo variable de entorno del sistema: también funciona (INDEC_API_TOKENoAPI_KEY). - Si no configurás ningún token: el servidor arranca igual sin errores; todo lo del BCRA y el catálogo offline del INDEC funcionan normalmente, y si consultás datos de INDEC el agente te avisa que falta
INDEC_API_TOKENy cómo generarlo gratis 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ar_macro_mcp-0.1.1.tar.gz | 163.3 kB | With provenance | Details for ar_macro_mcp-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ar_macro_mcp-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for ar_macro_mcp-0.1.1-py3-none-any.whl |
Total release size: 175.7 kB
Release files / ar_macro_mcp-0.1.1.tar.gz
| Download URL | ar_macro_mcp-0.1.1.tar.gz |
|---|---|
| Size | 163.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c020dd231317383eeddbbc021e916cac505b3cd45a0ad8dc22caecbb121deb70
|
|
BLAKE2b-256 checksum How to use checksums |
8e7c735bd55ecd0c3e2f143883b9671a4c97f3cf2f226a49948fad0104c15024
|
| 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 logRelease files / ar_macro_mcp-0.1.1-py3-none-any.whl
| Download URL | ar_macro_mcp-0.1.1-py3-none-any.whl |
|---|---|
| Size | 12.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad81f8fcd17f3315badacf9f0f4f29745dfdd1fcd2484988cc60f47f35026bd2
|
|
BLAKE2b-256 checksum How to use checksums |
517d4906216864ae0b3586b99502575093b9bf590f39a14bb7c223847b1bc4c3
|
| 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 logSecurity for ar-macro-mcp 0.1.1
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.
Attestation for ar_macro_mcp-0.1.1.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 logA 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.