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

iching-mcp

v1.0.3

Published

易经卜卦 MCP 服务

Downloads

15

Readme

易经卜卦 MCP 服务

基于 iching-divination 实现的 MCP 服务,为 AI 助手提供易经占卜能力。

功能

  • 随机起卦: 模拟投掷铜钱起卦
  • 手动起卦: 指定六爻值起卦
  • 双解卦器: 简单解卦器 / 传统解卦器
  • 中英双语: 支持中文和英文解读

安装

npm install -g iching-mcp

配置 Claude Code

创建或编辑 .mcp.json:

{
  "mcpServers": {
    "iching": {
      "command": "npx",
      "args": ["-y", "iching-mcp"]
    }
  }
}

使用示例

随机起卦

{
  "mode": "random",
  "language": "zh",
  "interpreter": "simple"
}

手动起卦

{
  "mode": "manual",
  "lines": [9, 9, 9, 9, 9, 9],
  "language": "zh",
  "interpreter": "traditional"
}

参数说明

  • mode: 起卦模式

    • random: 随机起卦(默认)
    • manual: 手动指定六爻
  • lines: 六爻值(从下往上)

    • 6: 老阴(变爻)
    • 7: 少阳
    • 8: 少阴
    • 9: 老阳(变爻)
  • language: 解卦语言

    • zh: 中文(默认)
    • en: 英文
  • interpreter: 解卦器

    • simple: 简单解卦器(默认)
    • traditional: 传统解卦器

输出结构

{
  mode: string,           // 起卦模式
  language: string,       // 语言
  interpreter: string,    // 解卦器类型
  benGua: {              // 本卦
    name: string,        // 卦名
    binary: string,      // 二进制表示
    xu: number           // 卦序
  },
  liuyao: [{            // 六爻详情
    position: number,   // 爻位
    value: number,      // 爻值
    yinyang: string,    // 阴阳
    isChanging: boolean // 是否变爻
  }],
  interpretation: {      // 解读
    main: string        // 主要解读
  },
  changingLines?: {     // 变爻(可选)
    positions: number[],
    interpretations: string[]
  },
  bianGua?: {           // 变卦(可选)
    name: string,
    binary: string,
    xu: number,
    interpretation: string
  }
}

License

MIT