mcp-bcrp
This server provides an interface to the Banco Central de Reserva del Perú (BCRP) Statistical API, granting access to over 5,000 economic indicators. It leverages a local cache for fast offline searches and uses Spanish language processing with a deterministic fuzzy-matching engine for query canonicalization and ambiguity detection. Key capabilities:
search_series: Search for indicators by keyword (e.g., "tipo de cambio", "PBI"), returning the best match with a confidence score or an ambiguity error if multiple matches are equally scored.
get_data: Fetch raw time series data for one or more series codes, with optional date range filtering in
YYYY-MM/YYYY-MMformat.get_table: Retrieve formatted tables with custom column names.
plot_chart: Generate professional PNG charts with customizable titles, series names, date ranges, and output paths. Additional features include automatic frequency detection for indicators.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-bcrpshow me a chart of Peru's inflation rate for the last year"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp_bcrp
BCRP data tools for Python/MCP and native Stata workflows.
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-bcrpHelp: Python guide · examples and notebooks
Replication: Python test suite
From a checkout, run the tests from the repository root:
python -m pytest python/tests -qStata 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") replaceRequirements: 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.ps1Repository 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 overviewThe stata/ directory is also the exact net install site: stata.toc and
usebcrp.pkg remain directly inside it.
Data source and references
FastMCP, used by the optional Python MCP layer
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.
Maintenance
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides 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
- AlicenseNot gradedqualityCmaintenanceProvides access to Mexico's INEGI (national statistics office) indicators API, enabling AI agents to query statistical data through natural language or direct tool calls.9MIT
- AlicenseNot gradedqualityCmaintenanceEnables 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
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.
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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