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

companies-house-cli

v1.0.1

Published

CLI tool for the UK Companies House API — company search, profiles, officers, filings, ownership, and due diligence

Readme

Companies House CLI

npm version npm downloads License: MIT Node 22+

Terminal tool for the UK Companies House API. Look up companies, check who runs them, trace ownership, scrutinise filings, and run due diligence checks — directly from your terminal.

Get an API key

Register at developer.company-information.service.gov.uk — free, takes about 30 seconds.

Install

npm install -g companies-house-cli
ch config set-key your-key-here
ch search "Anthropic"

Commands

ch search <query>               Search companies by name
ch profile <company-number>     Company profile and status
ch officers <company-number>    Current officers (directors, secretaries)
ch ownership <company-number>   Persons with significant control (PSCs)
ch filings <company-number>     Filing history
ch charges <company-number>     Charges and mortgages
ch insolvency <company-number>  Insolvency proceedings
ch report <company-number>      Full overview in one call
ch check <company-number>       Due diligence red-flag scan
ch network <officer-name>       All companies an officer is connected to
ch search-officers <query>      Search for officers by name
ch config set-key <key>         Save API key
ch config show                  Show current key source
ch serve                        Start MCP server (stdio)
ch serve --http --port 3000     Start MCP server (HTTP)

Company numbers are 8-digit strings, zero-padded: 00445790, 14604577. Scottish companies use an SC prefix (SC123456).

Flags

| Flag | Effect | |------|--------| | --json | Raw JSON — pipe-friendly, use with jq | | --md | Markdown — good for saving to files or notes | | --key <key> | Override API key for this call only | | --all | Include resigned officers (ch officers only) | | --category <cat> | Filter filings by category (ch filings only) | | --status <status> | Filter search by company status | | --type <type> | Filter search by company type | | --sic <code> | Filter search by SIC code | | --location <loc> | Filter search by registered location | | --limit <n> | Results per page | | --id <officer-id> | Look up officer network by ID (ch network only) |

Output modes

| Mode | Flag | Best for | |------|------|----------| | Terminal | (default) | Colour-formatted, human-readable | | Markdown | --md | Saving to files, pasting into notes | | JSON | --json | Scripting, piping to jq |

API key

Checked in this order:

  1. --key flag — one-off override
  2. COMPANIES_HOUSE_API_KEY environment variable
  3. Config file — run ch config set-key your-key to save to ~/.config/companies-house/config.json

Run ch config show to see which source is active.

MCP server

This package also ships an MCP server. Running ch serve starts it in stdio mode, which is how companies-house-mcp uses it internally. For AI assistant setup (Claude, Cursor, Zed), use the dedicated companies-house-mcp package — it handles all the wiring.

Development

git clone https://github.com/aicayzer/companies-house-mcp.git
cd companies-house-mcp
pnpm install
pnpm build
pnpm test:unit                   # no API key needed
pnpm test:integration            # requires COMPANIES_HOUSE_API_KEY

Disclaimer

Not affiliated with or endorsed by Companies House or the UK Government. Uses the publicly available Companies House API.

Licence

MIT