UK Due Diligence

io.github.paulieb89Published by GitHub account paulieb89v1.0.3Updated Oct 25, 2026

UK due diligence — Companies House, Charity Commission, Land Registry, Gazette, HMRC VAT

VerifiedStreamable HTTPWeb executableFinanceSecurity & MonitoringBusiness & Commerce

Overview

AI-generated overview

Read-only UK due-diligence server that lets an assistant query Companies House, Charity Commission, Land Registry, Gazette and sanctions lists.

What you can do
  • Search and profile companies: name/keyword search, full profile, filing compliance and filing history
  • Inspect ownership and people: officers, persons with significant control, cross-company appointment history, secured charges
  • Check charities: search and full profile with trustees, income and insolvency flags
  • Check directors and insolvency: disqualified-director search and records, Gazette insolvency notices and full notice wording
  • Screen names against UK, OFAC, EU and UN sanctions lists
  • Fan-out search across all registers, then fetch a full record by ID
When to use it
Useful when an assistant needs to verify UK companies, directors, charities or insolvency status from official registers, for example before onboarding a counterparty, checking beneficial ownership, or screening names against sanctions lists.
Requirements
Runs as a hosted HTTP endpoint or locally via uvx (Python). Companies House tools need CH_API_KEY and Charity Commission tools need CHARITY_API_KEY, both free from the respective developer portals. Land Registry, Gazette and sanctions tools need no credentials. Network access to the public register APIs.
Before you install
Read-only lookups, but queries about companies, directors and individuals are sent to third-party public registers and sanctions list sources. Results are not compliance clearance: sanctions matching is exact/alias only, an empty result is not proof of clearance, has_charges null means unresolved, and land_title_search returns sale prices, not ownership. Official data can be incomplete or delayed.

Installation

In SourceWeft

  1. Open UK Due Diligence in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Web executable via Streamable HTTP. Remote servers run from the web runtime once configured in a workspace.

Use with an agent

Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.

Read https://sourceweft.com/mcp/io.github.paulieb89%2Fuk-due-diligence-mcp/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.

Read the install guide the agent follows

Other MCP clients

Add this to your client's mcpServers config.

{
  "mcpServers": {
    "uk-due-diligence": {
      "type": "http",
      "url": "https://uk-due-diligence-mcp.fly.dev/mcp"
    }
  }
}

README

uk-due-diligence-mcp

Official-source UK due-diligence data for AI agents.

Search Companies House, Charity Commission, The Gazette and HMLR price-paid data, plus screen names against the UK (FCDO), OFAC, EU and UN sanctions lists. Exposes atomic MCP tools for company ownership, officers, cross-company appointment history, secured charges, insolvency notices and related registry evidence — the consuming agent decides how to investigate, not the server.

Every data source is a legally-mandated register with a free official API. Zero paywalls.

[PyPI] [SafeSkill] [Glama] [smithery badge] [Install in VS Code] [Install in VS Code Insiders] [Install in Cursor]


Data sources

RegisterAPIAuthCoverage
Companies Houseapi.company-information.service.gov.ukAPI key (free)UK-wide
Charity Commissionapi.charitycommission.gov.ukAPI key (free)England & Wales
HMLR Land Registrylandregistry.data.gov.uk (SPARQL)NoneEngland & Wales
The Gazettethegazette.co.uk (Linked Data)None (read)UK-wide
UK (FCDO) / OFAC / EU / UN sanctionsconsolidated list filesNoneInternational

Quick start

Hosted (no install)

json
{  "mcpServers": {    "uk-due-diligence": {      "type": "http",      "url": "https://uk-due-diligence-mcp.fly.dev/mcp"    }  }}

Local (uvx)

json
{  "mcpServers": {    "uk-due-diligence": {      "type": "stdio",      "command": "uvx",      "args": ["uk-due-diligence-mcp"]    }  }}

See Configuration for the environment variables it needs.


Tools

Companies House

ToolDescription
company_searchSearch by name/keyword, filter by status/type
company_profileStatus, filing compliance, registered address, has_charges summary
company_officersDirectors/secretaries; each carries an officer_id
company_pscBeneficial owners, PSC chain, overseas-corporate-PSC flag
officer_appointmentsFull appointment history for a person by officer_id — including dissolved or insolvent companies not named anywhere else
company_chargesComplete secured-charge history: status, dates, secured parties, what each charge covers
disqualified_searchSearch disqualified directors by name
disqualified_profileFull disqualification record: period, Act, associated companies

Charity Commission

ToolDescription
charity_searchSearch by name, filter by registration status
charity_profileFull record: trustees, income/expenditure, governing document

HMLR Land Registry

ToolDescription
land_title_searchPrice Paid Index sale transactions by postcode — not title ownership (see Limitations)

The Gazette

ToolDescription
gazette_insolvencyCorporate insolvency notices across the Gazette's notice-code taxonomy (codes 2401-2465)
gazette_noticeFull legal wording of a specific notice

Sanctions

ToolDescription
sanctions_screenScreen a name against the UK (FCDO), OFAC, EU and UN consolidated lists

The UK list is the FCDO UK Sanctions List XML and is reported under the label OFSI (UK). The parser refuses an incomplete export: a file with fewer than 5,000 designations, a drop of more than 10% against the previous load in the same process, a duplicate UniqueID, or a missing DateGenerated fails the UK list, which is then reported in lists_unavailable with is_partial true. The floor and drop threshold are constants in sanctions.py.

Cross-register

ToolDescription
searchFan-out search across all registers — returns IDs (for ChatGPT deep research)
fetchFetch a structured record by ID returned from search

Examples

Resolve "TAS Engineering" to a company number and check whether it has any outstanding charges.

→ company_search to find the company number, then company_charges for the full secured-debt picture (not just the has_charges summary).

Has Gareth Davies (director of company 06333469) been connected to any other companies, including ones that no longer exist?

→ company_officers to get his officer_id, then officer_appointments to surface every company he's held an appointment at, current or historic.

Is "MEL Precision Limited" in the middle of insolvency proceedings, and what does that actually mean legally?

→ gazette_insolvency to find the notices, then gazette_notice to read the full legal wording before drawing conclusions from the notice label alone.

Screen "Acme Trading Ltd" and its officers against sanctions lists.

→ company_officers for the officer names, then sanctions_screen against the company name and each officer.


Limitations

Things worth knowing before trusting output:

  • land_title_search returns Price Paid transactions, not ownership. It does not return current proprietor/title data — HMLR's Price Paid Index only records historic sale transactions.
  • Sanctions screening is exact/alias matching, not compliance clearance. A company/entity legal name matches reliably; person names with transliteration variants may not. An empty result is not a guarantee of clearance, and a hit on a common name may need disambiguation.
  • has_charges: null means the check could not be confidently completed — a charges-endpoint outage, or a charge with an unrecognized status. Treat it as unresolved, not as "no charges."
  • officer_appointments returns historical relationships. Companies House doesn't auto-resign a director when a company enters insolvency — check company_status on each appointment, not just resigned_on.
  • Official-source data can be incomplete or delayed. These are the same registers a human would check, with the same latency and gaps.

Configuration

VariableRequired forWhere to get it
CH_API_KEYAll Companies House toolsdeveloper.company-information.service.gov.uk — free
CHARITY_API_KEYCharity Commission toolsapi-portal.charitycommission.gov.uk — free

HMLR, The Gazette, and the sanctions lists require no credentials.


Project structure

uk-due-diligence-mcp/├── server.py           # FastMCP init, tool/resource registration, transport config├── companies_house.py  # company_search/profile/officers/psc, officer_appointments, company_charges├── disqualified.py     # disqualified_search, disqualified_profile├── charity.py          # charity_search, charity_profile├── land_registry.py    # land_title_search (SPARQL Price Paid Index)├── gazette.py          # gazette_insolvency, gazette_notice├── sanctions.py        # sanctions_screen (UK/OFAC/EU/UN consolidated lists)├── search_fetch.py     # search, fetch (cross-register fan-out)├── models.py           # Pydantic v2 output models├── http_client.py      # Shared httpx clients, retry backoff, error formatting├── fly.toml├── Dockerfile├── pyproject.toml└── .env.example

Licence

MIT

Source: README.md at commit 4c2698f

Tools

18

company_profile

Get Company Profile

Fetch the full Companies House profile for a company number. Returns status, registered address, SIC codes, filing compliance (overdue accounts and confirmation statement flags), and whether the company has outstanding charges. Use company_search first to find the company number.

Parameterscompany_numberrequired

company_officers

Get Company Officers

Fetch officers for a Companies House company number. Returns directors, secretaries, and other officers with appointment dates, nationality, and country of residence. Resigned officers are excluded by default; set include_resigned=true for historical DD. Pagination is handled internally.

Parametersstart_indexcompany_numberrequireditems_per_pageinclude_resigned

company_psc

Get Persons with Significant Control

Fetch Persons with Significant Control (beneficial ownership) for a company. Returns PSC entries with natures of control, nationality, and country of residence. Flags overseas corporate PSC entries as a beneficial ownership risk signal. Returns an explanatory note for widely-held PLCs with no registrable PSC.

Parameterscompany_numberrequired

officer_appointments

Get Officer Appointment History

Fetch a person's full company appointment history by officer ID. Returns every appointment — current and historic — with each company's number, name, status, role, and appointment/resignation dates. Use company_officers first to find an officer_id, then this tool to discover other companies that person has been a director or secretary of, including dissolved or insolvent ones not mentioned anywhere else. Always returns full history; there is no current-only filter, since historical discovery is the point.

Parametersofficer_idrequired

company_charges

Get Company Charges

Fetch the complete Companies House charge history for a company. Returns every registered charge (secured debt) — current and historic — with status, dates, secured parties, and what each charge covers (fixed/floating/negative-pledge flags and any free-text particulars). Satisfaction is represented as satisfied_on plus a charge-satisfaction filing entry, not a separate 'release' record. company_profile.has_charges is a True/False/unknown summary derived from this same data; use this tool when the specific charges matter, not just whether any exist.

Parameterscompany_numberrequired

company_filing_history

Get Company Filing History

Fetch one page of a company's Companies House filing chronology. Returns the raw source facts for each filing — transaction ID, form type/category, dates, and the description_values CH uses to render its own text — as delivered upstream, not interpreted into DD conclusions. links.document_metadata on each filing is the identifier a future document-retrieval tool would need; no document content is fetched here. Unlike company_officers/company_psc/company_charges, this does NOT auto-fetch every page — a long-lived company's filing history is unbounded in practice (a decades-old PLC can carry thousands of filings). total_count/returned/has_more are always reported truthfully for whatever page and category filter was requested; nothing is silently truncated. Narrow with category= for a specific slice (e.g. category='mortgage' for charge-related filings, category='insolvency' for administration/liquidation filings) — a note is included when an unfiltered history is large. A company_number that doesn't resolve to any company returns a structured not_found error, distinct from a genuine zero-filing result — Companies House's filing-history endpoint alone cannot tell these apart, so existence is confirmed separately when the result would otherwise be empty.

Parameterscategorystart_indexcompany_numberrequireditems_per_page

company_filing_document

Get Companies House Filing Document

Resolve a filing's document_metadata link to its authoritative source document. Returns a resource_link (never embedded bytes, never base64) pointing at a company-document:// MCP resource — fetch it via resources/read to get the actual PDF. This tool only reads metadata (category, pages, available content types, byte size); it never downloads the document itself. Use company_filing_history first to find a filing's document_metadata URL. Requires a resource-capable MCP client to retrieve the actual bytes — a tool-only client can see this result's metadata (company, category, page count, size) but cannot obtain the file through this tool call alone.

Parametersmime_typedocument_metadata_urlrequired

charity_profile

Get Charity Profile

Fetch the full Charity Commission profile for a charity number. Returns trustees, latest income/expenditure, insolvency flags, governing document type, classifications, and countries of operation. Use charity_search first to find the charity number.

Parameterscharity_numberrequired

disqualified_profile

Get Disqualified Director Profile

Fetch the full disqualification record for a director by officer ID. Returns all disqualification orders: reason, Act/section cited, disqualification period, and associated company names. Use disqualified_search first to find the officer ID.

Parametersofficer_idrequired

gazette_notice

Get Gazette Notice Full Text

Fetch the full legal wording of a Gazette notice by numeric notice ID. Returns the complete JSON-LD linked-data record for the notice: parties, legal basis, court, and full text. Use gazette_insolvency first to find notice_numeric_id values.

Parametersnotice_idrequired

gazette_insolvency

Search Gazette Corporate Insolvency Notices

Search The Gazette's insolvency notice index by entity name. Searches The Gazette's corporate-insolvency notice index using the authoritative Gazette notice-code taxonomy. Results are sorted by an internal DD severity score; the notice label itself remains a source fact. Each result includes a notice_numeric_id. Read the full legal wording via the notice://{notice_numeric_id} resource. The Gazette is the official UK public record. A notice here means the event has been formally published and is legally effective.

Parametersnamequeryend_datestart_dateentity_namemax_noticesnotice_type

sanctions_screen

Screen a Name Against Sanctions Lists

Screen a name against the UK (OFSI), US (OFAC), EU and UN consolidated sanctions lists. Returns every list entry whose primary name or alias matches, with the regime, source reference and listing date. Use it to check whether a counterparty — or its officers / persons with significant control — appears on a sanctions list. MATCHING is deterministic: normalised exact + alias match (case-, accent- and punctuation-insensitive). A company/entity legal name matches reliably; PERSON names with transliteration variants may not (e.g. 'Mohammed' vs 'Muhamad'). An empty result is therefore NOT a guarantee of clearance, and a hit on a common name may be a false positive to disambiguate. This is a screening aid, not a compliance determination. `lists_screened` reports which of OFSI/OFAC/EU/UN were actually loaded; `lists_unavailable` names those that were not, and `is_partial` is true whenever it is non-empty. When `is_partial` is true an empty `hits` is UNRESOLVED, not clearance. If no list could be loaded at all the call raises a retryable error rather than returning an empty screen. `as_at` is when the lists were last refreshed on this server.

Parametersnamerequiredentity_type

fetch

Fetch Full Record from UK Due Diligence Register

Fetch the full record for an ID returned by search. Routes by prefix to the appropriate register: - company:{number} → Companies House full profile - charity:{number} → Charity Commission full profile - disqualification:{officer_id} → Disqualified director full record - notice:{notice_id} → Gazette notice full legal text

Parametersidrequired

Version history

1
  1. v1.0.3LatestSep 16, 2026

Score

100% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 daysRequired25 pts
  • Auth declaredRequired10 pts
  • Tools listedRequired15 pts
  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts