Skip to main content
Glama

mcp_bcrp

BCRP data tools for Python/MCP and native Stata workflows.

PyPI Python Tests Downloads License: MIT

Overview

This repository provides two independent interfaces to the public statistical source of the Banco Central de Reserva del Perú (BCRP):

  • mcp-bcrp — Python client, metadata search and optional FastMCP server;

  • usebcrp — native Stata package for data retrieval, search and transformations.

Both interfaces query the same BCRP source, but they have separate runtimes, tests, documentation and release processes. Installing one does not install the other.

Related MCP server: FRED Economic MCP Server

Python implementation

The Python package provides asynchronous data access and catalog search. The FastMCP server is an optional interface for MCP-compatible AI applications.

Install or update from PyPI:

pip install --upgrade mcp-bcrp

Help: Python guide · examples and notebooks

Replication: Python test suite

From a checkout, run the tests from the repository root:

python -m pytest python/tests -q

Stata implementation

The native Stata package preserves the usebcrp command syntax and adds catalog search, caching, transformations and metadata output.

Install or update from GitHub:

net install usebcrp, ///
    from("https://raw.githubusercontent.com/MaykolMedrano/mcp_bcrp/main/stata") replace

Requirements: Stata 16 or later and HTTPS access. The package uses the public BCRP API and does not require Python, FastMCP or an LLM provider.

Help: user guide · Stata help file · distribution guide

Replication: Stata test suite

From a checkout, run the deterministic suite with the configured StataNow executable:

powershell -ExecutionPolicy Bypass -File stata/scripts/run-tests.ps1

Repository structure

mcp_bcrp/
├── python/
│   ├── mcp_bcrp/       Python client, search and MCP server
│   ├── tests/          Python tests
│   ├── examples/       Python examples and notebooks
│   └── README.md       Python documentation
├── stata/
│   ├── *.ado, *.sthlp  Native Stata runtime
│   ├── tests/          Stata tests and fixtures
│   ├── docs/           Stata documentation
│   ├── scripts/        Test and release scripts
│   ├── catalog/        Catalog provenance and build scripts
│   └── README.md       Stata documentation
├── docs/               Shared architecture documentation
├── pyproject.toml      Python/PyPI build configuration
└── README.md           Project overview

The stata/ directory is also the exact net install site: stata.toc and usebcrp.pkg remain directly inside it.

Data source and references

Author

Maykol Medrano Pontificia Universidad Católica de Chile Email: mmedrano2@uc.cl GitHub: MaykolMedrano

License and disclaimer

This project is released under the MIT License. It is an independent open-source project and is not an official product of the Banco Central de Reserva del Perú. Data availability and accuracy depend on the upstream BCRP service.

Install Server
A
license - permissive license
A
quality
B
maintenance

Maintenance

Maintainers
Response time
1dRelease cycle
5Releases (12mo)
Commit activity

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    Model Context Protocol server that provides access to economic and financial time series data from Peru's Central Reserve Bank, enabling AI agents to search, explore, and analyze Peru's economic indicators through a standardized interface.
    3
    3
  • A
    license
    Not graded
    quality
    D
    maintenance
    Provides access to 800,000+ Federal Reserve Economic Data (FRED) time series, enabling users to search, retrieve, and analyze economic indicators like GDP, unemployment, inflation, and interest rates through natural language queries.
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Provides access to Mexico's INEGI (national statistics office) indicators API, enabling AI agents to query statistical data through natural language or direct tool calls.
    9
    MIT
  • A
    license
    Not graded
    quality
    C
    maintenance
    Enables AI agents to access economic statistics from the Central Reserve Bank of Peru, including exchange rates, interest rates, and GDP, without requiring an API key.
    MIT

View all related MCP servers

Related MCP Connectors

  • Banco Central de Reserva del Perú (BCRP) statistics series API MCP. Keyless.

  • Macro indicators from World Bank, FRED, IMF, and OECD via unified query surface.

  • Macro data for AI agents: GDP, inflation, unemployment & trade, any country. No API keys.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MaykolMedrano/mcp_bcrp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server