Yijing Bazi MCP Server
This server provides comprehensive Chinese metaphysics services combining I Ching (易经) divination and BaZi (八字) astrology analysis.
I Ching (易经)
Generate Hexagrams: Cast hexagrams using number, time, plum blossom, or random methods based on a question
Interpret Hexagrams: Multi-layered readings focused on overall meaning, specific lines, or changing hexagrams across contexts (career, relationships, health, finance)
Decision Advising: Actionable guidance based on hexagram results, with short/long-term timeframes and multiple options
BaZi (八字)
Generate Birth Chart: Create a natal chart from birth date/time, gender, and optional location
Analyze Chart: Examine personality, career, wealth, relationships, and health at configurable detail levels
Forecast Fortune: Predict future luck across life aspects for a given date range with year/month/day resolution
Combined Analysis & Consultation
Combined Analysis: Integrate I Ching and BaZi insights for a unified metaphysical answer to a specific question
Destiny Consultation: Full consultations (guidance, analysis, prediction, or suggestion) using a user's metaphysical profile
Learning & Research
Knowledge Learning: Study I Ching and/or BaZi concepts at beginner, intermediate, or advanced levels
Case Studies: Explore and analyze historical or modern I Ching/BaZi cases, including famous figures
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Yijing Bazi MCP Server analyze my bazi chart for career prospects based on my birth date 1990-05-15"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
# 易经八字分析 MCP 服务器
基于 MCP(Model Context Protocol)的易经与八字分析服务,提供起卦/解读、八字排盘/分析与综合咨询等能力。
快速开始
本地运行
npm install
npm start开发模式
npm run devNPM/NPX 运行
npx yijing-bazi-mcp@latestRelated 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.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.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 # 入口免责声明
本项目仅供学习研究使用,分析结果仅供参考,不构成任何决策建议。
Available Tools
10 toolsbazi_analyzeC
分析八字命盘
Inputs: chart (required), analysis_type (required), detail_level.
bazi_forecastC
预测未来运势
Inputs: chart (required), start_date (required), end_date (required), aspects (required), +1 more.
bazi_generate_chartC
生成八字命盘
Inputs: birth_time (required), gender (required), is_lunar, birth_location.
case_studyC
分析易经和八字案例
Inputs: system (required), case_id, category, analysis_focus.
combined_analysisC
结合易经和八字进行综合分析
Inputs: bazi_chart (required), question (required), hexagram, analysis_aspects.
destiny_consultC
提供命理咨询服务
Inputs: user_profile (required), question (required), consultation_type (required), context.
knowledge_learnC
学习易经和八字知识
Inputs: topic (required), system (required), level (required), format.
yijing_adviseC
基于卦象提供决策建议
Inputs: hexagram (required), question (required), options, time_frame.
yijing_generate_hexagramC
根据指定方法生成六爻卦象
Inputs: method (required), question (required), seed.
yijing_interpretC
对卦象进行多层次解读
Inputs: hexagram (required), focus (required), context (required), line_number, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
The tools have some clear distinctions, such as between bazi_analyze (analyzing a birth chart) and yijing_interpret (interpreting hexagrams), but there is overlap in purpose. For example, bazi_forecast (predicting future luck) and destiny_consult (providing destiny consultation) could be confused as both involve future-oriented advice, and case_study (analyzing case studies) might overlap with combined_analysis (comprehensive analysis). Descriptions help differentiate, but ambiguity exists in the broader advisory functions.
The naming is mostly consistent with a clear pattern: most tools use a prefix like 'bazi_' or 'yijing_' followed by a verb_noun structure (e.g., bazi_analyze, yijing_generate_hexagram). However, there are minor deviations: case_study and knowledge_learn lack the prefix, and combined_analysis uses a different structure. Overall, the naming is readable and follows a predictable convention with only slight inconsistencies.
With 10 tools, the count is well-scoped for the server's purpose of Yijing and Bazi analysis. Each tool appears to serve a distinct role in the domain, such as chart generation, interpretation, forecasting, and learning. This number allows comprehensive coverage without being overwhelming, fitting typical expectations for a specialized server.
The tool set covers key aspects of Yijing and Bazi analysis, including generation (bazi_generate_chart, yijing_generate_hexagram), interpretation (bazi_analyze, yijing_interpret), forecasting (bazi_forecast), and advisory functions (yijing_advise, destiny_consult). Minor gaps might exist, such as lack of tools for historical data or advanced customization, but core workflows are well-covered, allowing agents to perform most essential tasks in this domain.
Maintenance
Related MCP Connectors
Free BaZi, I Ching, tarot, Zi Wei and bilingual learning tools with transparent methods. No API key.
Deterministic BaZi and Chinese metaphysics tools for AI agents: charts, divination, almanac.
BaZi, zodiac year, compatibility, five elements, Kua, I Ching, Zi Wei and Flying Stars charts.
Verified passages from the Chinese classics for hard decisions, plus a true-solar-time BaZi chart.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables 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.76MIT
- AlicenseNot gradedqualityDmaintenanceEnables 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.MIT
- AlicenseNot gradedqualityDmaintenanceProvides 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.ISC
- AlicenseNot gradedqualityAmaintenanceEnables traditional Chinese metaphysics tools like Bazi, Ziwei, and Qimen via MCP, integrating AI analysis for divination and fortune-telling.788AGPL 3.0