UK Parliament MCP Server
Provides access to live UK Parliament data including bills, votes, MP profiles, and financial interests without requiring an API key. It enables users to track parliamentary rebellions, search petitions, and cross-reference voting records with declared financial interests.
README
UK Parliament MCP Server
A Model Context Protocol (MCP) server for live UK Parliament data. Query bills, votes, MP profiles, financial interests, and petitions straight from your MCP‑compatible assistant, no API key required.
Features
- No authentication – open data under the Open Parliament Licence
- Rebellion tracking – detect MPs voting against their party whip
- Cross-dataset queries – match vote records against financial interests
- Pattern detection – close votes, government defeats, party rebellion rates
- Bill & petition search – by keyword, stage, or status
Installation
# One‑off run
npx uk-parliament-mcp
# Global install
npm install -g uk-parliament-mcp
Usage
Claude Desktop — add to claude_desktop_config.json:
{
"mcpServers": {
"uk-parliament": {
"command": "npx",
"args": ["-y", "uk-parliament-mcp"]
}
}
}
Claude Code:
claude mcp add uk-parliament -- npx -y uk-parliament-mcp
Available Tools
| Tool | Purpose |
|---|---|
rank_entities |
Rank MPs by rebellion count across divisions |
get_events |
Recent divisions, rebellions, or bills |
analyze_patterns |
Close votes, government defeats, party rebellion rates |
find_entities |
Find MPs, bills, petitions, or declared interests |
query_entities |
Cross-reference vote records with financial interests |
What You Can Ask
| Question | Tool |
|---|---|
| Which Labour MPs have rebelled most this parliament? | rank_entities |
| What votes happened in the Commons this week? | get_events |
| Which Conservative MPs rebelled last month? | get_events |
| Bills currently about welfare reform? | find_entities |
| Show me knife-edge votes (10 votes margin or fewer) this year | analyze_patterns |
| Which government bills were defeated in the Lords? | analyze_patterns |
| MPs with declared defence company interests | find_entities |
| Labour MPs who voted No on a Renters Reform Bill with property interests | query_entities |
| What are the most-signed open petitions right now? | find_entities |
Data Sources
| API | What it covers |
|---|---|
bills-api.parliament.uk |
Bills, stages, sponsors |
commonsvotes-api.parliament.uk |
Commons division records |
lordsvotes-api.parliament.uk |
Lords division records |
members-api.parliament.uk |
MP and Lord profiles |
interests-api.parliament.uk |
Register of Members' Financial Interests |
petition.parliament.uk |
Petitions and signature counts |
Development
git clone https://github.com/YOUR_USERNAME/uk-parliament-mcp-server.git
cd uk-parliament-mcp-server
npm install
npm run build # compile TypeScript
npm start # production
npm run dev # watch & reload
Contributing
- Fork → branch → commit
git pushand open a PR- Follow the coding style in src/
License
MIT – see LICENSE.
Disclaimer This project is unofficial and not endorsed by UK Parliament. Data usage is subject to the Open Parliament Licence.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.