
Uk Parliament Oralquestionsandmotions
io.github.nick-ma由 GitHub 帳號 nick-ma 發布v1.0.1更新於 Oct 24, 2026
MCP server for UK Parliament Oral Questions and Motions API
概覽
唯讀的 MCP 伺服器,讓助理透過英國議會官方 API 查詢早期動議、口頭質詢與口頭質詢時間。
- 可以做什麼
- 依 ID 取得單一早期動議,包含標題、狀態與提交日期。列出早期動議,可依狀態、議員、提交或狀態日期、搜尋詞與排序方式篩選,並支援分頁。列出口頭質詢,可依答覆日期範圍、質詢類型、狀態、提問議員、UIN 與答覆機關篩選。依答覆或截止日期範圍及答覆機關查詢口頭質詢時間。結果以 JSON 回傳,附帶上游路徑與取得時間。
- 適用情境
- 適合公民科技、研究或報導情境:助理需要查閱或摘要目前英國議會的動議與質詢時程,或將其接入儀表板與自動化流程。
- 執行需求
- 透過 stdio 在本機執行,通常使用 npx,需要安裝 Node.js。需要能連線至英國議會 Oral Questions and Motions API 的網路;可用 UPSTREAM_BASE_URL 覆寫基礎位址,用 REQUEST_TIMEOUT_MS 設定逾時。未宣告需要帳號或 API 金鑰。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Uk Parliament Oralquestionsandmotions,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
[MCP Compatible] [AI Agent Ready]
UK Parliament Oral Questions and Motions MCP Server
Summary
This MCP server provides structured access to UK Parliament Oral Questions and Motions data using the Model Context Protocol. It enables AI agents to retrieve early day motions, oral questions, and question times through API-backed tools and data access. Developers can integrate the MCP server via stdio transport to query motions, question lists, and answering schedules. The server exposes tools that map directly to the Oral Questions and Motions API for reliable automation and AI agents workflows.
Features
- Fetch a single Early Day Motion by ID.
- List Early Day Motions with status, date, and member filters.
- Retrieve oral questions with question type and status filters.
- Query oral question times with answering body and date ranges.
Available Tools
get_early_day_motion_by_id
Returns a single Early Day Motion by ID.
Parameters:
- id (number, path)
list_early_day_motions
Returns a list of Early Day Motions.
Parameters:
- parameters.edmIds (array:number, query)
- parameters.uINWithAmendmentSuffix (string, query)
- parameters.searchTerm (string, query)
- parameters.currentStatusDateStart (string, query)
- parameters.currentStatusDateEnd (string, query)
- parameters.isPrayer (boolean, query)
- parameters.memberId (number, query)
- parameters.includeSponsoredByMember (boolean, query)
- parameters.tabledStartDate (string, query)
- parameters.tabledEndDate (string, query)
- parameters.statuses (array:string, query) – Published | Withdrawn
- parameters.orderBy (string, query) – DateTabledAsc | DateTabledDesc | TitleAsc | TitleDesc | SignatureCountAsc | SignatureCountDesc
- parameters.skip (number, query)
- parameters.take (number, query)
list_oral_questions
Returns a list of oral questions.
Parameters:
- parameters.answeringDateStart (string, query)
- parameters.answeringDateEnd (string, query)
- parameters.questionType (string, query) – Substantive | Topical
- parameters.oralQuestionTimeId (number, query)
- parameters.statuses (array:string, query)
- parameters.askingMemberIds (array:number, query)
- parameters.uINs (array:number, query)
- parameters.answeringBodyIds (array:number, query)
- parameters.skip (number, query)
- parameters.take (number, query)
list_oral_question_times
Returns a list of oral question times.
Parameters:
- parameters.answeringDateStart (string, query)
- parameters.answeringDateEnd (string, query)
- parameters.deadlineDateStart (string, query)
- parameters.deadlineDateEnd (string, query)
- parameters.oralQuestionTimeId (number, query)
- parameters.answeringBodyIds (array:number, query)
- parameters.skip (number, query)
- parameters.take (number, query)
Example Output
Quick Start
Run the MCP server using npx:
MCP Configuration
Example mcpServers configuration for stdio transport:
Example Usage
- Fetch an Early Day Motion by ID.
- List oral questions for a given answering date range.
- Query oral question times for specific answering bodies.
- Filter motions by status, member, and tabled dates.
Use Cases
- AI agents summarizing current oral questions and motions.
- Monitoring dashboards for question schedules and EDMS.
- Civic tech tools tracking motions and topical questions.
- Automation workflows exporting questions for reporting.
Data Source
UK Parliament Oral Questions and Motions API https://oralquestionsandmotions-api.parliament.uk
Installation
Run directly using npx:
Or install via pnpm from the repository root:
Run (HTTP proxy server)
Build first, then start:
Set a custom HTTP port with the UKP_HTTP_PORT environment variable (default: 8787):
Published package command:
If your shell cannot resolve the bin ("command not found"), run the HTTP entrypoint directly:
Health check:
Proxy pattern:
Example:
License
MIT License
MCP Metadata
Protocol: Model Context Protocol Transport: stdio Tools: get_early_day_motion_by_id, list_early_day_motions, list_oral_questions, list_oral_question_times
來源:servers/uk-parliament-oralquestionsandmotions/README.md,提交 38e74c9
工具
0版本歷史
1- v1.0.1最新Sep 16, 2026
評分
已滿足適用檢查項的 40%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
請在儲存庫或註冊中心條目中宣告授權條款。