Skip to main content
Glama
edinetdb

EDINET DB MCP Server

README.md
# EDINET DB MCP Server

[![Live](https://img.shields.io/badge/status-production-green)](https://edinetdb.jp/mcp) [![Users](https://img.shields.io/badge/users-9000%2B-blue)](https://edinetdb.jp) [![License](https://img.shields.io/badge/data%20license-mixed%20open--gov-orange)](https://edinetdb.jp/docs/data-sources)

**Remote MCP server for Japan's EDINET DB** โ€” structured financial data for ~3,800 Japanese listed companies, served over HTTPS with OAuth 2.0 multi-tenant authentication.

- ๐ŸŒ **Endpoint**: `https://edinetdb.jp/mcp`
- ๐Ÿ” **Auth**: OAuth 2.0 (or API key)
- ๐Ÿ‘ฅ **Users**: 9,000+ registered developers, analysts, and academic researchers
- ๐Ÿ“… **Production since**: 2026-03-01
- ๐Ÿ‡ฏ๐Ÿ‡ต **First** remote MCP service for Japanese listed-company filings (by author's research as of 2026-02 month-end)

## What it does

EDINET DB exposes structured financial and corporate data extracted from Japan's regulatory filings (EDINET, by the Financial Services Agency) plus public open data (gBizINFO from METI, National Tax Agency corporate registry, Wikidata). Connect from Claude Desktop, Claude Code, Cursor, Codex CLI, or any MCP-compatible client to query company financials, HR/diversity disclosures, supply chains, patents, executive profiles, and corporate history via natural language.

## Two ways to connect

| | Remote (recommended) | Local stdio server (this repo) |
|---|---|---|
| Endpoint | `https://edinetdb.jp/mcp` | runs on your machine |
| Tools | 75 | 13 core tools |
| Auth | OAuth 2.0 or API key | API key (`EDINETDB_API_KEY`) |
| Setup | add one URL | `npx`, `node`, or Docker |

The remote server is the full product and needs nothing installed. The local
server in this repository is a small, dependency-light stdio client over the
same public REST API, for clients that cannot speak streamable HTTP or for
users who would rather run the process themselves.

## Quick start โ€” remote

### Claude Desktop (Custom Connector)

1. Open Claude Desktop โ†’ Settings โ†’ Custom Connectors
2. Add Connector:
   - **Name**: EDINET DB
   - **URL**: `https://edinetdb.jp/mcp`
   - **Auth**: OAuth 2.0 (discovery: `https://edinetdb.jp/mcp/.well-known/oauth-authorization-server`)
3. Sign in with your edinetdb.jp account (free signup at https://edinetdb.jp/signup)

### Claude Code

```bash
claude mcp add edinetdb https://edinetdb.jp/mcp --transport http
```

### Cursor

`.cursor/mcp.json`:
```json
{
  "mcpServers": {
    "edinetdb": {
      "url": "https://edinetdb.jp/mcp",
      "transport": "streamable-http"
    }
  }
}
```

### Codex CLI

```bash
codex mcp add edinetdb https://edinetdb.jp/mcp
```

## Quick start โ€” local stdio server

Get a free API key at https://edinetdb.jp/developers, then:

```bash
EDINETDB_API_KEY=your-key npx -y github:edinetdb/edinet-db-mcp
```

Claude Desktop / Cursor / any stdio client:

```json
{
  "mcpServers": {
    "edinetdb": {
      "command": "npx",
      "args": ["-y", "github:edinetdb/edinet-db-mcp"],
      "env": { "EDINETDB_API_KEY": "your-key" }
    }
  }
}
```

From source:

```bash
git clone https://github.com/edinetdb/edinet-db-mcp && cd edinet-db-mcp
npm ci && EDINETDB_API_KEY=your-key node server.js
```

With Docker (`-i` is required โ€” the transport is stdio):

```bash
docker build -t edinet-db-mcp .
docker run -i --rm -e EDINETDB_API_KEY=your-key edinet-db-mcp
```

| Environment variable | Required | Default | Purpose |
|---|---|---|---|
| `EDINETDB_API_KEY` | yes, to call tools | โ€” | Your EDINET DB API key. Listing tools works without it. |
| `EDINETDB_BASE_URL` | no | `https://edinetdb.jp/v1` | REST API base URL. |
| `EDINETDB_TIMEOUT_MS` | no | `30000` | Per-request timeout in milliseconds. |

### Tools in the local server (13)

Each tool is a typed wrapper over one REST endpoint. The set is deliberately
narrow: one tool per question a user actually asks, with no two tools covering
the same ground.

| Tool | What it answers |
|---|---|
| `search_companies` | Resolve a name or securities code to an EDINET code |
| `get_company` | Full profile of one company |
| `get_financials` | Multi-year financial statement series |
| `get_segments` | Which business segment earns the money |
| `get_earnings` | Latest quarterly results and company forecast |
| `get_disclosures` | What the company filed, and when |
| `get_text_blocks` | Business overview, risk factors, MD&A as filed |
| `get_directors` | Board roster, tenure and shareholding |
| `get_shareholders` | Who holds 5%+ of this company |
| `search_shareholders` | Everything one investor holds |
| `screen_companies` | Filter the market by numeric criteria |
| `get_ranking` | Market-wide league table for one metric |
| `compare_peers` | Benchmark a company against its industry |

For the full surface โ€” IR documents, knowledge-graph strategies, KPI tracking,
watchlists, dashboards and saved analyses โ€” use the remote server, which
exposes all 75 tools listed below.

## Tools in the remote server (75)

**Company & financials**
- `get_company` โ€” Company profile + latest financials (XBRL-sourced, no LLM)
- `get_financials` โ€” Multi-year financial time series
- `get_analysis` โ€” Rule-based financial health score (0-100) and key-metrics summary
- `compare_companies` โ€” Side-by-side comparison of 2-10 companies for one fiscal year
- `get_industry_benchmark` โ€” Industry median and P25/P75 quartiles
- `get_fair_value` โ€” Deterministic, non-advisory valuation model estimates
- `get_segments` โ€” Business segment revenue, operating income, capex, assets
- `get_detailed_expenses` โ€” SG&A breakdown from the PL notes
- `get_order_backlog` โ€” Orders received, order backlog, production and sales volumes
- `get_earnings` โ€” Quarterly earnings flash (ๆฑบ็ฎ—็Ÿญไฟก), newest first
- `get_earnings_calendar` โ€” Scheduled earnings announcement dates

**Search & screening**
- `search_companies` โ€” Search by name, securities code, industry, or health score
- `search_companies_batch` โ€” Many companies in one call
- `screen_companies` โ€” Screener over 100+ metrics with AND logic
- `get_ranking` โ€” Top companies by a financial, human-capital or ESG metric
- `search_corporate_master` โ€” National Tax Agency corporate-number database (5.8M+ active corporations)
- `get_corporate_profile` โ€” Profile by 13-digit corporate number, listed or not
- `get_events` โ€” Normalized corporate events across filings, earnings and holdings
- `get_appearances` โ€” Reverse-lookup: how a company appears in *other* companies' filings

**Filings: full text & structured extraction**
- `get_text_blocks` โ€” Raw full text from annual securities reports
- `get_text_blocks_structured` โ€” Pre-extracted structured data points from those sections
- `get_compensation_text` โ€” Director and officer compensation disclosures
- `get_company_history` โ€” Corporate history timeline (ๆฒฟ้ฉ) as structured events

**Shareholders**
- `get_shareholders` โ€” Large shareholding reports (ๅคง้‡ไฟๆœ‰ๅ ฑๅ‘Šๆ›ธ), latest per filer group
- `search_shareholders` โ€” Which companies a given filer holds
- `get_shareholder_history` โ€” Shareholding time series for a filer-issuer pair
- `get_shareholder_transactions` โ€” Trade-level detail from the 60-day acquisition/disposal table
- `get_activist_positions` โ€” Current activist positions across the market
- `get_shareholder_categories` โ€” Ownership by shareholder category (ๆ‰€ๆœ‰่€…ๅˆฅ็Šถๆณ)
- `get_major_shareholders` โ€” Top-10 major shareholders snapshot
- `get_cross_shareholdings` โ€” Per-issuer policy shareholdings (ๆ”ฟ็ญ–ไฟๆœ‰ๆ ชๅผ)

**Corporate graph**
- `get_directors` โ€” Directors and corporate auditors (ๅฝนๅ“กไธ€่ฆง)
- `get_director_compensation` โ€” Granular compensation breakdown per officer group
- `get_parent_company` / `get_parent_companies` โ€” Disclosed parent and reverse-declared parents
- `get_subsidiaries` โ€” Consolidated subsidiaries and equity-method affiliates (้–ขไฟ‚ไผš็คพใฎ็Šถๆณ)
- `get_gleif_subsidiaries` โ€” Consolidated subsidiaries from GLEIF Level 2
- `get_related_party_transactions` โ€” Related-party transactions (้–ข้€ฃๅฝ“ไบ‹่€…ใจใฎๅ–ๅผ•)
- `get_main_customers` โ€” Disclosed main customers (ไธป่ฆ่ฒฉๅฃฒๅ…ˆ) graph

**Assets & facilities**
- `get_real_estate` โ€” Land, buildings and investment property book values
- `get_facilities` โ€” Facility-level major properties (ไธป่ฆใช่จญๅ‚™ใฎ็Šถๆณ)

**IR documents & knowledge graph**
- `get_ir_documents` โ€” IR PDFs: integrated reports, mid-term plans, sustainability reports
- `get_ir_pdf_url` โ€” Signed download URL for an IR PDF
- `list_ir_document_types` โ€” Available IR document type slugs
- `search_ir_sections` / `get_ir_sections_by_company` โ€” Section-level IR content search
- `search_qa_sections` โ€” Q&A content from earnings presentations
- `search_ir_kpis` / `get_ir_kpis_by_company` โ€” Numeric KPIs from mid-term plans and integrated reports
- `search_kg_strategies` โ€” Strategy entities extracted across companies
- `search_kg_kpi_commitments` โ€” Committed numerical targets
- `get_kg_company_summary` โ€” Knowledge-graph summary for one company
- `get_kg_kpi_track_record` โ€” KPI commitments, observations and revisions
- `find_peer_strategies` โ€” Peer strategies that overlap thematically

**Watchlist, dashboard & notifications**
- `get_watchlist` / `add_to_watchlist` / `remove_from_watchlist` โ€” Personal watchlist
- `dashboard_list_modules` / `dashboard_get_feed` / `dashboard_add_module` / `dashboard_remove_module` / `dashboard_update_params` โ€” Dashboard modules and live feeds
- `subscribe_notifications` / `list_notification_subscriptions` / `unsubscribe_notifications` โ€” Email digests

**Saved analyses**
- `save_analysis` / `list_my_analyses` / `run_analysis` / `delete_analysis` โ€” Re-runnable named analyses

**Data quality feedback**
- `report_data_issue` / `report_financial_data_issue` โ€” Flag an error or missing data
- `get_data_issue` โ€” Status of a report you filed
- `request_data` / `list_my_data_requests` โ€” Request data that is missing entirely

**Docs**
- `get_documentation` โ€” Inline help, tool catalog and methodology

## Data sources

| Source | Coverage | License |
|---|---|---|
| **EDINET** (FSA Japan) | Annual securities reports, quarterly reports, large shareholder reports | Public-sector open data |
| **gBizINFO** (METI) | Corporate basic attributes, patents, subsidies, government procurement | CC BY 4.0 compatible (ๆ”ฟๅบœๆจ™ๆบ–ๅˆฉ็”จ่ฆ็ด„ ็ฌฌ2.0็‰ˆ) |
| **Corporate Number Publication Site** (NTA) | Corporate number, basic 3 fields | ๅ…ฌๅ…ฑใƒ‡ใƒผใ‚ฟๅˆฉ็”จ่ฆ็ด„ ็ฌฌ1.0็‰ˆ |
| **Wikidata** | Official website URLs | CC0 |
| AI-generated content (corporate history narrative, etc.) | Always labeled, with source event IDs, timestamps, and disclaimers | โ€” |

We do not redistribute exchange-licensed data (real-time stock prices, TDnet). See https://edinetdb.jp/docs/data-sources for the full breakdown.

## Pricing

| Plan | Price (JPY/month) | API/MCP req/day |
|---|---|---|
| Free | ยฅ0 | 100 |
| Pro | ยฅ4,980 | 1,000 |
| Developer (formerly Business, renamed 2026-09-03) | ยฅ29,800 | 10,000 |
| Business (organizations) / Enterprise | Contact | Custom |
| Academy | Free for accredited researchers | Custom |

Details: https://edinetdb.jp/pricing

## Position vs. similar projects

EDINET DB runs as a hosted, OAuth-authenticated, multi-tenant remote MCP server, and also ships the local stdio client in this repository for people who would rather run the process themselves. It has been in production since 2026-03-01 and has 9,000+ registered users.

## Languages

- Japanese (primary), English (secondary, growing)
- Tools accept queries in both languages, response language follows MCP client `Accept-Language`

## License & terms

- **Data**: see "Data sources" table above; each field carries a `source` attribute
- **Service**: per https://edinetdb.jp/terms
- **Not an official endorsement of any governmental body**

## Links

- ๐ŸŒ Service: https://edinetdb.jp
- ๐Ÿ“š Docs: https://edinetdb.jp/docs/api
- ๐Ÿ”Œ MCP guide: https://edinetdb.jp/docs/mcp-guide
- ๐Ÿ“Š Data quality SLA: https://edinetdb.jp/docs/data-quality
- ๐Ÿ› Issues: https://github.com/edinetdb/edinet-db-mcp/issues
- โœ‰๏ธ Contact: edinetdb@cabocia.jp

---

Operated by [Cabocia Inc.](https://cabocia.jp) โ€” building data infrastructure for the AI agent era.

TDQS

A4.3/5.0

Scored across 13 tools

Disambiguation5/5

Each tool maps to a distinct resource or action, with overlapping pairings explicitly cross-referenced: get_shareholders vs search_shareholders and search_companies vs screen_companies are clearly differentiated. Adjacent tools like get_financials vs get_earnings and get_disclosures vs get_text_blocks are also described in ways that prevent misselection.

Naming Consistency5/5

All tools follow a consistent snake_case verb_noun pattern: get_* for retrieving entity data, search_* for resolving names, screen_companies for filtering, and compare_peers for benchmarking. The verb consistently indicates the operation type and the noun the target, making the set highly predictable.

Tool Count5/5

Thirteen tools is well-scoped for an EDINET financial data server, covering company profile, financials, segments, earnings, disclosures, governance, shareholders, screening, ranking, and peer comparison. Each tool earns its place and there are no obvious redundant entries.

Completeness4/5

The toolset covers the major EDINET workflows thoroughly: company resolution, financial statements, quarterly earnings, filing lists, narrative text, directors, shareholder filings, screening, ranking, and peer comparison. A minor gap is that arbitrary full-filing content cannot be retrieved directly, since get_text_blocks is limited to annual securities report narrative sections.

Maintenance

ActivityMaintained
ResponsivenessNo issues