{"id":"2ea678e6-8e1c-4a94-be63-b1790775beb1","slug":"uk-parliament-mcp-server","kind":"mcp","name":"uk-parliament-mcp-server","summary":"MCP server that gives any AI assistant live access to UK Parliament data: voting history, MP profiles, financial interests, rebellions, bills, and petitions. No API key needed.","owner":"kupad95","repoUrl":"https://github.com/kupad95/uk-parliament-mcp-server","license":"MIT","licenseTier":"permissive","trust":"community","stars":9,"match":null,"fewStars":false,"format":"mcp","createdAt":"2026-03-30T11:19:08.000Z","addedAt":"2026-10-21T17:05:06.156Z","logoUrl":"https://avatars.githubusercontent.com/u/34950511?u=66b6f07e1765b0469ece4dc95bae225900f84eca&v=4","linkOnly":false,"collection":null,"skillPath":null,"categories":["cloud-infra","data-analytics"],"tags":[],"runtime":"node","local":true,"cloudCapable":false,"cloudCapability":"unknown","cloudReadyOnPlatform":false,"needsApiKey":false,"reviewed":false,"syncedAt":"2026-10-25T18:23:15.242Z","sample":false,"url":"https://conduits.dev/tools/uk-parliament-mcp-server","language":"TypeScript","transports":["stdio"],"install":{"npm":"uk-parliament-mcp"},"requirements":{"env":[],"upstreamMayCharge":false},"tools":null,"readme":"# UK Parliament MCP Server\n[![npm version](https://badge.fury.io/js/uk-parliament-mcp.svg)](https://badge.fury.io/js/uk-parliament-mcp)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![GitHub](https://img.shields.io/badge/GitHub-kupad95-blue)](https://github.com/kupad95/uk-parliament-mcp-server)\n\nhttps://github.com/user-attachments/assets/eec2a7bc-1ddf-4b25-8553-8d5b33a57ff6\n\nA **Model Context Protocol (MCP) server** for live UK Parliament data.\nQuery bills, votes, MP profiles, financial interests, and petitions straight from your MCP‑compatible assistant, no API key required.\n\n---\n\n## Features\n\n- **No authentication** – open data under the Open Parliament Licence\n- **Rebellion tracking** – detect MPs voting against their party whip\n- **Cross-dataset queries** – match vote records against financial interests\n- **Pattern detection** – close votes, government defeats, party rebellion rates\n- **Bill & petition search** – by keyword, stage, or status\n\n---\n\n## Installation\n\n```bash\n# One‑off run\nnpx uk-parliament-mcp\n\n# Global install\nnpm install -g uk-parliament-mcp\n```\n\n---\n\n## Usage\n\n**Claude Desktop** — add to `claude_desktop_config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"uk-parliament\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"uk-parliament-mcp\"]\n    }\n  }\n}\n```\n\n**Claude Code:**\n\n```bash\nclaude mcp add uk-parliament -- npx -y uk-parliament-mcp\n```\n\n---\n\n## Available Tools\n\n| Tool | Purpose |\n|------|---------|\n| `rank_entities` | Rank MPs by rebellion count across divisions |\n| `get_events` | Recent divisions, rebellions, or bills |\n| `analyze_patterns` | Close votes, government defeats, party rebellion rates |\n| `find_entities` | Find MPs, bills, petitions, or declared interests |\n| `query_entities` | Cross-reference vote records with financial interests |\n\n---\n\n## What You Can Ask\n\n| Question | Tool |\n|----------|------|\n| Which Labour MPs have rebelled most this parliament? | `rank_entities` |\n| What votes happened in the Commons this week? | `get_events` |\n| Which Conservative MPs rebelled last month? | `get_events` |\n| Bills currently about welfare reform? | `find_entities` |\n| Show me knife-edge votes (10 votes margin or fewer) this year | `analyze_patterns` |\n| Which government bills were defeated in the Lords? | `analyze_patterns` |\n| MPs with declared defence company interests | `find_entities` |\n| Labour MPs who voted No on a Renters Reform Bill with property interests | `query_entities` |\n| What are the most-signed open petitions right now? | `find_entities` |\n\n---\n\n## Data Sources\n\n| API | What it covers |\n|-----|----------------|\n| `bills-api.parliament.uk` | Bills, stages, sponsors |\n| `commonsvotes-api.parliament.uk` | Commons division records |\n| `lordsvotes-api.parliament.uk` | Lords division records |\n| `members-api.parliament.uk` | MP and Lord profiles |\n| `interests-api.parliament.uk` | Register of Members' Financial Interests |\n| `petition.parliament.uk` | Petitions and signature counts |\n\n---\n\n## Development\n\n```bash\ngit clone https://github.com/YOUR_USERNAME/uk-parliament-mcp-server.git\ncd uk-parliament-mcp-server\nnpm install\nnpm run build   # compile TypeScript\nnpm start       # production\nnpm run dev     # watch & reload\n```\n\n---\n\n## Contributing\n\n1. Fork → branch → commit\n2. `git push` and open a PR\n3. Follow the coding style in **src/**\n\n---\n\n## License\n\nMIT – see `LICENSE`.\n\n---\n\n> **Disclaimer**\n> This project is unofficial and not endorsed by UK Parliament. Data usage is subject to the [Open Parliament Licence](https://www.parliament.uk/site-information/copyright-parliament/open-parliament-licence/).\n"}