UK Parliament MCP server (.NET lab)

UK Parliament MCP server (.NET lab)

opendata-mcp-lab•bychrisbrooksbank-parliament

A .NET MCP stdio server that wraps official UK Parliament APIs as tools so AI assistants can answer questions about members, bills, votes, committees and Hansard with cited sources.

License: Not specified•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Fetches answers from official parliament.uk APIs rather than relying on model memory alone.
  • •Lists the API URLs used so responses can cite their sources.
  • •Covers a broad range of parliamentary data areas including members, bills, votes, committees, Hansard, questions, calendar, statutory instruments, treaties and interests.
  • •Runs as a stdio MCP server usable from MCP hosts such as VS Code Copilot Chat and Claude Desktop.

BEST FOR

  • •Ask about members, bills, votes, committees, Hansard and other parliamentary topics.
  • •Research live activity and current business in the Commons and Lords.
  • •Look up member interests, biography, voting records and contributions.

ABOUT OPENDATA-MCP-LAB

UK Parliament MCP server (.NET lab) is cataloged as an MCP server attributed to chrisbrooksbank-parliament. A .NET MCP stdio server that wraps official UK Parliament APIs as tools so AI assistants can answer questions about members, bills, votes, committees and Hansard with cited sources. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for UK Parliament MCP server (.NET lab) are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What data sources does this server use?

It uses official Parliament HTTP APIs, with answers fetched from parliament.uk APIs rather than model memory.

Is this server affiliated with UK Parliament?

No, it is described as an unofficial, independent project not created, endorsed or supported by UK Parliament.

Is this repository still actively developed?

No, active development has moved to a maintained successor project; this repository is the original .NET MCP lab with archived or low activity.

上游原版 README

在 GitHub 查看同一版本原文

README.md · dfdd57de94ee · 采集于 2026-11-13 10:35:29 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

UK Parliament Open Data MCP .NET 9

🇬🇧 UK Parliament AI Assistant

Turn any MCP-capable AI into a live parliamentary research desk.
Ask about MPs, Lords, bills, votes, committees, Hansard, and more — answers come from official Parliament APIs, with sources cited every time.

Quick start · What you can ask · Setup · Example prompts · Successor project


[!IMPORTANT] Active development has moved. This repository is the original .NET MCP lab.
The maintained project — with a full CLI, richer tooling, and ongoing fixes — is:
👉 ChrisBrooksbank/uk-parliament-data-mcp

CapabilityThis repo (legacy lab)Successor project
MCP server for AI assistants✅ .NET✅ Python (actively maintained)
Command-line interface (CLI)❌ Not here✅ Yes — CLI is only on the new repo
AIS / zero-install optionsLimited✅ Expanded
Ongoing enhancements & fixesArchived / low activity✅ Active

If you want the best experience today (especially terminal workflows), start on the successor repository.


🎬 See it in action

MCP in an AI assistant

Note: Claude Code and MCP servers are not authorised for use on parliamentary PCs. This demo was recorded on a non-parliamentary PC.

Ask natural-language questions; the assistant calls Parliament APIs through MCP and returns cited answers.

MCP demo: an AI assistant answering a parliamentary question using live UK Parliament data via MCP

MCP session — live tools, live data, source URLs included.

CLI on the successor project

Prefer the terminal? The CLI is only available on the new repo — not in this lab.

CLI demo from the successor project: terminal commands querying UK Parliament data

CLI demo from uk-parliament-data-mcp — install and run it there.


✨ Why this exists

Parliamentary data is public — but scattered across many APIs. This project wraps those endpoints as MCP tools so assistants like GitHub Copilot, Claude Desktop, and other MCP clients can:

BenefitWhat it means
🎯 Grounded answersResponses are fetched from official parliament.uk APIs, not model memory alone
🔗 Source transparencyEvery useful answer can list the API URLs used
⚡ Broad coverageMembers, bills, votes, committees, Hansard, questions, calendar, SIs, treaties, interests…
🧩 Works where MCP worksVS Code Copilot Chat (Agent mode), Claude Desktop, and other MCP hosts

Disclaimer: Unofficial, independent project. Not created, endorsed, or supported by UK Parliament. Data comes from public Parliament developer APIs.


🚀 Quick start

1. Prerequisites

2. Clone

git clone https://github.com/chrisbrooksbank-parliament/opendata-mcp-lab.git
cd opendata-mcp-lab

3. Point your MCP host at the server

VS Code — Command Palette → MCP: Add Server → Command (stdio):

dotnet run --project C:\code\opendata-mcp-lab\OpenData.Mcp.Server\OpenData.Mcp.Server.csproj

(Adjust the path to your clone.)

Claude Desktop — edit claude_desktop_config.json (UTF-8), then fully restart Claude:

{
  "mcpServers": {
    "opendata-server": {
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "C:\\code\\opendata-mcp-lab\\OpenData.Mcp.Server\\OpenData.Mcp.Server.csproj"
      ]
    }
  }
}

4. Start a session the right way

For best results, always begin with the session prompt (or say "Hello Parliament").

📋 Required system prompt (click to expand)
You are a helpful assistant that answers questions using only data from UK Parliament MCP servers.

When the session begins, introduce yourself with a brief message such as:

"Hello! I’m a parliamentary data assistant. I can help answer questions using official data from the UK Parliament MCP APIs. Just ask me something, and I’ll fetch what I can — and I’ll always show you which sources I used."

When responding to user queries, you must:

Only retrieve and use data from the MCP API endpoints this server provides.

Avoid using any external sources or inferred knowledge.

After every response, append a list of all MCP API URLs used to generate the answer.

If no relevant data is available via the MCP API, state that clearly and do not attempt to fabricate a response.

Convert raw data into human-readable summaries while preserving accuracy, but always list the raw URLs used.

To disconnect while keeping chat context: "Goodbye Parliament". Or simply start a new chat.

Try:

What is happening now in the House of Commons?

🗺 What you can ask

AreaExample questions
🔴 Live activityWhat's happening in the Commons right now? What's on in the Lords?
👥 MembersWho is the MP for …? Interests, biography, voting record, contributions
📜 Bills & legislationDetails, stages, amendments, publications, news for a bill
🗳 Votes & divisionsCommons/Lords divisions by topic, member, or division ID
🏛 CommitteesMembership, meetings, written/oral evidence, publications
📖 Hansard & procedureDebates, Erskine May, oral questions, calendar / non-sitting days
📍 ConstituenciesSearch seats, election results
📄 Official docsStatutory instruments, treaties, Acts
💎 TransparencyRegisters of interests and categories

🛠 Setup

VS Code + Copilot Chat

  1. Ctrl+Shift+P → MCP: Add Server → Command: Stdio
  2. Enter the dotnet run --project … command above
  3. MCP: List Servers → start the server
  4. Open Copilot Chat → Agent mode → enable this server’s tools
  5. Paste the system prompt (or Hello Parliament), then ask a question
  6. Approve tool/permission prompts when asked

Claude Desktop

  1. Settings → Developer → Edit Config
  2. Add the mcpServers block shown in Quick start
  3. Save as UTF-8, quit Claude completely, relaunch
  4. Confirm the server is running under Developer, then test with the system prompt

Optional: repo .mcp.json

This clone includes a sample .mcp.json pointing at a built server binary. Prefer dotnet run --project … unless you have already built OpenData.Mcp.Server.


💡 Prompting tips

TipWhy it helps
✅ Start with the system prompt / Hello ParliamentKeeps answers on MCP data and forces source URLs
🆕 New chat (+) when stuckClears loops and stale context
🔗 “Show me the API URL you just used.”Re-surfaces citations for verification
🧠 Cross-house questionse.g. “Has Chelmsford been mentioned in Commons or Lords?”
🧾 “Show me the JSON from the last MCP call.”Debug raw payloads

Example citation style you should expect:

https://members-api.parliament.uk/api/Members/Search?Name=…


💬 Example prompts

Live activity

  • What is happening now in both Houses?
  • What's currently happening in the House of Commons / Lords?

Members

  • Show me the interests of Sir Keir Starmer
  • Who is Boris Johnson? / Who is member 1471?
  • Biography, contacts, interests, contributions, voting record for a member ID
  • Portrait / thumbnail for member 172

Bills

  • Recent bills about fishing / environment
  • Details, stages, amendments, publications, news for bill 425
  • Bill types, stages catalogue, RSS feeds

Votes

  • Search Commons divisions for “refugee” / “climate” / “brexit”
  • Commons or Lords division by ID; results grouped by party

Committees

  • Committees on women's issues / healthcare
  • Meetings, members, written & oral evidence for a committee ID

Procedure, Hansard, calendar

  • Search Erskine May for the Mace
  • Oral question times; Hansard on a topic and date range
  • Parties, departments, answering bodies
  • Commons calendar; non-sitting days

Places, docs, transparency

  • Constituencies containing “london”; election results for a constituency ID
  • SIs about harbours; Acts mentioning roads; treaties involving Spain
  • Interest categories and published registers

Power-user

  • Show the full data from this pasted API result: {…}
  • Show JSON / API URL from the last MCP call
  • Bills sponsored by member 172 from the Environment department
  • Committee meetings on climate change between two dates

🏗 What's in this repository

opendata-mcp-lab/
├── OpenData.Mcp.Server/     # .NET MCP server (stdio tools)
│   ├── Tools/               # Members, Bills, Votes, Hansard, …
│   └── Context/             # API shape notes for tools
├── context/                 # Shared API context for LLMs
├── mcp-demo.gif             # MCP assistant demo
├── cli-demo.gif             # CLI demo (successor project only)
└── README.md

Stack: .NET 9 · MCP stdio transport · official Parliament HTTP APIs

Not included here: the full CLI, PyPI packaging, and newer host integrations — those ship only in
uk-parliament-data-mcp.


📌 Active development moved

This repoHistorical .NET lab / reference MCP server
Go here for new workgithub.com/ChrisBrooksbank/uk-parliament-data-mcp
CLIOnly on the successor repo
PackagePyPI: uk-parliament-mcp (successor)

Issues and PRs against this lab may still be useful for .NET-specific notes, but feature momentum is on the new project.


🤝 Contributing & feedback

Ideas, corrections, and API coverage suggestions are welcome. For the actively maintained line (including CLI), please open issues or PRs on the successor repository.


Built for curiosity, scrutiny, and better parliamentary questions — powered by public open data.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for UK Parliament MCP server (.NET lab) from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/opendata-mcp-lab)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research