摘要
韩国国家法令信息中心(법제처 국가법령정보센터)官方 Open API:法律及条文、法院判例、宪法法院决定、法令解释例、行政规则、地方自治法规、法律术语和英文译本。
引导式设置
2 分钟将 Korea Law 连接到 Microsoft Copilot
开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Korea Law,再把你的 MCP URL 添加到 Microsoft Copilot。无需代码,也无需自行运行服务器。
无需信用卡 · 7 天试用 · 提供自托管方案
试试这样问
Korea Law (National Law Information Center) 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Korea Law (National Law Information Center)、粘贴凭证、生成 MCP API key — 完成。无 Docker、无
git clone、无本地服务器。
Korea Law (National Law Information Center) + Microsoft Copilot
韩国国家法令信息中心(법제처 국가법령정보센터)官方 Open API:法律及条文、法院判例、宪法法院决定、法令解释例、行政规则、地方自治法规、法律术语和英文译本。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
KOREA_LAW_OC
步骤 1 — 获取凭证
访问免费,但需要申请获批,通常需要 1 到 2 天。
- 在 https://open.law.go.kr 创建账户并申请 OPEN API(OPEN API → OPEN API 신청)。勾选你要使用的每个 API:法律(법령)、判例(판례)、法令解释例(법령해석례)、行政规则(행정규칙)、地方自治法规(자치법규)、宪法法院决定(헌재결정례)、法律术语(법령용어)和英文法律(영문법령)。未勾选的 API 调用会被拒绝。
- 在申请中登记调用 API 的服务器的公网 IP 地址和域名,每次调用都会校验。自托管时就是你服务器的公网 IP;在 AnythingMCP Cloud 上,请联系支持获取需要登记的出站地址。
- 获批后,将你的 OC 填入
KOREA_LAW_OC:即所登记电子邮件地址 @ 之前的部分([email protected]填g4c)。它以查询参数OC发送。 - 先用法律名称调用
korea_law_search_laws,再用其 law ID 和条文号调用korea_law_get_law。查判例时,先用korea_law_search_precedents,再用korea_law_get_precedent。
错误以 HTTP 200 返回,所以先读 result 和 msg:사용자 정보 검증에 실패하였습니다(用户信息验证失败)表示 OC 错误、申请尚未获批,或服务器的 IP 或域名未登记。搜索词使用韩语;英文法律搜索也接受英语。完整法律文本很大(《民法》超过 700 KB),请按单个条文请求:条文号为 6 位,第 3 条是 000300,第 10 条之 2 是 001002。具有约束力的是韩文文本,发布内容时须注明来源 법제처 국가법령정보센터。
步骤 2 — 安装 adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
步骤 3 — 在 Microsoft Copilot 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
Microsoft Copilot 通过在 Copilot Studio 中构建的智能体使用 MCP 服务器:把 AnythingMCP 作为工具添加到智能体,然后把智能体发布到 Microsoft 365 Copilot 和 Teams。Copilot Studio 从 Microsoft 的云端通过 Streamable HTTP 连接,AnythingMCP 支持这种方式。
- 在 Copilot Studio 中打开你的智能体(或新建一个),进入 Tools,选择 Add a tool → New tool → Model Context Protocol。
- 填写 Server name(例如
AnythingMCP)、说明连接器用途的 Server description,以及 Server URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。Copilot Studio 根据描述决定何时调用该服务器。 - 身份验证选择 API key,把 Type 设为 Header,请求头名称填
X-API-Key,然后选择 Create。 - 在 Add tool 中选择 Create a new connection,粘贴 AnythingMCP 的 MCP API 密钥(MCP Servers → 你的服务器 → API keys),然后选择 Add to agent。
- 在智能体的 Test 窗格中试一试:提出需要用到
Korea Law (National Law Information Center)的工具的请求。 - 选择 Publish,然后进入 Channels → Microsoft 365 and Microsoft Teams,保持勾选 Make agent available in Microsoft Copilot,再选择 Add channel。See agent in Teams 会为你安装该智能体;在 Microsoft 365 Copilot 中输入 @ 并选择该智能体。
希望每个用户各自登录?请选择 OAuth 2.0 → Dynamic discovery 代替 API 密钥:每个用户会在智能体首次调用时登录 AnythingMCP。
自托管?请用你实例的公网 HTTPS 地址替换 https://cloud.anythingmcp.com。Copilot Studio 从 Microsoft 的云端连接,因此 localhost 无法使用。
可用工具
| Tool | What it does |
|---|---|
korea_law_search_laws | Search current Korean statutes (Acts, Enforcement Decrees and Rules) by name or full text |
korea_law_get_law | Get the text of a current Korean statute: basic information, articles (조문), addenda and amendment reasons |
korea_law_search_precedents | Search Korean court precedents (Supreme Court and lower courts) by case name or full text, court, referenced statute, decision date or case… |
korea_law_get_precedent | Get one court precedent in full: holdings (판시사항), summary (판결요지), referenced articles and precedents, and the full judgment text |
korea_law_search_interpretations | Search official statutory interpretations (법령해석례) issued by the Ministry of Government Legislation and other bodies, by title or full text |
korea_law_get_interpretation | Get one statutory interpretation in full: question (질의요지), answer (회답), reasoning (이유), agencies and dates |
korea_law_search_admin_rules | Search administrative rules (행정규칙: directives, established rules, public notices, guidelines) by name or full text, kind, ministry or issue… |
korea_law_get_admin_rule | Get one administrative rule in full: basic information, articles, addenda, tables and attachment links |
korea_law_search_english_laws | Search the official English translations of Korean statutes by Korean or English name, e.g. insurance |
korea_law_get_english_law | Get the English translation of a Korean statute: articles (JoSection), addenda and basic information |
korea_law_search_legal_terms | Search the dictionary of legal terms (법령용어) defined in Korean statutes |
korea_law_get_legal_term | Get the statutory definitions of one legal term: each definition with the law and article it comes from |
korea_law_search_constitutional_decisions | Search decisions of the Constitutional Court (헌재결정례) by case name or full text, decision date or case number |
korea_law_get_constitutional_decision | Get one Constitutional Court decision in full: provisions under review, holdings, summary, referenced articles and precedents, and the full… |
korea_law_search_ordinances | Search local laws (자치법규: ordinances and rules of provinces, cities and districts) by name or full text, local government or kind |
korea_law_get_ordinance | Get one local law in full: basic information, articles, addenda and reasons |
FAQ
这适用于哪个 Copilot? 适用于工作中的 Microsoft 365 Copilot,通过 Copilot Studio 的智能体实现。面向个人账户的 Microsoft Copilot 应用无法添加自己的 MCP 服务器。
我需要什么? 一个可以使用 Copilot Studio 的工作账户(许可证或试用版),用于构建智能体。在 Microsoft 365 Copilot 或 Teams 中使用它的人需要拥有该智能体的访问权限:把它共享给他们,或请管理员为整个组织发布。如果你的组织对 Power Platform 连接器设置了数据策略,这些策略同样适用于 MCP 服务器。
智能体不调用工具。 检查请求头名称是否正好是 X-API-Key,密钥是否属于与 URL 相同的 MCP 服务器,并把 Server description 写得具体:Copilot Studio 根据它决定何时调用服务器。每次修改后重新发布智能体;在已打开的对话中输入 "start over" 即可使用新版本。
下一步
这份指南对你有帮助吗?