Boj Mcp

🏦 Japan Central Bank Data, Instantly

Official Bank of Japan data gateway: CGPI, SPPI, Flow of Funds, BOP, TANKAN. No API key, auto-cached, CLI-first.

收藏
4.2k
安装
1.9k
版本
0.1.2
CLS 安全性认证2026-07-14
点击查看完整报告 >

使用说明

Overview

boj-mcp is a specialized MCP (Model Context Protocol) server that provides programmatic access to the Bank of Japan's (BOJ) official statistical flat-file datasets. It serves as a bridge between AI assistants and Japan's central bank data infrastructure, enabling retrieval of critical macroeconomic indicators without requiring API authentication.

Core Usage

The tool operates via CLI commands exposed through the MCP protocol. Users first enumerate available datasets (boj-mcp datasets), search for specific series (boj-mcp search), then retrieve time-series data in tabular or JSON formats (boj-mcp data). The workflow mirrors professional econometric tools but with simplified, AI-native interfaces.

Key Advantages

  • Authoritative Source: Direct connection to BOJ's official stat-search.boj.or.jp portal, ensuring data provenance matches institutional standards
  • Zero Configuration: No API keys, registration, or rate-limiting concerns; leverages BOJ's public flat-file policy
  • Intelligent Caching: Local caching after first download significantly accelerates repeated queries
  • Encoding Handling: Automatic Shift_JIS conversion eliminates common Japan-data friction
  • Comprehensive Coverage: Includes specialized indices often missing in aggregated APIs (CGPI, SPPI, TANKAN, Flow of Funds)

Limitations & Risks

  • Flat-File Latency: BOJ updates may lag real-time; data freshness depends on BOJ's publication schedule (typically monthly with revision cycles)
  • No Real-Time Rates: Does not provide live market rates; interest rates are reference/statistical, not executable
  • Shift_JIS Dependency: While handled automatically, underlying encoding remains a legacy constraint
  • Limited Granularity: Flat-file structure may not support highly granular filtering; often requires client-side processing
  • No Historical Metadata: Series definitions and methodology changes require external BOJ documentation cross-reference

Suitable Users

  • Macroeconomic researchers analyzing Japanese price indices and monetary transmission
  • Financial analysts modeling Japan's balance of payments or international investment position
  • AI agents requiring structured, authoritative Japan economic data without API complexity
  • Quantitative developers building Japan-specific economic dashboards

Security Considerations

  • Data Integrity: Sourced directly from .boj.or.jp domain; minimal MITM risk via HTTPS
  • Local Caching: Cached files stored locally; sensitivity depends on deployment environment
  • No Credential Exposure: Zero secrets in configuration reduces attack surface
  • Supply Chain: Python package distribution via PyPI/uv; standard package manager risks apply

安全解读

核心用法

boj-mcp 是一款专为获取日本银行(Bank of Japan)官方统计数据设计的 MCP 工具。用户通过简单的命令行交互即可访问涵盖价格指标(CGPI企业物价指数、SPPI服务业生产者价格指数)、资金循环统计(Flow of Funds)、国际收支、BIS国际统计、货币供应量、利率及汇率等核心金融数据。

典型工作流程
1. boj-mcp datasets 浏览可用数据集

2. boj-mcp search <关键词> 定位具体指标序列

3. boj-mcp data <数据集名称> 获取数据(支持表格/JSON格式)

数据源自 BOJ 官方平面文件下载服务(www.stat-search.boj.or.jp),首次下载后本地缓存,自动处理 Shift_JIS 编码,无需任何 API 密钥。

显著优点

  • 官方权威数据源:直接对接日本中央银行统计系统,数据公信力极高
  • 零门槛使用:无需注册、无需 API Key、无访问限制
  • 覆盖全面:囊括日本最重要的宏观经济指标,尤其 TANKAN 短观调查为日本经济先行指标
  • 本地化缓存:重复访问速度快,离线可用
  • MCP 协议兼容:可无缝集成 AI 助手工作流,实现自然语言查询经济数据

潜在局限

  • 依赖外部 CLI:Skill 本身为文档型,实际数据获取依赖用户本地安装的 boj-mcp Python 包,需单独维护工具版本
  • 更新延迟:平面文件更新频率取决于 BOJ 发布周期,非实时流数据
  • 日文语境为主:部分数据集原生日文命名,英文覆盖有限
  • 无可视化能力:仅提供原始数据,需配合其他工具进行图表分析

适合人群

宏观经济研究员、金融分析师、日本市场投资者、货币政策研究者、经济学科学生,以及需要在日本经济数据上构建 AI 分析工作流的开发者。

常规风险

  • 数据时效性风险:BOJ 统计存在发布滞后,不宜用于高频交易决策
  • 工具供应链风险:依赖 PyPI 分发的 boj-mcp 包,需关注其安全更新
  • 汇率/指标口径变更:官方统计方法调整可能导致历史数据修订,需核对 BOJ 公告

Boj Mcp 内容

手动下载zip · 1.7 kB
SKILL.mdtext/markdown
请选择文件