Uk Parliament Oralquestionsandmotions

io.github.nick-maPublished by GitHub account nick-mav1.0.1Updated Oct 24, 2026

MCP server for UK Parliament Oral Questions and Motions API

VerifiedSTDIODesktop onlyWeb Search & ScrapingData & Analytics

Overview

AI-generated overview

Read-only MCP server that lets an assistant query UK Parliament Early Day Motions, oral questions and oral question times through the official API.

What you can do
Fetch a single Early Day Motion by its ID, including title, status and tabled date. List Early Day Motions filtered by status, member, tabled or status dates, search term and sort order, with paging. List oral questions filtered by answering date range, question type, status, asking member, UIN and answering body. Query oral question times by answering or deadline date range and answering body. Results come back as JSON with the upstream path and retrieval timestamp.
When to use it
Useful for civic-tech, research or reporting work where an assistant needs to look up or summarize current UK parliamentary motions and question schedules, or feed them into dashboards and automation.
Requirements
Runs locally over stdio, typically via npx with Node.js installed. Network access to the UK Parliament Oral Questions and Motions API is required; the base URL can be overridden with UPSTREAM_BASE_URL and the timeout with REQUEST_TIMEOUT_MS. No account or API key is declared.
Before you install
All listed tools are read-only lookups; no writes or deletions are described. Queries, including member IDs and search terms, are sent to the public UK Parliament API. An optional HTTP proxy mode exposes a local port and a generic proxy path, so bind it carefully if enabled.

Installation

In SourceWeft

  1. Open Uk Parliament Oralquestionsandmotions in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

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

Source: servers/uk-parliament-oralquestionsandmotions/README.md at commit 38e74c9

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v1.0.1LatestSep 16, 2026

Score

40% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.