Asktian

io.github.douglasgan由 GitHub 账号 douglasgan 发布v0.3.3更新于 Oct 24, 2026

Chinese metaphysics (bazi, qimen, 5-element) as decision-support tools for AI agents.

已验证Streamable HTTP可网页运行位置与生活金融

概览

AI 生成的概览

AskTian 把八字、五行、每日干支等中国命理作为工具提供给 AI 助手,用于生成每日运势、合盘与择时建议。

可以做什么
  • 根据出生日期生成个性化每日运势:卦象原型、有利颜色、方位与时辰及建议
  • 比较两人的命理合盘,给出定性标签与可选分数
  • 为某个行动(如发布、艰难对话)寻找吉利的时段
  • 无需出生日期,查询某一天的整体能量
  • 分析人名(个人、宝宝或公司)的主导五行与一句话气质
  • 对二元预测市场问题给出仅供娱乐的是/否/中性倾向
适用场景
适合用户询问今日运势、会议或发布择时、关系与姓名合盘,或想要一个与金融无关的趣味市场解读时使用。它只是娱乐性的决策参考,并非事实或科学依据。
运行要求
可作为本地 npm 包(@asktian/mcp-server,需 Node.js,stdio)运行,也可连接托管的 streamable-HTTP 端点。免费解读无需密钥;可选的 ASKTIAN_API_KEY(托管端点用 Bearer 头)可提高速率上限并解锁高级档。需要访问 asktian 后端的网络。
安装前请注意
解读会把出生日期、姓名和问题发送到 asktian 后端。可选的 ASKTIAN_API_KEY 属于密钥,付费方案可能产生费用。市场解读明确为娱乐用途、非投资建议,不应据此下注;best_time 返回的是引导性预览而非后端结果。README 还链接了代币与钱包,与这些工具无关。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Asktian,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.douglasgan%2Fasktian/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "asktian": {
      "type": "http",
      "url": "https://mcp.asktian.com/mcp"
    }
  }
}

README

asktian MCP server

[CI] [npm] [License: MIT] [asktian MCP server]

Chinese metaphysics inside your AI assistant. 不知道就问天 · Ask tian when you don't know.

Adds 4000 years of Chinese metaphysical traditions (bazi / 八字, qimen / 奇门, five elements, daily 干支 energy) as callable tools for any AI agent that speaks the Model Context Protocol — Claude Desktop, Claude Code, Cursor, Windsurf, Zed, and any MCP-compatible client.

When you ask your AI assistant a timing, person, or decision question, it can quietly consult asktian before answering.

The decision layer for AI agents. Agents already plug in search, memory, and payments — askTIAN is the layer that gives them a stance: a specific, falsifiable call instead of "it depends." → Why it sells · 2-min quickstart

✨ Real readings, no key needed.

The tools call the live askTIAN backend and return real results — daily almanac, fate compatibility, name analysis, day energy — straight out of the box. The read endpoints are public and rate-limited (~300 requests / 15 min). An optional ASKTIAN_API_KEY (api.asktian.com) raises the limit and unlocks the premium tian.* reading tier. market_read is a deterministic local novelty signal; best_time returns a guided preview (no backend endpoint yet).

You: "I have a hard conversation with my boss tomorrow at 3pm. Should I move it?"
Claude (with asktian MCP):  → calls asktian_best_time_for_action({ birthdate, action: "difficult_conversation" })  → "Friday 10am scores much higher. Tomorrow 3pm is your clash hour.     Want me to draft a message to reschedule?"

Install

bash
npm install -g @asktian/mcp-server

Then add to your client's MCP config:

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{  "mcpServers": {    "asktian": {      "command": "asktian-mcp",      "env": {        "ASKTIAN_API_KEY": "at_live_xxxxxxxxxxxxxxxx"      }    }  }}

Restart Claude Desktop. Look for the 🔌 icon — asktian should appear with 6 tools.

Cursor

Add to ~/.cursor/mcp.json:

json
{  "mcpServers": {    "asktian": {      "command": "asktian-mcp",      "env": {        "ASKTIAN_API_KEY": "at_live_xxxxxxxxxxxxxxxx"      }    }  }}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json — same shape as above.

Zed

Add to your Zed settings under assistant.mcp_servers — same command + env.

Any other MCP client

Run asktian-mcp as a subprocess; it speaks JSON-RPC over stdio per the MCP spec.

Remote / hosted (streamable-HTTP)

For LangChain, LlamaIndex, Fetch.ai, or any agent that connects to a hosted MCP endpoint, run the server in HTTP mode instead of stdio:

bash
ASKTIAN_MCP_HTTP=1 PORT=8080 npx -y @asktian/mcp-server# → streamable-HTTP on :8080/mcp   (health check: GET :8080/health)

Hosted at https://mcp.asktian.com/mcp. Pass your key as a Bearer header: Authorization: Bearer YOUR_ASKTIAN_API_KEY.

LangChain & LlamaIndex

Both have native MCP adapters — askTIAN works with zero integration code. Copy-paste snippets in docs/langchain-llamaindex.md.


API key

The key is optional — readings are real either way.

🆓 No key (default)🔑 With key
Setupnothing — works instantlyget a key at api.asktian.com
Readingsreal — live api.asktian.com backend (daily almanac, compatibility, name analysis, day energy)same real readings
Rate limit~300 requests / 15 min (per IP)higher limits
Premium tian.* tier—unlocked
Costfreeper the key's plan

To use a key (higher limits + premium tier), set ASKTIAN_API_KEY in your client config:

jsonc
{  "mcpServers": {    "asktian": {      "command": "npx",      "args": ["-y", "@asktian/mcp-server"],      "env": { "ASKTIAN_API_KEY": "at_live_..." }   // ← omit this line to stay in local mode    }  }}

Hosted (streamable-HTTP)? Pass it as a header instead: Authorization: Bearer at_live_....


The 6 tools

1. asktian_daily_reading

Personalized daily energy reading for a person.

input:  { birthdate: "1992-05-15", birth_hour?: "14:30", gender?: "male"|"female"|"any" }output: archetype (one of 8 trigrams), today's stem-branch energy,        favorable colors / direction / hours, headline + body advice

Use when: user asks how today will be, what colors to wear, what direction to face their desk, daily guidance.

2. asktian_compatibility

Fate compatibility between two people. Returns qualitative label first (e.g. "互补型 Complementary"), then numeric score (hidden if <60 per asktian design principles — low compat should never feel like rejection).

input:  { person_a_birthdate, person_b_birthdate, dimension?: "love"|"career"|"friend"|"general" }output: qualitative label, category, element flow, today's advice, score (with should_show_score flag)

Use when: "will this person and I work", "compatibility check", "is this a good match".

3. asktian_best_time_for_action

The killer tool. Find the most auspicious time windows for a specific action over the next N days.

input:  { birthdate, action: "difficult_conversation"|"negotiation"|"launch"|... , range_days?: 7 }output: top 3 best windows (date + hour + score + reason), windows to avoid

Use when: "when should I do X", "should I move this meeting", "is tomorrow a good day to launch", "when should I have the hard talk".

4. asktian_today_energy

General energy of the day — no birthdate needed.

input:  { date?: "YYYY-MM-DD" } (defaults to today)output: 干支 stem+branch, dominant 5-element character, description

Use when: AI wants to add cosmic context to a generic suggestion without needing the user's birthdate.

5. asktian_name_analysis

Quick energetic profile of a name (姓名学).

input:  { name, language?: "en"|"zh"|"auto" }output: dominant element guess, tone, one-liner

Use when: discussing baby names, company names, or "what kind of person is X" when birthdate unknown.

6. asktian_market_read

A Chinese-metaphysics signal on a binary prediction-market question (Polymarket/Kalshi style).

input:  { question, resolve_date?: YYYY-MM-DD, subject_birthdate?: YYYY-MM-DD }output: { signal: { lean: yes|no|neutral, score 5–95, confidence }, reasoning, disclaimer }

Use when: a user or a trading agent wants an uncorrelated, for-fun read on a market — "will X happen by date Y". The value isn't prediction; it's a deterministic signal that doesn't read the same news every LLM reads, published so the calls can be scored over time. ⚠️ Entertainment / falsifiable ritual — NOT financial advice. Every response says so, and the tool is built to be presented as a novelty, never as a bet recommendation.


Design principles the tools follow

asktian is opinionated. The MCP tools surface these constraints to your AI agent through the note_for_ai field on each response. Notable rules:

  1. Qualitative label always wins. Numbers are secondary.
  2. Scores below 60 hide the number. Use the label only — never make someone feel rejected by a digit.
  3. Most positive accurate framing. Same chart can be read 5 ways; pick the one that respects the person.
  4. Today's advice is specific, not vague. "Reach out before 2pm" beats "Mercury retrograde."

If your AI client surfaces a numeric score when should_show_score: false, it's violating the design contract.


Examples — sample prompts that route through asktian

These are the kinds of user prompts that an AI agent with asktian installed handles dramatically better:

User promptTool the AI will use
"How will today be for me? Born 1992-05-15."asktian_daily_reading
"I have a 3pm meeting tomorrow with a difficult client. Should I move it?"asktian_best_time_for_action
"My partner is born 1990-08-22 and I'm 1992-05-15. How are we as a couple?"asktian_compatibility
"What kind of day is it today?"asktian_today_energy
"Is 'Aurora' a good name for my startup?"asktian_name_analysis
"Best week to launch my product? My birthdate is..."asktian_best_time_for_action
"Should I propose to my partner this month? Mine 1992-05-15, theirs 1990-08-22."asktian_best_time_for_action + asktian_compatibility

The agent's response in each case becomes specific and actionable instead of vague.


Roadmap

  • Direct integration with the full api.asktian.com endpoint catalogue (qimen, ziwei, almanac, fengshui, name-analysis traditional)
  • Lucky places near me (Google Places integration)
  • Tian-points / $TIAN token incentives for power use
  • Tools for venue / business: "is this address auspicious for a cafe"
  • Multi-tradition cross-reference (Western astrology, Vedic, I Ching) — same person, multiple lenses

PRs welcome. The lib/ folder is intentionally self-contained for clean npm distribution.


Links


License

MIT — use it anywhere, fork it, ship it inside your own product. The asktian protocol is meant to be public infrastructure.

不知道就问天.

来源:README.md,提交 0c6b219

工具

6

asktian_daily_reading

Get today's personalized Chinese metaphysics (八字 bazi + 干支 daily energy) reading for a person. Returns their archetype (one of 8 trigrams 八卦), today's energy, favorable colors/direction/hours, headline advice, and any caution. Use this when the user asks how today will be for them, what colors to wear, where to face their desk, or for general daily guidance.

输入参数genderbirthdate必填birth_hour

asktian_compatibility

Compute fate compatibility between two people via Chinese metaphysics (八字 pairing, 5-element generation/clash). Returns qualitative label first (e.g. '互补型 Complementary'), then a numeric score (hidden if <60 to avoid making low-compat feel like rejection — this is intentional per the asktian design principles). Useful when user asks about compatibility, fit, or 'will this person and I work'.

输入参数dimensionperson_a_birthdate必填person_b_birthdate必填

asktian_best_time_for_action

Find the most auspicious time windows in the next N days for a specific action. Use this when the user asks 'when should I do X', 'should I move this meeting', 'is tomorrow a good day to launch', 'when should I have the hard conversation', etc. Returns top 3 best windows and any windows to avoid. This is the most useful tool for real-time decision support inside any AI assistant — it lets you give specific scheduling advice instead of vague reflections.

输入参数actionbirthdate必填range_days

asktian_today_energy

Get today's GENERAL energy (no person needed) — the 干支 (stem + branch) and the dominant 5-element character of the day. Useful when the user asks 'what kind of day is it', 'what's the energy today', or when an AI agent wants to add cosmic context to a generic suggestion without needing the user's birthdate.

输入参数date

asktian_name_analysis

Quick energetic profile of a name (姓名学 name-analysis). Useful when the user asks about someone's name, a baby name, a company name, or 'what kind of person is X' when no birthdate is available. Returns a one-line vibe + dominant element guess.

输入参数name必填language

asktian_market_read

Get a Chinese-metaphysics signal on a binary prediction-market question (Polymarket/Kalshi style yes/no outcomes). Use when a user — or a trading agent — wants an UNCORRELATED, for-fun read on a market: 'will X happen by date Y'. Returns a lean (yes/no/neutral), a confidence, the 五行 reasoning from the resolution date's energy, and a mandatory disclaimer. This is ENTERTAINMENT and a falsifiable ritual — NOT financial advice. Always present it as a novelty signal, never as a recommendation to place a bet.

输入参数question必填resolve_datesubject_birthdate

版本历史

1
  1. v0.3.3最新Sep 16, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分