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 分