overseas-legal-compliance

Overseas Legal Compliance Search: A one-stop legal search tool covering 230+ jurisdictions for querying and comparing laws and regulations. Trigger phrases include: search foreign laws, overseas compliance, GDPR, AI Act, HIPAA, CCPA, multi-country law comparisons, cross-border investment compliance, data protection compliance, and security framework mappings (ISO↔NIST↔SOC2). Supports installing MCP databases by country or all at once.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "overseas-legal-compliance" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d6fb9f11a88e55f89754938c00719d5c062fda065c930d80579a27d3802ba0f8. Verify the upstream source and version against https://skillhub.cn/skills/user_b8af0005/overseas-legal-compliance before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Overseas Legal Compliance Search: A one-stop legal search tool covering 230+ jurisdictions for querying and comparing laws and regulations. Trigger phrases include: search foreign laws, overseas compliance, GDPR, AI Act, HIPAA, CCPA, multi-country law comparisons, cross-border investment compliance, data protection compliance, and security framework mappings (ISO↔NIST↔SOC2). Supports installing MCP databases by country or all at once.

0 Downloads

Introduction source: third_party · user_b8af0005 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: overseas-legal-compliance
slug: overseas-legal-compliance
displayName: 出海合规审查
license: MIT
version: 1.0.0
description: "出海合规法律检索 — 自动安装MCP + 一站式查询全球230+法域法律法规。触发词:查外国法律、出海合规、GDPR、AI Act、HIPAA、CCPA、多国法规对比、跨境投资合规、数据保护合规、安全框架映射(ISO 27001↔NIST↔SOC2)。支持一键安装全部MCP数据库或按国家名称安装。"

<!-- author: 陆凌燕(北京德恒(无锡)律师事务所) -->

出海合规法律检索

自动安装 MCP 数据库 + 一站式查询全球法律。先装数据库,再查法规。全程不需要编程基础。

核心规则:装完再查,不许跳过

每次触发此 Skill 时,第一条消息必须先做两件事:

① 环境预检(新增 — 来自几十次调试的教训)

mcp.json 里的 command 跑在用户本地系统上,不是 WorkBuddy 沙箱。先检查这三个:

which node    → npx 需要    (Ansvar 国别库全系列)
which python3 → py MCP 需要 (courtlistener 本地版)
which pipx    → pipx 需要   (仅 security-controls)

检查结果处理:

缺失项 影响 处理
Node.js (npx) ❌ 所有 Ansvar 国别库装不了 让用户去 https://nodejs.org 下 LTS 版,一路点「下一步」
python3 ⚠️ 仅 courtlistener 本地版 / security-controls 本地版需要 缺的话跳过这两个,用远程 URL 替代
pipx ⚠️ 仅 security-controls 需要 缺的话 pip3 install pipx(你直接帮装),或跳过 security-controls

② 检查 mcp.json 里有没有出海合规 MCP

读取 ~/.workbuddy/mcp.json,扫描 mcpServers 中是否包含以下任意一个 key:

legal-data-hunter, eu-regulations, us-regulations, courtlistener,
taiwanese-law, open-legal-compliance-mcp, security-controls, yuandian-mcp,
german-law, french-law, uk-law, japanese-law, korean-law,
singapore-law, indian-law, australian-law, saudi-law, uae-law,
canadian-law, italian-law, spanish-law, dutch-law, swedish-law,
brazilian-law, austrian-law, belgian-law, danish-law, finnish-law,
norwegian-law, irish-law, chinese-law

② 如果一个都没有 → 主动提出安装

不要让用户自己装。你直接动手写 mcp.json。 问用户一句话,然后立刻开工:

我帮你装出海的法规数据库。你先告诉我需要查哪些国家/地区的法律? 比如「德国」「日本」「欧盟」……我帮你装对应的。不建议一下全装,用哪个装哪个最快。

如果用户坚持全装,再提醒:「全部 7 个核心库约需 2-3 分钟,每个 10-30 秒。建议先装 3-4 个常用的,不够再加。」

等用户选了之后,按下方清单写入 ~/.workbuddy/mcp.json。


数据库安装清单

核心 7 件套(按需选用,不建议一次全装)

这 7 个覆盖了 90% 出海合规场景。全部无需 API Key,本地运行。

{
  "legal-data-hunter": {
    "url": "https://legaldatahunter.com/mcp",
    "description": "全球法律广域检索 — 230+法域初筛定位",
    "disabled": false
  },
  "eu-regulations": {
    "type": "stdio",
    "command": "npx",
    "args": ["-y", "@ansvar/eu-regulations-mcp"],
    "description": "欧盟法规库 — GDPR/AI Act/DORA等49部法规全文",
    "disabled": false
  },
  "us-regulations": {
    "type": "stdio",
    "command": "npx",
    "args": ["-y", "@ansvar/us-regulations-mcp"],
    "description": "美国合规法规 — HIPAA/CCPA/SOX等联邦与州法律",
    "disabled": false
  },
  "courtlistener": {
    "url": "https://mcp.courtlistener.com/",
    "description": "美国判例检索 — 900万+判例、PACER文书(首次需OAuth登录)",
    "disabled": false
  },
  "taiwanese-law": {
    "url": "https://taiwanese-law-mcp.vercel.app/mcp",
    "description": "台湾法规检索 — 判例、法规数据库、大法官解释",
    "disabled": false
  },

> 💡 台湾法 MCP 有「离线兜底」:`references/tw-law-data/` 包含预制缓存数据(8,266 部法规目录 + 民法全文 + 劳基法全文 + 813 条大法官解释索引)。如果远程 MCP 连不上,直接用 Grep 搜这些 JSON 文件作为本地知识库。

  "open-legal-compliance-mcp": {
    "type": "stdio",
    "command": "npx",
    "args": ["-y", "@ansvar/open-legal-compliance-mcp"],
    "description": "美欧英加法规聚合 — 多法域并行检索",
    "disabled": false
  },
  "security-controls": {
    "type": "stdio",
    "command": "scf-mcp",
    "description": "安全框架映射 — ISO27001/NIST/SOC2等262个框架双向对照",
    "disabled": false
  },
  "yuandian-mcp": {
    "url": "https://mcp.legalmind.cn/",
    "description": "华宇元典法律数据 — 中国大陆法规语义检索、法条详情、案例全文",
    "disabled": false
  }
}

按国家安装(用户说"德国"就装德国的)

全部无需 API Key。 配置模板(把 {country-en} 和 {中文名} 替换即可):

"{country-en}-law": {
  "type": "stdio",
  "command": "npx",
  "args": ["-y", "@ansvar/{country-en}-law-mcp"],
  "description": "{中文名}法规检索",
  "disabled": false
}

完整映射表(共 53 国,2026-08-06 逐一验证 npm 存在):

区域 用户说 配置 key npm 包名
亚太 中国 chinese-law @ansvar/chinese-law-mcp
日本 japanese-law @ansvar/japanese-law-mcp
韩国 korean-law @ansvar/korean-law-mcp
新加坡 singapore-law @ansvar/singapore-law-mcp
澳大利亚/澳洲 australian-law @ansvar/australian-law-mcp
印度 indian-law @ansvar/indian-law-mcp
越南 vietnamese-law @ansvar/vietnamese-law-mcp
印尼/印度尼西亚 indonesian-law @ansvar/indonesian-law-mcp
马来西亚 malaysian-law @ansvar/malaysian-law-mcp
巴基斯坦 pakistani-law @ansvar/pakistani-law-mcp
孟加拉国 bangladeshi-law @ansvar/bangladeshi-law-mcp
欧洲 英国 uk-law @ansvar/uk-law-mcp
德国 german-law @ansvar/german-law-mcp
法国 french-law @ansvar/french-law-mcp
意大利 italian-law @ansvar/italian-law-mcp
西班牙 spanish-law @ansvar/spanish-law-mcp
荷兰 dutch-law @ansvar/dutch-law-mcp
瑞典 swedish-law @ansvar/swedish-law-mcp
奥地利 austrian-law @ansvar/austrian-law-mcp
比利时 belgian-law @ansvar/belgian-law-mcp
丹麦 danish-law @ansvar/danish-law-mcp
芬兰 finnish-law @ansvar/finnish-law-mcp
挪威 norwegian-law @ansvar/norwegian-law-mcp
爱尔兰 irish-law @ansvar/irish-law-mcp
波兰 polish-law @ansvar/polish-law-mcp
葡萄牙 portuguese-law @ansvar/portuguese-law-mcp
希腊 greek-law @ansvar/greek-law-mcp
匈牙利 hungarian-law @ansvar/hungarian-law-mcp
捷克 czech-law @ansvar/czech-law-mcp
罗马尼亚 romanian-law @ansvar/romanian-law-mcp
保加利亚 bulgarian-law @ansvar/bulgarian-law-mcp
克罗地亚 croatian-law @ansvar/croatian-law-mcp
斯洛伐克 slovak-law @ansvar/slovak-law-mcp
斯洛文尼亚 slovenian-law @ansvar/slovenian-law-mcp
爱沙尼亚 estonian-law @ansvar/estonian-law-mcp
拉脱维亚 latvian-law @ansvar/latvian-law-mcp
立陶宛 lithuanian-law @ansvar/lithuanian-law-mcp
冰岛 icelandic-law @ansvar/icelandic-law-mcp
卢森堡 luxembourg-law @ansvar/luxembourg-law-mcp
马耳他 maltese-law @ansvar/maltese-law-mcp
塞浦路斯 cypriot-law @ansvar/cypriot-law-mcp
中东 沙特/沙特阿拉伯 saudi-law @ansvar/saudi-law-mcp
阿联酋 uae-law @ansvar/uae-law-mcp
土耳其 turkish-law @ansvar/turkish-law-mcp
埃及 egyptian-law @ansvar/egyptian-law-mcp
美洲 加拿大 canadian-law @ansvar/canadian-law-mcp
巴西 brazilian-law @ansvar/brazilian-law-mcp
墨西哥 mexican-law @ansvar/mexican-law-mcp
阿根廷 argentine-law @ansvar/argentine-law-mcp
智利 chilean-law @ansvar/chilean-law-mcp
哥伦比亚 colombian-law @ansvar/colombian-law-mcp
秘鲁 peruvian-law @ansvar/peruvian-law-mcp
俄罗斯 俄罗斯 russian-law @ansvar/russian-law-mcp

安装后的标准话术

写入 mcp.json 后,立刻对用户说:

已帮你把所有配置写入 mcp.json。现在请打开 WorkBuddy 右上角的 连接器管理 页面,找到刚添加的 MCP(名称里带 law、regulation 或 compliance 字样),逐个点击 「Trust」。点完就能直接用了,不需要其他任何操作。

查询时的匹配逻辑

用户问具体法律问题后:

  1. 解析目标国家/法域
  2. 按优先级匹配 MCP:
    • 具体国家 → Ansvar 国别库(如 german-law)
    • 台湾法规 → taiwanese-law(远程 MCP,如不可用则搜 references/tw-law-data/ 本地 JSON 做离线查询)
    • 欧盟法规 → eu-regulations
    • 美国法规 → us-regulations
    • 美国判例 → courtlistener
    • 安全框架对照 → security-controls
    • 中国大陆法规/案例 → yuandian-mcp(优先,法条语义检索 + 案例全文)
    • 未知法域 → legal-data-hunter
  3. 已安装 → 直接调用查询。未安装 → 先写配置,再查询。

需要 API Key 的情况

情况 处理方式
CourtListener 远程连不上 让用户去 courtlistener.com/api 免费注册拿 Token,你帮填入 env.COURTLISTENER_API_TOKEN,切换为 type: stdio 本地版
open-legal-compliance 需要 GovInfo Key 让用户去 api.govinfo.gov 免费注册,填入 env.GOVINFO_API_KEY

注意:先装不需要 API Key 的版本(上表中 courtlistener 的远程 URL 和 open-legal-compliance 的 npx 版),只有连不上了才让用户去申请 Key。

报错自诊(翻译成人话 — 来自几十次踩坑)

用户在连接器页面看到的报错都是英文,你帮翻译:

用户看到的 真实含义 解法
streamableHttp connect failed: fetch failed 远程服务器挂了(Vercel 免费端点通病) 切成本地 npx 版,不要用远程 URL
SSE error: Invalid content type 同上,远程端点格式不兼容 同上
MCP error -32000: Connection closed 本地 MCP 启动失败 分情况:① 检查 npx/node 是否已装 ② 可能是 SDK 版本冲突(如 mcp 2.0 不兼容旧包,降级到 mcp<2) ③ 检查 env 里 API Key 是否填了
Client network socket disconnected before secure TLS connection 网络到不了目标服务器 确认没被墙;如果反反复复出现,就此放弃远程方案
npx: command not found 没装 Node.js 去 nodejs.org 下载安装
pipx: command not found 没装 pipx pip3 install pipx
HTTP Error 400: Bad Request API 端点格式不对 换 API 版本:CourtListener 用 v3 search 端点而非 v4 opinions

降级策略:MCP 不可用时的三条后路

当 MCP 全部/部分挂掉时,按顺序降级:

优先级 方案 适用场景
1 切本地 npx 版 远程 URL 挂了 → 改成 npx -y @ansvar/xxx
2 WebSearch 兜底 MCP 全部不可用 → 调用 WebSearch 工具直接搜,标注"未通过 MCP 验证,仅供参考"
3 输出但明示不可靠 台湾法数据库 + 无代理 → 基于已有知识回答,但显著标注「⚠️ 查不到可靠来源,未经独立数据源验证,请自行核实」

核心原则:宁可标注"查不到可靠来源",也不假装已验证。可以输出基于知识的回答,但必须显著提醒用户未经验证。

双源交叉验证(硬性要求,不可跳过)

所有输出给用户的法条、判例,必须经过至少两个独立数据源交叉验证。 境外法条一旦出错,后果严重——这是本 Skill 的铁律。

验证顺序(按优先级)

优先级 验证方式 适用场景
1 双 MCP 交叉 两个不同 MCP 数据库都查到同一条文且内容一致 → 标记 ✅ 双库验证
2 MCP + WebSearch 只有单个 MCP 可用时 → 用 WebSearch 搜官方来源(政府网站、法院官网、律所数据库)核对
3 双 WebSearch MCP 全不可用时 → 至少两个独立来源(如 ABA 期刊 + 律所文章)一致才可输出

每条输出的标准格式

法规名称 §条款号 + 原文摘要
✓ 来源 A: [MCP 名称 / 网站名 + 链接](2026-08-06 查询)
✓ 来源 B: [MCP 名称 / 网站名 + 链接](2026-08-06 查询)

判定规则

  • 双源一致 → 正常输出,标注两个来源
  • 双源不一致 → 立即停下来排查:重新查询、检查版本/修订日期,仍不一致就如实告知用户存在分歧,两个版本都列出,不擅自选一个
  • 只有一个来源 → 明确标注「⚠️ 仅单源验证,建议复核」,绝不伪装成已确认
  • 查不到可靠来源 → 仍然输出(给出已有信息或分析),但必须在开头和结尾显著标注:「⚠️ 查不到可靠来源,以下内容未经任何独立数据源验证,仅供参考,请务必自行核实」。绝不伪装成已确认,也不因为查不到就完全不回应

验证重点

  • 法条条款号是否对得上
  • 修订日期是否最新(旧版本法条可能已被修改/废止)
  • 判例案号(如 41 N.Y.2d 420)是否真实存在
  • 引文原文与数据库返回是否逐字一致

缓存写入时同步验证状态

写入 legal-cache.md 时,把验证状态一起记进去(✅ 双库 / ⚠️ 单源 / ❌ 待复核),下次命中缓存时延续该状态。

Trust 跟踪提醒

写入 mcp.json 后,用户需要逐个 Trust。你没办法代劳,但可以在后续对话中主动检查:

  • 用户下次问法律问题时,先确认对应的 MCP 是否已 Trust(如果连接器列表里显示 disconnected 说明没点)
  • 如果发现用户装了但没 Trust,提醒:「上次装的 XX 法律数据库还没启用,去连接器页面点一下 Trust 就能查了」

输出规范

  • 每条法规引用标注来源 MCP 数据库名称
  • 法条原文 + 简要中文解释
  • 多法域对比用表格呈现
  • 风险分级:🔴高 / 🟡中 / 🟢低
  • 不确定的内容诚实告知,建议咨询当地持牌律师

法条缓存:查一次,永久记住

每次 MCP 查询成功后,必须将结果写入知识库缓存——下次同样的问题直接调缓存,不再重复调 MCP。

查询前:先搜缓存

在调用 MCP 之前,用 Grep 搜索 references/legal-cache.md,关键词用用户的原始提问。如果命中 → 直接取缓存结果,标注「来源:本地缓存(原始查询日期 YYYY-MM-DD)」,跳过 MCP 调用。

查询后:写入缓存

MCP 查询完成后,按以下格式追加到 references/legal-cache.md 的「已缓存记录」章节末尾:

### {日期} | {法域} | {主题}
- **来源 MCP**: {MCP 名称}
- **原始查询**: {用户原话}
- **法规/判例**:
  - **{法规名称}** §{条款号} — {原文摘要}
  - ...
- **关键结论**: {一句话总结}
---

维护规则

  • 用 grep -i "关键词" references/legal-cache.md 快速定位历史记录
  • 同一法域+同一主题重复出现时,以最近一次更新旧记录
  • 缓存文件超过 300 行时,提醒用户「本地已积累大量法条记录,是否需要清理?」

经验教训与最佳实践(2026-08-06 全天调试总结)

以下每一条都来自真实踩坑,不可跳过。

数据源

  • Ansvar 国别 MCP 最稳:本地 npx 运行、SQLite 离线、零 API Key、秒级响应。优先推荐。
  • Vercel 远程端点不可靠:国内网络下频繁 TLS 握手失败、连接超时。一旦遇到 → 立刻切本地 npx 版。
  • npm 包名可能不存在:@ansvar/security-controls-mcp 在 npm 上搜不到,真实安装方式是 pipx install security-controls-mcp。别盲信包名。
  • MCP SDK 版本冲突魔鬼:mcp 2.0 砍了 list_tools() API,security-controls-mcp v1.1.0 不兼容。修复:pipx runpip install "mcp<2"。
  • API 端点格式不唯一:CourtListener v4 不吃标准 query,v3 search?type=o&q= 才认。调新 API 先试一个简单查询验证。
  • 没有 MCP 也能查:泰国法无 MCP → WebSearch 四条来源交叉验证 → 同样可靠。不要因为没有 MCP 就放弃。

安装策略

  • 默认问国家,不要默认全装。7 个 MCP 全部装下来 2-3 分钟,每个还要手动 Trust。用哪个装哪个,不够再加。
  • mcp.json 的 command 在用户系统 PATH 执行,不是 WorkBuddy 沙箱。环境预检必须查 which node / which python3 / which pipx,且检查结果只能看用户系统的。
  • Trust 按钮是单点瓶颈:每次写入 mcp.json 后必须提醒「去连接器页面点 Trust」。漏了对应用户查什么都查不到。

内容质量

  • 每条法条标注具体来源页面,不给网站首页。例:「thailandlawonline.com — CONDITIONS OF MARRIAGE」而不是「thailandlawonline.com」。
  • 双源交叉验证不可跳过,但允许 WebSearch 验证 → 一个 MCP 无第二个 MCP 时,用 WebSearch 官方来源交叉核对。
  • 查不到可靠来源也要输出,但显著标注:「⚠️ 查不到可靠来源,未经独立数据源验证,请自行核实」。
  • 缓存不代表永远正确:法条变更后旧缓存仍在,命中时注意核查日期。

<!-- AUTHOR_SIGNATURE: 法律科技实务工具 · 维护者陆凌燕律师(北京德恒·无锡)· 关注公众号「鹿鸣于野 UMU」获取更多内容 -->

<!-- © 2024-2026 陆凌燕(北京德恒(无锡)律师事务所). Licensed under MIT. -->

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 覆盖全球230+法域法律法规,解决企业出海合规核心痛点
  • 支持多国法规对比与安全框架映射(ISO 27001↔NIST↔SOC2)
  • 提供双源交叉验证机制,确保法条准确性
Trigger Precision90/100

Highlights

  • 触发词覆盖全面,包含GDPR、AI Act、HIPAA等具体法规名称
  • 支持按国家/地区触发安装,边界清晰
Structure and Standards85/100

Areas to improve

  • 文档过长 Reported severity: Minor

    SKILL.md 内容详尽但篇幅较长,可能影响阅读体验

    Recommendation: 建议适当拆分章节或增加目录导航

Highlights

  • 安装流程分步清晰,包含环境预检、数据库安装、Trust提醒等完整闭环
  • 提供详细的报错自诊与降级策略,增强可用性
Execution Reliability80/100

Areas to improve

  • 本地环境依赖风险 Reported severity: Minor

    部分MCP依赖用户本地Node.js/Python环境,存在兼容性风险

    Recommendation: 已在文档中提供环境预检方案,建议进一步强化自动检测能力

Highlights

  • 提供完整的降级策略(本地npx版→WebSearch兜底→知识库输出)
  • 双源交叉验证机制确保输出可靠性
  • 详细的报错翻译与解决方案提升用户体验
Evidence Verifiability (mean of the first four)88/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • api.govinfo.gov
  • legaldatahunter.com
  • mcp.courtlistener.com
  • mcp.legalmind.cn
  • nodejs.org
  • taiwanese-law-mcp.vercel.app
  • thailandlawonline.com
  • www.courtlistener.com
  • www.thailandlawonline.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.