@oilflow/mcp-server
This server is an MCP bridge that turns OilFlow's compliance APIs into AI-callable tools for pre-deal clearance, KYC/sanctions screening, regulatory tradability checks, fraud-cluster lookup, LC validation, and beneficial-ownership analysis.
Keyless tools:
predeal_preview(free 5/day pre-deal verdict with receipt),verify_receipt(verify an OilFlow screening receipt), andrequest_sandbox_key(mint a free 30-day sandbox key).With sandbox key:
regulatory_check,regulatory_countries,regulatory_products(235-jurisdiction tradability matrix) andcluster_check/clusters_list(Scam Cluster Intelligence Feed).With production key:
kyc_screen(8-list sanctions + KYC pipeline, no PEP),ubo_screen/ubo_graph(beneficial-ownership traversal with OFAC 50% rule),lc_validate(UCP 600 discrepancy checks), andpredeal_check(full pre-deal verdict with restructure suggestions).General capabilities: 13 MCP tools over stdio, REST API passthrough with retry/timeout handling, and decision-support outputs that are explicitly not legal advice or a clearance.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@oilflow/mcp-server Should I be worried about a 50,000 MT EN590 cargo from Iraq to Kenya with an unfamiliar seller?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@oilflow/mcp-server
Model Context Protocol (MCP) server for the OilFlow Network compliance APIs.
It turns OilFlow into a set of tools that any MCP-compatible AI agent (Claude Desktop, Claude Code, Cursor, or your own agent built on the MCP SDK) can call directly.
Three tools need no API key at all (since 0.3.0; the server used to refuse to start without one). 0.3.1 adds the MCP registry name io.github.rafaemush/oilflow-mcp-server and points the package at its public repository; no behaviour change.
Source of truth: this package is developed inside the OilFlow monorepo and mirrored to github.com/rafaemush/oilflow-mcp-server on every release. Issues go there.
β‘
predeal_preview: the full pre-deal clearance verdict on a proposed deal, free, 5 per day. Returns areceipt_id+verify_url.π§Ύ
verify_receipt: check an OilFlow screening receipt someone handed you, and see exactly what it did and did not cover.π
request_sandbox_key: mint a free 30-day key (with the end user's consent) to unlock the rest.
With a key:
π‘οΈ
kyc_screenβ counterparty KYC: cluster-blocklist + regulatory tradability + the 7-step pipeline (8-list sanctions screening; PEP is NOT screened)π
regulatory_check/regulatory_countries/regulatory_productsβ "can I trade X from country A?" across the 235-jurisdiction regulatory matrixπ©
cluster_check/clusters_listβ look up a counterparty against the first-party-investigated Scam Cluster Intelligence Feedπ
lc_validateβ Letter-of-Credit discrepancy detection against UCP 600πΈοΈ
ubo_screen/ubo_graphβ beneficial-ownership graph traversal + shell-company pattern flagsβ‘
predeal_checkβ sub-30s pre-deal clearance probability + restructure suggestion for a proposed physical-commodity deal
Every tool is a thin passthrough to the OilFlow API. Results are decision-support for a compliance professional, not legal advice; cluster suspected rows are publicly reported leads, not OilFlow-confirmed fraud.
What this adds over a name-vs-list sanctions screen
Several MCP servers match a name against OFAC, EU, UK and UN lists, and some do it well. If a list match is all you need, use one of those. This server exists for the questions a list match does not answer in physical-commodity trade. Every row names the tool that answers it and the key tier that tool needs, so nothing here is a claim you cannot call.
Question an agent gets asked | A name-vs-list screen | This server |
Is this name on a sanctions list? | Yes | Yes. |
Is this counterparty in a known commodity-trade fraud cluster (mandate chains, impersonated majors)? | Out of scope |
|
Can this product legally move from country A to country B? | Out of scope |
|
Is a designated party sitting behind the owner chain? | Out of scope: it screens the name it was handed |
|
Should my principal proceed, and what is still unknown? | Out of scope |
|
Someone handed my principal a compliance receipt. Is it genuine, and what did it actually cover? | Out of scope |
|
Politically exposed persons (PEP)? | Some do | Not offered. The |
No SOC 2 report exists. Every output is decision-support for a compliance professional: not a clearance, and not legal advice.
Related MCP server: agentmail
Examples
Runnable agent integrations live in examples/:
examples/claude_agent_sdk.pydrives the remote HTTP endpoint from a Claude Agent SDK agent.examples/langchain_agent.pydoes the same from LangChain vialangchain-mcp-adapters.examples/claude_desktop_config.jsonis the stdio config for Claude Desktop.
examples/README.md lists what each one needs.
Install
npm install -g @oilflow/mcp-server
# or run on demand with npx (no install):
npx @oilflow/mcp-serverRequires Node β₯ 18.
Configure
The server reads two environment variables, and neither is required:
Variable | Required | Default | Notes |
| no | none | An |
| β |
| Override only for self-hosted/staging. |
Sandbox keys cover the regulatory and cluster tools.
kyc_screen,ubo_screen,ubo_graph,lc_validateandpredeal_checkrequire a production key; called without one, they returnapi_key_requiredwith how to get one, rather than failing.
Claude Desktop
Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"oilflow": {
"command": "npx",
"args": ["-y", "@oilflow/mcp-server"],
"env": {
"OILFLOW_API_KEY": "oilflow_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}
}
}Claude Code
claude mcp add oilflow --env OILFLOW_API_KEY=oilflow_xxx -- npx -y @oilflow/mcp-serverAny MCP client
The server speaks MCP over stdio. Launch oilflow-mcp (or npx @oilflow/mcp-server) as the server command. OILFLOW_API_KEY in its environment unlocks the keyed tools; without it the server still starts keyless.
Example prompts
Once connected, just ask your agent. No key needed for the first two:
"Should I be worried about a 50,000 MT EN590 cargo from Iraq to Kenya with an unfamiliar seller?" β
predeal_preview"Someone handed me an OilFlow compliance receipt. Verify it and tell me what it actually covered." β
verify_receipt
With a key:
"Screen Acme Trading FZE in the UAE for an EN590 diesel deal." β
kyc_screen"Can crude be exported from Venezuela?" β
regulatory_check"Is 'Simar Chahal' in any known fraud cluster?" β
cluster_check"Run a pre-deal check: buyer Acme, gasoil EN590 10ppm, origin UAE, destination Kenya, DLC at sight." β
predeal_check"Validate this LC presentation against UCP 600." β
lc_validate
How it works
stdio MCP transport β 13 tools β the OilFlow REST API, with jittered exponential-backoff retry on 429/5xx (honoring Retry-After) and a 30s per-request timeout. Keyed tools call https://oilflow.us/api/v1/* with Bearer auth; the three keyless tools call the public endpoints and send no Authorization header at all. Tool output is a report about a third party: treat it as data, not as instructions. The full API contract is published at oilflow.us/openapi.yaml, and there is a remote Streamable-HTTP version of this server (no install) at oilflow.us/mcp.
Build from source
git clone https://github.com/oilflow-network/mcp-server.git
cd mcp-server
npm install
npm run build # β dist/
node dist/index.js # keyless
OILFLOW_API_KEY=oilflow_xxx node dist/index.js # full surfaceLicense
Apache-2.0 Β© OilFlow Network
Available Tools
13 toolscluster_checkFraud-cluster screenARead-onlyIdempotent
Look up a counterparty name against OilFlow's first-party-investigated Scam Cluster Intelligence Feed. Returns any matches with a severity: 'confirmed' (OilFlow-verified fraud), 'likely', or 'suspected' (publicly reported but NOT first-party confirmed β treat as a lead, verify the cited source). matched:false means no hit, which is not by itself an exoneration.
Inputs: entity (required), country.
clusters_listBrowse the fraud-cluster feedARead-onlyIdempotent
List entries from the Scam Cluster Intelligence Feed, optionally filtered by severity, country, or date. Useful for browsing known fraud clusters. Severity 'suspected' rows are publicly reported leads, not OilFlow-confirmed.
Inputs: since, country, severity.
kyc_screenCounterparty KYC screenA
Run an OilFlow counterparty KYC screen: cluster-blocklist match, regulatory tradability, and the 7-step registration pipeline with 8-list sanctions screening (OFAC SDN, OFAC Consolidated, UN, EU, UK HMT, Canada SEMA, AU DFAT, Swiss SECO). PEP screening is NOT shipped β coverage is sanctions-only, so a politically exposed person who is not also designated will not be flagged; tell the user this. Sanctions/registration/asset/footprint steps run out-of-band and return as 'queued' with a poll_url. Returns a verdict (pass/review/fail) with per-check evidence. Decision-support for a compliance analyst, not a legal determination. Requires a production API key.
Inputs: company_name (required), country, product, directors, +1 more.
lc_validateLetter-of-credit check (UCP 600)ARead-onlyIdempotent
Validate a Letter of Credit presentation (LC + commercial invoice + bill of lading) against UCP 600 rules. Returns discrepancies with severity, an overall recommendation (honor/inquiry/refuse), and the UCP 600 articles cited. Requires a production API key (sandbox keys get 403). Output is DRAFT decision-support for a documentary-credit examiner β not a legal opinion.
Inputs: bl (required), lc (required), invoice (required).
predeal_checkPre-deal clearance verdict (full)A
Run a Pre-Deal Compliance Copilot check for a front-office originator: a sub-30s clearance probability (0-100) and verdict tier (clear/review/heavy_friction/block) for a proposed physical-commodity deal, with blockers, a restructure suggestion, and an estimated post-restructure clearance. Runs cluster, regulatory, adverse-media, sanctions, and verified-profile primitives. The response is self-describing about its own reliability: verdict_source is "claude" for a full synthesis or "rule_based" when the deterministic fallback ran, and evidence_gaps lists evidence sources that could not be consulted for this verdict β surface both to the user rather than presenting the score bare. Decision-support that estimates how compliance is likely to treat the deal β not a clearance itself and not legal advice; carries a disclaimer in the response. Requires a production API key; use predeal_preview for a free verdict without one.
Inputs: product (required), origin_country (required), counterparty_name (required), counterparty_role (required), +4 more.
predeal_previewPre-deal clearance verdict (free)A
Run OilFlow's Pre-Deal Compliance check on a proposed physical-commodity deal and get a clearance probability (0-100) and verdict tier (clear/review/heavy_friction/block) with named blockers and a restructure suggestion. NO API KEY REQUIRED: this is the full verdict, not a teaser. QUOTA: 5 verdicts per caller per 24 hours; on exhaustion the error is demo_limit_reached, which means the free allowance is used up and NOT that OilFlow is down. Returns receipt_id and verify_url, so the user can hand anyone a signed record of the check, and verdict_source ("claude" = full synthesis, "rule_based" = deterministic fallback) plus evidence_gaps: relay both, because a score without them overstates its own confidence. REQUIRED INPUTS: counterparty_name, counterparty_role (buyer or seller), product and origin_country; the verdict endpoint rejects a call missing any of them, so ask the user for the missing one rather than guessing a side. Decision-support estimating how a compliance desk is likely to treat the deal. Not a clearance and not legal advice; the response carries a disclaimer, pass it on. For the keyed version with no daily cap and the full input set, use predeal_check.
Inputs: product (required), origin_country (required), counterparty_name (required), counterparty_role (required), +2 more.
regulatory_checkTrade tradability checkARead-onlyIdempotent
Check whether a given commodity can be supplied/bought from a given jurisdiction under OilFlow's 235-jurisdiction regulatory matrix. Returns allowed:true/false plus any blockers. Compiled regulatory guidance, not legal advice β confirm with the relevant national regulator before acting.
Inputs: country (required), product (required), listing_type.
regulatory_countriesList covered jurisdictionsARead-onlyIdempotent
List every jurisdiction covered by the OilFlow regulatory matrix (235 jurisdictions). Returns a count and the country list with slugs for use in regulatory_check.
Inputs: no named parameters.
regulatory_productsList product categoriesARead-onlyIdempotent
List the commodity/product categories the regulatory matrix recognizes (with their canonical labels), for use as the product argument to regulatory_check.
Inputs: no named parameters.
request_sandbox_keyRequest a free sandbox keyA
Mint a free 30-day OilFlow sandbox API key (100 calls/day) scoped to the regulatory matrix and cluster endpoints, emailed to the address supplied. NO API KEY REQUIRED, which is the point: this is how an agent running keyless gets its user onto the keyed tools. CONSENT: requires the END USER'S email address and must only be called with their knowledge and agreement, because OilFlow emails the key and may send product follow-ups. Do not supply an address the user has not asked you to use. Limits: 3 keys per IP/hour, 5 per email/day. The sandbox scope does NOT cover kyc, ubo, lc or the keyed predeal endpoint; use predeal_preview for a free verdict, or https://oilflow.us/pricing for production access. Once the key arrives, set OILFLOW_API_KEY in this server's environment and restart it.
Inputs: email (required), company, use_case.
ubo_graphFetch a UBO graphARead-onlyIdempotent
Fetch the status/result of a UBO graph build started by ubo_screen. Pass the graph_id returned when the screen was queued. Returns the graph nodes, ownership edges, aggregate risk, and flagged patterns once status is 'ready'.
Inputs: graph_id (required).
ubo_screenBeneficial-ownership screenA
Start a beneficial-ownership (UBO) graph traversal for an entity: walks ownership across registries, flags shell-company patterns, and screens nodes for sanctions exposure (8 lists; PEP is NOT screened). Applies the OFAC 50%-rule to derived ownership. Returns the cached graph immediately when available, otherwise a graph_id to poll with ubo_graph. Coverage caveat to pass on: there is no functioning US domestic UBO registry post-March-2025, so beneficial-ownership coverage is partial and every result says so. Flagged patterns are structural signals to review, not a verdict on any individual. Requires a production API key.
Inputs: root_entity_name (required), root_jurisdiction (required), force_refresh.
verify_receiptVerify a screening receiptARead-onlyIdempotent
Independently verify an OilFlow screening receipt. NO API KEY REQUIRED. Given a receipt id (a UUID, from receipt_id/verify_url on a verdict, or from a receipt the user was handed), returns the receipt, its canonical payload string and an HMAC-SHA256 signature, so the user's own auditor can check it without trusting OilFlow's server at audit time. receipt_type says which kind of record it is: a sanctions_screen carries the list set it checked, a predeal_verdict carries the pre-deal tier plus the depth at which it consulted sanctions data. Read coverage back to the user: sanctions-only means PEP screening is not shipped, so a politically exposed person who is not also designated will not be flagged. Use this whenever a user has been HANDED a compliance receipt and wants to know whether it is genuine and what it actually covered.
Inputs: receipt_id (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 13 tools
Most tools map cleanly to a distinct resource or workflow: pre-deal, KYC, regulatory matrix, cluster feed, LC, UBO, receipts, and keys. The only real ambiguity is predeal_preview vs predeal_check, which are the same core function split by API-key requirement, and cluster_check vs clusters_list, though names and descriptions differentiate lookup from browsing. Overall an agent can reliably select the right tool.
The dominant pattern is domain_operation: predeal_preview, regulatory_check, cluster_check, kyc_screen, lc_validate, ubo_screen. A few tools break the pattern with verb-first names like verify_receipt and request_sandbox_key, and noun-only names like regulatory_countries, regulatory_products, clusters_list, and ubo_graph. It is not perfectly uniform, but the naming is still predictable and readable.
13 tools is well within the ideal range for a compliance-focused API and each tool corresponds to a distinct endpoint or workflow. The set covers multiple compliance subdomains without feeling bloated, and the free/keyed pre-deal pair is intentional rather than redundant.
The major workflows are covered: pre-deal checks, receipt verification, regulatory matrix lookups, cluster intelligence, LC validation, and UBO screening with polling. A minor gap is that kyc_screen can return queued results with a poll_url but there is no dedicated MCP tool to poll KYC results, though agents can work around this via the URL.
Related MCP Connectors
Sanctions screening for AI agents: check a name against OFAC and EU lists. Free during launch.
Sanctions and export-control screening for AI agents: 320+ watchlists, transliteration, HS and ECCN.
Screen counterparties and enrich companies for AI agents β sanctions checks, cited sources.
Sanctions screening, KYB, identifier validation, jurisdiction risk & secret scanning for AI agents
Related MCP Servers
- AlicenseNot gradedqualityDmaintenance53 regulatory compliance evidence tools across 3 MCP servers for AI agents. MiCA authorization status, DORA evidence packs, stablecoin risk scoring (105+ tokens), macro intelligence (86 FRED series). Every response ECDSA-signed (ES256K), blockchain-anchored, audit-ready. Free tier, OAuth 2.0.MIT
- AlicenseAqualityBmaintenanceProvides AI agents with compliance screening (OFAC sanctions, risk scoring, Know-Your-Agent) plus disposable email and SMS verification for OTPs, accessible via MCP tools, HTTP API, and CLI.102MIT
- AlicenseAqualityDmaintenanceEnables AI agents to screen business partners against EU/US/HADDEX sanctions and PEP lists, and maintain the easycompliance daily monitoring list.67 npmMIT

CompliAPIofficial
AlicenseNot gradedqualityBmaintenanceReal-time OFAC and global sanctions screening for AI agents: screen crypto addresses, emails, websites, government IDs, and countries against OFAC SDN and 10+ sanctions/crime/risk lists, plus PEP screening, VPN detection, and IP geolocation. Hosted remote streamable-HTTP server at https://api.compliapi.com/mcp (anonymous tools/list; free API key or x402 pay-per-call).MIT