npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

yuandian-mcp-server

v0.2.0

Published

MCP server for YuanDian open platform APIs

Readme

元典开放平台 MCP Server

这个 MCP Server 会在启动时读取元典开放平台接口目录,并把开放接口动态注册成 MCP tool,方便支持 MCP 的 AI 客户端直接调用法律数据与服务。业务接口会转发到 https://open.chineselaw.com/open/{routeKey},并使用 X-API-Key 头鉴权。

获取 API Key

使用前需要访问 元典开放平台 注册或登录,并在平台中获取 API Key。

平台活动:2026 年 4 月 27 日至 2026 年 7 月 26 日期间,每月赠送 50,000 积分权益包。具体活动规则以元典开放平台页面为准。

快速开始

YUANDIAN_API_KEY="你的_api_key" npx -y yuandian-mcp-server

也可以先安装到当前项目:

npm install yuandian-mcp-server
YUANDIAN_API_KEY="你的_api_key" npx yuandian-mcp-server

或全局安装后直接运行:

npm install -g yuandian-mcp-server
YUANDIAN_API_KEY="你的_api_key" yuandian-mcp-server

Node.js 版本需为 20 或更高。

MCP 客户端配置示例

{
  "mcpServers": {
    "yuandian-mcp-server": {
      "command": "npx",
      "args": ["-y", "yuandian-mcp-server"],
      "env": {
        "YUANDIAN_API_KEY": "你的_api_key"
      }
    }
  }
}

环境变量

  • YUANDIAN_API_KEY:元典开放平台 API Key。

注册的工具

  • yuandian_list_apis:查看启动时发现的接口清单。
  • yuandian_get_api_document:读取某个接口的 Markdown 文档。
  • yuandian_{routeKey}:动态注册的业务接口工具,例如 yuandian_law_vector_searchyuandian_rh_enterpriseSearch

相关链接

| 分类 | 链接 | | --- | --- | | 公司 | 关于我们 · 联系我们 | | 产品功能 | API 广场 · MCP Server · 接口文档 · 新站福利 | | 元典生态 | 元典智库 · 元典 Amicus · 元典脱敏 · 法律元力 |