Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables AI assistants to search and retrieve UK Companies House data including company profiles, officers, and filing history via the official API.

README.md

Companies House MCP Server

A Model Context Protocol (MCP) server that provides AI assistants with access to UK Companies House data. This server enables AI tools to search for companies, retrieve detailed company profiles, officer information, and filing history through the official Companies House API.

Features

  • Company Search: Search for UK companies by name or keyword
  • Company Profiles: Get detailed company information including registration details, addresses, and status
  • Officer Information: Retrieve lists of company officers (directors, secretaries, etc.)
  • Filing History: Access company filing history and documents
  • MCP Compatible: Works with any MCP-compatible AI assistant or client

Prerequisites

Installation

  1. Clone the repository:
git clone <repository-url>
cd companies-house-mcp
  1. Install dependencies:
npm install
  1. Set up environment variables:
cp .env.example .env
# Edit .env and add your Companies House API key
  1. Build the project:
npm run build

Configuration

Create a .env file in the project root:

COMPANIES_HOUSE_API_KEY=your_api_key_here
COMPANIES_HOUSE_BASE_URL=https://api.company-information.service.gov.uk

Getting a Companies House API Key

  1. Visit the Companies House Developer Hub
  2. Create an account or sign in
  3. Register a new application
  4. Copy your API key to the .env file

Usage

Development

Start the development server with hot reload: ``bash npm run dev ``

Production

Build and start the production server: ``bash npm run build npm start ``

Docker

Run using Docker: ``bash docker build -t companies-house-mcp . docker run -e COMPANIES_HOUSE_API_KEY=your_api_key_here companies-house-mcp ``

Or use Docker Compose: ``bash docker-compose up ``

MCP Client Configuration

Local Development (Stdio Transport)

For local development or direct MCP client usage:

{
  "mcpServers": {
    "companies-house": {
      "command": "node",
      "args": ["/absolute/path/to/companies-house-mcp/dist/index.js"],
      "env": {
        "COMPANIES_HOUSE_API_KEY": "your_api_key_here"
      }
    }
  }
}

Cloud Deployment (HTTP Bridge)

For cloud deployment where the HTTP server runs remotely:

  1. Start HTTP server on cloud server:
npm run start:http
  1. Configure client to use HTTP bridge:
{
  "mcpServers": {
    "companies-house-http": {
      "command": "node",
      "args": ["/absolute/path/to/companies-house-mcp/simple-http-bridge.js"],
      "env": {
        "COMPANIES_HOUSE_API_KEY": "your_api_key_here",
        "MCP_HTTP_SERVER_URL": "http://your-server:3000"
      }
    }
  }
}

Note: For cloud deployment, see README-HTTP.md for detailed HTTP bridge configuration.

Available Tools

The server provides the following tools for AI assistants:

1. search_companies

Search for UK companies by name or keyword.

Parameters:

  • query (string, required): Search query for company name or keyword
  • items_per_page (number, optional): Number of results to return (default: 20)

Example: ``json { "name": "search_companies", "arguments": { "query": "Apple", "items_per_page": 10 } } ``

2. get_company_profile

Get detailed company profile information.

Parameters:

  • company_number (string, required): Company number (e.g., "12345678")

Example: ``json { "name": "get_company_profile", "arguments": { "company_number": "12345678" } } ``

3. get_company_officers

Get list of company officers (directors, secretaries, etc.).

Parameters:

  • company_number (string, required): Company number (e.g., "12345678")

Example: ``json { "name": "get_company_officers", "arguments": { "company_number": "12345678" } } ``

4. get_company_filings

Get company filing history.

Parameters:

  • company_number (string, required): Company number (e.g., "12345678")
  • items_per_page (number, optional): Number of filings to return (default: 25)

Example: ``json { "name": "get_company_filings", "arguments": { "company_number": "12345678", "items_per_page": 50 } } ``

Development

Scripts

Core MCP Server (Stdio):

  • npm run dev - Start development server with hot reload
  • npm run build - Compile TypeScript to JavaScript
  • npm run start - Start production stdio server
  • npm run type-check - Run TypeScript type checking

HTTP Bridge (Cloud Deployment):

  • npm run start:http - Start HTTP server for cloud deployment
  • npm run dev:http - Start HTTP server in development mode
  • npm run bridge - Start HTTP bridge client

Project Structure

companies-house-mcp/
├── src/
│   ├── index.ts              # Stdio MCP server entry point
│   ├── server.ts             # Core MCP server implementation
│   ├── http-index.ts         # HTTP server entry point
│   ├── http-server.ts        # HTTP server implementation
│   ├── types.ts              # TypeScript type definitions
│   └── services/
│       └── companies-house.ts # Companies House API client
├── simple-http-bridge.js     # HTTP bridge client
├── dist/                     # Compiled JavaScript files
├── .env                      # Environment variables
├── package.json              # Dependencies and scripts
├── tsconfig.json             # TypeScript configuration
├── Dockerfile                # Docker configuration
├── docker-compose.yml        # Docker Compose configuration
├── README.md                 # Main documentation
└── README-HTTP.md            # HTTP bridge documentation

API Rate Limits

The Companies House API has rate limits. Please refer to the official documentation for current limits and best practices.

Error Handling

The server includes comprehensive error handling:

  • API errors are wrapped in MCP error format
  • Invalid company numbers return appropriate error messages
  • Network errors are caught and reported
  • Missing API keys are detected at startup

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

License

This project is licensed under the ISC License.

Support

For issues related to:

Disclaimer

This is an unofficial client for the Companies House API. Please ensure you comply with the Companies House API terms of service and data usage policies.

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Search servers.