astro-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
astro-mcp
An MCP server for Vedic astrology and panchang calculations, powered by PyJHora and the Swiss Ephemeris.
Tools
Tool | Returns |
| Sunrise, sunset, vara, tithi, nakshatra, yoga and karana, with start and end times. |
| D1 birth chart: lagna and planets with sign, degree, nakshatra, pada, whole-sign house and retrograde state. |
| Divisional chart such as Navamsa D9 or Dasamsa D10, with each planet's aspects, natural friendships and combust state. |
| Degree-based house cusps (Sripati, KP/Placidus or equal) and each planet's bhava. |
| Current transits with houses from the natal lagna and Moon, plus Sade Sati status. |
| Vimshottari timeline, balance at birth, and the running chain down to pratyantar, sookshma, prana or deha. |
| Yogini dasha timeline and running chain, with Yogini names and ruling planets. |
| Chara (Jaimini rasi) dasha with KN Rao, PVN Rao or Irangatti methods. |
| Classical yogas and doshas, including Manglik, Kala Sarpa, Pitru and Raja yogas, plus category counts and opposing yoga pairs. |
| Shadbala, Sarvashtakavarga and Bhinnashtakavarga bindus. |
| North Indian Ashtakoota (36 points) or South Indian Porutham (10 checks), plus Manglik status and a D9 comparison. Vasiya can use the classical or whole-sign convention. |
| Abhijit and Brahma muhurta, Rahu kaalam, Yamagandam, Gulika and Durmuhurtam. |
| Hindu festivals in a date range, with purnimanta month, tithi and paksha. |
Related MCP server: Astro Skill MCP Server
Defaults
Location: Varanasi (25.3176 N, 82.9739 E),
Asia/KolkataAyanamsa: Lahiri / Chitrapaksha, selectable per request (
RAMAN,KP,TRUE_CHITRA,TRUE_PUSHYA,YUKTESHWAR,FAGAN,SURYA_SIDDHANTA, ...)Panchang: Drik ganita, sunrise-based day
Sunrise: Hindu rising by default; optionally refraction or bottom limb
Houses: whole sign for D1; Sripati, KP/Placidus or equal for bhava chalit
Dasha: Vimshottari, Yogini and Chara, running chain to any depth from maha to deha
Strength: Shadbala and Ashtakavarga
Matching: North Indian Ashtakoota (36 points) or South Indian Porutham (10 checks), with Manglik status and a D9 comparison; Vasiya uses the split half-sign convention by default
Months and festivals: purnimanta
Place-based tools accept latitude, longitude, timezone (an IANA name or a
fixed UTC offset in hours) and location_name to override the defaults. The
chart tools (get_panchang, get_kundli, get_varga, get_bhava_chalit,
get_dashas, get_yogini_dashas, get_chara_dashas, get_transits,
get_yogas and get_strength) also accept ayanamsa. The chart tools
(get_kundli, get_varga, get_bhava_chalit, get_transits and get_yogas)
also accept node_type (true by default, or mean). get_matching takes
two birth times
and a timezone; coordinates are only needed for the Manglik and D9 checks, and
girl_latitude/girl_longitude cover a girl born elsewhere. system selects
north (Ashtakoota) or south (Porutham). The dasha and transit tools also
accept as_of_timezone for the default as_of date, so "today" can follow
the user's current timezone instead of the birth place's.
Install
Requires Python 3.12 or newer.
python3.12 -m venv .venv
.venv/bin/pip install -e .With uv:
uv venv --python 3.12
uv pip install -e .The server speaks MCP over stdio:
.venv/bin/astro-mcpSet PORT to serve streamable HTTP instead:
PORT=8080 .venv/bin/astro-mcpThe MCP endpoint is http://localhost:8080/mcp. The included Dockerfile is
set up for Cloud Run, which provides PORT automatically.
Configure
Point any MCP client at the installed executable:
{
"mcpServers": {
"astro-mcp": {
"command": "/absolute/path/to/astro-mcp/.venv/bin/astro-mcp"
}
}
}Examples
get_panchang:
{"date": "2026-11-20"}{
"sunrise": "2026-11-20T06:22:30+05:30",
"tithi": {
"name": "Dashami",
"paksha": "Shukla",
"start": "2026-11-19T07:31:30+05:30",
"end": "2026-11-20T07:16:50+05:30"
},
"nakshatra": {
"name": "Purva Bhadrapada",
"pada": 4,
"start": "2026-11-19T06:10:35+05:30",
"end": "2026-11-20T06:56:46+05:30"
}
}get_kundli:
{"date": "1990-01-01", "time": "12:00"}get_varga (D9 by default):
{"date": "1990-01-01", "time": "12:00", "division": 9}get_bhava_chalit (Sripati by default):
{"date": "1990-01-01", "time": "12:00", "house_system": "kp"}get_transits (defaults as_of to today; Sade Sati is included):
{"date": "1995-05-12", "time": "07:00", "as_of": "2026-11-21"}get_dashas (defaults as_of to today; depth 3 adds pratyantar):
{"date": "1990-01-01", "time": "12:00", "as_of": "2026-11-20", "depth": 3}get_yogas:
{"date": "1995-05-12", "time": "07:00"}get_chara_dashas (method also accepts pvn_rao, irangatti_male or
irangatti_female):
{
"date": "1995-05-12", "time": "07:00",
"as_of": "2026-11-21", "depth": 3, "method": "kn_rao"
}get_strength:
{"date": "1995-05-12", "time": "07:00"}get_matching (boy and girl birth details; add "system": "south" for
Porutham). Tara uses the classical 3/5/7 inauspicious remainders, Varna
uses the element mapping (water Brahmin, fire Kshatriya, earth Vaishya, air
Shudra), and Gana is read boy-to-girl. Add "vasya_convention": "whole_sign"
to treat all of Sagittarius as Manava and all of Capricorn as Jalachara:
{
"boy_date": "1995-05-12", "boy_time": "07:00",
"girl_date": "1990-01-01", "girl_time": "12:00",
"system": "north", "vasya_convention": "split"
}get_muhurta:
{"date": "2026-11-20"}get_festivals (calendar can be all, purnimanta, amanta, solar or
gregorian; the range is capped at 366 days):
{"start_date": "2026-11-01", "end_date": "2026-11-30", "calendar": "all"}Birth times use 24-hour HH:MM. Dates use YYYY-MM-DD.
Test
.venv/bin/pytestLicense and attribution
AGPL-3.0-or-later. See LICENSE.
This server calls PyJHora (AGPL-3.0) and Swiss Ephemeris through pyswisseph (AGPL-3.0, or a commercial license from Astrodienst). If you run a modified version as a network service, AGPL section 13 requires you to offer the corresponding source to its users.
Astrology output is for cultural and informational purposes. It is not medical, legal or financial advice.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Professional Vedic astrology tools for AI agents via MCP.
78 astrology calculations, Tarot, symbolic readings and Vedic calendars via two scoped MCP tools.
Vedic astrology MCP: panchanga, kundli matching, muhurta, dashas.
Vedic kundli, panchang, dashas, nakshatras and KP charts for AI agents, one API key.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables compute of live Vedic astrology birth charts, dashas, kundali matches, and AI readings via 22 real API tools.2217 npm1MIT
- AlicenseAqualityCmaintenanceProvides Vedic astrology calculations (kundali, dasha, panchang, yoga) and Hindi/English PDF reports via 11 MCP tools, with SQLite-backed client/report storage.113MIT
- AlicenseAqualityCmaintenanceHosted Streamable HTTP MCP server for Vedic astrology: panchang, kundali (birth chart), matchmaking, dashas, doshas, muhurta and 16 tools computed by a precision astronomy engine.1766 npmMIT
- FlicenseNot gradedqualityDmaintenanceMCP server for Indian astrology (Jyotisha) that provides deterministic Lahiri sidereal calculations, question-aware natal context, Vimshottari dasha, and current gochara, enabling natural language conversations about astrology with saved birth profiles.-