Skip to main content
Glama
SiwuXue

Yijing Bazi MCP Server

by SiwuXue

# 易经八字分析 MCP 服务器

基于 MCP(Model Context Protocol)的易经与八字分析服务,提供起卦/解读、八字排盘/分析与综合咨询等能力。

快速开始

本地运行

npm install
npm start

开发模式

npm run dev

NPM/NPX 运行

npx yijing-bazi-mcp@latest

Related MCP server: Chinese Fortune Analysis System (BaZi)

客户端配置

Claude Desktop

{
  "mcpServers": {
    "yijing-bazi": {
      "command": "npx",
      "args": ["yijing-bazi-mcp@latest"],
      "env": {
        "LOG_LEVEL": "info",
        "NODE_ENV": "production"
      }
    }
  }
}

如果使用本地项目:

{
  "mcpServers": {
    "yijing-bazi": {
      "command": "node",
      "args": ["src/index.js"],
      "cwd": "项目完整路径",
      "env": {
        "LOG_LEVEL": "info",
        "NODE_ENV": "development"
      }
    }
  }
}

配置文件位置:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

其他 MCP 客户端(Trae/Cursor/Cherry Studio)

推荐用 npm exec

{
  "mcpServers": {
    "yijing-bazi": {
      "command": "npm",
      "args": ["exec", "yijing-bazi-mcp"],
      "cwd": "项目完整路径",
      "env": {
        "NODE_ENV": "development"
      }
    }
  }
}

可用工具(概览)

  • 易经:yijing_generate_hexagram, yijing_interpret, yijing_advise

  • 八字:bazi_generate_chart, bazi_analyze, bazi_forecast

  • 综合:combined_analysis, destiny_consult

  • 学习:knowledge_learn, case_study

使用示例

易经起卦

{
  "tool": "yijing_generate_hexagram",
  "params": {
    "question": "今年是否适合创业?",
    "method": "coin",
    "context": "目前在大公司工作,考虑自主创业"
  }
}

八字分析

{
  "tool": "bazi_generate_chart",
  "params": {
    "birth_time": "1990-05-15T10:30:00+08:00",
    "gender": "male",
    "is_lunar": false,
    "timezone": "Asia/Shanghai"
  }
}

环境变量

支持 .env

LOG_LEVEL=info
NODE_ENV=production
SERVER_NAME=yijing-bazi-mcp-server
ENABLE_CACHE=true

目录结构(简版)

src/
  engines/   # 易经/八字/综合/知识引擎
  data/      # 静态数据与表
  utils/     # 工具/日志/校验/缓存
  config/    # 运行时配置
  index.js   # 入口

免责声明

本项目仅供学习研究使用,分析结果仅供参考,不构成任何决策建议。

Install Server
A
license - permissive license
B
quality
D
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Enables AI tools to perform Chinese fortune-telling analysis including Ziwei Doushu (Purple Star Astrology) and Bazi (Four Pillars) chart generation, fortune reading, and element analysis. Supports multiple calendar systems and output formats for comprehensive divination services.
    7
    25
    6
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Enables traditional Chinese fortune-telling through BaZi (Four Pillars) analysis, including solar/lunar date conversion, Five Element balance calculations, Ten Gods deduction, and destiny interpretation for metaphysics applications.
    18
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Provides accurate Chinese Bazi (八字) fortune-telling calculations including birth chart analysis, destiny forecasting, and Chinese calendar information. Addresses inaccuracies in existing AI fortune-telling tools by delivering precise Bazi data for personality analysis and metaphysical insights.
    224
    ISC
  • A
    license
    A
    quality
    C
    maintenance
    Provides tools for Bazi (Chinese astrology) chart calculation and analysis, enabling LLMs to generate accurate birth charts, determine patterns, and answer follow-up questions based on actual calculations rather than model knowledge.
    2
    MIT

View all related MCP servers

Related MCP Connectors

  • Generate BaZi charts from birth details. Explore Four Pillars, solar terms, and Luck Pillars for d…

  • I-Ching (周易) oracle: cast a hexagram, read classical commentary, get a reflection. Bilingual.

  • I Ching hexagram analysis and geographic feng shui for Taiwan locations

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SiwuXue/yijing-bazi-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server