
Uk Parliament Questions Statements
io.github.nick-ma由 GitHub 帳號 nick-ma 發布v1.0.1更新於 Oct 24, 2026
MCP server for UK Parliament Questions and Statements API
概覽
此 MCP 伺服器讓助理以唯讀方式存取英國議會的書面質詢、書面聲明與每日報告,資料來自議會質詢與聲明 API。
- 可以做什麼
- 依日期範圍與議院(兩院、下議院、上議院)列出每日報告。
- 適用情境
- 適合需要長期追蹤議會書面質詢與聲明的研究、公民科技或新聞工作,也適合依議院與日期彙整每日報告。
- 執行需求
- 透過 stdio 在本機執行,通常以 npx 啟動,需要 Node.js。它會呼叫英國議會公開的質詢與聲明 API,因此需要網路存取。未宣告任何身分驗證、API 金鑰或標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Uk Parliament Questions Statements,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
[MCP Compatible] [AI Agent Ready]
UK Parliament Questions and Statements MCP Server
Summary
This MCP server provides structured access to UK Parliament Questions and Statements data using the Model Context Protocol. It enables AI agents to retrieve daily reports, written questions, and written statements through API-backed tools and data access. Developers can integrate the MCP server via stdio transport to search questions, filter by session status, and fetch statement details. The server exposes tools that map directly to the Questions and Statements API for reliable automation and AI agents workflows.
Features
- List daily reports with date and house filters.
- Search written questions with answering, member, and session filters.
- Retrieve written questions and statements by id or date/uin.
- Preserve upstream payloads in a standardized envelope for downstream tools.
Available Tools
list_daily_reports
Returns a list of daily reports.
Parameters:
- dateFrom (string, query)
- dateTo (string, query)
- house (string, query) – Bicameral | Commons | Lords
- skip (number, query)
- take (number, query)
list_written_questions
Returns a list of written questions.
Parameters:
- askingMemberId (number, query)
- answeringMemberId (number, query)
- tabledWhenFrom (string, query)
- tabledWhenTo (string, query)
- dateForAnswerWhenFrom (string, query)
- dateForAnswerWhenTo (string, query)
- answered (string, query) – Any | Answered | Unanswered
- answeredWhenFrom (string, query)
- answeredWhenTo (string, query)
- questionStatus (string, query) – NotAnswered | AnsweredOnly | AllQuestions
- includeWithdrawn (boolean, query)
- expandMember (boolean, query)
- correctedWhenFrom (string, query)
- correctedWhenTo (string, query)
- sessionStatus (string, query) – Current | Any
- searchTerm (string, query)
- uIN (string, query)
- answeringBodies (array:number, query)
- members (array:number, query)
- house (string, query) – Bicameral | Commons | Lords
- skip (number, query)
- take (number, query)
get_written_question_by_id
Returns a written question.
Parameters:
- id (number, path)
- expandMember (boolean, query)
- sessionStatus (string, query) – Current | Any
get_written_question_by_date_and_uin
Returns a written question.
Parameters:
- date (string, path)
- uin (string, path)
- expandMember (boolean, query)
- sessionStatus (string, query) – Current | Any
list_written_statements
Returns a list of written statements.
Parameters:
- madeWhenFrom (string, query)
- madeWhenTo (string, query)
- sessionStatus (string, query) – Current | Any
- searchTerm (string, query)
- uIN (string, query)
- answeringBodies (array:number, query)
- members (array:number, query)
- house (string, query) – Bicameral | Commons | Lords
- skip (number, query)
- take (number, query)
- expandMember (boolean, query)
get_written_statement_by_id
Returns a written statement.
Parameters:
- id (number, path)
- expandMember (boolean, query)
- sessionStatus (string, query) – Current | Any
get_written_statement_by_date_and_uin
Returns a written statement.
Parameters:
- date (string, path)
- uin (string, path)
- expandMember (boolean, query)
- sessionStatus (string, query) – Current | Any
Example Output
Quick Start
Run the MCP server using npx:
MCP Configuration
Example mcpServers configuration for stdio transport:
Example Usage
- List daily reports for the Commons over a date range.
- Search written questions by member and session status.
- Retrieve a written statement by id or date/uin.
- Filter questions by answered status and house.
Use Cases
- AI agents summarizing written questions and statements.
- Research tools tracking parliamentary questions over time.
- Civic tech platforms monitoring statements by department.
- Automation workflows exporting daily report data.
Data Source
UK Parliament Questions and Statements API https://questions-statements-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: list_daily_reports, list_written_questions, get_written_question_by_id, get_written_question_by_date_and_uin, list_written_statements, get_written_statement_by_id, get_written_statement_by_date_and_uin
來源:servers/uk-parliament-questions-statements/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 分
請在儲存庫或註冊中心條目中宣告授權條款。