
alfalaki
io.github.samsali-g/alfalaki
Astrology from a real ephemeris: horoscopes, natal charts, moon phase, transits, planetary hours.
Documentation
alfalaki-mcp
MCP stdio bridge to alfalaki.space — astrology computed from a real ephemeris rather than recycled horoscope text. The heavy lifting happens on the server (astronomy-engine + Swiss-style ephemeris data); this package is a thin adapter so any MCP client that spawns a local stdio server can use it.
What it exposes
The remote server currently reports these tools (verified against the live endpoint by
npm test):
alfalaki_list_signs,alfalaki_get_sign— zodiac sign index and per-sign dataalfalaki_get_horoscope_url— the horoscope page for a sign and timeframealfalaki_get_placement— planet-in-sign placement pagesalfalaki_get_sky_now— current sky / transit statealfalaki_get_compatibility_url— compatibility page for a pair of signsalfalaki_get_tarot,alfalaki_get_faq— tarot card and FAQ lookupsalfalaki_get_daily_essay— today's computed sky essay in English and Arabicalfalaki_publisher— attribution/metadata helper
Call tools/list after connecting for the authoritative list and schemas — the server is the
source of truth, this README only mirrors what it announced last time the test ran.
Configure a client
Claude Desktop (claude_desktop_config.json) or any client using mcpServers:
{
"mcpServers": {
"alfalaki": {
"command": "npx",
"args": ["-y", "alfalaki-mcp"]
}
}
}
VS Code / Cursor style (mcp.json):
{
"servers": {
"alfalaki": {
"type": "stdio",
"command": "npx",
"args": ["-y", "alfalaki-mcp"]
}
}
}
If the client can talk Streamable HTTP directly, the bridge is unnecessary — point it at
https://alfalaki.space/mcp.
Environment
| Variable | Default | Purpose |
|---|---|---|
MCP_REMOTE | https://alfalaki.space/mcp | Remote endpoint to relay to |
MCP_DEBUG | unset | Log relay/session details to stderr |
How it works
Newline-delimited JSON-RPC on stdin → one POST per message to the remote endpoint →
the response (a JSON body, or SSE frames if the server streams) is written back as one
JSON-RPC line per message on stdout. Mcp-Session-Id and MCP-Protocol-Version are echoed
when the server provides them, per the Streamable HTTP transport spec. Notifications that the
server accepts with 202 produce no output — same behaviour as a local server.
Nothing is cached and nothing is computed locally: if alfalaki.space changes a tool, this bridge reflects it immediately.
Verify
npm test # spawns the bridge, initializes, lists tools, asserts a response
The smoke test needs network access (it talks to the live server).
License
MIT. The astrology data itself is served by alfalaki.space under its own terms (https://alfalaki.space/terms/).
No installation packages available.