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

概览

AI 生成的概览

只读的 MCP 服务器,让助手通过英国议会官方 API 查询早期动议、口头质询和口头质询时间。

可以做什么
按 ID 获取单条早期动议,含标题、状态和提交日期。列出早期动议,可按状态、议员、提交或状态日期、搜索词和排序方式筛选,并支持分页。列出口头质询,可按答复日期范围、质询类型、状态、提问议员、UIN 和答复机构筛选。按答复或截止日期范围及答复机构查询口头质询时间。结果以 JSON 返回,附带上游路径和获取时间。
适用场景
适合公民科技、研究或报道场景:助手需要查阅或总结当前英国议会的动议和质询日程,或将其接入仪表盘和自动化流程。
运行要求
通过 stdio 在本机运行,通常使用 npx,需要安装 Node.js。需要能访问英国议会 Oral Questions and Motions API 的网络;可用 UPSTREAM_BASE_URL 覆盖基础地址,用 REQUEST_TIMEOUT_MS 设置超时。未声明需要账号或 API 密钥。
安装前请注意
所列工具均为只读查询,未描述写入或删除操作。查询内容(包括议员 ID 和搜索词)会发送到英国议会公开 API。可选的 HTTP 代理模式会开放本地端口和通用代理路径,如启用需谨慎限制访问。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Uk Parliament Oralquestionsandmotions,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

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

json
{  "status": 200,  "data": {    "items": [      {        "edmId": 2044,        "title": "Example motion",        "status": "Published",        "dateTabled": "2026-03-10"      }    ],    "totalResults": 1  },  "upstream_path": "/EarlyDayMotions/list",  "retrieved_at": "2026-03-11T10:00:00.000Z"}

Quick Start

Run the MCP server using npx:

bash
npx -y -p @darkhorseone/mcp-server-uk-parliament-oralquestionsandmotions mcp-server-uk-parliament-oralquestionsandmotions

MCP Configuration

Example mcpServers configuration for stdio transport:

json
{  "mcpServers": {    "uk-parliament-oralquestionsandmotions": {      "command": "npx",      "args": ["-y", "-p", "@darkhorseone/mcp-server-uk-parliament-oralquestionsandmotions", "mcp-server-uk-parliament-oralquestionsandmotions"],      "env": {        "UPSTREAM_BASE_URL": "https://oralquestionsandmotions-api.parliament.uk",        "REQUEST_TIMEOUT_MS": "10000"      }    }  }}

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:

bash
npx -y -p @darkhorseone/mcp-server-uk-parliament-oralquestionsandmotions mcp-server-uk-parliament-oralquestionsandmotions

Or install via pnpm from the repository root:

bash
pnpm install

Run (HTTP proxy server)

Build first, then start:

bash
pnpm --filter @darkhorseone/mcp-server-uk-parliament-oralquestionsandmotions run buildpnpm --filter @darkhorseone/mcp-server-uk-parliament-oralquestionsandmotions run start:http

Set a custom HTTP port with the UKP_HTTP_PORT environment variable (default: 8787):

bash
UKP_HTTP_PORT=8787 pnpm --filter @darkhorseone/mcp-server-uk-parliament-oralquestionsandmotions run start:http

Published package command:

bash
npx -y -p @darkhorseone/mcp-server-uk-parliament-oralquestionsandmotions -- mcp-server-uk-parliament-oralquestionsandmotions-http

If your shell cannot resolve the bin ("command not found"), run the HTTP entrypoint directly:

bash
npx -y -p @darkhorseone/mcp-server-uk-parliament-oralquestionsandmotions -- node ./dist/http.js

Health check:

bash
curl http://127.0.0.1:8787/healthz

Proxy pattern:

text
GET /proxy/<upstream-path>?<query>

Example:

bash
curl "http://127.0.0.1:8787/proxy/EarlyDayMotion/2044"

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
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.1最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。