Vedic 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.
Vedic Astro MCP
A production-oriented Model Context Protocol server for sidereal Vedic astrology.
vedic-astro-mcp exposes deterministic astronomical calculations and a daily horoscope lookup through an MCP server. It combines the Swiss Ephemeris, the Lahiri ayanamsa, IANA timezone-aware birth conversion, Vedic dignity/aspect enrichment, Vimshottari dasha timelines, and natal-to-current transit houses in a single tool interface for MCP-compatible clients.
Capabilities
Tool | Purpose |
| Computes a Lahiri sidereal whole-sign chart, graha positions, lagna, nakshatra/pada, dignity, sign lords, house lords, drishti targets, and navamsa signs |
| Builds the Vimshottari Mahadasha and Antardasha timeline and identifies periods active at a chosen date |
| Calculates current graha positions and measures each planet's 1–12 house position from the natal Moon and natal Lagna |
| Resolves the natal Moon sign and returns a cached daily horoscope for that Vedic rashi |
Related MCP server: Kundlit Vedic Astrology
Architecture
MCP Host / AI Client
│ JSON-RPC over stdio
▼
main.py
FastMCP("vedic-astro-mcp")
│
├── utilities/timeutil.py ── ZoneInfo + DST validation ──► UTC
├── utilities/chart.py ──── Swiss Ephemeris + Lahiri ────► Sidereal chart
│ ├── lagna / houses
│ ├── Sun, Moon, Mars, Mercury, Jupiter, Venus, Saturn
│ └── Rahu + mean-node Ketu
├── utilities/enrich.py ──── Dignity, lords, aspects, navamsa
├── utilities/dasha.py ───── Vimshottari Mahadasha / Antardasha
└── utilities/horoscope.py ─ httpx + per-sign/daily cacheCalculation profile
Ephemeris: Swiss Ephemeris in sidereal mode
Ayanamsa: Lahiri (
swe.SIDM_LAHIRI)Zodiac: Sidereal; whole-sign house measurement
Lagna: Ascendant returned in degrees, sign, nakshatra, and pada
Nodes: Mean Rahu and point-opposite mean Ketu
Graha retrogression: Swiss Ephemeris speed for regular planets; Rahu and Ketu marked retrograde
Dasha system: Vimshottari, 120-year cycle
Nakshatra division: 13°20′ per nakshatra, 4 pada per nakshatra
House lords: Sign lord mapping from the Lagna sign
Quick Start
Prerequisites
Python 3.14 or newer
uvfor the reproducible environmentInternet access only for
get_horoscope
Install
cd C:\path\to\vedic-astro-mcp
# Create and synchronize the locked environment
uv sync
# Direct stdio server
uv run python main.pyThe server waits for MCP messages on stdin/stdout. Do not interact with it through a normal terminal prompt.
Alternative installation
py -3.14 -m venv .venv
.venv\Scripts\Activate.ps1
python -m pip install -r requirements.txt
python main.pyMCP Client Configuration
Configure the server in an MCP-compatible host using the absolute project path.
{
"mcpServers": {
"vedic-astro": {
"command": "uv",
"args": [
"--directory",
"C:\\Users\\your-name\\path\\to\\vedic-astro-mcp",
"run",
"python",
"main.py"
]
}
}
}If uv is not on PATH, set command to the full uv.exe path.
Inspect the server
uv run fastmcp inspect main.py:mcpTo run with the FastMCP CLI:
uv run fastmcp run main.py:mcp --transport stdioTool Reference
All local birth date/time values describe the location's wall clock time. Convert them by supplying an IANA timezone such as Asia/Kolkata, America/New_York, or Europe/London.
get_birth_chart
{
"date": "2000-01-01",
"time": "12:00",
"lat": 28.6139,
"lon": 77.209,
"tz": "Asia/Kolkata"
}Notable response fields
ayanamsa— Lahiri ayanamsa for the Julian daylagna— longitude, sign, sign index, degree in sign, nakshatra, and padagrahas— per-planet longitude, sign, sign index, house, nakshatra, pada, retrograde status, dignity, lords, and navamsahouse_lords— lord of each Lagna-derived houseinput— normalized UTC and original location/timezone parameters
get_dasha
{
"date": "2000-01-01",
"time": "12:00",
"lat": 28.6139,
"lon": 77.209,
"tz": "Asia/Kolkata",
"as_of": "2026-11-26T09:51:21+05:30"
}as_of is optional. If omitted, the server uses the current UTC time. ISO strings without an offset are interpreted as UTC.
Response highlights
birth_lord— Vimshottari nakshatra lord at birthbalance_years— estimated remaining years of the birth Mahadashamahadashas— ordered 120-year periodscurrent_maha— Mahadasha containingas_ofantardashas— nine subperiods inside the current Mahadashacurrent_antar— Antardasha containingas_of
get_transits
{
"date": "2000-01-01",
"time": "12:00",
"lat": 28.6139,
"lon": 77.209,
"tz": "Asia/Kolkata",
"as_of": "2026-11-26T09:51:21+05:30"
}Each current graha includes:
lon,sign,sign_idx, anddeg_in_signnakshatraandpadaretrohouse_from_moonhouse_from_lagna
get_horoscope
{
"date": "2000-01-01",
"time": "12:00",
"lat": 28.6139,
"lon": 77.209,
"tz": "Asia/Kolkata"
}The result identifies the natal Moon sign and returns the third-party API payload under horoscope. Successful responses are cached in memory per (sign, UTC date). API/network failures produce:
horoscope API unavailable. try later.Time and Location Handling
Birth date and time
Use the documented formats exactly:
date:YYYY-MM-DDtime:HH:MMtz: IANA timezone name
Examples:
{"date": "1994-06-18", "time": "06:35", "tz": "Asia/Kolkata"}
{"date": "1988-11-09", "time": "18:20", "tz": "America/New_York"}DST safety
The time utility detects DST edge cases instead of silently guessing:
DST gap: a nonexistent local wall time raises
TimeErrorDST fold: an ambiguous repeated wall time raises
TimeErrorNormal time: converted to an aware UTC
datetime
Coordinates
lat is north-positive; lon is east-positive.
New Delhi : 28.6139, 77.2090
New York : 40.7128, -74.0060
London : 51.5074, -0.1278
Sydney : -33.8688, 151.2093Response Model Example
{
"ayanamsa": 23.8561,
"lagna": {
"lon": 29.12,
"sign": "Taurus",
"sign_idx": 1,
"deg_in_sign": 29.12,
"nakshatra": "Mrigashira",
"pada": 3
},
"grahas": {
"Moon": {
"lon": 41.24,
"sign": "Taurus",
"sign_idx": 1,
"house": 1,
"retro": false,
"dignity": "exalted",
"sign_lord": "Venus",
"nak_lord": "Sun",
"navamsa_sign": 0
}
}
}Exact values depend on birth data, ephemeris data availability, and the selected chart engine state.
Planetary Enrichment
Dignity
The server reports a compact dignity label:
exalteddebilitatedownneutral
The implemented exaltation/sign pairs are Sun 0, Moon 1, Mars 9, Mercury 5, Jupiter 3, Venus 11, and Saturn 6.
Classical drishti
Graha | Additional special aspects |
Mars | 4th, 7th, 8th |
Jupiter | 5th, 7th, 9th |
Saturn | 3rd, 7th, 10th |
Sun, Moon, Mercury, Venus, Rahu, Ketu | 7th |
Aspect houses are returned relative to the planet's computed whole-sign house.
Vimshottari Cycle
The built-in Mahadasha sequence begins from the Moon's Nakshatra lord and proceeds clockwise through:
Ketu 7 years
Venus 20 years
Sun 6 years
Moon 10 years
Mars 7 years
Rahu 18 years
Jupiter 16 years
Saturn 19 years
Mercury 17 yearsThe cycle is 120 years. Dates are calculated using 365.25 days per tropical year.
Project Layout
vedic-astro-mcp/
├── main.py # FastMCP registration and public tool schemas
├── utilities/
│ ├── chart.py # Swiss Ephemeris chart engine
│ ├── dasha.py # Vimshottari Mahadasha / Antardasha engine
│ ├── enrich.py # Dignity, lords, aspects, and navamsa enrichment
│ ├── horoscope.py # Horoscope API adapter and memory cache
│ └── timeutil.py # IANA timezone and DST conversion
├── pyproject.toml # Package metadata and dependencies
├── requirements.txt # Plain pip dependency list
├── uv.lock # Reproducible uv dependency resolution
└── .python-version # Required interpreter pinDevelopment
Run the server
uv run python main.pyRun an interactive calculation
uv run python -c "from main import get_birth_chart; import json; print(json.dumps(get_birth_chart('2000-01-01','12:00',28.6139,77.2090,'Asia/Kolkata'), indent=2))"Test dependencies
The project declares pytest and pytest-asyncio as development dependencies, but currently contains no test suite.
uv run --group dev pytestDependencies
Dependency | Role |
| Python bindings for Swiss Ephemeris |
| MCP server framework and stdio transport |
| Cross-platform IANA timezone database |
| Location/timezone companion dependency |
| Horoscope HTTP client |
| curl-compatible HTTP dependency available to the environment |
Reliability and Limitations
Birth-place coordinates must be accurate; longitude directly affects the Lagna.
The chart currently uses mean Rahu and point-opposite Ketu.
House numbers are derived from sign separation from Lagna/Moon rather than cusp degree occupancy.
get_horoscopedepends on an external third-party service and may be unavailable.The in-memory horoscope cache is process-local and resets on restart.
No authentication or network listener is configured; the server uses MCP stdio.
Swiss Ephemeris and these Vedic interpretation rules should be reviewed for production astrological or clinical use.
External Service
Daily horoscope content is requested from:
https://horoscope-api-alpha.vercel.app/horoscope/{rashi}A call is allowed once per process per sign per local calendar date via the in-memory cache.
License
No license file is currently included. Until a license is added, the repository should be considered unlicensed and its reuse terms should be clarified with the maintainer.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Professional Vedic astrology tools for AI agents via MCP.
Official Divine API MCP for Western Astrology: Natal, Synastry, Transit, Composite, Progressions.
Vedic astrology and ephemeris engine calibrated to Swiss Ephemeris and Jagannatha Hora.
Western, Vedic, and Chinese astrology calculations, charts, forecasts, and geocoding.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceA Vedic astrology MCP server that computes birth charts, dashas, transits, and yogas locally using Swiss Ephemeris, enabling an LLM to interpret horoscopes and provide personalized advice.-
- 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.-
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients and LLMs to compute Vedic astrology charts, including 47 ayanamsha modes, 20 divisional charts, Vimshottari dasha, transits, Panchanga, and related calculations from birth details. It also resolves places to timezone and coordinates and exposes configuration and server-status tools.AGPL 3.0