
A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A hosted MCP server that runs TBML forensic algorithms across trade, corporate registry, sanctions, and FX data sources and returns structured risk and SAR evidence output.
Trade-Based Money Laundering Detection MCP Server is cataloged as an MCP server attributed to apifyforge. A hosted MCP server that runs TBML forensic algorithms across trade, corporate registry, sanctions, and FX data sources and returns structured risk and SAR evidence output. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Trade-Based Money Laundering Detection MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It applies Benford chi-squared on first digits of trade values, Grubbs outlier tests per HS6 code, and Fisher's method to combine p-values, catching both systematic and individual invoice manipulation.
No. A high score identifies statistical anomalies and structural patterns consistent with TBML typologies and warrants escalation and enhanced due diligence, not automatic adverse action.
README.md · 84483c85a384 · 采集于 2026-11-13 13:52:03 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
Add to your MCP client (Claude Desktop, Cursor, Windsurf):
{
"mcpServers": {
"trade-based-money-laundering-mcp": {
"url": "https://ryanclinton--trade-based-money-laundering-mcp.apify.actor/mcp"
}
}
}
Trade-based money laundering (TBML) detection for compliance teams, AML investigators, and financial intelligence units — delivered as an MCP server that plugs directly into Claude, Cursor, or any MCP-compatible AI agent. This server orchestrates 14 data sources and runs five peer-reviewed forensic algorithms to identify over-invoicing, carousel fraud, phantom entities, FX layering, and sanctions-adjacent ownership chains. The output is structured evidence ready for FinCEN SAR (Form 111) filing under 31 CFR 1020.320.
TBML accounts for an estimated $500–$800 billion laundered annually through trade channels, yet most compliance programs rely on manual invoice review. This server automates the full forensic pipeline: UN COMTRADE bilateral trade queries, cross-registry counterparty verification across six jurisdictions, OFAC and OpenSanctions screening, and multi-currency FX arbitrage detection — all triggered by natural-language prompts to your AI agent, with no code required from the analyst.
| Data Point | Source | Example |
|---|---|---|
| 📦 Bilateral trade flows by HS commodity code | UN COMTRADE | US→UAE gold (HS 7108): 847 reported transactions |
| 🏢 Corporate registrations and beneficial ownership | OpenCorporates | Pinnacle Commodities Ltd, incorporated BVI 2024-01 |
| 🔑 Legal Entity Identifiers and ownership chains | GLEIF LEI | LEI: 2138003EK6UAINBBUS15, parent: Meridian Holdings |
| 🇬🇧 UK company filings and PSC records | UK Companies House | Nexo Trade UK Ltd, PSC: anonymous BVI trust |
| 🇨🇦 Canadian corporate registry data | Canada Corporations | Apex Resources Inc, status: active, directors: 1 |
| 🇦🇺 Australian Business Numbers and registrations | Australia ABN | ABN 51 824 753 942 — Registered 2023 |
| 🚫 OFAC Specially Designated Nationals and blocked persons | OFAC | SDN match: Al Noor Trading Co |
| 🌐 Global sanctions, PEP, and debarment lists | OpenSanctions | 42 list memberships across 8 sanctions programs |
| 💱 Spot foreign exchange rates (180+ currency pairs) | Exchange Rate Tracker | USD/AED: 3.6725, USD/CNY: 7.2341 |
| 📉 Historical exchange rate time series | Exchange Rate History | 30-day AED/USD history, daily closes |
| 🔍 Domain WHOIS and registration data | WHOIS Domain Lookup | nexotrade.ae: registered 2024-02-14, registrant hidden |
| 📊 OECD international trade and policy statistics | OECD Statistics | Trade openness index, tariff schedules |
| 🌍 IMF world economic and fiscal data | IMF Economic Data | GDP, current account balance, reserve assets |
| 🌐 IP address geolocation and ASN data | IP Geolocation Lookup | 185.220.x.x → AS: Mullvad VPN, SE |
This server exposes 8 tools. Each tool charges a per-call fee when invoked.
| Tool | What it does | Cost |
|---|---|---|
investigate_trade_pair | Bilateral trade flow investigation with Benford-Grubbs invoice analysis and entity sanctions screening | $0.040/call |
detect_invoice_anomalies | Over/under-invoicing detection using Benford chi-squared + Grubbs outlier per HS6 + Fisher meta-p-value | $0.045/call |
map_circular_trade_network | Carousel fraud and round-tripping detection via Tarjan SCC + Johnson cycle enumeration + CSI scoring | $0.045/call |
verify_counterparty_legitimacy | Phantom entity screening using logistic regression on 4 bipartite graph features across 6+ registries | $0.040/call |
analyze_fx_manipulation | FX arbitrage layering detection using Kolmogorov-Smirnov test on convenience score deviations | $0.040/call |
screen_ownership_chain | Sanctions cascade risk via absorbing Markov chain: N = (I−Q)⁻¹, absorption probability B = N·R | $0.045/call |
compute_tbml_risk_score | Comprehensive 0–100 TBML composite score running all 5 forensic algorithms across up to 14 actors | $0.045/call |
generate_sar_evidence_package | FinCEN SAR Form 111 evidence package with regulatory references, severity ratings, and narrative template | $0.050/call |
A single TBML investigation using traditional methods requires a compliance analyst to manually query UN COMTRADE, cross-reference three or four corporate registries, pull OFAC and OpenSanctions results, build a spreadsheet of exchange rate histories, and then synthesize findings against FATF typology guidance. That process takes days. A single case might cost $2,000–$5,000 in analyst time — and it still misses statistical anomalies that require chi-squared tests to detect.
This server compresses that workflow to seconds. An analyst prompts their AI agent ("screen Apex Commodities Ltd in the US–UAE gold corridor") and receives a structured JSON report with Benford p-values, Grubbs outliers by HS6 code, phantom entity probability scores, KS-test FX deviations, Markov chain absorption probabilities, and a pre-populated SAR evidence package — all referencing the exact regulatory provisions that apply.
Beyond speed, the server provides capabilities that are impossible to replicate manually:
Platform benefits for teams using this server via Apify:
eventChargeLimitReached before executing; set a maximum budget per session to prevent runaway costs during exploratory investigationsBSA/AML compliance officers at correspondent banks, trade finance units, and money services businesses use this server to investigate trade transactions flagged by their transaction monitoring systems. Instead of manually correlating SWIFT messages with corporate registry lookups and OFAC checks, the analyst prompts their AI agent with the counterparty name and trade corridor. The server returns a full risk assessment within minutes, with SAR-ready evidence if thresholds are exceeded. This replaces workflows that previously required three days of analyst time per case.
Export compliance teams use verify_counterparty_legitimacy and screen_ownership_chain to screen new trade counterparties before shipment approval. The phantom entity logistic regression catches recently incorporated shell companies with implausible employee-to-revenue ratios, and the absorbing Markov chain quantifies indirect sanctions exposure through layered ownership structures — both patterns that rule-based systems miss. This is particularly relevant for dual-use goods subject to EAR/ITAR restrictions.
FIUs and law enforcement financial investigators use generate_sar_evidence_package to accelerate case preparation. The tool runs the complete 5-algorithm forensic pipeline, then assembles a structured evidence dossier with exact regulatory citations (31 CFR 1020.320, OFAC EO 13224, CDD Rule 31 CFR 1010.230) and a narrative template aligned with FinCEN SAR Form 111. Cases that previously took two weeks to build are packaged in under an hour.
Banks and non-bank trade finance providers (factoring companies, commodity traders) use investigate_trade_pair before issuing letters of credit or documentary collections. The Benford-Grubbs analysis on UN COMTRADE data detects systematic price manipulation in the counterparty's historical trade flows — a leading indicator of invoice fraud that appears before any single transaction becomes suspicious on its own.
Tax authorities and customs agencies use map_circular_trade_network to identify carousel VAT fraud patterns where goods cycle between entities across jurisdictions to generate fraudulent input tax credit claims. Tarjan's SCC identifies the strongly connected components; Johnson's cycle enumeration lists every elementary cycle; the CSI score ranks the most suspicious loops for investigation priority.
Corporate compliance teams conducting enhanced due diligence on high-risk suppliers, joint venture partners, or acquisition targets use compute_tbml_risk_score as a quantitative risk gate. A score above 56 (High) triggers escalation to the legal team. The five-dimension breakdown (price anomaly, counterparty risk, jurisdiction risk, circular trade, entity opacity) identifies which specific factor drove the rating, focusing remediation efforts.
Add the server URL to your MCP client configuration. The server runs in Apify's standby mode — it stays warm and responds within 1–2 seconds of your first prompt.
Claude Desktop — add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"trade-based-money-laundering": {
"url": "https://trade-based-money-laundering-mcp.apify.actor/mcp",
"headers": {
"Authorization": "Bearer YOUR_APIFY_API_TOKEN"
}
}
}
}
Cursor — add to .cursor/mcp.json in your project root or ~/.cursor/mcp.json globally:
{
"mcpServers": {
"trade-based-money-laundering": {
"url": "https://trade-based-money-laundering-mcp.apify.actor/mcp",
"headers": {
"Authorization": "Bearer YOUR_APIFY_API_TOKEN"
}
}
}
}
Other MCP clients — connect to https://trade-based-money-laundering-mcp.apify.actor/mcp using the Streamable HTTP transport. Pass your Apify API token in the Authorization: Bearer header.
Once connected, prompt your AI agent in plain language:
Each tool returns structured JSON. Your AI agent will interpret the statistical findings (Benford p-values, KS statistics, CSI scores) and provide a plain-language summary with recommended next steps.
If generate_sar_evidence_package returns evidence items at high or critical severity, download the full JSON output from the Apify Dataset tab. The package includes regulatory references and narrative templates for FinCEN Form 111 completion — hand this to your BSA officer for review and filing within the 30-day window per 31 CFR 1020.320(b)(3).
investigate_trade_pair| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
reporter_country | string | Yes | — | Exporting/reporting country (ISO code or name, e.g. "US", "China") |
partner_country | string | Yes | — | Importing/partner country (ISO code or name, e.g. "AE", "UAE") |
commodity | string | No | all commodities | HS code or description (e.g. "7108" for gold, "2709" for crude oil) |
entity_name | string | No | — | Specific company to screen against sanctions and corporate registries |
year | string | No | most recent | Trade year to query (e.g. "2025") |
detect_invoice_anomalies| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
trade_corridor | string | Yes | — | Trade corridor query (e.g. "US China electronics", "Brazil UAE gold") |
hs_codes | string[] | No | all codes | Specific HS codes to analyze (e.g. ["7108", "2709"]) |
max_records | number | No | 100 | Maximum trade records to analyze (more = slower but better Benford sample) |
map_circular_trade_network| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
entities | string[] | Yes | — | Country or company names to include in the network (min 1) |
commodity | string | No | — | Focus on a specific commodity (HS code or name) |
max_depth | number | No | 6 | Maximum cycle length to search (higher = more thorough, slower) |
verify_counterparty_legitimacy| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
company_name | string | Yes | — | Company name to verify across registries and sanctions lists |
domain | string | No | — | Company website domain for WHOIS age gap analysis (e.g. "nexotrade.ae") |
jurisdiction | string | No | — | Known jurisdiction ISO code for targeted registry search (e.g. "GB", "CA", "AU") |
analyze_fx_manipulation| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
currencies | string[] | Yes | — | Currency codes to analyze (e.g. ["AED", "CNY", "RUB"]) |
trade_corridor | string | No | — | Trade corridor for contextual trade data (e.g. "US UAE") |
base_currency | string | No | "USD" | Base currency for rate analysis |
screen_ownership_chain| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
entity_name | string | Yes | — | Entity to trace ownership chain for |
lei | string | No | — | LEI code if known (accelerates GLEIF lookup) |
max_depth | number | No | 5 | Maximum ownership chain depth to trace |
compute_tbml_risk_score| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
entity_name | string | Yes | — | Primary entity to investigate |
trade_corridor | string | No | — | Trade corridor context (e.g. "US UAE gold") |
domain | string | No | — | Entity website domain for WHOIS analysis |
currencies | string[] | No | ["AED","CNY","HKD"] | Relevant currencies for FX analysis |
generate_sar_evidence_package| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
entity_name | string | Yes | — | Primary entity under investigation |
trade_corridor | string | No | — | Trade corridor (e.g. "US UAE gold") |
domain | string | No | — | Entity website domain |
currencies | string[] | No | ["AED","CNY","HKD"] | Relevant currencies |
case_reference | string | No | auto-generated | Internal case reference number (e.g. "INV-2026-0441") |
Bilateral trade investigation:
Investigate trade flows between Brazil and UAE for gold (HS 7108) in 2025.
Also check if Ouro Brasil Exportadora Ltda appears on any sanctions lists.
Phantom entity screen:
Use verify_counterparty_legitimacy to screen "Nexo Global Commodities FZE"
with domain nexoglobal.ae, jurisdiction AE.
Full SAR package:
Generate a SAR evidence package for Al Fajr Trading LLC.
Trade corridor: US UAE electronics.
Domain: alfajrtrading.ae
Currencies: AED, CNY
Case reference: INV-2026-0441
investigate_trade_pair — it runs Benford-Grubbs and sanctions screening in a single call. Use findings to decide which specialized tools to invoke next.max_records: 200 for Benford analysis — Benford's law requires a minimum of ~50 values for a reliable chi-squared test. More records improve p-value accuracy, especially for low-volume trade corridors.eventChargeLimitReached and returns a clear error rather than partially completing an expensive call.compute_tbml_risk_score response for a high-risk entity:
{
"entity": "Nexo Global Commodities FZE",
"tbmlRiskScore": {
"score": 71,
"riskLevel": "high",
"dimensions": {
"priceAnomaly": {
"score": 0.82,
"weight": 0.20,
"weighted": 0.164,
"detail": "Benford p=0.003 — strong deviation from expected first-digit distribution. 14 Grubbs outliers across HS codes 7108, 7113, 7115. Fisher meta chi-sq=31.4 (df=28, p=0.0031)."
},
"counterpartyRisk": {
"score": 0.90,
"weight": 0.20,
"weighted": 0.180,
"detail": "2 OFAC SDN matches. 1 OpenSanctions match (SDGT program). Corporate records: 0 LEI found — reduced transparency."
},
"jurisdictionRisk": {
"score": 0.90,
"weight": 0.15,
"weighted": 0.135,
"detail": "Registered in AE (medium-risk). BVI beneficial owner detected via GLEIF. Cayman Islands intermediate holding."
},
"circularTrade": {
"score": 0.50,
"weight": 0.15,
"weighted": 0.075,
"detail": "2 SCCs detected. 3 elementary cycles found, max CSI=4.17. Tarjan SCC across 8-entity network."
},
"volumeAnomaly": {
"score": 0.68,
"weight": 0.15,
"weighted": 0.102,
"detail": "Max single transaction 14.3x above entity mean. Spike in Q4 2024 inconsistent with prior 8-quarter baseline."
},
"entityOpacity": {
"score": 0.80,
"weight": 0.15,
"weighted": 0.120,
"detail": "Incorporated 8 months ago. Domain registered 6 months ago. WHOIS: registrant hidden via PrivacyGuard."
}
},
"compositeScore": 0.776,
"normalizedScore": 71
},
"dataSources": {
"tradeRecords": 94,
"corporateRecords": 23,
"leiRecords": 0,
"sanctionsHits": 3,
"fxRates": 187,
"historicalFxRates": 90,
"oecdRecords": 7,
"imfRecords": 4,
"whoisRecords": 1
}
}
generate_sar_evidence_package response excerpt:
{
"caseReference": "INV-2026-0441",
"entity": "Nexo Global Commodities FZE",
"generatedAt": "2026-03-20T09:14:33.221Z",
"sarReport": {
"overallRisk": "critical",
"estimatedIllicitValue": 4820000.00,
"evidenceItems": [
{
"category": "Sanctions Exposure",
"finding": "Entity \"Nexo Global Commodities\" linked to sanctioned \"Al Baraka Exchange LLC\"",
"severity": "critical",
"evidence": "Direct sanctions edge detected. Program: SDGT",
"regulatoryRef": "OFAC — Executive Order 13224; 50 USC 1705(a)"
},
{
"category": "Trade Pricing",
"finding": "over-invoicing detected: United States -> UAE (HS 7108 Gold)",
"severity": "critical",
"evidence": "Reported unit price $64,200.00 deviates 87.3% from benchmark $34,280.00",
"regulatoryRef": "31 CFR 1020.320 — BSA/AML Suspicious Activity Reporting"
},
{
"category": "Corporate Opacity",
"finding": "Recently incorporated entity in secrecy jurisdiction: \"Nexo Global Commodities\"",
"severity": "high",
"evidence": "Incorporated 8 months ago in Cayman Islands. Pattern consistent with shell company formation.",
"regulatoryRef": "CDD Rule 31 CFR 1010.230 — Beneficial Ownership Requirements"
},
{
"category": "Circular Trade",
"finding": "Reciprocal trade detected: \"Nexo Global Commod\" <-> \"Meridian Metals Ltd\"",
"severity": "medium",
"evidence": "Bidirectional trade flows may indicate carousel fraud or round-tripping.",
"regulatoryRef": "FATF Guidance — Trade-Based Money Laundering (2006, updated 2020)"
}
],
"recommendations": [
"File SAR within 30 days per 31 CFR 1020.320(b)(3)",
"Block transactions and file OFAC report per 31 CFR 501.603",
"Conduct enhanced due diligence on shell entities per CDD Rule 31 CFR 1010.230",
"Investigate carousel fraud indicators per FATF TBML Guidance (2020)"
]
}
}
compute_tbml_risk_score output| Field | Type | Description |
|---|---|---|
entity | string | Entity name as provided |
tbmlRiskScore.score | number | Normalized composite score 0–100 |
tbmlRiskScore.riskLevel | string | low / moderate / elevated / high / critical |
tbmlRiskScore.dimensions.priceAnomaly.score | number | Benford-Grubbs-Fisher anomaly score 0–1 |
tbmlRiskScore.dimensions.counterpartyRisk.score | number | Sanctions proximity and registry gap score 0–1 |
tbmlRiskScore.dimensions.jurisdictionRisk.score | number | FATF jurisdiction risk score 0–1 |
tbmlRiskScore.dimensions.circularTrade.score | number | Circular trade involvement score 0–1 |
tbmlRiskScore.dimensions.volumeAnomaly.score | number | Volume spike score 0–1 |
tbmlRiskScore.dimensions.entityOpacity.score | number | Shell company opacity score 0–1 |
dataSources.tradeRecords | number | UN COMTRADE records retrieved |
dataSources.corporateRecords | number | Total corporate registry records across all registries |
dataSources.leiRecords | number | GLEIF LEI records found |
dataSources.sanctionsHits | number | Combined OFAC + OpenSanctions hits |
dataSources.fxRates | number | Current spot rate records |
dataSources.historicalFxRates | number | Historical rate data points |
generate_sar_evidence_package output| Field | Type | Description |
|---|---|---|
caseReference | string | Provided or auto-generated reference (TBML-{timestamp}) |
entity | string | Entity under investigation |
generatedAt | string | ISO 8601 timestamp |
sarReport.overallRisk | string | low / medium / high / critical |
sarReport.estimatedIllicitValue | number | Estimated dollar value of anomalous trade flows |
sarReport.evidenceItems[].category | string | Trade Pricing / Sanctions Exposure / Corporate Opacity / Circular Trade / FX Manipulation |
sarReport.evidenceItems[].finding | string | Plain-language finding description |
sarReport.evidenceItems[].severity | string | low / medium / high / critical |
sarReport.evidenceItems[].evidence | string | Supporting quantitative evidence |
sarReport.evidenceItems[].regulatoryRef | string | Applicable regulation or guidance |
sarReport.recommendations[] | string[] | Ordered action items with statutory deadlines |
detect_invoice_anomalies output| Field | Type | Description |
|---|---|---|
recordsAnalyzed | number | Total UN COMTRADE records analyzed |
benfordAnalysis.chiSquaredStatistic | number | Chi-squared test statistic (df=8) |
benfordAnalysis.pValue | number | Benford p-value (< 0.05 = non-conforming) |
benfordAnalysis.conformsTobenford | boolean | True if p > 0.05 |
benfordAnalysis.digitDistribution | array | Observed vs expected per digit 1–9 |
grubbsResults | object | Grubbs outlier results per HS6 code |
fisherMetaPValue | number | Combined p-value across all HS6 tests |
overallAnomalyScore | number | 0–1 composite anomaly score |
anomalousInvoices | array | Individual transactions flagged as outliers |
interpretation | string | CRITICAL / ELEVATED / LOW text with statistical context |
screen_ownership_chain output (Markov chain)| Field | Type | Description |
|---|---|---|
markovChainAnalysis.overallCascadeRisk | number | Weighted average absorption probability 0–1 |
markovChainAnalysis.absorbingStates | array | Identified sanctioned/high-risk jurisdictions in chain |
markovChainAnalysis.transientStates | array | Non-sanctioned jurisdictions in chain |
dataSources.corporateRecords | number | Records across all 4 registries |
dataSources.leiRecords | number | GLEIF records found |
dataSources.sanctionsHits | number | OFAC + OpenSanctions combined |
interpretation | string | HIGH RISK / MODERATE RISK / LOW RISK with absorption percentage |
This server uses pay-per-event pricing — you pay per tool call, not per month. Platform compute costs are included.
| Tool | Price per call | 10 calls | 50 calls | 200 calls |
|---|---|---|---|---|
investigate_trade_pair | $0.040 | $0.40 | $2.00 | $8.00 |
detect_invoice_anomalies | $0.045 | $0.45 | $2.25 | $9.00 |
map_circular_trade_network | $0.045 | $0.45 | $2.25 | $9.00 |
verify_counterparty_legitimacy | $0.040 | $0.40 | $2.00 | $8.00 |
analyze_fx_manipulation | $0.040 | $0.40 | $2.00 | $8.00 |
screen_ownership_chain | $0.045 | $0.45 | $2.25 | $9.00 |
compute_tbml_risk_score | $0.045 | $0.45 | $2.25 | $9.00 |
generate_sar_evidence_package | $0.050 | $0.50 | $2.50 | $10.00 |
A full investigation workflow — trade pair investigation, counterparty verification, ownership chain screen, and SAR package — costs approximately $0.175 total across four tool calls. Running 50 complete investigations per month costs under $9.
You can set a maximum spending limit per session in Apify's console. The server checks this limit before executing each tool call and returns a clear error message if the limit is reached, so investigations never exceed your budget.
Compare this to commercial TBML screening platforms that charge $500–$2,000/month for rule-based screening with no statistical algorithms. This server delivers peer-reviewed forensic methods at a fraction of the cost, with no subscription commitment.
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_API_TOKEN")
# Full TBML risk score investigation
run = client.actor("ryanclinton/trade-based-money-laundering-mcp").call(run_input={})
# The server runs in standby mode — connect via MCP protocol instead for tool calls.
# To invoke a specific tool programmatically, POST to the /mcp endpoint:
import requests
response = requests.post(
"https://trade-based-money-laundering-mcp.apify.actor/mcp",
headers={
"Authorization": "Bearer YOUR_APIFY_API_TOKEN",
"Content-Type": "application/json",
},
json={
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "compute_tbml_risk_score",
"arguments": {
"entity_name": "Nexo Global Commodities FZE",
"trade_corridor": "US UAE gold",
"domain": "nexoglobal.ae",
"currencies": ["AED", "CNY"]
}
}
}
)
result = response.json()
score = result["result"]["content"][0]["text"]
print(f"TBML risk assessment: {score}")
// Connect via MCP protocol to the standby server
const response = await fetch(
"https://trade-based-money-laundering-mcp.apify.actor/mcp",
{
method: "POST",
headers: {
"Authorization": "Bearer YOUR_APIFY_API_TOKEN",
"Content-Type": "application/json",
},
body: JSON.stringify({
jsonrpc: "2.0",
id: 1,
method: "tools/call",
params: {
name: "generate_sar_evidence_package",
arguments: {
entity_name: "Nexo Global Commodities FZE",
trade_corridor: "US UAE gold",
domain: "nexoglobal.ae",
currencies: ["AED", "CNY"],
case_reference: "INV-2026-0441",
},
},
}),
}
);
const data = await response.json();
const sarPackage = JSON.parse(data.result.content[0].text);
console.log(`Overall risk: ${sarPackage.sarReport.overallRisk}`);
console.log(`Evidence items: ${sarPackage.sarReport.evidenceItems.length}`);
console.log(`Estimated illicit value: $${sarPackage.sarReport.estimatedIllicitValue.toLocaleString()}`);
for (const rec of sarPackage.sarReport.recommendations) {
console.log(` - ${rec}`);
}
# Invoke the invoice anomaly detection tool
curl -X POST "https://trade-based-money-laundering-mcp.apify.actor/mcp" \
-H "Authorization: Bearer YOUR_APIFY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "detect_invoice_anomalies",
"arguments": {
"trade_corridor": "Brazil UAE gold",
"hs_codes": ["7108", "7113"],
"max_records": 150
}
}
}'
# List all available tools
curl -X POST "https://trade-based-money-laundering-mcp.apify.actor/mcp" \
-H "Authorization: Bearer YOUR_APIFY_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
Every tool call that requires live data dispatches requests to multiple Apify actors simultaneously using Promise.all. The compute_tbml_risk_score and generate_sar_evidence_package tools run up to 14 actors concurrently: UN COMTRADE for bilateral trade flows, OpenCorporates for global corporate registrations, GLEIF for LEI/ownership chain data, UK Companies House, Canada Corporations, Australia ABN for jurisdiction-specific registrations, OFAC and OpenSanctions for sanctions screening, Exchange Rate Tracker and Exchange Rate History for FX analysis, OECD and IMF for macroeconomic context, WHOIS for domain intelligence, and IP Geolocation for network provenance. Each actor call has a 120-second timeout; failed calls return empty arrays so the pipeline continues without interruption.
Raw data from all 14 sources is assembled into a typed TradeNetwork graph with TradeNode and TradeEdge objects. Nodes are typed as country, company, commodity, port, currency, or sanctioned. Edges carry types (exports, imports, owns, transships, fx_flow, sanctions) with weight, tradeValue, quantity, and unitPrice attributes. The graph is deduplicated using a hash-keyed node map, and sanctions edges are added between company nodes and sanctioned entity nodes identified in OFAC/OpenSanctions results. This graph is the shared input for all five forensic algorithms.
Benford-Grubbs-Fisher (invoice anomaly): Trade values are extracted and first digits are counted. A chi-squared statistic is computed against Benford's expected distribution [30.1%, 17.6%, 12.5%, 9.7%, 7.9%, 6.7%, 5.8%, 5.1%, 4.6%] with df=8. The Grubbs test is applied per HS6 code to identify individual outlier transactions (z-score exceeding the critical value at α=0.05 given sample size n). Fisher's method combines all HS6 p-values: X² = −2·Σln(pᵢ), distributed chi-squared with df=2k. The gamma function and regularized incomplete gamma are implemented analytically using Lanczos coefficients.
Tarjan SCC + Johnson cycle enumeration (circular trade): The trade edge set is used to build an adjacency list. Tarjan's algorithm runs in O(V+E) to find all strongly connected components. Johnson's algorithm enumerates all elementary cycles up to max_depth length. Each cycle receives a Circularity Suspicion Index: CSI = cycle_count × avg_value_variance / node_count. Cycles are ranked by CSI descending, with the top structures flagged for investigation.
Logistic regression phantom entity screening: Four features are computed from corporate registry and WHOIS data: age_ratio (company age vs industry median), employee_ratio (claimed employees vs revenue-implied headcount), address_density (co-registered entities at same address), and web_age_gap (company registration date minus domain registration date). The logistic regression sigmoid produces P(phantom) ∈ [0,1]. No ML training is required at runtime — the weights are pre-calibrated against FATF-documented phantom entity typologies.
KS test FX arbitrage detection: Convenience scores (deviation from covered interest parity) are computed for each currency pair using current and historical exchange rate data. Scores are transformed via the normal CDF Φ to produce uniform-distributed p-values under the null hypothesis of no manipulation. The Kolmogorov-Smirnov statistic D = max|F_n(x) − F(x)| is compared against the critical value D_α at α=0.05. Significant results (D > critical) indicate systematic FX convenience score deviations consistent with arbitrage layering. Split transactions below $10,000 that aggregate above $25,000 are also flagged for structuring.
Absorbing Markov chain jurisdictional cascade: Corporate entities and their jurisdictions form the transient states Q; sanctioned and high-risk jurisdictions (30 FATF/OFAC list members) are the absorbing states R. Ownership edges define the transition matrix. The fundamental matrix N = (I−Q)⁻¹ is computed iteratively. Absorption probabilities B = N·R give, for each entity, the probability that its ownership chain eventually reaches a sanctioned jurisdiction. This quantifies indirect sanctions exposure through legitimate intermediary layers.
The five algorithm outputs are combined into the composite TBML score using fixed weights (price anomaly 20%, counterparty risk 20%, jurisdiction risk 15%, circular trade 15%, volume anomaly 15%, entity opacity 15%). For SAR packages, evidence items are assembled, deduplicated, sorted by severity, and annotated with the exact regulatory provision that requires reporting. Recommendations include statutory deadlines (e.g., "File SAR within 30 days per 31 CFR 1020.320(b)(3)").
Provide both entity name and trade corridor together. The most accurate investigations use compute_tbml_risk_score with all four parameters: entity_name, trade_corridor, domain, and currencies. Omitting parameters reduces the number of data sources the server can enrich.
Use HS codes rather than commodity descriptions when possible. UN COMTRADE returns more precise bilateral data when queried with a 4-digit or 6-digit HS code (e.g., "7108" for gold) than with a text description. Look up HS codes at the WTO tariff database before running corridor investigations.
Increase max_records to 150–200 for Benford analysis. Benford's law chi-squared test requires a minimum of approximately 50 values per commodity code for reliable results. Low-volume trade corridors with fewer records will return pValue=1 (conforming) by default, even if anomalies exist. More records = more statistical power.
Run counterparty verification before the full TBML score. verify_counterparty_legitimacy costs $0.040 and takes 20–30 seconds. If it returns zero corporate records and a sanctions match, there is little value in running the $0.045 composite score — the entity is already disqualified.
Use the LEI parameter when known. Providing the LEI code in screen_ownership_chain skips the GLEIF name-search step and goes directly to ownership chain retrieval, which is faster and more accurate for entities with common names.
Schedule periodic corridor monitors. Use Apify's scheduling to run detect_invoice_anomalies on your top 10 trade corridors weekly. Changes in the Benford p-value or Grubbs outlier count over time are more informative than a single snapshot — a trend toward non-conformity signals emerging manipulation.
Combine with company deep research for comprehensive due diligence. After verify_counterparty_legitimacy flags a company, feed the result into Company Deep Research for a full business intelligence report before escalating to legal.
| Actor | How to combine |
|---|---|
| Company Deep Research | After verify_counterparty_legitimacy flags phantom entity indicators, run Company Deep Research on the same entity to build a comprehensive intelligence dossier for case escalation |
| WHOIS Domain Lookup | Bulk-verify domains for a list of counterparties before batch-running counterparty legitimacy checks; domain age and registrant privacy are key phantom entity features |
| SEC EDGAR Filing Analyzer | Cross-reference US-listed entities flagged by TBML analysis against their EDGAR filings to identify material omissions or undisclosed related-party transactions |
| Sanctions Network Analysis | Extend OFAC/OpenSanctions hits into a full network graph to map second and third-degree sanctions exposure beyond what the TBML server's direct entity lookup returns |
| B2B Lead Qualifier | Apply TBML risk scores as a negative filter in trade finance origination pipelines — prospects scoring above 56 are automatically excluded from the qualified leads dataset |
| AML Entity Screening | Pair with AML Entity Screening for broader PEP, adverse media, and regulatory action coverage beyond the OFAC and OpenSanctions lists this server queries |
| Website Tech Stack Detector | Analyze the technology stack of counterparty websites as an additional phantom entity signal — freshly registered domains using generic website builders with no custom infrastructure are consistent with shell company web presence |
conformsTobenford: true even if anomalies exist. The server notes this in the output, but analysts should weight Grubbs results more heavily in these cases.isSignificant: false by default.generate_sar_evidence_package output for critical-risk cases to a compliance team Slack channel or Jira ticket automatically when triggered by an AI agentEmpty trade records despite a valid trade corridor — UN COMTRADE uses ISO 3-digit country codes and specific commodity code formats internally. Try reformatting your query: use "United States" instead of "US", or "840" for the US reporter code. Also check whether the specified year has been published — many countries report with an 18-month lag.
Benford analysis returns conformsTobenford: true for a known suspicious corridor — This usually indicates too few records. The chi-squared test has low power below 50 observations. Increase max_records to 200 and broaden the trade corridor query (drop the specific HS code to retrieve all commodity data for that country pair). You can also run detect_invoice_anomalies separately to see the full Grubbs per-HS6 breakdown.
verify_counterparty_legitimacy returns zero corporate records — Some entities operate under a trading name different from their legal entity name. Try the registered legal name (often visible on invoices or contracts), the holding company name, or append "Ltd", "LLC", "FZE", or "GmbH" to the query. Providing the jurisdiction parameter narrows the registry search and improves match rates.
screen_ownership_chain shows low cascade risk for a known high-risk entity — If the entity has no LEI and minimal registry presence, the Markov model defaults to jurisdiction-heuristic scoring rather than true chain traversal. Provide the LEI code if known. Alternatively, run generate_sar_evidence_package, which supplements the Markov analysis with direct OFAC/OpenSanctions hit detection that does not depend on registry coverage.
FX manipulation analysis returns isSignificant: false for a suspected manipulation case — The KS test requires at least 10 historical rate data points per currency pair. For exotic or thinly traded currencies, the exchange rate history may be insufficient. Try reducing the currency list to the two or three most relevant pairs and increasing the base_currency to match the corridor's primary settlement currency.
What is trade-based money laundering, and why is it hard to detect? TBML uses international trade transactions to transfer illicit value across borders, exploiting the complexity of global supply chains and the volume of legitimate trade. Common schemes include over-invoicing (exporting $10M in goods billed at $40M to move $30M out of the jurisdiction), under-invoicing, phantom shipments, and carousel fraud. It is hard to detect because each individual invoice may look plausible in isolation — statistical methods like Benford's law and KS testing are required to identify the systematic patterns that distinguish manipulation from natural variation.
How does Benford-Grubbs-Fisher work for invoice anomaly detection? The algorithm applies three tests in sequence. First, Benford's law chi-squared goodness-of-fit (df=8) on the distribution of first digits across all trade values — legitimate data follows the logarithmic Benford distribution with ~30.1% starting with 1. Second, Grubbs' test identifies individual outlier transactions per HS6 commodity code by computing z-scores and comparing to the critical value for the sample size. Third, Fisher's method combines all HS6 p-values into a single meta-statistic: X² = −2·Σln(pᵢ), distributed chi-squared with df=2k. This catches both systematic price manipulation (Benford) and individual anomalous invoices (Grubbs) while controlling the family-wise error rate.
What is the absorbing Markov chain jurisdictional risk model? Corporate ownership chains are modeled as a Markov chain where each jurisdiction is a state. Sanctioned jurisdictions (FATF blacklist/greylist, 30 countries) and shell havens (BVI, Cayman, Panama, etc.) are designated absorbing states — once reached, the chain cannot exit. The fundamental matrix N = (I−Q)⁻¹ is computed, where Q is the sub-matrix of transitions between transient (non-sanctioned) states. The absorption probability matrix B = N·R gives, for each entity, the probability that following the ownership chain eventually leads to a sanctioned jurisdiction. This quantifies indirect sanctions exposure through legitimate intermediary layers.
Does a TBML risk score above 56 mean the entity is laundering money? No. The risk score identifies statistical anomalies and structural patterns consistent with TBML typologies described in FATF guidance. A high score warrants escalation and enhanced due diligence, not automatic adverse action. False positives occur — particularly for young companies in legitimate high-risk industries (commodities, metals trading, money services). All high-risk findings must be reviewed by a qualified BSA/AML compliance officer.
How accurate is the phantom entity logistic regression?
The model produces a probability score based on four observable features. It is calibrated against FATF-documented phantom entity typologies, not against a labeled training dataset of confirmed cases. Accuracy improves when all four features can be computed (requires both corporate registry data and WHOIS data). The model has higher false positive rates for single-director companies, shared registered office addresses (common in professional services), and legitimately young startups. Use the detailed dataSources counts in the output to assess data quality before relying on the score.
Can the SAR evidence package be filed directly with FinCEN? The package provides structured evidence items, regulatory references aligned with Form 111 categories, and a narrative template. It is designed to accelerate — not replace — the compliance officer's filing process. SAR filing requires review and approval by a qualified BSA/AML compliance officer, a determination that the filing threshold has been met ($5,000 for known or suspected violations), and submission through the FinCEN BSA E-Filing System. The output is court-ready in format but requires human review and sign-off.
How many tool calls does a complete TBML investigation require?
A standard investigation workflow uses 4 tool calls: investigate_trade_pair (initial assessment, $0.040), verify_counterparty_legitimacy (entity verification, $0.040), screen_ownership_chain (ownership chain, $0.045), and generate_sar_evidence_package if evidence warrants ($0.050). Total cost: $0.175. The compute_tbml_risk_score tool ($0.045) runs all five algorithms in a single call and can replace the first three calls when a comprehensive view is needed immediately.
Is it legal to access UN COMTRADE, corporate registry, and sanctions data this way? UN COMTRADE is a publicly available United Nations database published for research and policy use. Corporate registries (UK Companies House, GLEIF, OpenCorporates) provide public access to their data. OFAC and OpenSanctions are official government and NGO sanctions lists intended for compliance screening. WHOIS data is publicly published under ICANN policy. All 14 data sources are public. See Apify's guide on web scraping legality for further context.
How is this different from commercial AML screening platforms like World-Check or Dow Jones Risk? Commercial platforms focus primarily on PEP and sanctions database matching against curated proprietary lists, at subscription costs of $500–$5,000+/month. This server combines sanctions matching (OFAC + OpenSanctions) with statistical trade forensics (Benford-Grubbs invoice analysis), network analysis (Tarjan SCC, absorbing Markov chain), and multi-registry corporate verification — capabilities that most commercial platforms do not offer. It is particularly suited for trade finance TBML investigation rather than general onboarding screening. Cost per investigation is approximately $0.04–$0.05 with no subscription commitment.
Can I schedule automated corridor monitoring to detect emerging TBML patterns?
Yes. Use Apify's built-in scheduler to run detect_invoice_anomalies on a fixed list of trade corridors weekly or monthly. Store the Benford p-value and Grubbs outlier count from each run and compare across periods — a trend toward statistical non-conformity signals emerging invoice manipulation before any individual transaction becomes suspicious. Connect the schedule to a webhook that posts results to your compliance team's Slack channel when anomaly scores exceed a threshold.
How long does a complete TBML risk score investigation take?
compute_tbml_risk_score runs up to 14 actors in parallel with a 120-second timeout per actor. In practice, the parallel execution means the call typically completes in 60–90 seconds for most entity/corridor combinations. generate_sar_evidence_package runs the same data collection pipeline plus all five scoring algorithms, adding approximately 5–10 seconds of computation. Simple tools like detect_invoice_anomalies (single UN COMTRADE query) complete in 15–30 seconds.
What happens if one of the 14 data sources is unavailable?
Each actor call is wrapped in a try/catch with a 120-second timeout. If an actor fails or times out, its result is replaced with an empty array and the pipeline continues. The dataSources field in the output reports exactly how many records each source returned, so analysts can see immediately which sources contributed data and which returned nothing. A key source returning zero records (e.g., OFAC returning nothing for a query) warrants a manual verification step rather than relying solely on the automated result.
If you encounter issues, you can help us debug faster by enabling run sharing in your Apify account:
This lets us see your run details when something goes wrong, so we can fix issues faster. Your data is only visible to the actor developer, not publicly.
Found a bug or have a feature request? Open an issue in the Issues tab on this actor's page. For custom TBML investigation workflows, enterprise integrations, or custom algorithm calibration, reach out through the Apify platform.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Trade-Based Money Laundering Detection MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/trade-based-money-laundering-mcp)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.