npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

uk-parliament-mcp

v0.1.0

Published

MCP server for UK Parliament data — bills, votes, MPs, interests, debates, petitions

Readme

UK Parliament MCP Server

npm version License: MIT GitHub

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

  1. Fork → branch → commit
  2. git push and open a PR
  3. 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.