boj-stats-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
boj-stats-mcp
日本銀行 時系列統計の公式APIを参照する読み取り専用のMCPサーバーです。Python 3.12以上とuv(0.13.4で検証)を使います。上流APIのキー設定は不要です。
MCPクライアント設定
GitHubリポジトリへのアクセス権がある環境でクローンします。
git clone https://github.com/koizumikento/boj-stats-mcp.git
cd boj-stats-mcp
uv sync --lockedクライアントの設定に、クローン先の絶対パスを指定します。
{
"mcpServers": {
"boj-stats-mcp": {
"command": "uv",
"args": ["--directory", "/absolute/path/to/boj-stats-mcp", "run", "--locked", "boj-stats-mcp"]
}
}
}Related MCP server: mcp-estat-japan
ツール
ツール | 用途 |
| DB内の系列を系列名・系列コードで検索 |
| 系列コードと期間で時系列を取得 |
DB名と系列コードでデータを特定します。初版は1回の呼び出しで1系列を取得します。期間の書式は対象系列の期種に合わせて指定してください。
CLI
uv run boj-stats-mcp search-series --database FM08 --query "ドル" --limit 1
uv run boj-stats-mcp get-series-data --database FM08 --series-code FXERD04 --start-period 202501 --end-period 202501結果は標準出力にUTF-8のJSONで出力します。コマンドの引数は uv run boj-stats-mcp search-series --help で確認できます。
Pythonライブラリ
パッケージをインストールしたPython環境で、下記の非同期関数を直接呼び出せます。
import asyncio
from boj_stats_mcp import search_series
result = asyncio.run(search_series(database="FM08", query="ドル", limit=1))
print(result)公開関数 search_series、get_series_data を利用できます。イベントループがある環境では、関数を直接 await します。
出典と利用条件
コードはMIT Licenseです。取得するデータの権利と利用条件は、API提供元と各データ提供機関の定めに従います。公式API仕様 · 利用案内
開発
uv sync --locked
uv run ruff check .
uv run ty check
uv run pytest
uv buildTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
政府統計 (e-Stat) の API を通じて、統計データやメタ情報を取得するためのサービスです。
Japan export and import customs statistics (Ministry of Finance) by code. No API key required.
Search and query 1,500+ OECD statistical datasets via SDMX. Keyless.
Korean national statistics (KOSIS) — browse, search and pull time series from Statistics Korea's…
Related MCP Servers
- AlicenseCqualityBmaintenanceEnables access to Japan's official government statistics portal (e-Stat) API to search, retrieve, and analyze statistical data including census data, economic indicators, and demographic information across 17 statistical fields.13MIT
- AlicenseNot gradedqualityCmaintenanceEnables querying Japanese government statistics from e-Stat, including metadata, data observations, and catalog browsing.104 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables access to Japanese stock market data via the free J-Quants API, providing tools for company search, daily quotes, and financial statements.1MIT
- AlicenseNot gradedqualityDmaintenanceProvides LLMs access to Japanese and international statistical data (e-Stat, World Bank, OECD, Eurostat) with tools for data retrieval, chart generation, and statistical analysis.MIT