ID

i-dot-ai/parliament-mcp

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

31 stars 18 forks 품질 83 트렌드 14MIT

Hansard 및 Member API를 포함한 의회 API의 MCP 구현

개요

MCP 서버는 https://developer.parliament.uk/,]의 하위 세트에 대한 맵을 제공하며 추가 검색 기능을 제공합니다. 이 프로젝트는 다음과 같습니다. - : FastMCP 기반 서버 - : [T1]]에서 쿼리 및 로딩 패러다임 데이터에 대한 작은 python 패키지는 Qdrant - : Hansard 및 Parliamentary 질문 데이터에 대한 세마틱 검색을위한 벡터 데이터베이스. - : mcp-remote 프록시를 통해 Claude Desktop에 연결 MCP Server는 의회 연구에 도움이되는 13 가지 도구를 제공합니다. 1. - 분쟁 또는 특정 회원에 대한 선거 결과를 얻으십시오. 2. - 다양한 기준에 의해 Commons 또는 Lords의 구성원에 대한 검색 (위치 / 우편 번호 검색 포함) 3. - 전기, 접촉, 관심사, 투표 기록 및 위원회 회원 정보를 얻으십시요 4. - 특정 날짜에 집을위한 당사자의 상태를 얻으십시오. 5. - 모든 정부 또는 야당 게시물과 현재의 홀더의 철저한 목록을 얻으십시오. 6.

개요(AI 번역)

MCP 서버는 https://developer.parliament.uk/,]의 하위 세트에 대한 맵을 제공하며 추가 검색 기능을 제공합니다.

건축

이 프로젝트는:

  • MCP Server: FastMCP 기반 서버
  • **Python 패키지 ** : https://developer.parliament.uk/에서 쿼리 및 로딩 패러다임 데이터를 위한 작은 python 패키지
  • Qdrant: Hansard 및 Parliamentary 질문 데이터에 대한 세마틱 검색을위한 벡터 데이터베이스.
  • **Claude 통합 **: mcp-remote 프록시를 통해 Claude Desktop에 연결

특징

MCP 도구 사용 가능

MCP Server는 의회 연구에 도움이되는 13 가지 도구를 제공합니다.

회원 & 선거

  1. get_election_results - 정량 또는 특정 회원에게 선거 결과를 얻으십시오. 2.search_members - 다양한 기준의 Commons 또는 Lords 회원 검색 (위치/postcode 검색 포함)
  2. get_detailed_member_information - 전기, 접촉, 관심사, 투표 기록 및 위원회 회원정보 제공

의회 구조

  1. get_state_of_the_parties - 특정 날짜에 집의 상태를 얻으십시오.
  2. 명세.

이 페이지는 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-remote proxy

Features

MCP Tools Available

The MCP Server exposes 13 tools to assist in parliamentary research:

Members & Elections

  1. get_election_results - Get election results for constituencies or specific members
  2. search_members - Search for members of the Commons or Lords by various criteria (includes location/postcode search)
  3. get_detailed_member_information - Get comprehensive member information including biography, contact, interests, voting record, and committee membership

Parliamentary Structure

  1. get_state_of_the_parties - Get state of the parties for a house on a specific date
  2. list_ministerial_roles - Get exhaustive list of all government or opposition posts and their current holders
  3. get_departments - Get reference data for government departments

Committees

  1. list_all_committees - List all parliamentary committees by status and house
  2. get_committee_details - Get comprehensive committee information including members, publications, evidence, and upcoming events
  3. get_committee_document - Retrieve committee documents including oral evidence, written evidence, and publications

Parliamentary Business

  1. search_parliamentary_questions - Search Parliamentary Written Questions (PQs) by topic, date, party, or member
  2. search_debate_titles - Search through debate titles to find relevant debates
  3. find_relevant_contributors - Find members who have contributed most on specific topics
  4. search_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": {
GitHub에서 전체 README 보기

설치

npx mcp-remote http://localhost:8080/mcp/ --allow-http --debug
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

# 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"] } } }