Astral Mcp

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

Precision-audited astrology MCP: natal charts, transits, synastry, moon phases. No API key.

已验证STDIO仅桌面位置与生活数据与分析

概览

AI 生成的概览

本地运行的占星 MCP 服务器,根据出生数据计算本命盘、行运、合盘与月相,并用双星历交叉校验精度。

可以做什么
  • 根据出生数据计算完整本命盘,含行星、宫位、相位、星盘特征与逐行星精度审计
  • 计算当前及未来行运,以及任意日期的月相、星座与照明度
  • 比较两张星盘,给出和谐、化学反应、沟通与成长维度的合盘评分
  • 将出生地地名解析为经纬度与时区
  • 运行示例星盘、查询支持能力与数据清单、检查连接健康状态
适用场景
适合需要助手产出结构化占星数据(本命盘、本周行运、两人合盘或今日月相)并由模型自行撰写解读的场景。也适合希望离线、无需密钥地计算星盘、而不依赖托管占星 API 的用户。
运行要求
以 npm 包形式通过 npx 在本地运行,需要 Node.js。无需账号、API 密钥或 OAuth。可选 HTTP 模式通过 ASTRAL_MCP_TRANSPORT、ASTRAL_MCP_HOST、ASTRAL_MCP_PORT 与 ASTRAL_MCP_ALLOWED_ORIGIN 配置。仅出生地地理编码工具需要联网。
安装前请注意
出生数据属于敏感个人信息;服务器本身不存储数据,但出生地工具会把传入的地名字符串发送至 OpenStreetMap。未提供出生时间时按正午推算,上升点与宫位不可靠。HTTP 模式默认仅绑定回环地址,修改主机或允许来源会扩大暴露范围。

安装

在 SourceWeft 中

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

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

Astral MCP

Give your AI agent real astrology — natal charts, transits, synastry & moon phases.
Computed locally, cross-checked by two independent ephemerides. No API key, no account.

[npm version] [npm downloads] [License MIT] [Built for MCP]

[GitHub stars] [Precision audited] [Zero setup]

⚡ Zero-setup install. Wire it into Claude Desktop / Cursor / Hermes and call it immediately — no API key, no OAuth, no account: npx -y astral-mcp

A local-first MCP server that turns birth data into a full, precision-audited astrological reading for AI agents. Stateless and computational — nothing is stored, no credentials exist, and every tool but optional geocoding runs fully offline.

Astral MCP is Delx's focused astrology product. See the Delx platform map for its boundary with the separate Protocol, Security, Wellness and Commerce properties.

Built by David Mosiah. The astrology engine is ported from the Alkhemia app.

New to the protocol pattern? Read What Is an Astrology MCP Server? for the separation between deterministic chart computation and model interpretation, the recommended agent workflow, and the precision/privacy boundaries.

Ready to calculate one? Follow How to Generate a Natal Chart with MCP for the exact birthplace, timezone, unknown birth-time, payload and precision-audit workflow.

Handling sensitive inputs? Read How to Protect Birth Data in Astrology Agent Workflows for payload minimization, local computation, the optional OpenStreetMap boundary and the limits of privacy_mode=summary.

Why this exists

Most astrology libraries are fragile single-engine wrappers, and most "astrology APIs" want a key and a subscription. Agents need something they can trust and call instantly. Astral MCP does two things differently:

  1. It just works. npx -y astral-mcp and you're calling charts — no OAuth, no account, no birthplace database to install.
  2. It checks itself. Every natal chart is computed with one ephemeris and then independently re-derived, planet by planet, with a second one. If they disagree beyond a tight tolerance, the chart is flagged review instead of silently returning a wrong placement.

Setup in 60 seconds

Add it to your MCP client (Claude Desktop, Cursor, Hermes, …):

json
{  "mcpServers": {    "astral": {      "command": "npx",      "args": ["-y", "astral-mcp"]    }  }}

That's the whole setup. There is nothing to authenticate.

Run it directly if you want:

bash
npx -y astral-mcp                      # stdio (default)ASTRAL_MCP_TRANSPORT=http npx -y astral-mcp   # streamable HTTP on 127.0.0.1:3000

See it before you connect

Call astral_demo for a fully-worked example chart (Greenwich, noon, Y2K) including its precision audit — no input, no network, no auth. It shows you the exact payload shape before you send real birth data.

Try it with your agent

"What's my natal chart? I was born 23 Feb 1989, 14:30, in Fortaleza, Brazil."

The agent calls astral_search_birthplace to resolve Fortaleza → lat/lon/timezone, then astral_compute_natal_chart.

"Any big transits hitting my chart this week?" → astral_current_transits "How compatible are we?" (two birth datas) → astral_synastry "What phase is the moon in today?" → astral_moon_phase

Precision

Astral MCP ships every natal chart with a precision audit. The primary engine (circular-natal-horoscope-js) computes the chart; the verifier (astronomy-engine) re-derives each planet's ecliptic longitude independently. A chart is verified only when every planet agrees within tolerance and lands in the same sign.

Across a built-in accuracy suite of charts spanning 1945–2010 and six timezones, the worst cross-engine disagreement is under 0.01°. Run it yourself:

bash
npm run test:accuracy

Data availability

CapabilitySupported
Planets (Sun…Pluto), Ascendant, MC/IC✅
Houses (placidus, koch, campanus, regiomontanus, topocentric, equal-house, whole-sign)✅
Major aspects with orb, strength, applying/separating✅
Chart signature (dominant element/modality, pattern, stelliums, angular planets)✅
Retrogrades · timezone/DST handling✅
Transits (current + upcoming) · moon phase✅
Synastry (two-chart comparison, scored)✅
Tropical & sidereal zodiac✅
Lunar nodes, Chiron, asteroids, fixed stars⏳ planned
Minor aspects⏳ planned
Interpretation text❌ by design — astral-mcp returns structured data; your model writes the reading

Tools

  • astral_compute_natal_chart — full natal chart, precision-audited by default
  • astral_current_transits — current + upcoming transits to a chart, with moon phase
  • astral_synastry — compare two charts (harmony / chemistry / communication / growth)
  • astral_moon_phase — moon phase, sign and illumination for any date
  • astral_search_birthplace — geocode a place to latitude / longitude / timezone
  • astral_demo — worked example chart, no input needed
  • astral_capabilities — what this server supports and what it doesn't
  • astral_data_inventory — data domains and recommended first calls
  • astral_agent_manifest — install + usage rules for agents
  • astral_connection_status — health check via a sample chart + dual-engine audit

The three chart tools (astral_compute_natal_chart, astral_current_transits, astral_synastry) take a privacy_mode parameter — a payload-verbosity axis separate from response_format:

  • full (default) — the complete payload, including the per-planet precision audit
  • structured — same structure, redundant/derivable fields dropped
  • summary — only the high-signal essentials (luminaries + Ascendant, chart signature, top aspects)

A full Greenwich natal payload is ~6.9 KB; summary is ~1.2 KB (~80% smaller), so an agent that only needs a quick read can ask for less and spend fewer tokens.

Notes for accurate readings

  • Pass the birthplace timezone, not the caller's. astral_search_birthplace returns it.
  • birth_time is optional. Without it, noon is assumed: planet signs stay accurate, but the Ascendant and houses are unreliable.

Privacy & Security

Astral MCP stores nothing and holds no secrets. The only optional network call is astral_search_birthplace (OpenStreetMap), which sends just the place-name string you pass. See SECURITY.md.

Contributing

The computation core in src/engine/ is ported from Alkhemia — keep it framework-free. See AGENTS.md for the development rules and the test gate (npm test).

License

MIT — see LICENSE.

HTTP (v2 stateless)

Default is stdio. Optional Streamable HTTP — no session id, JSON responses, loopback only:

bash
npx -y astral-mcp --http# GET  http://127.0.0.1:3000/health# POST http://127.0.0.1:3000/mcp   (sessionless)

Env: ASTRAL_MCP_HOST, ASTRAL_MCP_PORT, ASTRAL_MCP_TRANSPORT=http.

Skill or MCP

bash
npx -y astral-mcp call astral_connection_status --json '{}'

来源:README.md,提交 cf87f7e

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

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

评分

已满足适用检查项的 50%

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

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分