# UK & US Statutory Compliance & Property Tribunal MCP Server (`technoplusit/compliance-intel-mcp`) Actor

Deterministic 15-tool UK, EU & US compliance & property tribunal MCP server: UK RRO precedents, OFSI/OFAC sanctions, EU VIES/UK VAT, Companies House/Charity & LEI, ONS Postcodes, RDAP/DMARC hygiene, FDA/CPSC/NHTSA recalls, S106/MR01 PDF clauses & MCP trust.

- **URL**: https://apify.com/technoplusit/compliance-intel-mcp.md
- **Developed by:** [TechnoPlus IT](https://apify.com/technoplusit) (community)
- **Categories:** Business, Lead generation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## UK & US Statutory Compliance & Property Tribunal MCP Server (`compliance-intel-mcp`)

Deterministic, **zero-LLM-cost** UK, EU & US statutory compliance, sanctions, corporate registry, DNS/DMARC security, scanned legal PDF clause extraction, and UK Property Tribunal Rent Repayment Order (RRO) precedent engine (`15 tools`).

Runs both as:

1. **An Apify Actor** ([`technoplusit/compliance-intel-mcp`](https://apify.com/technoplusit/compliance-intel-mcp)) writing structured compliance & legal precedent reports to the default Apify dataset.
2. **An MCP Server (`mcp_server.py`) + `mcpize.yaml`** with native `x402` USDC on Base pay-per-call settlement (`0.01–0.03` USDC/call to `0xfe4404ee088a741DC6F62d4132e21E14B1912940`).

Every check queries **live government and public authority endpoints** (zero mocked data), embeds **verbatim source URLs** and **ISO-8601 UTC retrieval timestamps**, and **fails closed** on upstream network or parsing errors.

***

### Live Public Data Sources Queried

| Domain | Official / Public Authority Source | Endpoint |
| :--- | :--- | :--- |
| **UK Property Tribunal RRO Precedents** | UK First-tier Tribunal (Property Chamber) Rent Repayment Order Decisions (OGL v3.0) | `https://parish.technoplusit.co.uk/api/rro-search` & `https://www.gov.uk/residential-property-tribunal-decisions` |
| **UK Sanctions (FCDO)** | UK Foreign, Commonwealth & Development Office Sanctions List (OpenSanctions Live Standardized Feed) | `https://data.opensanctions.org/datasets/latest/gb_fcdo_sanctions/targets.simple.csv` |
| **UK Financial Sanctions (OFSI)** | UK HM Treasury Office of Financial Sanctions Implementation Consolidated List | `https://ofsistorage.blob.core.windows.net/publishlive/2022format/ConList.csv` |
| **UK Charity & Company Registry** | UK Charity Commission / Companies House Cross-Reference (FindThatCharity Reconciliation & OrgID JSON API) | `https://findthatcharity.uk/reconcile` & `https://findthatcharity.uk/orgid/{id}.json` |
| **Global & UK Corporate LEI** | Global Legal Entity Identifier Foundation (GLEIF) API v1 (with UK Companies House `RA000585` / Charity `RA000589` validation) | `https://api.gleif.org/api/v1/lei-records` |
| **EU VIES & UK HMRC VAT** | European Commission VIES REST API & UK HMRC Modulo-97 Specification | `https://ec.europa.eu/taxation_customs/vies/rest-api/ms/{country}/vat/{number}` |
| **UK ONS/OS Postcode & Council** | ONS / Ordnance Survey Open Government Licence Postcodes API | `https://api.postcodes.io/postcodes/{postcode}` |
| **Email, RDAP & DNS Security Posture** | IANA/Nominet RDAP + Cloudflare & Google DNS-over-HTTPS (MX, SPF `v=spf1`, DMARC `_dmarc`, CAA) | `https://rdap.org/domain/{domain}`, `https://cloudflare-dns.com/dns-query` & `https://dns.google/resolve` |
| **US OFAC Sanctions** | US Treasury OFAC Specially Designated Nationals (SDN) List | `https://data.opensanctions.org/datasets/latest/us_ofac_sdn/targets.simple.csv` |
| **US Federal Recalls & Enforcement** | US FDA (`openFDA` Food/Drug Enforcement), US CPSC (`SaferProducts.gov`), US DOT NHTSA Vehicle Recalls | `https://api.fda.gov/...`, `https://www.saferproducts.gov/...`, `https://api.nhtsa.gov/...` |

***

### 15 Tools Exposed (MCP & Apify Actions)

1. `uk_sanctions_and_company_screen`: Unified end-to-end compliance & security screen across UK FCDO/OFSI sanctions, UK Charity/Companies House/GLEIF registries, EU/UK VAT, UK Postcode, RDAP+DNS/DMARC security posture, US OFAC SDN, and US FDA/CPSC/NHTSA recalls.
2. `search_uk_property_tribunal_rro_precedents`: Search UK First-tier Tribunal (Property Chamber) Rent Repayment Order (RRO) precedent rulings (OGL v3.0) by borough/keyword, region, offence type (`HMO`, `Selective Licensing`, `Unlawful Eviction`), mitigation factors, and maximum award percentage.
3. `extract_uk_scanned_pdf_clauses`: Zero-token UK scanned PDF & legal deed clause extractor (`pdftotext` + `pypdfium2` + `RapidOCR` + `FastEmbed` + ephemeral in-memory `sqlite-vec`) for Section 106 planning obligations, Companies House MR01 charge negative pledges, and Charity Independent Examiner reports.
4. `verify_eu_uk_vat`: Live European Commission VIES REST API & UK HMRC Modulo-97 VAT number verification.
5. `lookup_uk_postcode_and_council`: Resolve a UK postcode to Local Authority Council, Civil Parish, Electoral Ward, Parliamentary Constituency, and ONS GSS codes.
6. `domain_rdap_and_dns_hygiene`: Combined IANA/Nominet RDAP registration metadata and Cloudflare/Google DoH MX, SPF, DMARC, and CAA security grading.
7. `bulk_email_and_domain_hygiene`: Batch B2B RevOps domain/MX/SPF/DMARC hygiene screen for up to 100 domains with `charged_results_only=True`.
8. `audit_mcp_server_trust`: Deterministic `0-100` Pre-Connection MCP Trust, Prompt-Injection & Schema Token-Bloat Auditor.
9. `lint_apify_mcp_input_schema`: Lint and auto-fix Apify `.actor/input_schema.json` for the MCP `required`+`default` silent drop bug and maintenance prefill gaps.
10. `email_security_posture`: Deterministic DNS & Email Security audit (MX, SPF single-record RFC 7208 validation, DMARC `p=reject`/`quarantine`/`none`, `pct`, `rua`, CAA) with `0-100` score and `A-F` security grade.
11. `screen_uk_sanctions`: Standalone live UK FCDO + HM Treasury OFSI Consolidated Sanctions screening.
12. `screen_us_ofac_sanctions`: Standalone live US Treasury OFAC SDN screening.
13. `lookup_uk_public_registries`: Standalone UK Charity Commission / Companies House OrgID + GLEIF LEI lookup.
14. `us_regulatory_recall_and_enforcement_check`: Standalone US FDA, CPSC, and NHTSA recall/enforcement check.
15. `health_and_provenance`: Free (`$0.00`) health, provenance, and CAIP-2 Base `x402` payment route handshake.

***

### Running Locally

```bash
## Run pytest suite (20/20 unit + live integration tests)
.venv/bin/pytest -v

## Run as MCP server (stdio or streamable-http)
.venv/bin/python mcp_server.py --transport stdio

## Run as Apify Actor locally
.venv/bin/python -m src
```

# Actor input Schema

## `action` (type: `string`):

Select the full unified compliance screen or an individual deterministic check.

## `entity_name` (type: `string`):

Organization, company, charity, person, or product name to screen.

## `domain` (type: `string`):

Optional domain to audit RDAP, MX, SPF, DMARC, and CAA records over Cloudflare/Google DNS-over-HTTPS.

## `domains` (type: `array`):

Optional list of up to 100 domains for batch DNS/DMARC hygiene screening (charged_results_only=True).

## `input_schema_json` (type: `string`):

Optional JSON string of an Apify .actor/input_schema.json file to lint and auto-fix for the MCP required+default silent drop bug.

## `company_or_charity_number` (type: `string`):

Optional UK Charity registration number (e.g. 202918) or UK Companies House number (e.g. 00612172).

## `vat_number` (type: `string`):

Optional EU Member State, Northern Ireland (XI), or UK (GB) VAT number to verify via EU VIES REST API / HMRC Modulo-97.

## `uk_postcode` (type: `string`):

Optional UK postcode (e.g. SW1A 1AA or OX14 4AB) to resolve Local Authority Council, Civil Parish, Ward, and GSS codes.

## `include_rdap` (type: `boolean`):

Fetch live IANA/Nominet RDAP registration, expiration, status flags, and nameservers alongside DNS security checks.

## `include_us_ofac` (type: `boolean`):

Screen entity against the live US Treasury OFAC SDN list.

## `include_us_recalls` (type: `boolean`):

Screen entity/product against live US FDA openFDA, CPSC SaferProducts, and NHTSA recall APIs.

## `vehicle_make` (type: `string`):

Optional vehicle manufacturer make for NHTSA recall lookup (e.g. Ford).

## `vehicle_model` (type: `string`):

Optional vehicle model for NHTSA recall lookup (e.g. F-150).

## `vehicle_year` (type: `integer`):

Optional vehicle model year for NHTSA recall lookup (e.g. 2023).

## `max_results` (type: `integer`):

Maximum number of matched records to return per data source (clamped 1..50).

## `pdf_url` (type: `string`):

Optional public URL of a UK Section 106 Deed, Companies House MR01 Charge PDF, or Charity TAR PDF to extract clauses from.

## `raw_text` (type: `string`):

Optional raw legal clause text or document excerpt to analyze for S106 obligations, MR01 negative pledges, and Charity Examiner qualifications.

## `region` (type: `string`):

Optional UK First-tier Tribunal Property Chamber region filter (e.g. London, Southern, Midlands, Northern, Eastern, or all).

## `offence_type` (type: `string`):

Optional Housing Act / Renters' Rights Act offence filter (e.g. HMO, Selective Licensing, Unlawful Eviction, or all).

## `mitigation` (type: `string`):

Optional mitigation factor filter (e.g. utilities_deducted, letting_agent_reliance, financial_hardship, prompt_remediation, or all).

## Actor input object example

```json
{
  "action": "uk_sanctions_and_company_screen",
  "entity_name": "Oxfam",
  "domain": "oxfam.org.uk",
  "company_or_charity_number": "202918",
  "include_rdap": false,
  "include_us_ofac": true,
  "include_us_recalls": false,
  "max_results": 5
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset items returned by the compliance screening or UK Property Tribunal RRO precedent search.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "entity_name": "Oxfam"
};

// Run the Actor and wait for it to finish
const run = await client.actor("technoplusit/compliance-intel-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "entity_name": "Oxfam" }

# Run the Actor and wait for it to finish
run = client.actor("technoplusit/compliance-intel-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "entity_name": "Oxfam"
}' |
apify call technoplusit/compliance-intel-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,technoplusit/compliance-intel-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/XK0AWj50YPs0wg1rX/builds/QpgzMZ9k2Cotb2ZNZ/openapi.json
