Skip to main content
Glama

kokkai-mcp

国会議事録検索・要約 MCP サーバー

国立国会図書館の国会会議録検索システム API を利用し、 発言検索・会議録取得・議事録要約を MCP ツールとして提供します。

機能

ツール

説明

search_speeches

キーワード・発言者・会議名・期間で発言を検索

get_meeting

issueID を指定して会議録全体を取得

summarize_speeches

発言一覧を要約(brief / standard / detailed)

summarize_meeting

会議録全体を取得して要約

Related MCP server: houan-mcp

セットアップ

1. 依存関係のインストール

npm install

2. 環境変数の設定

cp .env.example .env
# .env を編集して ANTHROPIC_API_KEY を設定する

必須の環境変数:

変数名

説明

ANTHROPIC_API_KEY

Anthropic Claude API キー(https://console.anthropic.com/ で取得)

3. ビルド

npm run build

4. 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 tools
analyze_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

    A3.6/5.0

    Scored across 8 tools

    Disambiguation2/5

    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.

    Naming Consistency5/5

    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.

    Tool Count5/5

    8 tools is well-scoped for a server that covers searching, retrieving, summarizing, and comparing Diet minutes, without feeling bloated or sparse.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      MCP server for searching Japanese Diet bills and committee Q\&A records via the NDL Kokkai API.
      4
      42 npm
      1
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables LLM clients to search and analyze bills, members, committees, meetings, votes, and reports from the South Korean National Assembly OpenAPI through MCP tools.
      26
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      MCP 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.
      3
      38
      ISC