
i-dot-ai/parliament-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Hansard および Member API を含む parliamentary API の MCP 実装
概要
https://developer.parliament.uk/,のサブセットに大幅マップするMCPサーバーと、追加のセマンティック検索機能を提供します。 このプロジェクトは、: - : FastMCP ベースのサーバー - : https://developer.parliament.uk/] から解析データをクエリして読み込むための小さな Python パッケージを Qdrant - : Hansard と議会の質問データに対するセマンティックな検索のためのベクトルデータベース。 - : mcp-remote プロキシ経由で Claude デスクトップに接続 MCP Server は、13 個のツールを解析し、解析研究を支援します。 1. - 構成員または特定のメンバーのための選挙結果を取得する 2. - さまざまな条件でコモンズまたは主のメンバーを検索する(位置/郵便番号検索を含む) 3. - 伝記、連絡先、興味、投票記録、および委員会会員を含む包括的なメンバー情報を入手 4. - 特定の日付で家のためのパーティーの状態を取得します。 5. - すべての政府または反対の投稿と現在の所有者の排気リストを取得します。 6.
概要(AI 翻訳)
https://developer.parliament.uk/,のサブセットに大幅マップするMCPサーバーと、追加のセマンティック検索機能を提供します。
アーキテクチャ
このプロジェクトは: -MCP Server:FastMCP ベースのサーバー -Pythonパッケージ: [https://developer.parliament.uk/]からQdrantへの解析データを取り込むための小さなPythonパッケージ
- Qdrant:ハザードと議会の質問データに関する調査のためのベクトルデータベース。
-Claudeインテグレーション: [
mcp-remote]プロキシを介してClaudeデスクトップに接続
##特徴
利用できる### MCP用具
MCP Server は、13 個のツールを解析し、解析研究を支援します。
#####メンバー&選挙
1.[get_election_results - 構成または特定のメンバーの選挙結果を取得する
2.[search_members - さまざまな基準で共通または主のメンバーを検索(位置/郵便番号検索を含む)
3.[get_detailed_member_information - 伝記、連絡先、興味、投票記録、および委員会メンバーを含む包括的なメンバー情報を入手
####議会構造
4.[get_state_of_the_parties - 特定の日付に家のためのパーティーの状態を取得する
5.
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Parliament MCP Server
An MCP server that roughly maps onto a subset of https://developer.parliament.uk/, as well as offering additional semantic search capabilities.
Architecture
This project provides:
- MCP Server: FastMCP-based server
- Python package: A small python package for querying and loading parliamentary data from https://developer.parliament.uk/ into Qdrant
- Qdrant: Vector database for semantic search over Hansard and Parliamentary Questions data.
- Claude Integration: Connect to Claude Desktop via
mcp-remoteproxy
Features
MCP Tools Available
The MCP Server exposes 13 tools to assist in parliamentary research:
Members & Elections
get_election_results- Get election results for constituencies or specific memberssearch_members- Search for members of the Commons or Lords by various criteria (includes location/postcode search)get_detailed_member_information- Get comprehensive member information including biography, contact, interests, voting record, and committee membership
Parliamentary Structure
get_state_of_the_parties- Get state of the parties for a house on a specific datelist_ministerial_roles- Get exhaustive list of all government or opposition posts and their current holdersget_departments- Get reference data for government departments
Committees
list_all_committees- List all parliamentary committees by status and houseget_committee_details- Get comprehensive committee information including members, publications, evidence, and upcoming eventsget_committee_document- Retrieve committee documents including oral evidence, written evidence, and publications
Parliamentary Business
search_parliamentary_questions- Search Parliamentary Written Questions (PQs) by topic, date, party, or membersearch_debate_titles- Search through debate titles to find relevant debatesfind_relevant_contributors- Find members who have contributed most on specific topicssearch_contributions- Search Hansard parliamentary records for actual spoken contributions during debates
Quick Start (local qdrant)
You will need
- Docker and Docker Compose
- Node.js (for mcp-remote)
- Claude Desktop (or another MCP client)
- Azure OpenAI account with API access
Create a .env file by copying the .env.example in the project root and replace the necessary variables.
After configuring your .env file, run the following command for a one shot setup of the MCP server and the Qdrant database with some example data from June 2025.
make dev_setup_from_scratch
Once this is run, you can connect to the MCP server using this config
# Add this to your Claude Desktop config, or another MCP client:
# On macOS Claude Desktop config is located at `~/Library/Application\ Support/Claude/claude_desktop_config.json`
{
"mcpServers": {
"parliament-mcp": {
インストール
npx mcp-remote http://localhost:8080/mcp/ --allow-http --debug設定
# Add this to your Claude Desktop config, or another MCP client:
# On macOS Claude Desktop config is located at `~/Library/Application\ Support/Claude/claude_desktop_config.json`
{
"mcpServers": {
"parliament-mcp": {
"command": "npx",
"args": ["mcp-remote", "http://localhost:8080/mcp/", "--allow-http", "--debug"]
}
}
}