
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 分
请在仓库或注册中心条目中声明许可证。