japan-ir-search
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@japan-ir-search半導体サプライチェーンリスクに言及している企業を探して"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
japan-ir-search
AIエージェントから日本の企業IR開示書類をテキスト検索できる MCP サーバー。
EDINET(金融庁)の有価証券報告書・四半期報告書・臨時報告書・大量保有報告書などをダウンロードし、SQLite FTS5 でローカルに全文検索インデックスを構築します。Claude Desktop、Cursor、VS Code Copilot などの MCP クライアントから直接利用できます。
🚀 ホスト版(ベータ公開中・APIキー不要)
セットアップ不要で試せるホスト版を Fly.io 上で公開しています。よりステップバイステップの手順は ランディングページ をご覧ください。
エンドポイント:
https://japan-ir-search.fly.dev/mcp(Streamable HTTP)収録範囲: 直近2年分・全18書類種別(全上場企業 + 投信・REIT・外国会社等 6,984 提出者 / 約 55,000 件)
認証: 不要(ベータ期間中)
更新: 日次バッチで追記
⚠️ ベータ運用に関する注意
個人運用の実験的サービスです。無保証・予告なく停止・破壊的変更あり。
アイドル時にマシンを停止する構成のため、初回リクエストは数秒のコールドスタートがあります。
業務利用・ミッションクリティカル用途にはローカル構築(後述)を推奨します。
MCP クライアント設定例
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json / Windows: %APPDATA%\Claude\claude_desktop_config.json):
{
"mcpServers": {
"japan-ir-search": {
"type": "http",
"url": "https://japan-ir-search.fly.dev/mcp"
}
}
}VS Code (.vscode/mcp.json またはユーザー設定):
{
"servers": {
"japan-ir-search": {
"type": "http",
"url": "https://japan-ir-search.fly.dev/mcp"
}
}
}Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"japan-ir-search": {
"url": "https://japan-ir-search.fly.dev/mcp"
}
}
}設定後、AI に「ソニーの最新の事業等のリスクを見せて」「半導体サプライチェーンに言及してる企業を探して」のように聞けます。
Related MCP server: edinet-mcp
何ができるか
既存の EDINET MCP サーバーは財務数値の取得に特化しています。 このツールは有報の「テキスト」を検索対象にする点が異なります。
❌ 既存ツール: 「トヨタの売上高は?」 → 45兆953億円
✅ これ: 「半導体サプライチェーンリスクに言及している企業は?」
→ トヨタ: 「半導体サプライチェーンリスク、地政学的リスク...」(事業等のリスク)
→ ソニー: 「特定サプライヤーへの依存...」(事業等のリスク)MCP ツール(5つ)
ツール | 説明 |
| 有報テキストの全文検索(セクション・企業名フィルタ対応) |
| 書類の特定セクション全文を取得 |
| インデックス済み企業の一覧 |
| インデックスの統計情報 |
| 2つの書類の同一セクションを比較(新出/消失キーワード検出) |
検索可能なセクション
事業等のリスク — リスク要因の記述
事業の内容 — 事業概要
経営者による分析(MD&A) — 経営成績・財政状態の分析
コーポレート・ガバナンスの状況等
経理の状況
全文 — 上記に分類されない部分を含む全テキスト
対象書類(18種別)
主要(HIGH): 有価証券報告書、四半期報告書、半期報告書、臨時報告書 + 各訂正
準主要(MEDIUM): 内部統制報告書、公開買付届出書/報告書、意見表明報告書、大量保有報告書 + 各訂正
セットアップ
1. インストール
git clone https://github.com/tamcho113/japan-ir-search.git
cd japan-ir-search
uv sync2. EDINET API キーの取得
EDINET で無料登録し、Subscription-Key を取得してください。
export EDINET_API_KEY=your_key_here3. インデックス構築
# 直近1年分(約2GB、2〜3時間)
uv run japan-ir-search build
# 直近3年分、全種別(約18GB、20〜30時間)
uv run japan-ir-search build --years 3 --doc-types all
# 主要種別のみ(有報・四半期・半期・臨時のみ)
uv run japan-ir-search build --years 3 --doc-types high
# バックグラウンド実行(推奨)
nohup uv run japan-ir-search -v build --years 3 > build.log 2>&1 &
tail -f build.log中断しても再開時にインデックス済みの書類はスキップされます。
4. MCP サーバーとして使う
uv run japan-ir-search serveClaude Desktop・Cursor・VS Code 等での MCP サーバーの設定方法は各クライアントのドキュメントを参照してください。サーバーコマンドは上記です。
設定例(共通パターン):
{
"command": "uv",
"args": ["--directory", "/path/to/japan-ir-search", "run", "japan-ir-search", "serve"],
"env": { "EDINET_API_KEY": "your_key_here" }
}CLI
# 検索
uv run japan-ir-search search "半導体 サプライチェーン"
uv run japan-ir-search search "M&A 買収" --section risk_factors
uv run japan-ir-search search "ESG" --company トヨタ
# 統計確認
uv run japan-ir-search stats
# MCP サーバー起動
uv run japan-ir-search serve使い方の例
MCP クライアント(Claude等)にこう聞けます:
「地政学リスクに言及している自動車メーカーを探して」
「ソニーの事業等のリスクを見せて」
「トヨタの前期と当期でリスク記述がどう変わったか比較して」
「臨時報告書でM&Aに言及している直近の書類は?」
「大量保有報告書でアクティビストの動きがある企業は?」
アーキテクチャ
EDINET API → ZIP DL → HTML抽出 → セクション分割 → SQLite FTS5 (trigram)
↓
MCP Server ← Claude/Cursor/VS CodeSQLite FTS5 (trigram): 日本語テキストを文字 n-gram で全文検索
ローカル完結: 外部サービス不要。DB ファイル 1つで動作
レート制限対策: 0.8秒間隔 + 429/5xx 指数バックオフリトライ
ストレージ目安
ローカル構築時の DB サイズの目安です。FTS5 インデックス込みのトータル。
範囲 | 対象 | DB サイズ | CLI オプション |
直近1年 | 有報・四半期・半期・臨時 + 訂正 (HIGH 8種) | ~3GB |
|
直近1年 | 上記 + TOB・大量保有・内部統制等 (全18種) | ~7GB |
|
直近2年 | 全18種 | ~14GB ⚡実測値 |
|
直近3年 | HIGH 8種 | ~9GB |
|
直近3年 | 全18種 | ~21GB |
|
ホスト版の現在の収録: 直近 2 年 / 全18種 / 全上場企業 + 投信・REIT等 6,984 提出者 / 約 55,000 件 / 14GB
書類種別の詳細は対象書類を参照。
データについて
EDINET(Electronic Disclosure for Investors' NETwork)は金融庁が運営する法定開示書類の電子開示システムです。API 利用は無料(要登録)。開示データは公共データライセンス 1.0 に基づき提供されています。
ライセンス
MIT
Available Tools
5 toolscompare_sectionsA
2つの書類の同一セクションを比較します(例: 前期 vs 当期のリスク記述)。
Args:
doc_id_1: 比較元の書類ID
doc_id_2: 比較先の書類ID
section: セクションキー(デフォルト: risk_factors)
Returns:
両方のテキスト、文字数差分、新出キーワード、消失キーワード
| Name | Required | Description | Default |
|---|---|---|---|
| section | No | risk_factors | |
| doc_id_1 | Yes | ||
| doc_id_2 | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description must carry the behavioral transparency burden. It does so effectively by stating that both texts, character count differences, new keywords, and disappeared keywords are returned, and by noting the default section key. It doesn't discuss side effects or auth, but for a comparison/read tool this is sufficient.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is compact and well-structured with separate Args/Returns sections. The example adds context without redundancy. It earns its place, though a slightly more explicit usage scenario could make it even more actionable.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (3 params, output schema existing), the description covers purpose, parameters, and return values, making it mostly self-contained. It lacks explicit exclusion criteria or prerequisite conditions, but the provided information is sufficient for an agent to invoke it correctly in the described use case.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, but the description compensates by documenting all three parameters in the Args section: doc_id_1 as source, doc_id_2 as target, and section with a default of risk_factors. This adds meaningful semantic value beyond the bare schema property names.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description specifies a clear verb+resource: '2つの書類の同一セクションを比較します' (compare the same section of two documents) with a concrete example (prior vs current risk description). This clearly distinguishes it from sibling tools like get_filing_section, which retrieves a single section.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides an example of when to use: comparing the same section across two documents (e.g., prior period vs current period). However, it does not explicitly state when not to use it or mention alternatives, though the purpose itself differentiates it from related tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_filing_sectionA
書類の特定セクション全文を取得します。
Args:
doc_id: EDINET書類ID(例: "S100VWVY")
section: セクションキー(risk_factors, md_and_a, business_overview,
corporate_governance, financial_summary, full_text)
Returns:
セクションの全文テキストとメタデータ
| Name | Required | Description | Default |
|---|---|---|---|
| doc_id | Yes | ||
| section | Yes |
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the behavioral transparency burden. It discloses the return type (full text and metadata) and provides a helpful example for doc_id. However, it does not mention error handling behavior, whether sections may be missing, rate limits, or any side effects. It is adequate for a simple read operation but not comprehensive.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and well-structured: a one-sentence summary, followed by Args and Returns sections. Every line provides necessary detail without redundancy or fluff. It is appropriately sized for the tool's simplicity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description adequately covers the input parameters and return type, and an output schema exists, so exhaustive return field documentation is unnecessary. It lacks discussion of edge cases or usage scenarios, but for a straightforward getter with two required parameters, the context is reasonably complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has no descriptions for its two parameters, but the description fully compensates by explaining doc_id as an EDINET document ID with a concrete example, and section as a section key with an enumerated list of valid values. This adds significant meaning beyond the bare schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool retrieves the full text of a specific section from a filing, using the verb '取得します' (retrieve) and identifies the resource as a filing section. The provided section keys (risk_factors, md_and_a, etc.) further distinguish it from sibling tools like search_filings or compare_sections.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage is implied by the purpose: one would use this when needing section text from a known filing ID. However, there is no explicit guidance about when to use this tool versus alternatives, no exclusions, and no prerequisites mentioned beyond the required parameters.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_index_statsA
検索インデックスの統計情報を取得します。
Returns:
インデックス済み書類数、企業数、総文字数等
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
Output Schema
| Name | Required | Description |
|---|---|---|
No output parameters | ||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the transparency burden. It discloses that the tool returns statistics (e.g., indexed document count, company count, total characters), which implies a read-only operation. While it does not explicitly state side effects or access requirements, the nature of the tool is low-risk and adequately transparent.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single concise sentence followed by a brief 'Returns' block. It is front-loaded with the action, contains no redundant information, and every sentence earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a zero-parameter tool with an output schema, the description is complete. It provides an overview of the returned statistics (indexed document count, company count, total characters) and the output schema covers detailed field definitions. No further context is necessary for correct usage.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has zero parameters, so the baseline for parameter semantics is 4. The description adds no parameter information (as none exist) and instead focuses on the return values, which is appropriate for a parameterless tool.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool retrieves search index statistics using a specific verb ('取得します') and a distinct resource ('検索インデックスの統計情報'). It distinguishes itself from sibling tools like search_filings, list_indexed_companies, and compare_sections, which have different purposes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for obtaining aggregate index statistics, but it does not explicitly state when to use this tool versus alternatives. There is no mention of such alternatives or situations where another tool would be more appropriate.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_indexed_companiesA
インデックス済み企業の一覧を取得します。
Args:
query: 企業名フィルタ(部分一致、省略で全企業)
limit: 最大件数
Returns:
企業一覧(EDINETコード、証券コード、企業名、書類数)
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the burden of behavioral disclosure. It mentions it returns a list and specifies the return fields, but it does not explicitly state that it is a safe read-only operation, nor does it describe edge cases like sorting, pagination, or exact limit enforcement. Some context is added, but not comprehensive.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and well-structured, starting with a clear one-sentence purpose, followed by Args and Returns sections. Every line provides useful information without redundancy, making it easy to scan.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple tool with two optional parameters and an existing output schema, the description covers the core purpose and parameter semantics. However, it omits any usage guidance and does not mention behavioral limitations, making it slightly incomplete for an agent that must rely solely on this text.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description adds rich meaning beyond the bare input schema. It explains that query is a partial-match filter on company name and that omitting it returns all companies, and that limit sets the maximum number of items. This is exactly what the schema lacks, making parameters self-explanatory.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool retrieves a list of indexed companies ('インデックス済み企業の一覧を取得します'), with a specific verb ('取得') and resource ('一覧'). It is distinct from sibling tools like search_filings and compare_sections by focusing on listing companies.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no explicit guidance on when to use this tool versus alternatives. It only explains the function and parameters, leaving usage context implied. No exclusions, prerequisite steps, or alternative scenarios are mentioned.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_filingsA
有価証券報告書のテキストを全文検索します。
Args:
query: 検索クエリ(例: "半導体 サプライチェーン リスク")
section: セクション指定(risk_factors, md_and_a, business_overview,
corporate_governance, financial_summary, full_text)
company: 企業名フィルタ(部分一致)
limit: 最大件数(デフォルト20)
Returns:
マッチした書類一覧(企業名、セクション、スニペット付き)
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| company | No | ||
| section | No |
Output Schema
| Name | Required | Description |
|---|---|---|
| result | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description must carry the burden of behavioral transparency. It discloses the return format (list of matched documents with company name, section, and snippet) and parameter behaviors like default limit. However, it does not mention potential caveats such as rate limits, auth requirements, or data scope limitations. The description accurately portrays a read-only search operation but could include more behavioral context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise and well-structured with an Args/Returns format. Every sentence contributes useful information—the purpose statement, parameter explanations, and return description—without repetition or fluff. It is appropriately sized for the tool's complexity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (4 parameters, no annotations, and an output schema), the description provides a complete picture: what the tool does, all parameter semantics, and the return structure. It also includes a concrete query example. The only minor gap is a lack of error-handling or edge-case information, but this is not critical for a straightforward search tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema provides no descriptions (0% coverage), so the description fully compensates by detailing each parameter: query with an example, section with an explicit list of allowed values, company as a partial-match filter, and limit with a default value. This adds substantial meaning beyond the bare schema fields, making parameter semantics excellent.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool performs full-text search of securities report text (有価証券報告書のテキストを全文検索します). It uses a specific verb and resource, and the name 'search_filings' aligns with its function. It distinguishes from siblings like get_filing_section and compare_sections by focusing on searching across filings, though it doesn't explicitly name alternatives.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description explains what the tool does but does not provide explicit guidance on when to use it versus sibling tools such as get_filing_section or compare_sections. Usage context is implied: use it to find filings by content, but no 'when not to use' or alternative recommendations are given. This makes the usage guidelines adequate but not explicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
5 tool updates
v0.1.0- First observed
compare_sections - First observed
get_filing_section - First observed
get_index_stats - First observed
list_indexed_companies - First observed
search_filings
TDQS
Scored across 5 tools
Each tool targets a distinct operation: full-text search, section retrieval, company listing, index statistics, and section comparison. No two tools have overlapping purposes, making selection unambiguous.
All tool names follow a consistent verb_noun pattern in snake_case (search_filings, get_filing_section, list_indexed_companies, get_index_stats, compare_sections). The naming is uniform and predictable.
With only 5 tools, the server is well-scoped for its purpose of searching and comparing Japanese securities filings. Each tool provides a distinct capability without unnecessary bloat or missing essentials.
The core search and retrieval lifecycle is covered, including full-text search, section fetching, and comparison. A minor gap exists: there is no direct way to list all filings for a company without a search query, but this can be worked around by using a broad search.
Maintenance
Related MCP Connectors
DocBase MCP server for AI agents
MCP server for searching Airweave collections with natural language queries.
Your agent needs company financials it can compute on — statements, ratios, earnings, estimates, filings and insider activity as structured data, not a PDF. **What you can ask for** • "Give me 8 quarters of income statement, balance sheet and cash flow for this ticker." • "What do analysts estimate for next quarter, and how did the last four surprise?" • "Find this exact line item across every filing." • "Who bought or sold as an insider in the last 90 days?" • "Screen for profitable companies under this valuation with growing revenue." **How to use it** Point any MCP client at https://mcp.aisa.one/marketpulse/mcp and sign in with OAuth — there is no key to create or paste. 21 tools: prices and snapshots, income statements, balance sheets, cash-flow statements, financial metrics and snapshots, earnings, analyst estimates, company facts, filings and filing items, line-item search, a screener, insider trades, macro interest rates, news, plus EDINET documents and filing digests for Japanese issuers. **Why this rather than the source** Statements as fields you can compute on, and a screener in the same place. **It is also a door to the rest** The same login reaches 26 sources and 580+ operations. Read the fundamentals here, then ask the same agent what social is saying about the ticker — without adding a second server. **What it costs** Finding and inspecting an operation is free. Running one is billed per call at API prices, with no seat and no monthly minimum, and every call takes max_price_usd so an agent cannot overspend by accident. **Where else it reaches** https://mcp.aisa.one/finance/mcp for equities, crypto and prediction markets in one place.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceMCP server for Japan's TDnet (Timely Disclosure network). Search and retrieve timely disclosure documents from listed companies on Japanese stock exchanges.270 PyPI5Apache 2.0
- FlicenseNot gradedqualityDmaintenanceAn MCP server that interfaces with the Japanese EDINET API v2 to search, download, and extract text from financial disclosure documents. It enables users to browse disclosure lists, retrieve document originals, and perform natural language searches for specific financial filings.-
- AlicenseAqualityBmaintenanceMCP server for managing and searching multi-tenant knowledge bases backed by SQLite with FTS5, enabling AI agents to persist and retrieve content via full-text search.132MIT
- AlicenseAqualityCmaintenanceMCP server for local knowledge management with Markdown and PDF indexing using SQLite FTS5.56 npm2MIT