
Houan Mcp
io.github.SHAYOUWORLD由 GitHub 账号 SHAYOUWORLD 发布v0.1.3更新于 Oct 24, 2026
Search Japanese Diet bills and meeting transcripts (NDL Kokkai API) with source attribution.
概览
本地 MCP 服务器,让助手通过日本国立国会图书馆国会会议录 API 检索日本国会议案与委员会问答记录,并附来源链接。
- 可以做什么
- 全文检索国会委员会发言,可按日期、议院、委员会和发言者筛选
- 按 issueID 获取单场委员会会议完整记录
- 按标题关键词检索众参两院当届议案
- 获取单个议案详情:审议进程、委员会归属与全文链接
- 适用场景
- 适合研究日本立法进程时使用:在审议案、委员会质询或逐字会议记录,并希望回答能引用官方来源。已生效法律的查询由另一个 e-Gov 法令服务器负责。
- 运行要求
- 需要 Node.js 20 或更高版本,以 stdio 方式在本地运行(npx 或源码方式)。需能访问国立国会图书馆国会会议录 API 以及众议院、参议院议案情报网站。无需认证或 API 密钥。
安装
在 SourceWeft 中
- 打开 控制台中的 Houan Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@codeagentjp/houan-mcp
Local stdio MCP server for searching Japanese Diet bills (衆参議案情報) and committee Q&A records via the NDL Kokkai (国会会議録検索システム) API.
This server does not call an LLM. It only returns source-backed Diet data, with primary URLs (NDL Kokkai, 衆議院議案情報, 参議院議案情報) so your MCP client (Claude Desktop, Claude Code, Cursor, or any other agent) can cite the original source.
Sister package: @codeagentjp/egov-law-mcp for current Japanese laws (e-Gov Law Search). houan-mcp covers the legislative process side: bills under deliberation, committee questionings, and full meeting transcripts.
Status
MVP. Four tools:
find_diet_qa— full-text search across all Diet committee speeches via the NDL Kokkai API. Filter by date, chamber, committee, speaker.get_meeting_record— retrieve a single committee's full transcript byissueID.search_bills— search current-session bills in either house by title keyword.get_bill— retrieve detail of one bill (proceedings timeline, committee assignment, full-text URL).
Requirements
- Node.js 20 or later
- Network access to
https://kokkai.ndl.go.jp,https://www.shugiin.go.jp,https://www.sangiin.go.jp
Install
From npm:
From source:
Tools
find_diet_qa
Full-text search of Diet committee speeches via the NDL Kokkai API.
Returns matched speeches with speaker, position, committee context, and direct NDL URL.
get_meeting_record
Retrieve a single full transcript by issueID.
search_bills
Search 衆議院議案情報 / 参議院議案情報 by title keyword.
When session is omitted, the server reads the session list behind the 衆議院議案情報 dropdown (.../html/gian/pulldown.htm, one small request, cached for 5 minutes like other responses) and searches the highest session listed, for both chambers. If that list cannot be read, it searches 222 (checked 2026-10-28) and adds an entry to warnings. query.sessionSource is latest, fallback, or argument. Specify session explicitly for historical sessions; no session list is fetched then.
For Shugiin results, session is the searched session, submittedSession is the session in which the item was introduced, and billType distinguishes 衆法 / 参法 / 閣法 and other agenda items. billNumber is the official number (or null for unnumbered items); status comes from 審議状況. Unpublished proceedings/full-text links are null.
HTTP, network, timeout, and unrecognized Shugiin table errors are returned as an MCP tool result with isError: true. Its text contains error, sourceErrors (chamber, URL, message) and warnings, rather than a successful zero-hit result. When searching both, a failure in either chamber fails the whole search; request one chamber explicitly if you want to retry it alone. A successful search with no title matches still returns matched: 0 and results: [].
get_bill
Retrieve a bill detail page (proceedings timeline, committee assignment, full-text URL). The proceedingURL must be a URL returned by search_bills — it is validated against the chamber's allowed path prefix before fetching.
Data Sources and Attribution
This package uses three Japanese public sources:
- NDL Kokkai (国会会議録検索システム) — https://kokkai.ndl.go.jp/ · API documentation. Diet records published 1947–. No auth required. The API terms ask machine clients not to send concurrent requests and to wait a few seconds between requests; this server enforces that (see Request pacing).
- 衆議院議案情報 — https://www.shugiin.go.jp/internet/itdb_gian.nsf/html/gian/menu.htm
- 参議院議案情報 — https://www.sangiin.go.jp/japanese/joho1/kousei/gian/current/gian.htm
Tool results include the source URL. When you publish or redistribute output based on this package, include an appropriate attribution. Suggested:
出典: 国会会議録検索システム (https://kokkai.ndl.go.jp/) / 衆議院議案情報 / 参議院議案情報
Request pacing
The NDL Kokkai API terms (section 4) ask machine clients to avoid concurrent requests and to wait a few seconds after each response before sending the next one. find_diet_qa and get_meeting_record therefore:
- send at most one request to
kokkai.ndl.go.jpat a time, even when a client calls several tools at once or sends a JSON-RPC batch; - start each request at least 3 seconds after the previous one finished. Set
HOUAN_MCP_NDL_INTERVAL_MSto wait longer; values below3000are ignored.
Identical queries within 5 minutes are answered from an in-process cache and do not reach NDL. Several NDL calls in a row take about 3 seconds each. The pacing applies within one server process; if you run several copies, keep their combined traffic within the same terms.
HOUAN_MCP_TIMEOUT_MS (default 20000) sets the per-request timeout. It starts when the request is sent, not while it waits for its turn.
Example: pulling a Mythos Q&A
The 4/10 2026 衆議院外務委員会 questioning by 宇佐美登 (チームみらい) on Anthropic's Claude Mythos Preview can be retrieved like this:
The response includes 花田貴裕 政府参考人's verbatim answer with meetingURL pointing to the canonical NDL record at https://kokkai.ndl.go.jp/txt/122103968X00620260410.
Safety Notes
- This package is a legislative reference tool, not legal/political advice.
- It does not execute shell commands.
- It writes JSON-RPC messages only to stdout and logs only to stderr.
- It fetches only the NDL Kokkai API and 衆/参 議案情報 endpoints.
- Diet records in NDL typically appear with a 1–2 week lag after the committee meeting. If a recent meeting cannot be found, check back later or consult the chamber's video library directly.
Development checks
Tests launch the stdio server with network requests replaced by local official-HTML samples. They cover Shugiin search/proceedings, failure reporting, and the existing Sangiin and NDL tools. Sample sources and capture details are in test/fixtures/README.md.
Related
- Sibling MCP for current laws:
@codeagentjp/egov-law-mcp - Roadmap (法令diff / 自治体条例 / 判例 MCPs): SHAYOUWORLD/egov-law-mcp#1
- Use cases (Japanese): houan-mcp の7つの実用ユースケース (codeagent.jp)
- From bills to current law (Japanese): houan-mcpとe-Gov法令MCPの調査フロー (codeagent.jp)
- Other Japanese public-data APIs and MCP servers: codeagent.jp/guides/public-data-api/
License
MIT © codeagent.jp
来源:README.md,提交 0d33a1a
工具
0版本历史
1- v0.1.3最新Sep 24, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分