Skip to main content
Glama
houan-mcp

houan-mcp

by SHAYOUWORLD

@codeagentjp/houan-mcp

这是一个本地 stdio MCP 服务器,用于通过 NDL Kokkai(国会会议录检索系统)API 搜索日本国会法案(衆参議案情報)和委员会问答记录。

此服务器不调用 LLM。它仅返回基于来源的国会数据,并提供原始链接(NDL Kokkai、众议院法案信息、参议院法案信息),以便您的 MCP 客户端(Claude Desktop、Claude Code、Cursor 或任何其他代理)可以引用原始来源。

姊妹包:@codeagentjp/egov-law-mcp,用于查询现行日本法律(e-Gov 法律检索)。houan-mcp 涵盖了立法过程方面:审议中的法案、委员会质询以及完整的会议记录。

状态

MVP 版本。包含四个工具:

  • find_diet_qa — 通过 NDL Kokkai API 对所有国会委员会发言进行全文搜索。可按日期、议院、委员会、发言人进行筛选。

  • get_meeting_record — 通过 issueID 获取单个委员会的完整会议记录。

  • search_bills — 按标题关键词搜索两院当前会期的法案。

  • get_bill — 获取法案详情(审议时间表、委员会分配、全文 URL)。

Related MCP server: open-assembly-mcp

要求

  • Node.js 20 或更高版本

  • 可访问 https://kokkai.ndl.go.jp、https://www.shugiin.go.jp、https://www.sangiin.go.jp 的网络环境

安装

从 npm 安装:

{
  "mcpServers": {
    "houan": {
      "command": "npx",
      "args": ["-y", "@codeagentjp/houan-mcp"]
    }
  }
}

从源码安装:

git clone https://github.com/SHAYOUWORLD/houan-mcp.git
cd houan-mcp
node bin/houan-mcp.mjs
{
  "mcpServers": {
    "houan": {
      "command": "node",
      "args": ["/absolute/path/to/houan-mcp/bin/houan-mcp.mjs"]
    }
  }
}

工具

find_diet_qa

通过 NDL Kokkai API 对国会委员会发言进行全文搜索。

{
  "keyword": "クロード ミトス",
  "from": "2026-04-01",
  "until": "2026-04-25",
  "chamber": "衆議院",
  "committee": "外務委員会",
  "limit": 5
}

返回匹配的发言,包含发言人、职位、委员会背景以及直接的 NDL URL。

get_meeting_record

通过 issueID 获取单个完整会议记录。

{
  "issueID": "122103968X00620260410"
}

search_bills

按标题关键词搜索众议院/参议院法案信息。

{
  "keyword": "情報",
  "chamber": "both",
  "session": 221,
  "limit": 20
}

get_bill

获取法案详情页面(审议时间表、委员会分配、全文 URL)。proceedingURL 必须是 search_bills 返回的 URL — 在获取之前,它会根据议院允许的路径前缀进行验证。

{
  "chamber": "shugiin",
  "proceedingURL": "https://www.shugiin.go.jp/internet/itdb_gian.nsf/html/gian/keika/1DE..."
}

数据来源与归属

此包使用了三个日本公共来源:

工具结果包含来源 URL。当您基于此包发布或重新分发输出时,请包含适当的归属说明。建议格式:

出典: 国会会議録検索システム (https://kokkai.ndl.go.jp/) / 衆議院議案情報 / 参議院議案情報

示例:获取 Mythos 问答

可以像这样检索 2026 年 4 月 10 日众议院外务委员会中宇佐美登(Team Mirai)关于 Anthropic Claude Mythos Preview 的质询:

{
  "tool": "find_diet_qa",
  "arguments": {
    "keyword": "クロード",
    "from": "2026-04-01",
    "until": "2026-04-30"
  }
}

响应包含花田贵裕政府参考人的逐字回答,其中 meetingURL 指向 https://kokkai.ndl.go.jp/txt/122103968X00620260410 处的规范 NDL 记录。

安全说明

  • 此包是一个立法参考工具,而非法律/政治建议。

  • 它不执行 shell 命令。

  • 它仅向 stdout 写入 JSON-RPC 消息,仅向 stderr 记录日志。

  • 它仅获取 NDL Kokkai API 和众/参议院法案信息端点的数据。

  • NDL 中的国会记录通常在委员会会议后 1-2 周内出现。如果找不到最近的会议,请稍后再试,或直接查阅议院的视频库。

相关项目

许可证

MIT © codeagent.jp

Available Tools

4 tools
find_diet_qaA

Full-text search of Japanese Diet committee speeches via the NDL Kokkai API. Returns speeches matching the keyword along with speaker, position, committee, and the canonical NDL URL.

Inputs: keyword (required), from, until, chamber, +3 more.

get_billA

Retrieve detail of one bill by chamber and proceedings URL. Returns title, submitter, committee assignment, and a status timeline parsed from the proceedings page. The proceedingURL must be a URL returned by search_bills.

Inputs: chamber (required), proceedingURL (required).

get_meeting_recordA

Retrieve the full transcript of one Diet committee meeting by issueID via the NDL Kokkai API. Use the issueID from a find_diet_qa result.

Inputs: issueID (required).

search_billsA

Search current-session Japanese Diet bills (衆議院議案情報 / 参議院議案情報) by title keyword. Returns bill metadata with proceedings and full-text URLs.

Inputs: keyword (required), chamber, session, limit.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool targets a distinct resource: speeches (find_diet_qa), bills (get_bill, search_bills), and meeting transcripts (get_meeting_record). There is no overlap in functionality, making it easy for an agent to choose the correct tool.

    Naming Consistency3/5

    Tool names mix verb prefixes: 'find', 'get', and 'search'. While all use snake_case, the lack of a uniform verb-noun pattern (e.g., all 'get_...' or all 'search_...') creates mild inconsistency.

    Tool Count5/5

    Four tools is well-scoped for the domain of Japanese Diet information retrieval. Each tool serves a clear purpose without redundancy or excessive granularity.

    Completeness4/5

    The tool set covers search and retrieval for bills, speeches, and meeting transcripts, which are the core needs. Minor gaps exist (e.g., listing all committees or filtering by date), but they don't hinder primary workflows.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server for Japan's TDnet (Timely Disclosure network). Search and retrieve timely disclosure documents from listed companies on Japanese stock exchanges.
      178 PyPI
      6
      Apache 2.0
    • A
      license
      A
      quality
      C
      maintenance
      MCP server for the Korean National Assembly Open API, enabling querying of bills, members, votes, committees, and more via natural language.
      20
      51 PyPI
      Apache 2.0
    • 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