companies-house-mcp: Instructions file for Claude Code

CLAUDE.md

companies-house-mcp CLAUDE.md is an instructions file for Claude Code from aicayzer/companies-house-mcp. It costs 1,155 tokens per session, scanned A, original, MIT.

Instructions for an unofficial tool that searches the UK Companies House public register, which contains information about registered companies.

In plain words
What is it for?
Use them when developing or maintaining company searches, company records, officers, ownership, filings, filed documents, and combined summaries. Each user supplies their own free API key.
Why use it?
They give developers the commands, layout, and conventions needed to work with the tool and its command-line and MCP interfaces.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is aicayzer/companies-house-mcp's own configuration. It tells Claude Code how to work on companies-house-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything companies-house-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to aicayzer/companies-house-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/aicayzer/companies-house-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/aicayzer/companies-house-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for companies-house-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/aicayzer/companies-house-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/aicayzer/companies-house-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/aicayzer/companies-house-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/aicayzer/companies-house-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for companies-house-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/aicayzer/companies-house-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/aicayzer/companies-house-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,155 This file is loaded in full into every session.
When invoked 1,155 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01155 $0.01155
Opus 5 $0.00577 $0.00577
Sonnet 5 $0.00231 $0.00231
Haiku 4.5 $0.00115 $0.00115

Measured 11d ago against content hash 77f9344a3d09, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

companies-house-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 83 lines

How it starts

The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Companies House CLI and MCP

What this is

An unofficial CLI and MCP server for the UK Companies House public register. 18 tools covering company search, company records, officers, ownership, filings, filed documents and combined summaries. Every user brings their own free API key; there is no shared key, hosted backend or proxy.

Layout

packages/cli/      companies-house-cli — the API client, the tools, the CLI, and the MCP server
packages/mcp/      companies-house-mcp — a thin wrapper that starts the shared server over stdio
packages/worker/   optional single-user Cloudflare Worker (private, not published)
docs/              VitePress documentation site

All shared implementation lives in packages/cli/src:

  • api/ — HTTP client, rate limiter, cache, pagination helper, endpoint functions
  • api/endpoints/ — one file per API domain
  • tools/ — MCP tool definitions, registered into a central registry by side-effect import
  • server/ — the transport-neutral MCP factory, the Node stdio and HTTP runners, secret comparison
  • cli/ — the ch entry point, its command table, and schema introspection
  • formatters/ — shared markdown formatters
  • types/ — types matching the Companies House API, in its own snake_case

Commands

pnpm build              # all packages
pnpm test:unit          # no API key needed
pnpm test:integration   # needs COMPANIES_HOUSE_API_KEY
pnpm test:package       # packaged stdio entry points, via the MCP client SDK
pnpm lint
pnpm typecheck
pnpm docs:dev

The Worker builds with wrangler deploy --dry-run, which is what catches bundling problems.

Conventions

  • ESM throughout, Node 22 or newer.
  • Types mirror the Companies House API and stay snake_case.
  • Tools self-register by calling registerTool() at module level. tools/all.ts imports them for the side effect; the server and CLI import that.
  • Every tool returns { content, structuredContent } — readable text plus a structured payload.
  • Every tool declares a group, used by the CLI help and the generated docs.
  • The rate limiter queues rather than throwing. A 429 is only waited out when Companies House says the window is about to reset.
  • Native fetch. No Axios.
  • Code shared with the Worker must stay runtime-neutral: web-standard APIs, no Buffer, no static node: imports. Node-only work belongs in server/index.ts, config.ts, or behind a dynamic import.

Read the full file on GitHub · 83 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 83 lines · 1,155 tokens per session scan A 77f9344a3d09

Subscribe to this mod's changes

companies-house-mcp CLAUDE.md is an instructions file published in the GitHub repository aicayzer/companies-house-mcp (13 stars, last pushed 1mo ago), licensed MIT. It adds 1,155 tokens to every session, about $0.0058 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories