companies-house-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@companies-house-mcpsearch for Greggs plc"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
companies-house-mcp
Production-grade Model Context Protocol server for the UK Companies House API.
Point any MCP-aware assistant (Claude Desktop, Claude Code, Cursor, custom agents) at UK company data. Auth, rate limiting, in-memory caching, structured errors, and a real test suite included — not a tutorial demo.
Status: alpha (v0.1). Five core tools shipped. Free filing-history documents, resumable-filings, and disqualified-officers lookups on the roadmap.
Why this exists
The official MCP reference servers are explicitly educational. They ship without auth, rate limiting, caching, or tests — deliberately, so learners can read them in an afternoon. Every serious team building on MCP ends up re-implementing the same production concerns from scratch.
This is one of them, done properly, against a UK data source that accountants, KYC/AML teams, sales-ops, and journalists genuinely use every day.
Related MCP server: Companies House MCP Server
Tools exposed
Tool | Description |
| Free-text search across all registered UK companies. |
| Full profile for a company by number (name, status, address, SIC codes, dates, accounts). |
| Directors, secretaries, and LLP members for a company. |
| Filing history (annual accounts, confirmation statements, appointments, resolutions). |
| Persons with significant control (25%+ ownership, voting rights, etc.). |
Every tool returns structured JSON — the client model doesn't have to parse HTML or free-form text.
Install & configure
Requires Node.js 20+ and a free Companies House API key from developer.company-information.service.gov.uk.
Claude Desktop
Edit your claude_desktop_config.json:
{
"mcpServers": {
"companies-house": {
"command": "npx",
"args": ["-y", "github:AntonGMorris/companies-house-mcp"],
"env": {
"CH_API_KEY": "your-key-here"
}
}
}
}Restart Claude Desktop. Ask it: "Look up MORRIS AI LTD on Companies House and tell me who the directors are."
Claude Code
claude mcp add companies-house npx -y github:AntonGMorris/companies-house-mcp -- --env CH_API_KEY=your-key-hereLocal dev
git clone https://github.com/AntonGMorris/companies-house-mcp
cd companies-house-mcp
npm install
cp .env.example .env # add your API key
npm run build
npm startDocker
docker build -t companies-house-mcp .
docker run --rm -i -e CH_API_KEY=your-key-here companies-house-mcpTry it in the browser (MCP Inspector)
The fastest way to poke at the tools without wiring the server into Claude Desktop is the official MCP Inspector — a web UI that connects to any MCP server and lets you call its tools with a form.
# put your key in .env first (or export CH_API_KEY=... in the shell)
npm run inspectThat builds the server, launches the Inspector in a local browser tab, and connects to the built server over stdio. You'll see the five tools listed on the left; click one, fill in the form on the right (company_number: "12345678" for get_company_profile, or query: "morris" for search_companies), hit Run tool, and the raw JSON response comes back below. Handy for verifying a tool works before you plug the server into Claude.
Example — what the model sees
Ask a Claude Desktop connected to this server: "look up Greggs plc". The tool-call chain and responses look like this:
// call: search_companies({ query: "greggs" })
{
"items": [
{ "company_number": "00502851", "title": "GREGGS PLC", "company_status": "active", "date_of_creation": "1951-05-25" },
{ "company_number": "12345678", "title": "GREGGS OF FAKENHAM LIMITED", "company_status": "active" }
]
}
// call: get_company_profile({ company_number: "00502851" })
{
"company_name": "GREGGS PLC",
"company_number": "00502851",
"company_status": "active",
"type": "plc",
"date_of_creation": "1951-05-25",
"registered_office_address": { "address_line_1": "Fernwood House", "locality": "Newcastle Upon Tyne", "postal_code": "NE1 4TZ" },
"sic_codes": ["10710"]
}Because responses are structured (not scraped HTML), the model can chain calls confidently — search_companies → pick the right hit → list_officers — without any glue code.
Use the client directly (without the MCP server)
The HTTP client that backs the MCP tools is also exported as a plain library, so other Node projects can reuse the auth + rate-limiting + caching without running the server:
import { CompaniesHouseClient } from "@antonmorris/companies-house-mcp/client";
const client = new CompaniesHouseClient({ apiKey: process.env.CH_API_KEY! });
const profile = await client.getCompanyProfile("00000006");
const officers = await client.listOfficers("03017060");Structured error types (NotFoundError, UnauthorizedError, RateLimitedError, UpstreamError) are exported alongside the client so you can catch typed. This is exactly how lead-qual-agent consumes UK filings for enrichment — no duplicated auth code.
Production concerns handled
Auth. Companies House uses HTTP Basic with the API key as the username. This server wraps that transparently — you only ever set CH_API_KEY.
Rate limiting. Companies House enforces 600 requests per 5-minute rolling window per API key. This server ships a token-bucket limiter tuned to match — requests over the budget queue and wait rather than being sent through and 429'd back. Configurable via CH_RATE_LIMIT_MAX and CH_RATE_LIMIT_WINDOW_SECONDS.
Caching. In-memory LRU with per-entry TTL (default 5 minutes). Company profiles rarely change intraday, so a cache dramatically cuts request count for repeated lookups. Configurable via CH_CACHE_TTL_SECONDS and CH_CACHE_MAX_ENTRIES.
Structured errors. Every failure surfaces as a typed error class the model can reason about — NotFoundError, UnauthorizedError, RateLimitedError, UpstreamError — instead of a generic 500.
Tests. Vitest covers the rate limiter, cache eviction, and the HTTP client with mocked fetch. npm test runs the whole suite.
Configuration reference
Env var | Default | Purpose |
| (required) | Companies House API key. |
|
| Max requests per window. |
|
| Rolling window in seconds. |
|
| Cache entry TTL. |
|
| Max cache size before LRU eviction. |
Roadmap
v0.2 —
get_filing_document(fetches the PDF or iXBRL underlying a filing).v0.3 —
disqualified_officerssearch +officer_appointments(all companies a person is an officer of).v0.4 — Streamable HTTP transport for remote/hosted deployments.
v0.5 — Optional Redis-backed cache + rate limiter for multi-instance deployments.
Honest caveats
The Companies House API returns data as filed — occasionally with typos, inconsistent capitalisation, or delays of days between filing and appearing. This server does not clean or reconcile any of that.
Rate-limit budgeting is per-API-key. If you share a key across multiple instances of this server, they will not coordinate — colocate to one instance or supply a distributed limiter in v0.5.
Not affiliated with or endorsed by Companies House.
Part of the AI-governance stack
This repo is one of five that ship together as a coherent AI-governance stack. Each is standalone; they compose.
Repo | What it is |
You are here. Production-grade MCP server for the UK Companies House API. | |
Automated red-team suite. Fires known injection payloads at any AI endpoint. | |
Drop-in human-in-the-loop review queue. | |
GDPR-friendly structured audit logging for LLM calls. | |
Example agent that composes all of the above. |
Built and maintained by Anton Morris.
License
MIT. See LICENSE.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityBmaintenanceUK property data MCP server for AI hosts (Claude, ChatGPT). Wraps Land Registry, Rightmove, EPC, rental yields, stamp duty, and Companies House into 13 tools.2MIT
- AlicenseCqualityDmaintenanceAccess UK company data through the Companies House API directly in MCP clients, with 45+ tools for company info, search, officers, filing history, ownership, and charges.375226AGPL 3.0
- FlicenseAqualityDmaintenanceAn MCP server that gives AI agents access to US business entity data, enabling searches across 9 state registries, SEC EDGAR filings, federal contracts, and lobbying disclosures.61
- Flicense-qualityCmaintenanceA local MCP server that exposes the UK Companies House API as tools for Claude Desktop and Cowork, enabling company search, profile retrieval, officer lookup, and document downloads.
Related MCP Connectors
Companies House MCP — UK statutory company registry (BYO key)
Hosted MCP server exposing US hospital procedure cost data to AI assistants
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AntonGMorris/companies-house-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server