Skip to main content

Compound MCP agent combining 6 Japan finance data sources — EDINET, TDNET, e-Stat, BOJ, news, stock prices

Project description

japanfinance-agent

CI PyPI version Python 3.10+ License: Apache-2.0

Compound MCP agent that combines 6 Japan finance data sources into high-value analysis tools. Instead of calling each source individually, get comprehensive company analysis, macro snapshots, and earnings monitoring in a single request.

Part of the Japan Finance Data Stack: edinet-mcp (securities filings) | tdnet-disclosure-mcp (timely disclosures) | estat-mcp (government statistics) | boj-mcp (Bank of Japan) | japan-news-mcp (financial news) | jquants-mcp (stock prices)

Why?

Each Japan finance MCP provides focused data from one source. But real analysis needs multiple sources combined:

What you want Without japanfinance-agent With japanfinance-agent
Company analysis 4 sequential MCP calls (EDINET → TDNET → news → stock) analyze 7203
Macro overview 3 sequential MCP calls (e-Stat → BOJ → news) macro -k GDP
Earnings watchlist N × TDNET calls for N companies monitor 7203 6758 6861

Installation

# Core only (brings no data sources)
pip install japanfinance-agent

# With all data sources
pip install "japanfinance-agent[all]"

# Pick specific sources
pip install "japanfinance-agent[edinet,tdnet,news]"

Available extras: edinet, tdnet, estat, boj, news, jquants, all

Configuration

Add to Claude Desktop config:

{
  "mcpServers": {
    "japanfinance": {
      "command": "uvx",
      "args": ["japanfinance-agent[all]", "serve"],
      "env": {
        "EDINET_API_KEY": "your_edinet_key",
        "ESTAT_APP_ID": "your_estat_app_id"
      }
    }
  }
}

Then ask: "トヨタの財務分析をして" or "日本のGDP関連の最新データを見せて"

MCP Tools

Tool Description
analyze_japanese_company 企業の包括分析(EDINET財務 + TDNET開示 + ニュース + 株価)
get_macro_snapshot マクロ経済スナップショット(e-Stat + BOJ + ニュース)
monitor_earnings 複数企業の決算・開示モニタリング
check_data_sources データソースの接続状況を確認

CLI Usage

# Analyze a company (EDINET + TDNET + news + stock)
japanfinance-agent analyze 7203
japanfinance-agent analyze 7203 -e E02144 -p 2025 --json-output

# Macro economic snapshot (e-Stat + BOJ + news)
japanfinance-agent macro
japanfinance-agent macro -k CPI

# Monitor earnings for a watchlist
japanfinance-agent monitor 7203 6758 6861

# Check which data sources are available
japanfinance-agent test

# Start MCP server
japanfinance-agent serve

Architecture

japanfinance-agent
├── analyze_company(code)     → EDINET + TDNET + news + stock (parallel)
├── macro_snapshot(keyword)   → e-Stat + BOJ + news (parallel)
├── earnings_monitor(codes[]) → TDNET × N companies (parallel)
└── check_data_sources()      → connectivity status

Adapters (graceful degradation — missing packages return empty results):
├── edinet-mcp    → Financial statements, metrics, company search
├── tdnet-mcp     → Timely disclosures (earnings, dividends, buybacks)
├── estat-mcp     → Government statistics (GDP, CPI, employment)
├── boj-mcp       → Bank of Japan data (rates, money supply)
├── japan-news-mcp → Financial news headlines
└── jquants-mcp   → Stock prices (OHLCV)

Data Sources

Source Auth Data
EDINET API key (free) Securities filings, XBRL financial statements
TDNET None Timely disclosures (earnings, dividends)
e-Stat App ID (free) Government statistics (GDP, CPI, employment)
BOJ None Central bank data (rates, money supply)
News None RSS feeds (Yahoo, NHK, Reuters, Toyo Keizai)
J-Quants Email + Password Stock prices, financials, earnings calendar

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

japanfinance_agent-0.1.2.tar.gz (136.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

japanfinance_agent-0.1.2-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file japanfinance_agent-0.1.2.tar.gz.

File metadata

  • Download URL: japanfinance_agent-0.1.2.tar.gz
  • Upload date:
  • Size: 136.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for japanfinance_agent-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d5f3bd36aab145a7f50cf61e5a8b835955e82d9cd2d659b9895fa99918370873
MD5 3ca4cab4e140a396d2eb6cd93dce2d31
BLAKE2b-256 1f2a9f2598a0794a3663b332ebb9b6132d966440acd90737f878086843b75cb5

See more details on using hashes here.

File details

Details for the file japanfinance_agent-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: japanfinance_agent-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for japanfinance_agent-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 894e8402f531c26b98299f803db32b30eb9ac7bec4a79e34df4669329f9b7576
MD5 536f7acfb4aae17a8e61f01cd8b66dfb
BLAKE2b-256 2cd59bd8f71b2b6dab410f7ae2e036254bd8aa006523d065daadeedf7689c11f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page