Skip to main content
Glama
README.md
# companieshouse-mcp

**MCP server for UK Companies House.** Give any AI agent access to 5.5 million UK companies — search, directors, ownership, filings, and compliance risk flags.

```
User: "Who owns Revolut?"
Agent: Revolut Ltd (08804411) is owned by Revolut Group Holdings Ltd
       with >75% ownership and >75% voting rights.
       Former PSC Nikolay Storonsky (25-50% ownership) ceased April 2022.
```

Works with Claude Desktop, Cursor, Windsurf, or any MCP-compatible client.

## Tools

| Tool | What it does |
|------|-------------|
| `search_company` | Search by name or company number. Returns matches with status, incorporation date, address. |
| `get_company_details` | Full company profile — type, SIC codes, registered address, accounts status, overdue flags. |
| `get_officers` | Directors, secretaries, and other officers. Appointment dates, resignation dates, active/resigned filter. |
| `get_ownership` | Persons with Significant Control — who owns the company, ownership percentages, voting rights, nationality. |
| `get_filing_history` | Recent filings — accounts, confirmation statements, officer changes, with dates and categories. |
| `check_compliance` | Automated compliance risk flags — overdue accounts, missing directors, high turnover, unclear ownership, recent incorporation. |

## Setup

### 1. Get a Companies House API key (free)

Register at https://developer.company-information.service.gov.uk/ and create an application. The API key is free and takes 2 minutes.

### 2. Install

```bash
pip install companieshouse-mcp
```

Or clone and install locally:

```bash
git clone https://github.com/Thezenmonster/companieshouse-mcp.git
cd companieshouse-mcp
pip install -e .
```

### 3. Configure your MCP client

#### Claude Desktop

Add to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "companieshouse": {
      "command": "python",
      "args": ["-m", "src.server"],
      "env": {
        "COMPANIES_HOUSE_API_KEY": "your-api-key-here"
      }
    }
  }
}
```

Config file location:
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`

#### Cursor / Windsurf

Add the same configuration to your MCP settings. Set the `COMPANIES_HOUSE_API_KEY` environment variable.

## Example queries

Once configured, just ask your AI agent naturally:

- *"Search for Revolut"*
- *"Who are the directors of company 08804411?"*
- *"Who owns Tesco?"*
- *"Are this company's accounts overdue?"*
- *"Run a compliance check on company 12345678"*
- *"Show me the recent filings for Deliveroo"*
- *"What's the ownership structure of this company?"*

## Compliance check

The `check_compliance` tool runs automated risk flags against Companies House public data:

| Flag | Severity | What it catches |
|------|----------|----------------|
| Company not active | HIGH | Dissolved, struck-off, or liquidating companies |
| Accounts overdue | HIGH | Failed to file accounts on time |
| No active directors | HIGH | Governance vacuum |
| Single director, no secretary | MEDIUM | Key person dependency |
| High director turnover | MEDIUM | 3+ resigned directors — may indicate instability |
| No PSCs registered | MEDIUM | Unclear ownership structure |
| No filing history | MEDIUM | Unusual for active companies |
| Concentrated ownership | INFO | Single PSC with >75% control |
| Recently incorporated | LOW | Less than 1 year old |

This is a starting point for vendor due diligence, not a substitute for full compliance assessment. For detailed guidance:

- [AI Vendor Due Diligence: What to Check Before Hiring](https://januscompliance.co.uk/blog/ai-vendor-due-diligence-what-to-check-before-hiring)
- [AI Compliance Consulting: What It Costs](https://januscompliance.co.uk/blog/ai-compliance-consulting-what-it-costs-and-what-you-get)

## Data source

All data comes from the [Companies House API](https://developer.company-information.service.gov.uk/), which provides public records for companies registered in England, Wales, Scotland, and Northern Ireland.

The API is free. Rate limits are 600 requests per 5 minutes.

## Limitations

- **UK companies only.** Does not cover Irish, Nigerian, or other jurisdictions.
- **Public records only.** Financial details beyond basic accounts dates require accessing actual filed documents.
- **Compliance checks are indicative.** They flag potential issues from public data — they don't replace legal due diligence or professional assessment.
- **Employee counts not available.** Companies House does not provide employee data. This would require alternative data sources.

## Architecture

```
src/
    server.py            # MCP server — defines tools
    companies_house.py   # API client + compliance check logic
```

Two files. Zero bloat.

## License

MIT

## Credits

Built by [Janus Compliance](https://januscompliance.co.uk) — AI compliance consulting and data protection advisory for UK, Ireland, and Nigeria.

Need compliance help? [Get in touch](https://januscompliance.co.uk/contact).