占卜
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"yijing-tarot": {
"args": [
"./plugins/yijing-tarot-openclaw/scripts/start-stdio-mcp.mjs"
],
"command": "node",
"env": {
"YIJING_BACKEND_URL": "http://localhost:8088"
}
}
}
}
该服务需要配置环境变量:YIJING_BACKEND_URL、YIJING_REPO_ROOT
SSE 传输配置
{
"mcpServers": {
"tarot-mcp": {
"type": "sse",
"url": "http://8.130.42.57:3001/sse"
}
}
}
服务介绍
易经 + 塔罗 MCP 服务
面向本地使用的占卜类 MCP 服务,整合了易经起卦解卦与塔罗抽牌解读能力,并已适配 OpenClaw / Codex 本地 bundle。
能做什么
- 易经起卦:支持快速起卦、生成卦象、解读卦象、查询 64 卦资料
- 塔罗解读:支持单牌抽取、常见牌阵、卡牌详情与每日运势
- 本地接入:可作为 stdio MCP 服务在 OpenClaw、Codex、Cursor 等工具中使用
- 自动构建:若缺少
mcp-dist/index.js,启动器会自动执行npm run mcp:build
可用工具
yijing_generate_hexagramyijing_interpret_hexagramyijing_get_hexagramyijing_list_hexagramsyijing_quick_divinationtarot_get_spreadstarot_draw_cardstarot_quick_drawtarot_get_card_detailtarot_list_cardstarot_get_daily_fortune
OpenClaw / Codex Bundle
仓库已经包含可直接加载的本地 bundle:
plugins/yijing-tarot-openclaw/.codex-plugin/plugin.jsonplugins/yijing-tarot-openclaw/.mcp.jsonplugins/yijing-tarot-openclaw/scripts/start-stdio-mcp.mjs.agents/plugins/marketplace.json
推荐的本地 stdio 配置如下:
{
"mcpServers": {
"yijing-tarot": {
"command": "node",
"args": ["./plugins/yijing-tarot-openclaw/scripts/start-stdio-mcp.mjs"],
"env": {
"YIJING_BACKEND_URL": "http://localhost:8088"
}
}
}
}
环境变量
默认后端地址:
http://localhost:8088
可选环境变量:
{
"YIJING_BACKEND_URL": "http://localhost:8088",
"YIJING_REPO_ROOT": "C:/path/to/baziback"
}
说明:
YIJING_BACKEND_URL:baziback 后端服务地址YIJING_REPO_ROOT:当 bundle 不在默认相对路径下时,用于指定仓库根目录
使用前准备
- 安装仓库根目录下的 Node 依赖
- 启动 baziback 后端服务
- 确认
YIJING_BACKEND_URL指向可访问的后端地址 - 让 OpenClaw / Codex / 其他支持 MCP 的客户端加载上述配置
示例提问
- 帮我起一卦,看看这周工作运势
- 抽一张塔罗牌,看看我现在最该注意什么
- 用三张牌阵分析我的感情问题
- 查询易经第一卦并总结重点
- 给我今天的塔罗每日运势
说明
本服务提供的是文化与娱乐导向的解读,不应替代医疗、法律或财务建议。
项目来源
- 仓库地址:https://github.com/dong537/back3/tree/master/baziback
- OpenClaw 适配文档:仓库内
docs/OPENCLAW_SETUP.md