
Uk Parliament Questions Statements
io.github.nick-maPublished by GitHub account nick-mav1.0.1Updated Oct 24, 2026
MCP server for UK Parliament Questions and Statements API
Overview
MCP server that gives an assistant read-only access to UK Parliament written questions, written statements and daily reports through the Questions and Statesons
- What you can do
- List daily reports filtered by date range and house (Bicameral, Commons, Lords).
- When to use it
- Useful for research, civic-tech or journalism work that tracks parliamentary written questions and statements over time, or for summarizing daily reports by house and date.
- Requirements
- Runs locally over stdio, typically via npx with Node.js. It calls the public UK Parliament Questions and Statements API, so network access is needed. No authentication, API keys or headers are declared.
Installation
In SourceWeft
- Open Uk Parliament Questions Statements in the dashboard and add it to a workspace.
- 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 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
Source: servers/uk-parliament-questions-statements/README.md at commit 38e74c9
Tools
0Version history
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.