Opensanctions Mcp

io.github.scka-de由 GitHub 帳號 scka-de 發布v0.1.1更新於 Oct 24, 2026

Sanctions screening and PEP checks via OpenSanctions API for AI agents

已驗證STDIO僅桌面安全與監控商業與電商

概覽

AI 產生的概覽

一個本機 MCP 伺服器,讓助理透過 OpenSanctions 對個人與公司進行制裁及政治公眾人物名單篩查,並取得實體詳細資料。

可以做什麼
依名稱或關鍵字搜尋 OpenSanctions 資料庫,找出實體及相關公司或人員。使用姓名、出生日期、國籍等結構化資料,對個人或公司進行制裁與政治公眾人物名單篩查。取得實體完整詳細資料,包括與公司、關係人及家庭成員的關聯。列出可用的制裁與政治公眾人物資料集,並查看特定資料集的發布者、實體數量與更新時間。以一次呼叫完成比對、取得詳細資料與關聯梳理的完整合規調查。
適用情境
適合需要查核某人或某公司是否列於制裁或政治公眾人物名單的情境,或在合規調查中查詢 OpenSanctions 中的實體及其關聯關係。
執行需求
以 npm 套件形式透過 npx 在本機執行,需要 Node.js。篩查類工具需要 OPENSANCTIONS_API_KEY 中的 OpenSanctions API 金鑰;資料集列表與詳細資料不需金鑰。可選擇將 OPENSANCTIONS_API_URL 指向自架的 yente 執行個體,此時不需金鑰。需要能存取 OpenSanctions API 的網路。
安裝前請注意
OPENSANCTIONS_API_KEY 是金鑰,會傳送到所設定的 API 端點。篩查查詢包含姓名、出生日期、國籍等個人資料,會傳送給 OpenSanctions 或自架的 yente 執行個體。結果僅供參考,不構成法律或合規建議;採取行動前應透過官方來源核實比對結果。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Opensanctions Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

opensanctions-mcp

MCP server for sanctions screening and PEP checks via the OpenSanctions API.

Lets AI agents (Claude, Cursor, Windsurf, GPT) screen persons and companies against 320+ sanctions and PEP lists from OFAC, EU, UN, UK HMT, and more.

Disclaimer: This tool provides informational data only. It is not legal or compliance advice. Always verify matches with official sources before taking action.

Quick Start

Add to your MCP client config:

json
{  "mcpServers": {    "opensanctions": {      "command": "npx",      "args": ["-y", "opensanctions-mcp"],      "env": {        "OPENSANCTIONS_API_KEY": "your-key-here"      }    }  }}

Get a free API key at opensanctions.org/api.

Where to add this config

  • Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
  • Cursor: Settings > MCP Servers
  • Windsurf: ~/.windsurf/config.json

Tools

search_entities

Search the OpenSanctions database by name or keyword.

"Search for entities named Viktor Bout""Find companies related to Iran sanctions"

match_entity

Screen a person or company against sanctions and PEP lists using structured properties. This is the primary screening tool.

"Screen Viktor Bout, born 1967-01-13, Russian national, against sanctions lists""Check if Acme Corp is on any EU sanctions list"

get_entity

Fetch complete details for a specific entity, including relationships to other entities (companies, associates, family members).

"Get full details for entity NK-2Ciy8EG7jz1YHMGCxYLb25"

list_datasets

List available sanctions and PEP datasets. No API key required.

"What sanctions lists are available?""Show me EU-related datasets"

get_dataset

Get details about a specific dataset (publisher, entity count, last updated). No API key required.

"Tell me about the OFAC SDN list"

investigate_entity

Run a full compliance investigation in one call: match, fetch details, map relationships, and return structured data.

"Investigate Viktor Bout for sanctions exposure""Run a compliance check on Acme Corp, jurisdiction Belgium"

Configuration

Environment VariableRequiredDefaultDescription
OPENSANCTIONS_API_KEYYes*—API key for the hosted OpenSanctions API. Get one at opensanctions.org/api.
OPENSANCTIONS_API_URLNohttps://api.opensanctions.orgAPI URL. Set to your self-hosted yente instance.
OPENSANCTIONS_DATASETNodefaultDataset to screen against. default includes all 320+ sources.
OPENSANCTIONS_MAX_RETRIESNo3Max retries for failed API calls.
DEBUGNo—Set to any value to enable debug logging.

*Not required for list_datasets, get_dataset, or when using a self-hosted yente instance without auth.

Self-hosted yente

If you run your own yente instance, point the server at it:

json
{  "mcpServers": {    "opensanctions": {      "command": "npx",      "args": ["-y", "opensanctions-mcp"],      "env": {        "OPENSANCTIONS_API_URL": "http://localhost:8000"      }    }  }}

No API key needed for self-hosted yente.

Development

bash
git clone https://github.com/scka-de/opensanctions-mcp.gitcd opensanctions-mcpnpm installnpm test          # run tests (fixtures, no API key needed)npm run build     # compile to dist/npm run dev       # run in dev modenpm run lint      # check code style

License

MIT

來源:README.md,提交 99b5ebc

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

1
  1. v0.1.1最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分