Skip to main content
Glama
edinet-util-mcp-server

edinet-util-mcp-server

by gotoai

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; data/edinet_profiles.sqlite, the database the builder writes, published with the skill

Related MCP server: EDINET DB MCP Server

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:

Available Tools

3 tools
export_filingA
Idempotent

Download one filing by doc_id and save it as Markdown files in the EDINET output folder: index.md (metadata and contents), figures.md (5-year key figures) and one file per section. Returns the folder and file list; read the files you need. A filing already exported is returned without downloading again.

Inputs: doc_id (required), refresh. Returns: object

list_filingsA
Read-only

List EDINET filings submitted between two dates (at most 31 days, about 1 second per day), optionally only one company's or only some document types. Returns each filing's doc_id for export_filing, newest first.

Inputs: from_date (required), limit, to_date, sec_code, +3 more. Returns: object

load_guidelineA
Read-only

Usage guideline for the EDINET tools: how to find filings, how to read an exported filing, how they relate to the company-profile skill, and the conditions of use. Read it before your first search.

Inputs: no named parameters. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 3 tools

    Disambiguation5/5

    Each tool occupies a clearly separate stage: load_guideline is documentation, list_filings discovers doc_ids, and export_filing materializes a filing. The descriptions explicitly cross-reference each other (list_filings returns doc_id consumed by export_filing), so an agent cannot reasonably confuse them.

    Naming Consistency5/5

    All three names follow a consistent snake_case verb_noun pattern (load_guideline, list_filings, export_filing) with verbs that accurately match the action performed. No mixed conventions or vague catch-all verbs.

    Tool Count4/5

    Three tools is minimal but each earns its place for a narrow EDINET discovery-and-export purpose; nothing redundant exists. It sits just under the typical 3-15 comfort range only because the domain itself is intentionally small, and the guideline tool consumes a slot without performing work.

    Completeness4/5

    The core lifecycle (find filings by date/company/doc type, then export a filing to readable Markdown) is fully covered with no dead ends. Minor gaps remain: no way to resolve company names to EDINET codes or browse document types without first running a date-bounded listing, and no lightweight metadata lookup short of a full export.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides programmatic access to Japan's EDINET system to search for listed companies and retrieve annual or quarterly financial reports. It parses XBRL filings into structured data, enabling AI assistants to analyze balance sheets, income statements, and cash flows.
      182 PyPI
      20
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      Structured financial data for ~3,800 Japanese listed companies from EDINET regulatory filings — financials, major shareholders, segments, executive compensation, and corporate history. Remote MCP over HTTPS with OAuth 2.0, free tier.
      13
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables access and analysis of Japanese corporate financial data (PL/BS/CF) via EDINET API. Supports searching companies, listing reports, and comparing financials through natural language queries.
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables searching SEC EDGAR for companies, retrieving recent filings (e.g., 10-K, 10-Q), and accessing structured XBRL financial facts.
      143 npm
      MIT