trackmcp
Back to directory

Model Context Protocol (MCP) Server for BCRP Economic and Financial Time Series Data

3 stars PythonAI & Machine Learning Updated Jul 8, 2025
bcrpeconomicsfinancialmcp

Documentation


๐Ÿ“‹ Table of Contents


๐ŸŽฏ Overview

BCRP-MCP is a Model Context Protocol (MCP) server that provides seamless access to economic and financial time series data from the BCRP (Banco Central de Reserva del Perรบ) - Central Reserve Bank of Peru. This server enables AI agents and applications to search, explore, and analyze Peru's economic indicators, financial statistics, and monetary data through a standardized MCP interface.


๐ŸŽฌ Demo

Demo (Spanish): https://youtube.com/shorts/gsjC07WR0n0


๐Ÿ”ง Tools

NameInputDescription
`search_time_series_groups``keywords`Search for time series groups using one or multiple keywords
`search_time_series_by_group``time_series_group`Find all time series within a specific group, returns code and name pairs
`get_time_series_data``time_series_code``start``end`Retrieve time series data for a specific code within a date range

> Note: When using the remote server, the MCP client may require increased connection timeout settings.


๐Ÿ’ฌ Prompts

NameInputDescription
`search_data``keyword`Guided workflow to find relevant time series using keyword search
`ask``question`Financial analysis workflow that extracts keywords, searches data, and answers questions

๐Ÿš€ How to Use

Claude Desktop (Remote Server)

> Note: Requires `npx` which comes bundled with npm. If you don't have npm installed, install Node.js which includes npm.

Add to Claude Desktop config (Claude > Settings > Developer > Edit Config):

json
{
     "mcpServers": {
       "bcrp_mcp_remote": {
         "command": "npx",
         "args": [
           "mcp-remote",
           "https://bcrp-mcp.onrender.com/mcp"
         ]
       }
     }
   }

Local Server

> Note: Make sure you have `uv` installed. If not, install it from uv.tool.

Clone and install:

bash
git clone https://github.com/rodcar/bcrp-mcp.git
   cd bcrp-mcp
   uv sync

Add to Claude Desktop config (Claude > Settings > Developer > Edit Config):

> Note: Replace `/path/to/bcrp-mcp` with the actual path where you cloned the repository.

json
{
     "mcpServers": {
       "simple_mcp": {
         "command": "uv",
         "args": [
           "--directory",
           "/path/to/bcrp-mcp",
           "run",
           "main.py"
         ]
       }
     }
   }

MCP Inspector (Alternative)

> Note: Requires `npx` which comes bundled with npm. If you don't have npm installed, install Node.js which includes npm.

> Note: Replace `/path/to/bcrp-mcp` with the actual path where you cloned the repository.

Run

bash
npx @modelcontextprotocol/inspector \
  uv \
  --directory /path/to/bcrp-mcp \                     
  run \
  main.py

Open MCP Inspector (URL displayed in the console) and configure the MCP client with the following settings:


    ๐Ÿ’ก Examples

    PromptLanguageQuestionConversation
    `ask`Spanish"ยฟCรณmo ha evolucionado la tasa de interรฉs de referencia en el รบltimo aรฑo?"https://claude.ai/share/34df5f90-7a35-474d-b4cf-e8f48c3f9772

    ๐Ÿ›๏ธ Architecture Diagram

    BCRP-MCP follows the Model Context Protocol specification and provides a clean abstraction layer over the BCRP API.

    mermaid
    graph LR
        CLIENT[MCP ClientClaude Desktop, IDE, etc.] --> MCP_SERVER[BCRP-MCP Server]
        
        subgraph TOOLS ["๐Ÿ”ง Tools"]
            SEARCH_GROUP[search_time_serie_group]
            SEARCH_SERIES[search_time_series_by_group]
            GET_DATA[get_time_series_data]
        end
        
        subgraph "๐Ÿ’ฌ Prompts"
            SEARCH_PROMPT[search_data]
            ASK_PROMPT[ask]
        end
        
        MCP_SERVER --> SEARCH_GROUP
        MCP_SERVER --> SEARCH_SERIES
        MCP_SERVER --> GET_DATA
        MCP_SERVER --> SEARCH_PROMPT
        MCP_SERVER --> ASK_PROMPT
        
        TOOLS --> BCRP_API[BCRP APIestadisticas.bcrp.gob.pe]
        
        style CLIENT fill:#e3f2fd
        style MCP_SERVER fill:#f3e5f5
        style BCRP_API fill:#fff3e0

    ๐Ÿ“ License

    This project is licensed under the Apache License 2.0.


    ๐Ÿ™ Acknowledgments

    > Note: bcrpy was used in early development, is no longer a dependency. Unfortunately the performance for the remote MCP server led to response timeouts.


    Frequently asked questions

    What is bcrp-mcp?

    bcrp-mcp is Model Context Protocol (MCP) Server for BCRP Economic and Financial Time Series Data

    How do I install bcrp-mcp?

    Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.

    Is bcrp-mcp open source?

    Yes โ€” it is hosted on GitHub at https://github.com/rodcar/bcrp-mcp and has 3 stars.

    Related MCP tools

    zhayujiechatgpt-on-wechat

    ๅŸบไบŽๅคงๆจกๅž‹ๆญๅปบ็š„่Šๅคฉๆœบๅ™จไบบ๏ผŒๅŒๆ—ถๆ”ฏๆŒ ๅพฎไฟกๅ…ฌไผ—ๅทใ€ไผไธšๅพฎไฟกๅบ”็”จใ€้ฃžไนฆใ€้’‰้’‰ ็ญ‰ๆŽฅๅ…ฅ๏ผŒๅฏ้€‰ๆ‹ฉChatGPT/Claude/DeepSeek/ๆ–‡ๅฟƒไธ€่จ€/่ฎฏ้ฃžๆ˜Ÿ็ซ/้€šไน‰ๅƒ้—ฎ/ Gemini/GLM-4/Kimi/LinkAI๏ผŒ่ƒฝๅค„็†ๆ–‡ๆœฌใ€่ฏญ้Ÿณๅ’Œๅ›พ็‰‡๏ผŒ่ฎฟ้—ฎๆ“ไฝœ็ณป็ปŸๅ’Œไบ’่”็ฝ‘๏ผŒๆ”ฏๆŒๅŸบไบŽ่‡ชๆœ‰็Ÿฅ่ฏ†ๅบ“่ฟ›่กŒๅฎšๅˆถไผไธšๆ™บ่ƒฝๅฎขๆœใ€‚

    39,573 Python
    aiai-agentchatgpt+17
    assafelovicgpt-researcher

    An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to

    24,026 Python
    agentaiautomation+8
    jlowinfastmcp

    ๐Ÿš€ The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.

    19,927 Python
    agentsfastmcpllms+6
    tadata-orgfastapi_mcp

    Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth! Python-based implementation. Trusted by 11000+ developers.

    11,002 Python
    aiauthenticationauthorization+10
    Upsonicupsonic

    Agent Framework For Fintech for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.

    7,670 Python
    agentagent-frameworkclaude+7
    lastmile-aimcp-agent

    Build effective agents using Model Context Protocol and simple workflow patterns Python-based implementation. Trusted by 7600+ developers.

    7,669 Python
    agentsaiai-agents+5

    Run your own MCP server? See who uses it and what to fix.

    Measure it with TrackMCP