@cosmosos/mcp-ephemeris 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +91 -91
- package/README.md +153 -153
- package/package.json +3 -2
package/LICENSE
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
# License — @cosmosos/mcp-ephemeris
|
|
2
|
-
|
|
3
|
-
Required Notice: Copyright 2026 KAIROSAST LTD (https://llmastro.com)
|
|
4
|
-
|
|
5
|
-
------------------------------------------------------------------------
|
|
6
|
-
This software is **free for noncommercial use** (personal, research,
|
|
7
|
-
education, non-profit organizations) under the PolyForm Noncommercial
|
|
8
|
-
License 1.0.0, reproduced below.
|
|
9
|
-
|
|
10
|
-
**Commercial / professional use requires a separate, paid license.**
|
|
11
|
-
To obtain one, contact KAIROSAST LTD via https://llmastro.com/contact.
|
|
12
|
-
|
|
13
|
-
Note: the optional `swisseph` dependency (Swiss Ephemeris, by Astrodienst)
|
|
14
|
-
is licensed separately (AGPL or a commercial Swiss Ephemeris license) and
|
|
15
|
-
is NOT covered by this license. Commercial users must comply with
|
|
16
|
-
Astrodienst's terms independently.
|
|
17
|
-
------------------------------------------------------------------------
|
|
18
|
-
|
|
19
|
-
# PolyForm Noncommercial License 1.0.0
|
|
20
|
-
|
|
21
|
-
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
22
|
-
|
|
23
|
-
## Acceptance
|
|
24
|
-
|
|
25
|
-
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
26
|
-
|
|
27
|
-
## Copyright License
|
|
28
|
-
|
|
29
|
-
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
30
|
-
|
|
31
|
-
## Distribution License
|
|
32
|
-
|
|
33
|
-
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
34
|
-
|
|
35
|
-
## Notices
|
|
36
|
-
|
|
37
|
-
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
38
|
-
|
|
39
|
-
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
40
|
-
|
|
41
|
-
## Changes and New Works License
|
|
42
|
-
|
|
43
|
-
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
44
|
-
|
|
45
|
-
## Patent License
|
|
46
|
-
|
|
47
|
-
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
48
|
-
|
|
49
|
-
## Noncommercial Purposes
|
|
50
|
-
|
|
51
|
-
Any noncommercial purpose is a permitted purpose.
|
|
52
|
-
|
|
53
|
-
## Personal Uses
|
|
54
|
-
|
|
55
|
-
Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
|
|
56
|
-
|
|
57
|
-
## Noncommercial Organizations
|
|
58
|
-
|
|
59
|
-
Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
|
|
60
|
-
|
|
61
|
-
## Fair Use
|
|
62
|
-
|
|
63
|
-
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
64
|
-
|
|
65
|
-
## No Other Rights
|
|
66
|
-
|
|
67
|
-
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
68
|
-
|
|
69
|
-
## Patent Defense
|
|
70
|
-
|
|
71
|
-
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
72
|
-
|
|
73
|
-
## Violations
|
|
74
|
-
|
|
75
|
-
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
76
|
-
|
|
77
|
-
## No Liability
|
|
78
|
-
|
|
79
|
-
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
80
|
-
|
|
81
|
-
## Definitions
|
|
82
|
-
|
|
83
|
-
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
84
|
-
|
|
85
|
-
**You** refers to the individual or entity agreeing to these terms.
|
|
86
|
-
|
|
87
|
-
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
88
|
-
|
|
89
|
-
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
90
|
-
|
|
91
|
-
**Use** means anything you do with the software requiring one of your licenses.
|
|
1
|
+
# License — @cosmosos/mcp-ephemeris
|
|
2
|
+
|
|
3
|
+
Required Notice: Copyright 2026 KAIROSAST LTD (https://llmastro.com)
|
|
4
|
+
|
|
5
|
+
------------------------------------------------------------------------
|
|
6
|
+
This software is **free for noncommercial use** (personal, research,
|
|
7
|
+
education, non-profit organizations) under the PolyForm Noncommercial
|
|
8
|
+
License 1.0.0, reproduced below.
|
|
9
|
+
|
|
10
|
+
**Commercial / professional use requires a separate, paid license.**
|
|
11
|
+
To obtain one, contact KAIROSAST LTD via https://llmastro.com/contact.
|
|
12
|
+
|
|
13
|
+
Note: the optional `swisseph` dependency (Swiss Ephemeris, by Astrodienst)
|
|
14
|
+
is licensed separately (AGPL or a commercial Swiss Ephemeris license) and
|
|
15
|
+
is NOT covered by this license. Commercial users must comply with
|
|
16
|
+
Astrodienst's terms independently.
|
|
17
|
+
------------------------------------------------------------------------
|
|
18
|
+
|
|
19
|
+
# PolyForm Noncommercial License 1.0.0
|
|
20
|
+
|
|
21
|
+
<https://polyformproject.org/licenses/noncommercial/1.0.0>
|
|
22
|
+
|
|
23
|
+
## Acceptance
|
|
24
|
+
|
|
25
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
26
|
+
|
|
27
|
+
## Copyright License
|
|
28
|
+
|
|
29
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
|
|
30
|
+
|
|
31
|
+
## Distribution License
|
|
32
|
+
|
|
33
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
|
|
34
|
+
|
|
35
|
+
## Notices
|
|
36
|
+
|
|
37
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
|
|
38
|
+
|
|
39
|
+
> Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
|
|
40
|
+
|
|
41
|
+
## Changes and New Works License
|
|
42
|
+
|
|
43
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
44
|
+
|
|
45
|
+
## Patent License
|
|
46
|
+
|
|
47
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
48
|
+
|
|
49
|
+
## Noncommercial Purposes
|
|
50
|
+
|
|
51
|
+
Any noncommercial purpose is a permitted purpose.
|
|
52
|
+
|
|
53
|
+
## Personal Uses
|
|
54
|
+
|
|
55
|
+
Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
|
|
56
|
+
|
|
57
|
+
## Noncommercial Organizations
|
|
58
|
+
|
|
59
|
+
Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
|
|
60
|
+
|
|
61
|
+
## Fair Use
|
|
62
|
+
|
|
63
|
+
You may have "fair use" rights for the software under the law. These terms do not limit them.
|
|
64
|
+
|
|
65
|
+
## No Other Rights
|
|
66
|
+
|
|
67
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
68
|
+
|
|
69
|
+
## Patent Defense
|
|
70
|
+
|
|
71
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
72
|
+
|
|
73
|
+
## Violations
|
|
74
|
+
|
|
75
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
76
|
+
|
|
77
|
+
## No Liability
|
|
78
|
+
|
|
79
|
+
***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
|
|
80
|
+
|
|
81
|
+
## Definitions
|
|
82
|
+
|
|
83
|
+
The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
|
|
84
|
+
|
|
85
|
+
**You** refers to the individual or entity agreeing to these terms.
|
|
86
|
+
|
|
87
|
+
**Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
88
|
+
|
|
89
|
+
**Your licenses** are all the licenses granted to you for the software under these terms.
|
|
90
|
+
|
|
91
|
+
**Use** means anything you do with the software requiring one of your licenses.
|
package/README.md
CHANGED
|
@@ -1,153 +1,153 @@
|
|
|
1
|
-
# @cosmosos/mcp-ephemeris
|
|
2
|
-
|
|
3
|
-
**The real sky, for your AI.** An [MCP](https://modelcontextprotocol.io) server
|
|
4
|
-
that gives any assistant (Claude, Cursor, agents) **computed planetary
|
|
5
|
-
positions** — never guessed — powered by the
|
|
6
|
-
[Swiss Ephemeris](https://www.astro.com/swisseph/) engine, and **validated
|
|
7
|
-
against JPL Horizons (NASA)** to under one arcsecond.
|
|
8
|
-
|
|
9
|
-
> **Cardinal rule: the LLM never computes.** This server is a facade over an
|
|
10
|
-
> ephemeris engine. The model interprets; the sky is a fact.
|
|
11
|
-
|
|
12
|
-
*(Version française : <https://llmastro.com/notre-moteur>)*
|
|
13
|
-
|
|
14
|
-
## Quick start (Claude Desktop)
|
|
15
|
-
|
|
16
|
-
Open **Settings → Developer → Edit Config**, then add:
|
|
17
|
-
|
|
18
|
-
```json
|
|
19
|
-
{
|
|
20
|
-
"mcpServers": {
|
|
21
|
-
"llmastro": {
|
|
22
|
-
"command": "npx",
|
|
23
|
-
"args": ["-y", "@cosmosos/mcp-ephemeris"]
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
Fully quit Claude Desktop (system tray) and relaunch it. Then ask:
|
|
30
|
-
*"What's the moon phase today?"* — Claude calls the server and answers from
|
|
31
|
-
genuinely computed positions.
|
|
32
|
-
|
|
33
|
-
**Cursor / Windsurf / others**: add the same `llmastro` entry
|
|
34
|
-
(`command: npx`, `args: ["-y", "@cosmosos/mcp-ephemeris"]`) to your client's MCP
|
|
35
|
-
configuration.
|
|
36
|
-
|
|
37
|
-
## Tools exposed
|
|
38
|
-
|
|
39
|
-
**19 tools**, all backed by the same server-side computed engine.
|
|
40
|
-
|
|
41
|
-
### Positions & sky
|
|
42
|
-
| Tool | Input | Output |
|
|
43
|
-
|---|---|---|
|
|
44
|
-
| `get_planet_positions` | `datetime` (ISO UTC) | ecliptic positions of all bodies (sign, degree, retro) |
|
|
45
|
-
| `get_moon_phase` | `datetime` (ISO UTC) | moon phase, illumination %, description |
|
|
46
|
-
| `get_current_sky` | `latitude`, `longitude` | the sky right now (current transits) for a place |
|
|
47
|
-
| `get_aspects` | `datetime` (ISO UTC) | grid of major + minor aspects between bodies |
|
|
48
|
-
|
|
49
|
-
### Natal chart & relationships
|
|
50
|
-
| Tool | Input | Output |
|
|
51
|
-
|---|---|---|
|
|
52
|
-
| `get_natal_chart` | birth + `zodiac` (tropical/sidereal), `houseSystem` (7 systems) | full chart: houses, aspects, ASC/MC, moon phase, Hermetic Lots |
|
|
53
|
-
| `get_transits` | birth + optional `datetime` | transit→natal aspects, sorted by orb |
|
|
54
|
-
| `get_synastry` | two births | inter-chart aspects + harmony/tension summary |
|
|
55
|
-
| `get_composite_chart` | two births | midpoint composite chart |
|
|
56
|
-
| `get_secondary_progressions` | birth + `targetDate` | progressed positions ("a day for a year") |
|
|
57
|
-
| `get_solar_return` | birth + `year` (+ optional place) | instant + chart of the solar return |
|
|
58
|
-
| `get_lunar_return` | birth + optional `after` | instant + chart of the next lunar return |
|
|
59
|
-
|
|
60
|
-
### Celestial events
|
|
61
|
-
| Tool | Input | Output |
|
|
62
|
-
|---|---|---|
|
|
63
|
-
| `get_ingresses` | `body`, `start`, `end` | sign-change dates (retrograde-robust) |
|
|
64
|
-
| `get_retrograde_windows` | `body`, `start`, `end` | retrograde/direct stations over the range |
|
|
65
|
-
| `get_eclipse_details` | `datetime`, `kind` | magnitude, obscuration, Saros of a known eclipse *(swisseph)* |
|
|
66
|
-
| `get_next_eclipse` | `from`, `kind`, optional `backward` | next/previous eclipse: maximum, type, contacts *(swisseph)* |
|
|
67
|
-
|
|
68
|
-
### Astrocartography, numerology, authority
|
|
69
|
-
| Tool | Input | Output |
|
|
70
|
-
|---|---|---|
|
|
71
|
-
| `get_astrocartography` | `datetime` (ISO UTC) | planetary MC/IC lines + parans (crossings) |
|
|
72
|
-
| `get_life_path` | `date` (YYYY-MM-DD) | life-path number (numerology) |
|
|
73
|
-
| `get_engine_diagnostic` | — | active engine, native addon load status, real precision |
|
|
74
|
-
| `validate_against_horizons` | `datetime`, optional `bodies` | delta of our positions vs JPL Horizons (NASA) in arcseconds — network required |
|
|
75
|
-
|
|
76
|
-
*(swisseph)* = requires the native Swiss Ephemeris addon; returns `null` on the AstraCore fallback.
|
|
77
|
-
|
|
78
|
-
## Precision
|
|
79
|
-
|
|
80
|
-
Under [Swiss Ephemeris](https://www.astro.com/swisseph/), positions match the
|
|
81
|
-
world reference **JPL Horizons (NASA)** to under one arcsecond (measured
|
|
82
|
-
2026-07-19):
|
|
83
|
-
|
|
84
|
-
| Body | Difference vs NASA |
|
|
85
|
-
|---|---|
|
|
86
|
-
| Sun | 0.2″ |
|
|
87
|
-
| Moon | 1.5″ |
|
|
88
|
-
| Jupiter | 0.1″ |
|
|
89
|
-
| Pluto | 0.4″ |
|
|
90
|
-
|
|
91
|
-
Check it yourself with the `validate_against_horizons` tool.
|
|
92
|
-
|
|
93
|
-
## Two engines
|
|
94
|
-
|
|
95
|
-
Computation is routed by the `ASTRO_ENGINE` variable:
|
|
96
|
-
|
|
97
|
-
- **`swisseph`** (default) — Swiss Ephemeris, native addon, sub-arcsecond
|
|
98
|
-
precision. Compiles automatically wherever a C++ build chain is present
|
|
99
|
-
(Linux, macOS, most servers).
|
|
100
|
-
- **`astracore`** — in-house pure-TypeScript engine (VSOP/Meeus), **no native
|
|
101
|
-
binary**. Used as an automatic fallback when `swisseph` couldn't be compiled
|
|
102
|
-
(common on Windows). Sun and Moon stay accurate; outer planets drift by a few
|
|
103
|
-
arcminutes.
|
|
104
|
-
|
|
105
|
-
To force an engine: `ASTRO_ENGINE=swisseph` or `ASTRO_ENGINE=astracore`.
|
|
106
|
-
|
|
107
|
-
## Privacy
|
|
108
|
-
|
|
109
|
-
The server runs **on your machine**: your birth data is sent nowhere. Only
|
|
110
|
-
`validate_against_horizons` makes an outbound request (to NASA's public API).
|
|
111
|
-
|
|
112
|
-
## Requirements
|
|
113
|
-
|
|
114
|
-
- Node.js ≥ 20.
|
|
115
|
-
- For maximum precision (`swisseph`): a C++ build chain (`python3`, `make`, a
|
|
116
|
-
compiler) on the machine. Otherwise, automatic fallback to `astracore`, with
|
|
117
|
-
no configuration.
|
|
118
|
-
|
|
119
|
-
## About
|
|
120
|
-
|
|
121
|
-
Powered by the astrology engine of [Llmastro](https://llmastro.com). Learn more
|
|
122
|
-
about the precision and architecture: <https://llmastro.com/notre-moteur>.
|
|
123
|
-
|
|
124
|
-
## License
|
|
125
|
-
|
|
126
|
-
**Free for non-commercial use** (personal, research, education, non-profit
|
|
127
|
-
organizations) — under the
|
|
128
|
-
[PolyForm Noncommercial 1.0.0](./LICENSE) license.
|
|
129
|
-
|
|
130
|
-
**Commercial / professional use: a paid license is required.** To obtain one,
|
|
131
|
-
contact KAIROSAST LTD via <https://llmastro.com/contact>.
|
|
132
|
-
|
|
133
|
-
Note: the optional `swisseph` dependency (Swiss Ephemeris, Astrodienst) has its
|
|
134
|
-
own license (AGPL or a commercial Swiss Ephemeris license) and is not covered by
|
|
135
|
-
this one. Professional use must comply with it separately.
|
|
136
|
-
|
|
137
|
-
## Development
|
|
138
|
-
|
|
139
|
-
This repository is **self-contained**: the ephemeris engine is vendored in
|
|
140
|
-
`vendor/ephemeris/` (source), and the build inlines it into `dist/` via
|
|
141
|
-
[`tsup`](https://tsup.egoist.dev/).
|
|
142
|
-
|
|
143
|
-
```bash
|
|
144
|
-
pnpm install # or npm install
|
|
145
|
-
pnpm build # bundles dist/index.js (engine inlined)
|
|
146
|
-
pnpm start # runs the MCP server (stdio) locally
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
- Default engine: `swisseph` (sub-arcsecond precision) if the native addon
|
|
150
|
-
compiles, otherwise automatic fallback to `astracore` (pure TypeScript, no
|
|
151
|
-
binary). Force via `ASTRO_ENGINE=swisseph|astracore`.
|
|
152
|
-
- The vendored engine is a snapshot of `@astro-platform/ephemeris` (Llmastro),
|
|
153
|
-
re-synced manually.
|
|
1
|
+
# @cosmosos/mcp-ephemeris
|
|
2
|
+
|
|
3
|
+
**The real sky, for your AI.** An [MCP](https://modelcontextprotocol.io) server
|
|
4
|
+
that gives any assistant (Claude, Cursor, agents) **computed planetary
|
|
5
|
+
positions** — never guessed — powered by the
|
|
6
|
+
[Swiss Ephemeris](https://www.astro.com/swisseph/) engine, and **validated
|
|
7
|
+
against JPL Horizons (NASA)** to under one arcsecond.
|
|
8
|
+
|
|
9
|
+
> **Cardinal rule: the LLM never computes.** This server is a facade over an
|
|
10
|
+
> ephemeris engine. The model interprets; the sky is a fact.
|
|
11
|
+
|
|
12
|
+
*(Version française : <https://llmastro.com/notre-moteur>)*
|
|
13
|
+
|
|
14
|
+
## Quick start (Claude Desktop)
|
|
15
|
+
|
|
16
|
+
Open **Settings → Developer → Edit Config**, then add:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"mcpServers": {
|
|
21
|
+
"llmastro": {
|
|
22
|
+
"command": "npx",
|
|
23
|
+
"args": ["-y", "@cosmosos/mcp-ephemeris"]
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Fully quit Claude Desktop (system tray) and relaunch it. Then ask:
|
|
30
|
+
*"What's the moon phase today?"* — Claude calls the server and answers from
|
|
31
|
+
genuinely computed positions.
|
|
32
|
+
|
|
33
|
+
**Cursor / Windsurf / others**: add the same `llmastro` entry
|
|
34
|
+
(`command: npx`, `args: ["-y", "@cosmosos/mcp-ephemeris"]`) to your client's MCP
|
|
35
|
+
configuration.
|
|
36
|
+
|
|
37
|
+
## Tools exposed
|
|
38
|
+
|
|
39
|
+
**19 tools**, all backed by the same server-side computed engine.
|
|
40
|
+
|
|
41
|
+
### Positions & sky
|
|
42
|
+
| Tool | Input | Output |
|
|
43
|
+
|---|---|---|
|
|
44
|
+
| `get_planet_positions` | `datetime` (ISO UTC) | ecliptic positions of all bodies (sign, degree, retro) |
|
|
45
|
+
| `get_moon_phase` | `datetime` (ISO UTC) | moon phase, illumination %, description |
|
|
46
|
+
| `get_current_sky` | `latitude`, `longitude` | the sky right now (current transits) for a place |
|
|
47
|
+
| `get_aspects` | `datetime` (ISO UTC) | grid of major + minor aspects between bodies |
|
|
48
|
+
|
|
49
|
+
### Natal chart & relationships
|
|
50
|
+
| Tool | Input | Output |
|
|
51
|
+
|---|---|---|
|
|
52
|
+
| `get_natal_chart` | birth + `zodiac` (tropical/sidereal), `houseSystem` (7 systems) | full chart: houses, aspects, ASC/MC, moon phase, Hermetic Lots |
|
|
53
|
+
| `get_transits` | birth + optional `datetime` | transit→natal aspects, sorted by orb |
|
|
54
|
+
| `get_synastry` | two births | inter-chart aspects + harmony/tension summary |
|
|
55
|
+
| `get_composite_chart` | two births | midpoint composite chart |
|
|
56
|
+
| `get_secondary_progressions` | birth + `targetDate` | progressed positions ("a day for a year") |
|
|
57
|
+
| `get_solar_return` | birth + `year` (+ optional place) | instant + chart of the solar return |
|
|
58
|
+
| `get_lunar_return` | birth + optional `after` | instant + chart of the next lunar return |
|
|
59
|
+
|
|
60
|
+
### Celestial events
|
|
61
|
+
| Tool | Input | Output |
|
|
62
|
+
|---|---|---|
|
|
63
|
+
| `get_ingresses` | `body`, `start`, `end` | sign-change dates (retrograde-robust) |
|
|
64
|
+
| `get_retrograde_windows` | `body`, `start`, `end` | retrograde/direct stations over the range |
|
|
65
|
+
| `get_eclipse_details` | `datetime`, `kind` | magnitude, obscuration, Saros of a known eclipse *(swisseph)* |
|
|
66
|
+
| `get_next_eclipse` | `from`, `kind`, optional `backward` | next/previous eclipse: maximum, type, contacts *(swisseph)* |
|
|
67
|
+
|
|
68
|
+
### Astrocartography, numerology, authority
|
|
69
|
+
| Tool | Input | Output |
|
|
70
|
+
|---|---|---|
|
|
71
|
+
| `get_astrocartography` | `datetime` (ISO UTC) | planetary MC/IC lines + parans (crossings) |
|
|
72
|
+
| `get_life_path` | `date` (YYYY-MM-DD) | life-path number (numerology) |
|
|
73
|
+
| `get_engine_diagnostic` | — | active engine, native addon load status, real precision |
|
|
74
|
+
| `validate_against_horizons` | `datetime`, optional `bodies` | delta of our positions vs JPL Horizons (NASA) in arcseconds — network required |
|
|
75
|
+
|
|
76
|
+
*(swisseph)* = requires the native Swiss Ephemeris addon; returns `null` on the AstraCore fallback.
|
|
77
|
+
|
|
78
|
+
## Precision
|
|
79
|
+
|
|
80
|
+
Under [Swiss Ephemeris](https://www.astro.com/swisseph/), positions match the
|
|
81
|
+
world reference **JPL Horizons (NASA)** to under one arcsecond (measured
|
|
82
|
+
2026-07-19):
|
|
83
|
+
|
|
84
|
+
| Body | Difference vs NASA |
|
|
85
|
+
|---|---|
|
|
86
|
+
| Sun | 0.2″ |
|
|
87
|
+
| Moon | 1.5″ |
|
|
88
|
+
| Jupiter | 0.1″ |
|
|
89
|
+
| Pluto | 0.4″ |
|
|
90
|
+
|
|
91
|
+
Check it yourself with the `validate_against_horizons` tool.
|
|
92
|
+
|
|
93
|
+
## Two engines
|
|
94
|
+
|
|
95
|
+
Computation is routed by the `ASTRO_ENGINE` variable:
|
|
96
|
+
|
|
97
|
+
- **`swisseph`** (default) — Swiss Ephemeris, native addon, sub-arcsecond
|
|
98
|
+
precision. Compiles automatically wherever a C++ build chain is present
|
|
99
|
+
(Linux, macOS, most servers).
|
|
100
|
+
- **`astracore`** — in-house pure-TypeScript engine (VSOP/Meeus), **no native
|
|
101
|
+
binary**. Used as an automatic fallback when `swisseph` couldn't be compiled
|
|
102
|
+
(common on Windows). Sun and Moon stay accurate; outer planets drift by a few
|
|
103
|
+
arcminutes.
|
|
104
|
+
|
|
105
|
+
To force an engine: `ASTRO_ENGINE=swisseph` or `ASTRO_ENGINE=astracore`.
|
|
106
|
+
|
|
107
|
+
## Privacy
|
|
108
|
+
|
|
109
|
+
The server runs **on your machine**: your birth data is sent nowhere. Only
|
|
110
|
+
`validate_against_horizons` makes an outbound request (to NASA's public API).
|
|
111
|
+
|
|
112
|
+
## Requirements
|
|
113
|
+
|
|
114
|
+
- Node.js ≥ 20.
|
|
115
|
+
- For maximum precision (`swisseph`): a C++ build chain (`python3`, `make`, a
|
|
116
|
+
compiler) on the machine. Otherwise, automatic fallback to `astracore`, with
|
|
117
|
+
no configuration.
|
|
118
|
+
|
|
119
|
+
## About
|
|
120
|
+
|
|
121
|
+
Powered by the astrology engine of [Llmastro](https://llmastro.com). Learn more
|
|
122
|
+
about the precision and architecture: <https://llmastro.com/notre-moteur>.
|
|
123
|
+
|
|
124
|
+
## License
|
|
125
|
+
|
|
126
|
+
**Free for non-commercial use** (personal, research, education, non-profit
|
|
127
|
+
organizations) — under the
|
|
128
|
+
[PolyForm Noncommercial 1.0.0](./LICENSE) license.
|
|
129
|
+
|
|
130
|
+
**Commercial / professional use: a paid license is required.** To obtain one,
|
|
131
|
+
contact KAIROSAST LTD via <https://llmastro.com/contact>.
|
|
132
|
+
|
|
133
|
+
Note: the optional `swisseph` dependency (Swiss Ephemeris, Astrodienst) has its
|
|
134
|
+
own license (AGPL or a commercial Swiss Ephemeris license) and is not covered by
|
|
135
|
+
this one. Professional use must comply with it separately.
|
|
136
|
+
|
|
137
|
+
## Development
|
|
138
|
+
|
|
139
|
+
This repository is **self-contained**: the ephemeris engine is vendored in
|
|
140
|
+
`vendor/ephemeris/` (source), and the build inlines it into `dist/` via
|
|
141
|
+
[`tsup`](https://tsup.egoist.dev/).
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
pnpm install # or npm install
|
|
145
|
+
pnpm build # bundles dist/index.js (engine inlined)
|
|
146
|
+
pnpm start # runs the MCP server (stdio) locally
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
- Default engine: `swisseph` (sub-arcsecond precision) if the native addon
|
|
150
|
+
compiles, otherwise automatic fallback to `astracore` (pure TypeScript, no
|
|
151
|
+
binary). Force via `ASTRO_ENGINE=swisseph|astracore`.
|
|
152
|
+
- The vendored engine is a snapshot of `@astro-platform/ephemeris` (Llmastro),
|
|
153
|
+
re-synced manually.
|
package/package.json
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmosos/mcp-ephemeris",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
|
+
"mcpName": "io.github.kairosastro-sketch/mcp-ephemeris",
|
|
4
5
|
"type": "module",
|
|
5
|
-
"description": "
|
|
6
|
+
"description": "MCP server exposing server-computed planetary positions (Swiss Ephemeris), validated against JPL Horizons (NASA). Plug any LLM/agent into the real sky: 19 astrology tools, never hallucinated.",
|
|
6
7
|
"keywords": [
|
|
7
8
|
"mcp",
|
|
8
9
|
"model-context-protocol",
|