Skip to main content

edinet-util-mcp-server

An MCP server for the EDINET API v2 (金融庁), and the builder of the company-profile snapshot used by the edinet-company-profiles skill.

EDINET API v2 を使って有価証券報告書などの開示書類を扱う MCP サーバーと、上場企業のプロフィール・ 主要指標・同業他社リストをまとめたスナップショットのビルダーです。

Unofficial. This project is not affiliated with or endorsed by the Financial Services Agency (金融庁), which operates EDINET.

Status: work in progress (0.1.0.dev0). The server, the skill and the snapshot builder work; not yet published.

Layout

Path What it is
src/edinet_util_mcp_server/ The package: the MCP server (server, guideline), filing export (export, convert), API client (api), code list (codelist), key figures from the type-5 CSV (figures)
tools/build_profiles.py, tools/snapshot/ The snapshot builder, a development tool not shipped in the wheel
skill/edinet-company-profiles/ The skill: SKILL.md, scripts/edinet_profiles.py (standard library only), references/financial_diagnosis.md, NOTICE; the builder writes its database to data/edinet_profiles.sqlite (not in git)

The server

A skill-style MCP server over stdio, with the user's own API key:

Tool Does
load_guideline How the tools work together, the conditions of use
list_filings Filings submitted between two dates (at most 31 days), filtered by company or document type
export_filing One filing → Markdown files: index.md, figures.md, sections/, images/

Settings (environment variables): EDINET_API_KEY (required) and EDINET_OUTPUT_DIR (default ~/Documents/EDINET), the only place the server writes. Run it with python -m edinet_util_mcp_server; Kari finds the command through the kari.mcp_servers entry point.

The skill

skill/edinet-company-profiles/ is a standard SKILL.md folder. Copy it, with its database, into ~/.agents/skills/ (Kari's main app) or import it in an Agent Desk. Its script opens the database read-only in place:

python skill/edinet-company-profiles/scripts/edinet_profiles.py compare 7203 --peers "7267,7201"

Commands: company, peers, compare, filings, sql, about (--json for structured output).

Tests

../../.venv/bin/pytest            # offline
EDINET_LIVE=1 ../../.venv/bin/pytest tests/test_live.py   # real API over stdio, key from .env
../../.venv/bin/ruff check src tests tools skill

Building the snapshot

Put the key in .env at the repository root (EDINET_API_KEY=…; the file is ignored by git), then:

python tools/build_profiles.py all

Steps, each re-runnable on its own: cohort (every listed company in the EDINET code list) → filings (every cohort filing in the daily lists of the last 18 months, or --from..--to) → profiles (key figures and listing market from each latest annual report's CSV; a company is covered when that report shows at least 3 fiscal years) → peers (top 10 per company in the same TSE industry, scored 0.5 × scale similarity + 0.5 × similarity of the report's 事業の内容 and 経営方針 text) → finish (manifest, attribution, VACUUM).

The builder needs the dev extras (pip install -e ".[dev]", which include numpy and scikit-learn for the peers step); the server itself does not.

Downloads are cached in build/edinet-cache/, so an interrupted run resumes and a rebuild makes no repeat calls. Requests go one at a time, 1 second apart, slowing down after an HTTP 429.

Data and licence

The code is MIT-licensed. Data from EDINET is used under the 公共データ利用規約(第1.0版) (PDL1.0). The snapshot is processed data, not the original filings:

Metadata

Release files for edinet-util-mcp-server 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for edinet-util-mcp-server 0.1.0
File Size Uploaded Provenance Actions
edinet_util_mcp_server-0.1.0.tar.gz 116.9 kB Without provenance Details for edinet_util_mcp_server-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for edinet-util-mcp-server 0.1.0
File Interpreter ABI Platform Actions
edinet_util_mcp_server-0.1.0-py3-none-any.whl Python 3 none any Details for edinet_util_mcp_server-0.1.0-py3-none-any.whl

Total release size: 151.5 kB

Release files / edinet_util_mcp_server-0.1.0.tar.gz

Download URL edinet_util_mcp_server-0.1.0.tar.gz
Size 116.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2dcd4f376aca1cc946b843609111c27dc524700006f5edb4d669b9c9579dc8b6
BLAKE2b-256 checksum
How to use checksums
95edca027cccd9c2aee8b00ae4a4f47c48e9f5a1fb8f3c60ce2848f321a09e8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Release files / edinet_util_mcp_server-0.1.0-py3-none-any.whl

Download URL edinet_util_mcp_server-0.1.0-py3-none-any.whl
Size 34.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89ff5b20e32a911cfc9ec97fc91fad358b0a766a24fa432993db3333e98d81d7
BLAKE2b-256 checksum
How to use checksums
8366ca7ecd94d24d94423f208212d116a5bc804ce0becb3ba71be4550a00539b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.10

Security for edinet-util-mcp-server 0.1.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page