Uk Parliament Now

io.github.nick-ma由 GitHub 帳號 nick-ma 發布v1.0.1更新於 Oct 24, 2026

MCP server for UK Parliament NOW Annunciator Content API

概覽

AI 產生的概覽

本機 MCP 伺服器,讓助理讀取英國議會 NOW Annunciator 中下議院與上議院的目前及歷史公告訊息。

可以做什麼
取得下議院或上議院主頻道目前的公告訊息,公告類型限定為 CommonsMain 或 LordsMain。依指定的 ISO 日期時間取得某個公告頻道之後的最新訊息。以統一封裝回傳上游資料,包含狀態、資料、上游路徑與取得時間。
適用情境
適合公民科技、監控儀表板或自動化流程,需要英國議會 NOW Annunciator 的即時或近期會議狀態,也適合向使用者回報下議院或上議院議事訊息的助理。
執行需求
以本機 stdio 程序執行,通常透過 npx 啟動,需要 Node.js 以及連線英國議會 NOW API 的網路存取。README 範例設定設定了 UPSTREAM_BASE_URL 與 REQUEST_TIMEOUT_MS;未宣告任何身分驗證。
安裝前請注意
僅唯讀取得公開的議會資料,未顯示憑證、付費或寫入操作。README 另記載 HTTP 代理模式,會將請求轉送到上游路徑並可設定連接埠,啟用後會擴大本機網路暴露範圍。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Uk Parliament Now,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[MCP Compatible] [AI Agent Ready]

UK Parliament NOW Annunciator MCP Server

Summary

This MCP server provides structured access to UK Parliament NOW Annunciator data using the Model Context Protocol. It enables AI agents to retrieve current and historical annunciator messages through API-backed tools and data access. Developers can integrate the MCP server via stdio transport to query message feeds for Commons and Lords. The server exposes tools that map directly to the NOW Annunciator API for automation and AI agents workflows.

Features

  • Retrieve the current annunciator message for Commons or Lords.
  • Fetch the latest message after a specific date and time.
  • Enforce annunciator enum constraints for reliable queries.
  • Preserve upstream payloads in a standardized envelope for downstream tools.

Available Tools

get_current_message_by_annunciator

Return the current message by annunciator type.

Parameters:

  • annunciator (string, path) – CommonsMain | LordsMain.

get_latest_message_by_annunciator_and_date

Return the most recent message by annunciator after date time specified.

Parameters:

  • annunciator (string, path) – CommonsMain | LordsMain.
  • date (string, path) – ISO date-time string.

Example Output

json
{  "status": 200,  "data": {    "annunciator": "CommonsMain",    "message": "The House is sitting",    "timestamp": "2026-03-11T09:00:00Z"  },  "upstream_path": "/api/Message/message/CommonsMain/current",  "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-now mcp-server-uk-parliament-now

MCP Configuration

Example mcpServers configuration for stdio transport:

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

Example Usage

  • Retrieve the current Commons annunciator message.
  • Fetch the latest Lords message after a given timestamp.
  • Monitor annunciator updates for session status changes.

Use Cases

  • AI agents reporting live parliamentary status updates.
  • Monitoring dashboards showing Commons/Lords session messages.
  • Civic tech tools tracking sittings and announcements.
  • Automation workflows that trigger on annunciator updates.

Data Source

UK Parliament NOW Annunciator Content API https://now-api.parliament.uk

Installation

Run directly using npx:

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

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-now run buildpnpm --filter @darkhorseone/mcp-server-uk-parliament-now run start:http

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

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

Published package command:

bash
npx -y -p @darkhorseone/mcp-server-uk-parliament-now -- mcp-server-uk-parliament-now-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-now -- node ./dist/http.js

Health check:

bash
curl http://127.0.0.1:3000/healthz

Proxy pattern:

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

Example:

bash
curl "http://127.0.0.1:3000/proxy/api/Message/message/CommonsMain/current"

License

MIT License

MCP Metadata

Protocol: Model Context Protocol Transport: stdio Tools: get_current_message_by_annunciator, get_latest_message_by_annunciator_and_date

來源:servers/uk-parliament-now/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 分

    請在儲存庫或註冊中心條目中宣告授權條款。