Parliament MCP

Parliament MCP

MCP server for querying UK parliamentary data.

17
Stars
5
Forks
8
Releases

Overview

Parliament MCP Server is an MCP server that maps a subset of Parliament UK APIs and adds semantic search capabilities. It is built around a FastMCP-based server and includes a Python package for querying and loading parliamentary data from Parliament UK APIs into Qdrant, a vector database used for semantic search over Hansard and Parliamentary Questions data. The stack also supports Claude Desktop integration via the mcp-remote proxy, enabling natural-language queries through MCP clients. The server exposes 13 tools organized into Members & Elections, Parliamentary Structure, Committees, and Parliamentary Business to support parliamentary research tasks. Data flows from official parliamentary APIs, is transformed into structured models, embedded with Azure OpenAI, and indexed into Qdrant for fast semantic search. A daily ingestion path keeps Hansard and parliamentary questions up to date. Quick Start and development guidance rely on Docker Compose, environment configuration, and Makefile targets to initialize Qdrant, load data, and run the MCP server. The project emphasizes ease of integration with Claude Desktop or other MCP clients and provides a unified CLI for data management and server operations.

Details

Owner
i-dot-ai
Language
Python
License
MIT License
Updated
2025-12-07

Features

FastMCP-based MCP Server

A FastAPI-powered MCP server delivering responsive endpoints and tooling for parliamentary research.

13 MCP Tools for Parliamentary Research

Comprehensive set of tools spanning Members & Elections, Parliamentary Structure, Committees, and Parliamentary Business.

Python data querying/loading package

A Python package to query Parliament UK APIs and load data into Qdrant for semantic search.

Qdrant vector search integration

Indexes embeddings for Hansard and Parliamentary Questions to enable semantic search over full text.

Claude Desktop integration via mcp-remote

Connect Claude Desktop and other MCP clients through a dedicated mcp-remote proxy.

Data loading pipeline from official APIs

Fetch, transform, embed, and index parliamentary data from official APIs into Qdrant.

Daily data ingestion

Automated daily ingestion to keep Hansard and questions data up to date.

Developer-friendly CLI and Makefile

Unified CLI for init-qdrant, serve, load-data, delete-qdrant and other server ops.

Audience

Parliamentary researchersQuery UK parliamentary data (Hansard and questions) using natural language and semantic search.
MCP developersSet up the MCP server, load data into Qdrant, and connect Claude via mcp-remote.
Data scientistsExperiment with semantic search on Hansard and Parliamentary Questions data for insights.

Tags

MCP Serverparliamentary dataHansardParliamentary QuestionsQdrantSemantic searchClaude integrationAzure OpenAIdata ingestionUK ParliamentMCP toolsParliament APIsCLI