Kokkai Diet

v0.2.1
io.github.pipeworx-io/kokkai-diet Checked 4 days ago Published 1 month ago

Kokkai Diet MCP — Japan National Diet proceedings, speech-level full-text search via the National…

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_speeches

Full-text search of Japanese National Diet (parliament) speeches back to 1947, via the National Diet Library's kokkai.ndl.go.jp API. Requires "query" and/or "speaker". Returns speaker, party (speaker_group), house, meeting, date, session, and a permalink for each hit — the actual speech text is a short preview here; fetch the full text with get_speech(speech_id). Queries are Japanese-first: kokkai.ndl.go.jp indexes speeches in Japanese, so Japanese keywords match; English keywords (e.g. "semiconductors" instead of "半導体") will under-match or return zero even when Japanese-language debat…

ParameterTypeDescription
fromstringEarliest speech date, inclusive, YYYY-MM-DD.
housestringChamber: "衆議院" (House of Representatives), "参議院" (House of Councillors), "両院" (joint), or "両院協議会" (joint committee).
max_recordsnumberResults per request, 1-100 (default 30). The API rejects values outside this range.
querystringJapanese keyword(s), space-separated for AND search, partial match. E.g. "半導体" (semiconductors), "少子化 対策" (declining birthrate AND countermeasures). English keywords under-match — pr…
speakerstringSpeaker name in Japanese, partial match, e.g. "岸田文雄". OR-matched if it has multiple readings.
speaker_groupstringPolitical party / parliamentary group (会派) in Japanese, partial match, e.g. "立憲民主党".
start_recordnumber1-based offset for pagination (default 1). Use the previous response's "next_start_record" to fetch the next page.
untilstringLatest speech date, inclusive, YYYY-MM-DD.

search_meetings

Search Japanese National Diet meetings/sittings (a meeting = one committee or plenary session on one day) by meeting name, chamber, or date range, via kokkai.ndl.go.jp. Requires at least one of "query", "meeting_name", or "house". Returns each meeting's issueID (for fetching its speeches with search_speeches or get_speech), house, meeting name, session number, issue number, date, and permalink. Queries are Japanese-first: kokkai.ndl.go.jp indexes speeches in Japanese, so Japanese keywords match; English keywords (e.g. "semiconductors" instead of "半導体") will under-match or return zero eve…

ParameterTypeDescription
fromstringEarliest meeting date, inclusive, YYYY-MM-DD.
housestringChamber: "衆議院", "参議院", "両院", or "両院協議会".
max_recordsnumberResults per request, 1-10 (default 3). The API rejects values outside this range — this cap is lower than search_speeches'.
meeting_namestringMeeting/committee name in Japanese, partial match, e.g. "予算委員会" (Budget Committee), "本会議" (plenary).
querystringJapanese keyword(s) matched against speech text within the meeting, partial match.
start_recordnumber1-based offset for pagination (default 1). Use the previous response's "next_start_record" to fetch the next page.
untilstringLatest meeting date, inclusive, YYYY-MM-DD.

get_speech

Fetch one Diet speech's full text and metadata by its speechID (from search_speeches' "speech_id" field). Returns the complete speech text (search_speeches only gives a preview), speaker, party, house, meeting, date, session, and permalink.

ParameterTypeDescription
speech_id *stringA speechID from search_speeches, e.g. "122105261X01720260727_012".