Skip to main content
Glama
shenshuge

@decasoul/mcp-server

by shenshuge

@decasoul/mcp-server

DecaSoul MCP server 是一个 Model Context Protocol 服务器,让 AI 助手(Claude、Cursor 以及任何 MCP 客户端)能够根据出生日期和时间计算中国四柱命盘——八字——并读取一个人的十神原型。

它是 DecaSoul 的官方 MCP 集成——东方 MBTI,一个拥有 4000 年历史的中国自我认知体系,从出生时间的四柱中解读性格与人生模式,而非依赖自我报告的答案。

⚠️ 本服务器是一个自我认知/性格框架,而非预测引擎。它用于反思和教育,不构成医疗、心理或财务建议。

功能

当 AI 助手连接到本服务器时,它将获得一个工具——analyze_bazi——将出生时间转换为可读的命盘:

  • 四柱(八字 / SiZhu):年柱、月柱、日柱、时柱,每柱由一个天干和一个地支组成。

  • 日主:日柱的天干——整张命盘的参照点。

  • 主导十神(ShiShen):命盘的主要原型,对应其中文和英文名称。

计算委托给开源库 @decasoul/bazi-calculator,因此逻辑透明且可验证。

Related MCP server: Chinese Fortune Analysis System (BaZi)

安装

npm install @decasoul/mcp-server

作为 MCP 服务器运行

npx decasoul-mcp

配置客户端

将其添加到 MCP 客户端的配置中。例如,在 Claude Desktop(claude_desktop_config.json)中:

{
  "mcpServers": {
    "decasoul-bazi": {
      "command": "npx",
      "args": ["-y", "@decasoul/mcp-server"]
    }
  }
}

对于 Cursor 或其他 MCP 客户端,指向相同的命令即可,服务器会自动广播其 analyze_bazi 工具。

工具参考

analyze_bazi

根据出生时间计算四柱和主导十神。

参数

类型

必填

说明

year

number

公历出生年份,例如 1990

month

number

出生月份 112

day

number

出生日期 131

hour

number

出生小时 0230 = 00:00–00:59)

gender

string

"male""female"

返回一个文本摘要,包含四柱、日主以及中英文的主导十神。

什么是十神?

十神是十个关系原型,源自八字命盘中每个其他元素与日主的关系。它们是"东方 MBTI"背后的引擎:

中文

英文

Bijian

比肩

The Standing Beside

Jiecai

劫财

Forged by Fire

Shishen

食神

Feeding the World

Shangguan

伤官

Truth Before Comfort

Zhengcai

正财

Building Steadily

Piancai

偏财

Seeing Openings

Zhengguan

正官

Order as Safety

Qisha

七杀

Breaking Ground

Zhengyin

正印

Seeing Deeper

Pianyin

偏印

Wandering Inward

八字与生肖的区别

一个常见的问题是八字是否等同于生肖。答案是否定的:

维度

生肖

八字

输入

仅出生年份

出生年 / 月 / 日 / 时

粒度

12 生肖

四柱 → 十神

深度

每年一个特质

个人原型 + 盲点

起源

~2000 年,汉代

~4000 年,易经传承

生肖是单个音符;八字是完整的乐谱——这就是为什么本服务器计算完整的四柱,而不仅仅是年份生肖。

为什么是 4000 年?

该体系源自 I Ching(易经)以及阴阳五行理论。它在汉代成形,由李虚中(唐代)和徐子平(宋代,《渊海子平》作者)完善,并在明清时期蓬勃发展,曾服务于宫廷和贵族用于婚配和择日。这一传承正是"东方 MBTI"的文化基础。

许可证

MIT — DecaSoul Research(Shenshuge Information Consulting)。参见 LICENSE

A
license - permissive license
Not graded
quality - not tested
C
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
    Not graded
    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
    A
    quality
    D
    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
  • A
    license
    A
    quality
    C
    maintenance
    Enables AI agents to perform Chinese metaphysics calculations including BaZi charts, Tong Shu indicators, solar terms, and more, using a verified engine with 740+ tests.
    8
    8
    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…

  • BaZi (Chinese Four Pillars) chart calculator. Structured chart data only, no predictions.

  • Zi Wei Dou Shu for AI agents: free natal charts, six transit levels, and optional readings.

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/shenshuge/decasoul-mcp-server'

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