Ancient Echoes MCP
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., "@Ancient Echoes MCP Generate a BaZi chart for June 15, 1990 at 9:30 AM in Shanghai."
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.
Ancient Echoes MCP
Ancient Echoes exposes deterministic Chinese metaphysics computation as a remote MCP server: BaZi (Four Pillars), Zi Wei Dou Shu, Qi Men Dun Jia, Qi Zheng Si Yu, Vedic and Western astrology, Liu Yao, Mei Hua, Da Liu Ren, Xiao Liu Ren, Tai Yi, almanac and election-day evidence.
The computation engine stays on our servers. This repository only contains the client-side skill and setup notes, so any client that speaks MCP can call the same versioned tools.
What you get
Layer | Free account | Paid plans |
| ✅ | ✅ |
Topic tools (pattern, favorable elements, wealth, group, naming, family) | — | ✅ |
| Billed against your AI plan | Billed against your AI plan |
Every tool response carries calculationCapability / calculationVersion so results stay
reproducible across releases.
Listed in the official MCP Registry as
io.github.FlamesCN/ancient-echoes-mcp.
Hosts that support MCP Apps render
BaZi results as an interactive chart; other hosts get the same structured JSON.
OAuth-capable connectors can discover the authorization server at
https://www.ancientechoes.ai/.well-known/oauth-protected-resource and connect with a standard
PKCE flow. Developers can keep using a Web API key in the Authorization header.
Related MCP server: 命盘 Mingpan
1. Get an API key
Sign in at https://www.ancientechoes.ai and open User Center → LingXi Devices:
Web API Key (
sk-…): simplest for MCP clients.Device token (
lxd_…): pair a machine with a short code; it carries themcpscope by default and can be rotated or revoked without touching your password.
Either credential reaches POST /api/v1/mcp and POST /api/v1/tools/:name.
2. Connect an MCP client
Endpoint: https://www.ancientechoes.ai/api/v1/mcp (Streamable HTTP).
The server speaks protocol versions 2026-07-28, 2025-11-25, 2025-06-18 and 2025-03-26.
{
"mcpServers": {
"ancient-echoes": {
"url": "https://www.ancientechoes.ai/api/v1/mcp",
"transport": "streamable-http",
"headers": {
"Authorization": "Bearer sk-your-key"
}
}
}
}This repository is also a portable Agent Plugin: plugin.json
declares the package, mcp.json points at the remote endpoint, and skills/ancient-echoes/
carries the usage skill. Clients that support the standard can load the repository directly;
others can copy skills/ and mcp.json into their own plugin directory.
curl -sS https://www.ancientechoes.ai/api/v1/mcp \
-H "Authorization: Bearer $ANCIENT_ECHOES_TOKEN" \
-H "Content-Type: application/json" \
-H "MCP-Protocol-Version: 2026-07-28" \
-H "Mcp-Method: server/discover" \
-d '{"jsonrpc":"2.0","id":1,"method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}'Modern requests must send MCP-Protocol-Version, Mcp-Method, and (for tools/call)
Mcp-Name matching the request body. Legacy clients can keep using initialize.
3. Call a tool
curl -sS https://www.ancientechoes.ai/api/v1/tools/bazi.calculate_chart \
-H "Authorization: Bearer $ANCIENT_ECHOES_TOKEN" \
-H "Content-Type: application/json" \
-d '{"input_mode":"birth","year":1990,"month":6,"day":15,"hour":9,"minute":30,
"is_male":true,"calendar_type":"solar","is_leap_month":false,
"cast_time_source":"birth","timezone_id":"Asia/Shanghai",
"split_zi_hour":true,"use_true_time":false,"apply_dst":false}'Rules that matter:
Pass an explicit civil time, calendar, timezone and (for true solar time) coordinates. The server never fills missing fields with its own clock or a default city.
Paid tools return
tool_entitlement_requiredwhen your plan does not include the feature.Quota: 200 tool calls/day and 30 calls/minute per user by default (
429+tool_quota_exceededwhen exceeded).All current tools are read-only. Results are evidence for human reading, not medical, legal, investment or life-decision advice.
Self-hosted stdio bridge (Docker)
Clients and registries that only speak MCP over stdio can run this repository's
bridge. It contains no computation engine: initialize, ping and
tools/list are answered locally from the bundled catalog (38 tools, generated
from the public OpenAPI document), and tools/call is forwarded to
POST /api/v1/tools/<name> with your own credential.
docker build -t ancient-echoes-mcp .
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' \
| docker run --rm -i ancient-echoes-mcpSet ANCIENT_ECHOES_TOKEN (Web API Key or device token) to enable
tools/call; without it the bridge answers discovery requests and returns an
explicit isError result for execution. ANCIENT_ECHOES_BASE_URL and
ANCIENT_ECHOES_TIMEOUT_MS override the endpoint and timeout.
Skill
ancient-echoes-mcp/SKILL.md teaches an agent how to discover tools, collect the minimum
required parameters, respect entitlements, and report results without inventing
predictions. Drop it into your agent's skills directory.
License
MIT. The server-side engine, knowledge base and datasets are not part of this repository.
Available Tools
38 toolsalmanac.convert_lunar_dateLunar Date ConversionARead-onlyInspect
将明确的农历年月日转换为公历日期;校验年份范围、闰月是否存在、当月天数与转换回显一致性。
Inputs: day (required), year (required), month (required), is_leap_month.
almanac.get_dayDaily AlmanacARead-onlyInspect
按明确的 YYYY-MM-DD 北京时间民用日期查询黄历、节气与宜忌日级证据;不接受时分或时区,不返回用户提醒,不合成整体吉凶。
Inputs: date (required).
almanac.get_solar_termsSolar TermsARead-onlyInspect
查询明确年份的二十四节气北京时间精确到秒时刻;时刻来自 lunar-go 寿星天文历核心表,缺失时返回错误而不是伪造正午。
Inputs: year (required).
astrology.calculate_chartWestern Astrology ChartARead-onlyInspect
按完整出生历法、民用时刻、时区、坐标、宫制与行运时刻计算 1800-2100 年低精度西方占星本命盘;行运行星叠加本命宫位,可选独立问事时空起盘预览、合盘、显式地点太阳返照及带独立时区坐标的非传统候选相对排序。
Inputs: house_system (required), calendar_type (required), birth_latitude (required), birth_longitude (required), +28 more.
bazi.analyze_entrepreneurshipEntrepreneurship ContextARead-onlyInspect
把当前用户命盘的事业财运结构证据、显式目标年份和用户填写的职业/资源/约束分层整理为创业决策辅助;返回无评分、无排名的起步结构条件与仅由用户文本命中的业务候选,不根据命盘裁决公司形态、赛道、城市或成功率。
Inputs: context (required), target_year (required), record_id, use_profile.
bazi.analyze_wealthWealth EvidenceARead-onlyInspect
整理当前用户命盘的财星透藏、十神同现、格局与日主强弱上下文,并在调用方显式年份窗口内列出大运流年财星触发和对原局财星所在干支的直接关系;无评分、无排名,不推断职业、风险偏好、投资或地域。
Inputs: end_year (required), start_year (required), record_id, use_profile.
bazi.calculate_chartBaZi ChartARead-onlyInspect
按完整显式民用时刻或直接四柱计算八字主盘;current_snapshot 也必须由调用方传入快照时刻,绝不使用服务器当前时间。出生模式返回精确立春/十二节边界、晚子时口径、DST/真太阳时留痕和分钟级大运档案;直接四柱不反推历法日期或大运。
Inputs: is_male (required), input_mode (required), cast_time_source (required), day, +17 more.
bazi.calculate_chuangongChuangong Twelve GodsBRead-onlyInspect
按完整显式出生民用时刻和显式起始年份计算串宫十二神落位,逐年返回四柱、胎元、命宫、身宫与当步大运的干支落位及出生年支直接关系;不生成吉凶分、年份排名、医疗法律判断或事件预测。
Inputs: day (required), hour (required), year (required), month (required), +16 more.
bazi.calculate_lumingClassical Lu Ming ChartBRead-onlyInspect
按完整显式出生民用时刻计算古法禄命年柱三元与纳音生旺落位,返回年干为禄、年支为命、年柱纳音为身,以及四柱、胎元、命宫、身宫的证据;不生成紫微十二人生宫、吉凶计数、总体评级或事件预测。
Inputs: day (required), hour (required), year (required), month (required), +14 more.
bazi.compare_chartsTwo-Chart Structural CompareARead-onlyInspect
对当前用户的两张八字记录(或一侧本人资料)执行原局直接结构对照,返回基础排盘留痕、日元/日支、跨盘干支与神煞并列证据;不输出统一合婚分数,不判断合化成立,不叠加双方岁运。
Inputs: left_record_id, right_record_id, left_use_profile, right_use_profile.
bazi.compare_group_chartsGroup Chart CompareARead-onlyInspect
对当前用户 2 至 8 位成员的八字记录(最多一份本人资料)执行全部无序成员对的原局直接结构对照,返回成员主盘留痕以及日元、日支、跨盘干支和神煞并列证据;不输出多人分数、排名、角色分配、支持/压力链或未显式计算的岁运时间点。
Inputs: members (required), scene_type, scenario_label.
bazi.lookup_zodiac_branch_relationsZodiac Branch RelationsARead-onlyInspect
把一个手工生肖标签映射为年支,列出六合、六冲、六害、六破与保留方向的三刑,并展示完整三合、三会组三支成员;这不是两人生辰合婚,不输出契合分、婚姻结论或事件预测。
Inputs: shengxiao (required).
bazi.prepare_family_relations_contextFamily Relations ContextARead-onlyInspect
为当前用户自己的八字记录或本人资料准备家庭关系证据上下文:返回四柱宫位、天干与藏干十神、多流派六亲映射及不可用边界;不推断父母强势方、亲属人数或性别、支持/消耗、家庭事实或隐式岁运。
Inputs: record_id, use_profile.
bazi.prepare_naming_contextNaming ContextARead-onlyInspect
为当前用户自己的八字记录或本人资料准备可追溯取名上下文:复用主盘格局、喜用、调候并校验显式偏好;不生成姓名,不声明汉字五行、康熙笔画、三才五格、吉凶分或候选排名。
Inputs: preferences (required), record_id, use_profile.
divination.preview_chengguChenggu Bone WeightBRead-onlyInspect
基于当前用户本人资料或其命盘记录,直接使用原始录入民用出生时刻;晚子时 23:00–23:59 按次一民用日取农历年、月、日,闰月上下半月只折算月重,四项查表相加后按命主性别匹配冻结歌诀;不应用真太阳时或 DST 二次修正,不保存记录。
Inputs: subject (required), notes, locale, question, +1 more.
divination.preview_daliurenDa Liu Ren PreviewARead-onlyInspect
按调用方冻结的 1800-2100 年北京时间民用时刻实时起课,或按手工校盘字段计算大六壬天地盘、四课三传、十二天将、旬遁旬空、六亲与旺衰;不读取服务器当前时间,不补造年命、行年、神煞、课体附格或确定事件,不保存记录。
Inputs: question (required), casting_mode (required), notes, locale, +9 more.
divination.preview_heluoHe Luo Li Shu PreviewARead-onlyInspect
基于当前用户本人资料或其命盘记录,复用八字主盘的历法、时区、DST、真太阳时和晚子时边界,再按天干洛书数、每支成对河图生成数、天地数化卦与精确立春年度五数三元寄宫计算河洛理数先天命卦;直接四柱因不能确定三元年度而拒绝;不展开元堂爻、后天卦或运限,不保存记录。
Inputs: subject (required), notes, locale, question, +1 more.
divination.preview_liuyaoLiu Yao PreviewCRead-onlyInspect
按指定模式记录实时起卦时间与六组蓍草三变或 6/7/8/9 爻值,生成京房纳甲六爻卦象、精确节令日月直接关系与解读上下文;不自动选择用神,不保存记录。
Inputs: lines (required), question (required), casting_mode (required), casting_time (required), +6 more.
divination.preview_meihuaMei Hua Yi Shu PreviewBRead-onlyInspect
按《梅花易数》卷一先天取数法生成本卦、互卦、变卦和体用;纯乾纯坤改从变卦取互。时间模式按输入地民用钟表字段换算农历,23:00 子时不提前换日,闰月沿用同名月数,不做时区、DST 或真太阳时换算,不保存记录。
Inputs: question (required), casting_method (required), notes, locale, +7 more.
divination.preview_sanshishuSan Shi Shu TableARead-onlyInspect
基于当前用户本人资料或其命盘记录,直接使用原始录入民用出生时刻,以精确立春年度尾数 × 农历月查询常见 10×12 财禄标签表;立春前按上一年度,闰月沿用同名月列,农历日期和时辰不参与索引;直接四柱必须拒绝,不补造前世、来世或现实财富结论,不保存记录。
Inputs: subject (required), notes, locale, question, +1 more.
divination.preview_shaoziShao Zi Life NumberARead-onlyInspect
基于当前用户本人资料或其命盘记录,复用八字主盘与河洛 v4 的历法、时区、DST、真太阳时、晚子时和精确立春三元边界;固定按 chart_trace.input.corrected_local_time 换算农历月日,再用产品冻结的现代教学表计算人命数。该表尚无单一可核验古籍底本,不得称为邵子原典唯一规则;直接四柱因不能确定三元年度而拒绝;不生成流年声序、六亲、阶段运势或 6144 条文,不保存记录。
Inputs: subject (required), notes, locale, question, +1 more.
divination.preview_taiyiTai Yi PreviewBRead-onlyInspect
按调用方冻结的 1800-2100 年北京时间民用时刻,计算太乙统宗 method 0 的年计/月计/日计/時計、72 局、十六宫星将、八门与主客定三算;23:00 子初切换次日日时干支,不按三算大小自动生成主客强弱、胜负或现实建议,不保存记录。
Inputs: date_time (required), calculation_mode (required), notes, locale, +3 more.
divination.preview_tarotTarot PreviewBRead-onlyInspect
按 tarot_deck_correspondence_profiles_v3_3 抽取指定牌系和牌阵,返回对应画像、解释画像、逆位请求/实效与随机来源证据,不保存记录。马赛不附加 Golden Dawn 对应;透特不生成逆位是产品牌系策略,不是普遍规则。带 seed 时先以 FNV-1a 64 位哈希再洗牌,且不保存 seed 明文。
Inputs: question (required), deck, seed, notes, +4 more.
divination.preview_tiebanTie Ban Time WindowsARead-onlyInspect
基于当前用户本人资料或其命盘记录,优先按原始录入民用出生时间计算完整八个 15 分钟窗口、当前与相邻窗口、跨日边界和前后边界距离;直接四柱没有可核验民用时刻,必须拒绝。不包含传统铁板起数或条文,不保存记录。
Inputs: subject (required), notes, locale, question, +1 more.
divination.preview_xiaoliurenXiao Liu Ren PreviewBRead-onlyInspect
按大安起正月、月上起日、日上起时的六宫逐宫法计算落宫并返回通行断诀;时间模式按输入地民用钟表字段换算农历,23:00 子时不提前换日,闰月沿用同名月数,不保存记录。
Inputs: question (required), casting_method (required), notes, locale, +7 more.
election.find_good_daysMonth Suitability SearchARead-onlyInspect
按明确年份、月份和事项原词返回整月黄历宜忌直接命中证据;不读取服务器当前年月,不额外推断吉凶。
Inputs: year (required), month (required), activity (required).
election.lookup_luohou_shashiLuohou Shashi CalendarARead-onlyInspect
按显式北京时间民用起始日期查询罗喉杀师日时证据日历,逐日返回年、季、月罗喉直接命中与两段杀师时;不混入九宫飞星、其他造葬禁忌、整体吉凶、事项适宜性或现实危险结论。
Inputs: day (required), year (required), month (required), days_to_show.
election.preview_donggongDong Gong ElectionARead-onlyInspect
按 YYYY-MM-DD 北京时间民用日期、民用午夜日界、精确到秒的节令月界、日干支和值日匹配《董公選要覽》月日条文;时刻只影响交节月界,23:00–23:59 不提前换次日条文,并返回产品事项别名到古籍命中原词的追踪;不保存记录。
Inputs: date (required), time, notes, locale, +2 more.
election.preview_jianchuJian Chu Twelve OfficersBRead-onlyInspect
按严格 YYYY-MM-DD 北京时间民用日期、民用午夜日界与精确节令月界(精确到秒)查询建除十二值星、同口径十二天神及 lunar-go sect 2 日宜忌;23:00–23:59 不提前换日,时刻只影响交节月界,事项只按完整原词命中;不保存记录。
Inputs: date (required), time, notes, locale, +2 more.
election.preview_taisuiTai Sui RelationsARead-onlyInspect
基于当前用户本人资料或其命盘记录的原始民用出生日期,按农历春节民用午夜年界比对 1900–2100 目标农历年份的值、冲、刑、害、破直接关系;时刻与时区不参与,重叠关系全部保留,不生成现实建议且不保存记录。
Inputs: subject (required), target_year (required), notes, locale, +2 more.
election.preview_wutuWu Tu Solar ElectionARead-onlyInspect
按北京时间民用日期、月朔截法与排山九星规则计算值日及完整十二时辰九星盘;子时按所填民用日期的00时段与23时段分段留痕,内部层级不直接判断具体事项适合性,后续窗口不回绕到本月已过日期;不保存记录。
Inputs: date (required), notes, locale, question, +1 more.
election.preview_xiuTwenty-Eight MansionsARead-onlyInspect
按 0001–9999 范围内严格 YYYY-MM-DD 北京时间民用日期查询 lunar-go 日支 + 星期索引固定表的中国历书二十八宿、宿吉凶、宿歌、七曜、动物与宫守;午夜换日,不接受时刻或时区,不是真实月球位置,不从单宿生成事项结论,不保存记录。
Inputs: date (required), notes, locale, question, +1 more.
lingxi.rag_queryRAG QueryARead-onlyInspect
按用户提供的资料库、人物和检索参数查询 Ancient Echoes RAG,返回答案与出处。会按当前用户的 AI 套餐、模型权限和额度计费;没有 dataset_key 或 source_persona_id 时不会检索知识库,因此必须显式指定(scene=coding 除外)。可用数据集见 GET /api/v1/rag/datasets。
Inputs: messages (required), model, scene, top_k, +12 more.
lingxi.rag_searchlingxi.rag_searchARead-onlyInspect
只检索知识库并返回命中的原文片段与出处(篇目、页码、来源文件、相似度、chunk 位置),不生成回答、不消耗 AI 额度、不依赖 AI provider key。searched=false 表示检索没有执行,调用方必须按 reason 报错,不得当成“库里没有这段内容”。
Inputs: query (required), dataset_key (required), top_k, collection.
qimen.calculate_chartQi Men Dun Jia ChartBRead-onlyInspect
根据明确起局时间、地点与时间语义及二十四节气三元定局表计算时家转盘拆补奇门盘;天禽与中宫天盘寄干始终随天芮转,小寒采用二八五,节气按全球同一瞬间跨时区切换,分钟模式只增加非传统产品十分钟分段。缺失来源、精度、历法、时分、时区或坐标时拒绝,不回填当前时间、默认时区或默认地点。
Inputs: latitude (required), longitude (required), calendar_type (required), precision_mode (required), +18 more.
qizheng.calculate_chartQi Zheng Si Yu ChartBRead-onlyInspect
按完整出生时刻、时区、坐标与显式宫位口径计算七政四余低精度天文核心盘;果老太阳时支立命与浮升点等宫研究口径不混用。
Inputs: calendar_type (required), palace_system (required), birth_latitude (required), birth_longitude (required), +15 more.
vedic.calculate_chartVedic ChartCRead-onlyInspect
按完整出生时刻、时区、坐标与显式 Lahiri/whole-sign/平均交点/年长口径计算吠陀 D1、D9 与 Vimshottari mahadasha。
Inputs: ayanamsa (required), node_type (required), house_system (required), calendar_type (required), +18 more.
ziwei.calculate_chartZi Wei Dou Shu ChartARead-onlyInspect
根据完整出生时刻、有效安星码、显式目标民用时刻及其来源计算可复现的三合紫微主盘与大限、流年、流月、流日、流时;不读取服务器当前时间,不接受任意 settings 绕过安星码。
Inputs: day (required), hour (required), year (required), month (required), +23 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 38 tools
Each tool is namespaced by system (bazi, divination, election, qimen, ziwei, vedic, etc.) and the descriptions explicitly delimit scope, including negative clauses about what the tool will NOT do, which strongly separates similar-looking methods. The only residual friction is within clusters like election.preview_jianchu / preview_donggong / preview_xiu / find_good_days, and the many divination.preview_* methods that share the same 'chart-based lookup' shape—an agent must read descriptions carefully to pick the right one.
Uniform namespace.verb_noun snake_case pattern throughout (e.g. almanac.get_day, bazi.calculate_chart, divination.preview_liuyao, election.find_good_days). Verbs are used consistently within intent families (calculate_ for full charts, preview_ for non-persisted previews, compare_ for cross-chart work, prepare_ for context bundles).
38 tools is heavy for any single server and sits in the 'too many' band, but the breadth reflects genuinely distinct traditional systems (bazi, ziwei, qimen, qizheng, vedic, tarot, almanac, election) rather than redundant duplicates. The surface would benefit from grouping or a meta-router, but almost every tool earns its place in its own subsystem.
Coverage across chart calculation, comparisons, structured analyses, almanac conversion, day-selection and ten divination methods is deep, with explicit evidence-trace outputs. Gaps remain around record lifecycle (no create/list/delete of saved charts despite many tools referencing '命盘记录'), and several methods are preview-only with analysis layers intentionally omitted.
Maintenance
Related MCP Connectors
BaZi, Zi Wei, Qi Zheng Si Yu, divination and almanac from a deterministic engine. Pay per call.
Hosted remote MCP server for BaZi (Four Pillars) charts and the Chinese almanac. No install.
BaZi MCP gateway: 14 tools (6 fortune / 5 forum / 3 meta). API key required. Entertainment only.
63 deterministic Chinese tools: contract checks, calculators, agent utilities. Zero hallucination.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI agents to perform Chinese metaphysics calculations including BaZi charts, Tong Shu indicators, solar terms, and more, using a verified engine with 740+ tests.88MIT
- AlicenseAqualityBmaintenanceProvides traditional Chinese astrology (Bazi, Ziwei) and divination (Liuyao, Meihua, Qimen, etc.) calculations as MCP tools for AI assistants.18299 npm133Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to convert between solar and lunar dates, calculate BaZi charts, generate auspicious-day guidance, track the 24 solar terms, and analyze Five Elements composition through MCP tools.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to invoke the toolkit’s offline divination and astrology calculations—including Bazi, Ziwei, Liuyao, Meihua, Qimen, Huangli, Western, Vedic, and Tarot—through MCP JSON-RPC over stdio, with JSON tool discovery, schemas, local record queries, and explicit persistence.1MIT