japanfinance-agent
Compound MCP agent that combines 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) | stockprice-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 | 3 sequential MCP calls (EDINET → TDNET → stock) | analyze 7203 |
| Macro overview | e-Stat search + result aggregation | 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, stock, 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 政府統計) |
monitor_earnings |
複数企業の決算・開示モニタリング |
check_data_sources |
データソースの接続状況を確認 |
CLI Usage
# Analyze a company (EDINET + TDNET + stock)
japanfinance-agent analyze 7203
japanfinance-agent analyze 7203 -e E02144 -p 2025 --json-output
# Macro economic snapshot (e-Stat)
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 + stock (parallel)
├── macro_snapshot(keyword) → e-Stat government statistics
├── 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)
└── stockprice-mcp → Stock prices & FX (via yfinance)
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) |
| yfinance | None | Stock prices & market data |
License
Apache-2.0
Metadata
Release files for japanfinance-agent 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| japanfinance_agent-0.1.8.tar.gz | 163.4 kB | Without provenance | Details for japanfinance_agent-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| japanfinance_agent-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for japanfinance_agent-0.1.8-py3-none-any.whl |
Total release size: 181.6 kB
Release files / japanfinance_agent-0.1.8.tar.gz
| Download URL | japanfinance_agent-0.1.8.tar.gz |
|---|---|
| Size | 163.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a25c22bbb2ef6b5458678b472994b0e0b62274f840468e1dd6aa4468545e2ee
|
|
BLAKE2b-256 checksum How to use checksums |
98ea89fd89f430a961eb617647ce04c82d56cd8de2d14c1fa44bb87be3aadfc7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Release files / japanfinance_agent-0.1.8-py3-none-any.whl
| Download URL | japanfinance_agent-0.1.8-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9d7565a7c298255fd7e8f9617a0e06185f032f68e44abbfe8c441d61ed2d875
|
|
BLAKE2b-256 checksum How to use checksums |
95f8fd41d154df8907a89341504b91d74405ee38b220fef3ed0e768ff608a00a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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}
|
Security for japanfinance-agent 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.