Skip to main content
Glama

uk-due-diligence-mcp

Maintained by BOUCH — private hosting, custom tools and setup: paul@bouch.dev · bouch.dev/products/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 Install in VS Code Install in VS Code Insiders Install in Cursor


Data sources

Register

API

Auth

Coverage

Companies House

api.company-information.service.gov.uk

API key (free)

UK-wide

Charity Commission

api.charitycommission.gov.uk

API key (free)

England & Wales

HMLR Land Registry

landregistry.data.gov.uk (SPARQL)

None

England & Wales

The Gazette

thegazette.co.uk (Linked Data)

None (read)

UK-wide

UK (FCDO) / OFAC / EU / UN sanctions

consolidated list files

None

International


Related MCP server: yaml-ai-mcp

Connect

Hosted endpoint — no install, no API key:

https://uk-due-diligence-mcp.fly.dev/mcp

Claude (web, desktop and mobile)

  1. Open Customize → Connectors (claude.ai/customize/connectors).

  2. Click Add custom connector.

  3. Name it uk-due-diligence, paste the URL above and click Add. No sign-in is needed.

That's it — no config file to edit and no restart. Add the connector on web or desktop, and it's then available on your account, including the mobile apps. Turn it on or off per chat from the + menu → Connectors. On Team and Enterprise plans an Owner adds it once under Organization settings → Connectors; Free plans can add one custom connector.

Claude Code

If you've added the connector above, Claude Code lists it under /mcp — but only when Claude Code is signed in with your claude.ai subscription login, not an API key. Otherwise, add it directly:

claude mcp add --transport http --scope user uk-due-diligence https://uk-due-diligence-mcp.fly.dev/mcp

Other clients

VS Code and Cursor: use the install badges at the top of this page. For clients configured with mcpServers JSON:

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

Run it locally (stdio)

Local mode needs your own free API keys — see Configuration. Local stdio mode needs version 1.9.0 or later.

Claude Code:

claude mcp add --env CH_API_KEY=your-companies-house-key --env CHARITY_API_KEY=your-charity-commission-key --scope user uk-due-diligence -- uvx uk-due-diligence-mcp

Claude Desktop runs local servers either as a packaged desktop extension (.mcpb, installed from Settings → Extensions) or from claude_desktop_config.json. There's no .mcpb for this server yet, so for local mode add this to the config file (Settings → Developer → Edit Config) and restart the app. For everyday use the hosted connector above is simpler.

{
  "mcpServers": {
    "uk-due-diligence": {
      "command": "uvx",
      "args": ["uk-due-diligence-mcp"],
      "env": {
        "CH_API_KEY": "your-companies-house-key",
        "CHARITY_API_KEY": "your-charity-commission-key"
      }
    }
  }
}

Tools

The authoritative, generated list of tools and resources is docs/tool-reference.md; the tables below are a guide.

Companies House

Tool

Description

company_search

Search by name/keyword, filter by status/type

company_profile

Status, filing compliance, registered address, has_charges summary

company_officers

Directors/secretaries; each carries an officer_id

company_psc

Beneficial owners, PSC chain, overseas-corporate-PSC flag

officer_appointments

Full appointment history for a person by officer_id — including dissolved or insolvent companies not named anywhere else

company_charges

Complete secured-charge history: status, dates, secured parties, what each charge covers

company_filing_history

One page of a company's filing chronology (form types, dates); narrow with category

company_filing_document

Resolve a filing's document_metadata link to its source document, returned as a company-document:// resource link

disqualified_search

Search disqualified directors by name

disqualified_profile

Full disqualification record: period, Act, associated companies

Charity Commission

Tool

Description

charity_search

Search by name, filter by registration status

charity_profile

Full record: trustees, income/expenditure, governing document

HMLR Land Registry

Tool

Description

land_title_search

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

The Gazette

Tool

Description

gazette_insolvency

Corporate insolvency notices by company name across the Gazette's notice-code taxonomy (codes 2401-2465). Personal insolvency (bankruptcy, IVAs, sequestrations, trust deeds) is not covered: an empty result says nothing about any individual. The Individual Insolvency Register covers England and Wales only; Scotland (Accountant in Bankruptcy) and Northern Ireland have separate registers

gazette_notice

Full legal wording of a specific notice

Sanctions

Tool

Description

sanctions_screen

Screen 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 below a minimum designation count, a sharp drop 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

Tool

Description

search

Fan-out search across all registers — returns IDs (for ChatGPT deep research)

fetch

Fetch 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

Variable

Required for

Where to get it

CH_API_KEY

All Companies House tools

developer.company-information.service.gov.uk — free

CHARITY_API_KEY

Charity Commission tools

api-portal.charitycommission.gov.uk — free

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


Licence

MIT

Available Tools

18 tools
charity_profileGet Charity ProfileA
Read-onlyIdempotent
Inspect

Fetch the full Charity Commission profile for a charity number.

Returns trustees, latest income/expenditure, insolvency flags, classifications, and countries of operation. Use charity_search first to find the charity number.

Inputs: charity_number (required). Returns: Full Charity Commission profile for a single charity.

company_chargesGet Company ChargesA
Read-onlyIdempotent
Inspect

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.

Inputs: company_number (required). Returns: Complete charge history for a company.

company_filing_documentGet Companies House Filing DocumentA
Read-onlyIdempotent
Inspect

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.

Inputs: document_metadata_url (required), mime_type.

company_filing_historyGet Company Filing HistoryA
Read-onlyIdempotent
Inspect

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.

Inputs: company_number (required), category, start_index, items_per_page. Returns: One page of Companies House filing-history results for a company. Not an auto-f…

company_officersGet Company OfficersA
Read-onlyIdempotent
Inspect

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.

Inputs: company_number (required), start_index, items_per_page, include_resigned. Returns: List of officers for a given company.

company_profileGet Company ProfileA
Read-onlyIdempotent
Inspect

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.

Inputs: company_number (required). Returns: Full Companies House profile for a single company number.

company_pscGet Persons with Significant ControlA
Read-onlyIdempotent
Inspect

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.

Inputs: company_number (required). Returns: List of Persons with Significant Control for a company.

disqualified_profileGet Disqualified Director ProfileA
Read-onlyIdempotent
Inspect

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.

Inputs: officer_id (required). Returns: Full disqualification record for a disqualified officer.

fetchFetch Full Record from UK Due Diligence RegisterA
Read-onlyIdempotent
Inspect

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

Inputs: id (required). Returns: object

gazette_insolvencySearch Gazette Corporate Insolvency NoticesA
Read-onlyIdempotent
Inspect

Search The Gazette's corporate insolvency notices by company name.

Searches The Gazette's corporate-insolvency notice index (category 24) using the authoritative Gazette notice-code taxonomy. Results are sorted by an internal DD severity score; the notice label itself remains a source fact.

Corporate only. Personal insolvency (bankruptcy, IVAs, sequestrations, trust deeds) is not covered, so an empty result says nothing about any individual, such as a director or PSC. The Individual Insolvency Register covers England and Wales only; Scottish sequestrations and trust deeds are on the Accountant in Bankruptcy register, and Northern Ireland has its own register.

One call reads one page of at most 100 feed entries (page, 1-based); it never fetches further pages. upstream_total is the feed's count of matching corporate notices (null when the feed does not say), and is_partial is true when matches remain after this page (the count exceeds the entries on this and earlier pages), or when the count is unknown. The severity sort and max_notices cap apply within the page, so the most severe notices shown are the most severe on this page, not across every match.

skipped_unrecognised counts entries on this page whose notice code is not a known corporate code, and unrecognised_codes lists those codes. They are a diagnostic for codes the taxonomy does not label yet, not a sign of personal insolvency coverage.

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. This tool does not establish its legal effect.

Inputs: name, page, query, end_date, +4 more. Returns: Aggregated Gazette insolvency notice search result.

gazette_noticeGet Gazette Notice Full TextA
Read-onlyIdempotent
Inspect

Fetch the full legal wording of a Gazette notice by numeric notice ID.

Returns the JSON-LD linked-data record for the notice: publisher, notice code, publication date, and the party fields the Gazette supplies. Body text and court are not guaranteed; the Gazette web page has the full wording. Use gazette_insolvency first to find notice_numeric_id values.

Inputs: notice_id (required). Returns: object

officer_appointmentsGet Officer Appointment HistoryA
Read-onlyIdempotent
Inspect

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.

Inputs: officer_id (required). Returns: A person's full appointment history across companies, by officer ID.

sanctions_screenScreen a Name Against Sanctions ListsA
Read-onlyIdempotent
Inspect

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 where the source gives one. 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 screened; lists_unavailable names those that were not. Each list is refreshed on its own: if a list's latest refresh failed, its previous load is still screened and the list is named in lists_stale, for up to 7 days after its last successful load (after that it is dropped and reported unavailable). list_as_at gives each screened list's own load time, and as_at is the oldest of them. is_partial is true whenever a list is unavailable or stale, or a screened list is 24 hours old or more. When is_partial is true an empty hits is UNRESOLVED, not clearance. If no list has ever loaded the call raises a retryable error rather than returning an empty screen.

Inputs: name (required), entity_type. Returns: Result of screening one name against the consolidated sanctions lists.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 18 tools

    Disambiguation4/5

    Most tools have sharply distinct scopes: per-register search vs. profile pairs, `gazette_insolvency` vs. `gazette_notice`, `disqualified_search` vs. `disqualified_profile`, and `officer_appointments` vs. `company_officers` are all cleanly separated by descriptions. The exception is the generic `search`/`fetch` pair, which duplicates the capability of the register-specific tools (`company_search`, `company_profile`, `charity_profile`, etc.), leaving a real judgement call about which to use despite the routing notes.

    Naming Consistency4/5

    Nearly all tools follow a predictable `<resource>_<action>` pattern (company_search, company_profile, charity_search, charity_profile, disqualified_search, gazette_insolvency, land_title_search), and register prefixes align with the fetch routing scheme. The bare verbs `search` and `fetch` are the only deviations, and `officer_appointments` breaks the resource-first convention slightly.

    Tool Count4/5

    Eighteen tools is on the heavy side, but the count is justified by covering five distinct registers each with search+detail operations. The only arguably redundant entries are the umbrella `search`/`fetch` pair layered on top of the specific tools.

    Completeness4/5

    The surface is unusually complete for UK corporate DD: Companies House (search, profile, officers, PSC, charges, filing history, document retrieval), Charity Commission, disqualified directors, Gazette notices, sanctions screening and land price data all have search+detail paths with no dead ends. Gaps remain for individual insolvency registers (explicitly excluded), company financial/accounts data, and HM Land Registry ownership/title data (only Price Paid is available), which would matter in a full DD workflow.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      An MCP server for anti-money laundering (AML) compliance, including customer due diligence, transaction monitoring, and SAR filing, compliant with 6AMLD, UK MLR 2017, and FinCEN.
      4
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server exposing the full UK Companies House Public Data API, enabling natural language queries for company profiles, search, officers, filing history, charges, insolvency, and persons with significant control, as well as downloading and reading PDF documents.
      -