DEV Community

Thezenmonster
Thezenmonster

Posted on

I Built an MCP Server for UK Companies House — Search 5.5M Companies From Any AI Agent

If you're building AI agents that need UK company data — directors, ownership structures, filing history, accounts status — you currently have to write custom API integration code every time.

I packaged the Companies House API as an MCP server so any AI agent can query it natively.

companieshouse-mcp

6 tools available to any MCP-compatible AI agent:

Tool What it does
search_company Search by name or number
get_company_details Full profile, SIC codes, accounts status
get_officers Directors and secretaries with dates
get_ownership PSCs, ownership percentages, voting rights
get_filing_history Recent filings by category
check_compliance Automated risk flags (overdue accounts, governance gaps)

The compliance check

The check_compliance tool flags real issues from public data:

  • Company not active (dissolved, struck-off)
  • Accounts overdue
  • No active directors
  • High director turnover
  • Unclear ownership structure
  • Recently incorporated

Useful for vendor due diligence and supplier assessments.

Setup for Claude Desktop

{
  "mcpServers": {
    "companieshouse": {
      "command": "python",
      "args": ["-m", "src.server"],
      "env": {
        "COMPANIES_HOUSE_API_KEY": "your-free-api-key"
      }
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

API key is free from Companies House developer portal.

GitHub: github.com/Thezenmonster/companieshouse-mcp

For more on AI compliance and vendor due diligence: januscompliance.co.uk

Top comments (0)