companies-house-mcp

companies-house-mcp

Provides access to UK Companies House public data, enabling search and retrieval of company profiles, officers, filing history, and more through natural language queries.

Category
Visit Server

README

companies-house-mcp

A STDIO-based MCP server that exposes the UK Companies House public data API as tools for MCP clients (Claude Desktop, Claude Code, etc.).

Setup

  1. Get an API key. Register at https://developer.company-information.service.gov.uk/, create an application, and generate a key of type REST.

  2. Install dependencies (using uv, already configured for this project):

    uv sync
    

    (Or with plain pip in a virtualenv: pip install -e .)

  3. Set the API key in your environment:

    export COMPANIES_HOUSE_API_KEY=your-key-here
    

    See .env.example for reference — this project does not auto-load .env files; set the variable in your shell or in your MCP client's server config.

Running

Directly over stdio:

uv run companies-house-mcp

With the MCP Inspector for interactive testing:

uv run mcp dev src/companies_house_mcp/server.py

Registering with Claude Code / Claude Desktop

Claude Code:

claude mcp add companies-house \
  -e COMPANIES_HOUSE_API_KEY=your-key-here \
  -- uv --directory /Users/michaelhughes/companies-house-mcp run companies-house-mcp

Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "companies-house": {
      "command": "uv",
      "args": [
        "--directory",
        "/Users/michaelhughes/companies-house-mcp",
        "run",
        "companies-house-mcp"
      ],
      "env": {
        "COMPANIES_HOUSE_API_KEY": "your-companies-house-rest-api-key"
      }
    }
  }
}

Tools

Tool Description
search_companies Search for companies by name or company number
search_officers Search for officers (directors, secretaries, etc.) by name
get_company_profile Full profile of a company (status, SIC codes, incorporation date, etc.)
get_registered_office_address A company's registered office address
list_company_officers Officers of a company, current and past
list_filing_history A company's filing history
get_filing_history_item Detail of a single filing history item
list_persons_with_significant_control Persons with significant control (PSCs) over a company
list_charges Charges (mortgages) registered against a company
get_charge Detail of a single charge
get_insolvency Insolvency practice information, if any
list_uk_establishments UK establishments linked to a company (overseas companies)

Company numbers may be passed with or without leading zeros (e.g. 123456 is normalized to 00123456); alphanumeric-prefixed numbers (e.g. SC123456) are left as-is (upper-cased). Company numbers, charge IDs, and filing transaction IDs are all validated to contain only letters and digits before being used in a request — anything else (e.g. stray /, .., ?) is rejected with a clear error rather than silently altering the request.

get_insolvency, list_charges, list_persons_with_significant_control, and list_uk_establishments return a clear empty result (e.g. {"cases": [], "message": "No insolvency data for this company"}) rather than an error when a company simply has none of that data — Companies House 404s these endpoints both for "no data" and for a nonexistent company, so this distinction is made by double-checking the company profile before treating a 404 as "empty."

Companies House rate-limits API keys to 600 requests per 5 minutes; a 429 response is surfaced as a clear tool error including the Retry-After value.

Testing

uv run pytest

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured