kokkai-mcp
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., "@kokkai-mcp 最近の生成AIに関する国会での発言を検索してください"
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.
kokkai-mcp
国会議事録検索・要約 MCP サーバー
国立国会図書館の国会会議録検索システム API を利用し、 発言検索・会議録取得・議事録要約を MCP ツールとして提供します。
機能
ツール | 説明 |
| キーワード・発言者・会議名・期間で発言を検索 |
| issueID を指定して会議録全体を取得 |
| 発言一覧を要約(brief / standard / detailed) |
| 会議録全体を取得して要約 |
Related MCP server: houan-mcp
セットアップ
1. 依存関係のインストール
npm install2. 環境変数の設定
cp .env.example .env
# .env を編集して ANTHROPIC_API_KEY を設定する必須の環境変数:
変数名 | 説明 |
| Anthropic Claude API キー(https://console.anthropic.com/ で取得) |
3. ビルド
npm run build4. Claude Desktop への登録
claude_desktop_config.json に以下を追加する:
{
"mcpServers": {
"kokkai-mcp": {
"command": "node",
"args": ["/path/to/kokkai-mcp/dist/server.js"],
"env": {
"ANTHROPIC_API_KEY": "your-api-key-here"
}
}
}
}開発
npm run dev # ホットリロード起動
npm test # テスト実行
npm run lint # Lint チェック
npm run build # ビルド使用例
発言検索
生成AIに関する最近の国会議論を検索してください。
→ search_speeches({ query: "生成AI", from: "2024-01-01", limit: 10 })会議録要約
issueID の会議録を要約してください。
→ summarize_meeting({ issueID: "...", mode: "standard" })アーキテクチャ
Node.js 20+ / TypeScript 5.x
MCP SDK (stdio transport)
Anthropic Claude API(claude-3-5-haiku デフォルト)
メモリキャッシュ(TTL: 発言 1 日、会議録・要約 7 日)
詳細は docs/architecture/ を参照してください。
ライセンス
本ソフトウェアの利用にあたっては、 国会会議録検索システム利用規約 に従うこと。
Available Tools
8 toolsanalyze_topic_changesA
同一テーマについて複数期間(2〜5期間)の国会議事録を分析し、論点の増加・減少・継続・新規(change_type)を出典付きで返します。
Inputs: query (required), periods (required), mode, nameOfMeeting, +2 more.
compare_by_partyA
指定テーマについて政党別の発言を集約・比較します。各政党のスタンス・主要論点の違い、共通点・相違点を出典付きで返します。
Inputs: query (required), from, mode, until, +4 more.
compare_over_timeC
同一テーマについて複数期間(2〜3期間)の国会議事録を比較し、議論の変化(論点の増減・新規・継続)を返します。
Inputs: query (required), periods (required), mode, speaker, +4 more.
get_meetingA
会議録識別子 (issueID) を指定して会議録全体を取得します。search_speeches の items[].issueID を使用してください。
Inputs: issueID (required).
search_speechesA
国会議事録から発言を検索します。キーワード・発言者・会議名・期間を組み合わせて条件指定できます。
Inputs: from, limit, query, until, +2 more.
summarize_meetingA
会議録識別子 (issueID) を指定して会議録全体を取得・要約します。get_meeting + summarize_speeches を内部でまとめて実行します。
Inputs: issueID (required), mode, focus.
summarize_qa_pairsA
会議録識別子 (issueID) を指定して、質問と答弁のペアを抽出・要約します。各ペアに論点タイトル・質問要旨・答弁要旨・回答関係評価(response_type)が付与されます。
Inputs: issueID (required), mode, focus, max_pairs, +1 more.
summarize_speechesA
発言一覧を入力として要約を生成します。search_speeches の出力をそのまま渡せます。mode で詳細度を指定し、focus で焦点を絞ることができます。
Inputs: items (required), mode, focus.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
compare_over_time and analyze_topic_changes are nearly identical in purpose, differing only slightly in scope and output, which creates significant ambiguity. summarize_meeting and summarize_speeches have some overlap but their descriptions clarify the distinction.
All tool names follow a consistent verb_noun snake_case pattern (e.g., get_meeting, search_speeches, summarize_qa_pairs), making the function of each tool predictable and uniform.
8 tools is well-scoped for a server that covers searching, retrieving, summarizing, and comparing Diet minutes, without feeling bloated or sparse.
The tool surface covers the core workflow of search, retrieval, summarization, and comparison. There is no dedicated list-meetings tool, but search_speeches can fulfill that role via meeting name and period searches.
Maintenance
Related MCP Connectors
Kokkai Diet MCP — Japan National Diet proceedings, speech-level full-text search via the National…
Search National Diet proceedings speeches.
Japan Law MCP — Japanese national laws & ordinances via the e-Gov Law API.
Search Japanese subsidies and public company data using J-Grants, gBizINFO, and EDINET.
Related MCP Servers
- FlicenseAqualityDmaintenanceProvides a structured interface to the Japanese National Diet Library's parliamentary proceedings API, allowing AI models to search and retrieve Diet meeting records and speeches.31-
- AlicenseAqualityCmaintenanceMCP server for searching Japanese Diet bills and committee Q\&A records via the NDL Kokkai API.442 npm1MIT
- AlicenseBqualityDmaintenanceEnables LLM clients to search and analyze bills, members, committees, meetings, votes, and reports from the South Korean National Assembly OpenAPI through MCP tools.26MIT
- AlicenseBqualityDmaintenanceMCP server that provides tools and prompts for searching Japanese Diet (国会) proceedings using the National Diet Library API. Enables querying meetings and speeches with various filters and obtaining direct URLs to the records.338ISC