Sleep with the Earth
README.md
# Sleep with the Earth agent skills
Facts about the night for any place on Earth, for Claude, Codex, Cursor, Hermes and any agent that reads skills or speaks MCP.
- **Tonight's sky:** sunset, the moment the sky is fully dark, sunrise, the Moon's phase, moonrise and moonset, for any latitude and longitude and any date. Computed locally and checked against the US Naval Observatory.
- **Geomagnetic activity now:** the planetary Kp index from NOAA's Space Weather Prediction Center.
- **The sound guide:** short, sourced answers on brown, pink and white noise, 432 Hz, 528 Hz and the Schumann resonance.
- **A noise file:** one safe ffmpeg or SoX command for plain brown, pink or white noise of any length, with a fade in and out.
## Install the skill
```bash
npx skills add sleepwiththeearth/agent-skills
```
Then ask your agent something like "when is it fully dark here tonight, and what is the Moon doing?" or "make me an hour of brown noise".
The skill is `skills/sleep-with-the-earth/SKILL.md`. It ships a small standard-library Python script, `scripts/earth_tonight.py`, that works out the Sun and Moon with no network access.
## The MCP server
A read-only remote MCP server at `https://mcp.sleepwiththeearth.com/mcp` (Streamable HTTP, no sign-in, no key). Source in [`mcp-server/`](mcp-server/), a stateless Cloudflare Worker. Connector page: https://sleepwiththeearth.com/mcp
| Tool | What it returns |
|---|---|
| `earth_tonight(city or latitude/longitude, timezone?, date?)` | Sunset, full darkness, sunrise, moon phase and illumination, moonrise and moonset, next new and full moon, and current Kp, as text and structured data |
| `earth_clock(same inputs)` | The same as ISO 8601 times with the place's UTC offset, plus `is_sun_up`, `is_dark_now`, `is_fully_dark_now`, `is_moon_up` and the next sunset and sunrise, for automations |
| `sound_guide(topic?, question?)` | Sourced notes on brown, pink and white noise, 432 Hz, 528 Hz and the Schumann resonance |
| `focus_sound(colour?, minutes?, fade_seconds?, volume?, format?)` | A ready ffmpeg command and a SoX alternative for plain noise, with one line on each flag |
Every tool is annotated read-only. The server stores nothing, keeps no sessions and does not log what you send it. It calls one outside service, NOAA's public planetary K-index feed, at most once every 15 minutes, and sends it nothing from you.
Add it to any MCP client as a Streamable HTTP server:
```json
{ "mcpServers": { "sleep-with-the-earth": { "type": "streamable-http", "url": "https://mcp.sleepwiththeearth.com/mcp" } } }
```
Claude Code:
```bash
claude mcp add --transport http sleep-with-the-earth https://mcp.sleepwiththeearth.com/mcp
```
Run it locally over stdio instead:
```bash
cd mcp-server && npm ci && npm run stdio
```
## Accuracy
Sun and Moon positions follow Jean Meeus, *Astronomical Algorithms* (chapters 25 and 47). The tests compare them with the US Naval Observatory's published rise and set times and with JPL's DE421 ephemeris at nine places in both hemispheres, including Tromsø in the midnight sun and the polar night: rise and set within 1 minute, the end of astronomical twilight within seconds. Real events can differ by a few minutes with hills, height above sea level and unusual air.
## Sources
- Geomagnetic activity: NOAA Space Weather Prediction Center, planetary K-index (public data).
- Sound guide: each fact names its source in the reply (Wikipedia articles on noise colours, concert pitch, the Schumann resonances and hearing range; Balser and Wagner, Nature 188, 1960; Science Feedback).
- The sound guide describes what each sound or tuning is. It makes no health claims and gives no health advice.
## Hermes Agent
This repo is also a portable Agent Plugins v1 package (`plugin.json`, `mcp.json`, `skills/`) for [Hermes Agent](https://github.com/NousResearch/hermes-agent):
```bash
hermes plugins install sleep-with-the-earth # once listed in the Hermes plugin catalog
hermes plugins enable sleep-with-the-earth
```
The skill loads as `sleep-with-the-earth:sleep-with-the-earth` and the tools arrive as `mcp__sleep-with-the-earth__earth_tonight` and so on.
### Disclosure
- **Network calls:** the MCP tools call `https://mcp.sleepwiththeearth.com/mcp` only when the agent uses one. The server receives the tool arguments (a city or coordinates, a date and time zone, a sound topic or question, noise settings). The skill's own steps make one optional network call, to NOAA's public Kp feed.
- **No telemetry, no storage:** the server keeps no sessions, writes nothing and does not log tool inputs.
- **No credentials:** nothing is stored or sent. No key, no sign-in.
- **Shell commands:** the skill runs `python3 scripts/earth_tonight.py` (standard library, no network) and, when asked, gives the user an ffmpeg or SoX command that writes one audio file in the current folder. No `sudo`, no installs, no downloads.
- The package marks the server `untrusted`, so Hermes asks before any tool that is not annotated read-only. All four are read-only.
## License
MIT, see [LICENSE](LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues