元典法律智能 MCP

hyydmcp/Yuandian_Legal_MCP
0 Stars 55 次浏览 更新于 2026-08-23
该服务暂未提供标准配置,请参考 README 手动接入

服务介绍

元典MCP 介绍

本文档介绍元典开放平台 MCP 服务在正式环境中的用途、接入地址、鉴权方式和客户端配置示例。正式环境统一使用生产域名:

https://open.chineselaw.com

服务概览

元典开放平台 MCP 将开放平台中的法律数据接口包装为 Model Context Protocol 工具,供智能体、IDE Agent、MCP 客户端和工作流平台调用。当前正式环境主要覆盖:

  • 法律法规:法规关键词检索、法条关键词检索、法规详情、法条详情、法规语义检索。
  • 案例文书:普通案例检索、权威案例检索、案例详情、案例语义检索。
  • 企业信息:企业检索、企业基本信息、企业涉诉、执行、商标、专利、年报等企业画像接口。
  • 幻觉检测:法律引用和法律内容校验能力,通过全量兼容入口调用。

MCP 服务采用 Streamable HTTP / Stateless HTTP 方式暴露。业务工具调用时,MCP 层会把客户端传入的 Authorization: Bearer ... 凭证解析为开放平台接口调用所需的 API Key。

正式环境入口

推荐优先使用分类入口,减少单个 MCP Server 暴露的工具数量,便于客户端加载和模型选择工具。

MCP Server 正式地址 工具范围
yuandian-law https://open.chineselaw.com/mcp/law/stream 法律法规
yuandian-case https://open.chineselaw.com/mcp/case/stream 案例文书
yuandian-company https://open.chineselaw.com/mcp/company/stream 企业信息
yuandian-open-platform https://open.chineselaw.com/mcp 全量兼容入口,包含分类工具和幻觉检测

健康检查地址:

https://open.chineselaw.com/mcp/health

鉴权方式

正式环境支持两类 MCP 鉴权方式。

1. API Key 直连

适合 Cursor、Claude Code、Codex、Hermes、Cherry Studio 等支持配置 HTTP Header 的客户端。

Authorization: Bearer YOUR_API_KEY
Accept: application/json, text/event-stream

注意:

  • YOUR_API_KEY 替换为元典开放平台个人中心创建的真实 API Key。
  • MCP 客户端中使用 Authorization: Bearer ...
  • 直接调用开放平台 /open/{routeKey} 接口时使用 X-API-Key: YOUR_API_KEY

2. OAuth 授权

正式环境已开启 MCP OAuth,适合支持 OAuth MCP 连接的客户端。OAuth 相关元数据和授权接口均挂载在生产域名下:

https://open.chineselaw.com/.well-known/oauth-protected-resource/mcp
https://open.chineselaw.com/.well-known/oauth-protected-resource/mcp/law/stream
https://open.chineselaw.com/.well-known/oauth-authorization-server
https://open.chineselaw.com/oauth/authorize
https://open.chineselaw.com/oauth/token
https://open.chineselaw.com/oauth/register

oauth-protected-resource 支持 /mcp/** 资源路径,客户端如果支持自动发现,可直接配置目标 MCP Server URL,并按客户端提示完成授权。

推荐客户端配置

通用 HTTP MCP 配置

{
  "mcpServers": {
    "yuandian-law": {
      "type": "http",
      "url": "https://open.chineselaw.com/mcp/law/stream",
      "headers": {
        "Accept": "application/json, text/event-stream",
        "Authorization": "Bearer YOUR_API_KEY"
      }
    },
    "yuandian-case": {
      "type": "http",
      "url": "https://open.chineselaw.com/mcp/case/stream",
      "headers": {
        "Accept": "application/json, text/event-stream",
        "Authorization": "Bearer YOUR_API_KEY"
      }
    },
    "yuandian-company": {
      "type": "http",
      "url": "https://open.chineselaw.com/mcp/company/stream",
      "headers": {
        "Accept": "application/json, text/event-stream",
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

单入口兼容配置

如果客户端只方便配置一个 MCP Server,使用全量兼容入口:

{
  "mcpServers": {
    "yuandian-open-platform": {
      "type": "http",
      "url": "https://open.chineselaw.com/mcp",
      "headers": {
        "Accept": "application/json, text/event-stream",
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}

相关文档

  • MCP 接入页:https://open.chineselaw.com/mcp-config
  • 接口广场:https://open.chineselaw.com/api-square
  • LLM 简版文档:https://open.chineselaw.com/llms.txt
  • LLM 全量文档:https://open.chineselaw.com/llms-full.txt
  • MCP 配置文档:https://open.chineselaw.com/mcp-config-for-llm.md

官网页脚入口

公司

名称 跳转链接
关于我们 https://yuandian.ailaw.cn
联系我们 https://yuandian.feishu.cn/share/base/form/shrcnX8MRiwL8DAksin7t85XjUd

元典生态

名称 跳转链接
元典智库 https://www.chineselaw.com
元典 Amicus https://ami.ailaw.cn
元典脱敏 https://tuomin.ailaw.cn
法律元力 https://yuanli.ailaw.cn

相关 MCP 服务