Astro Skill MCP Server
The Astro Skill MCP Server is a Vedic astrology engine that performs deterministic astrological calculations, manages client profiles, and generates JSON/PDF reports.
Parse Birth Details – Extract date, time, place, coordinates, and timezone from free-form text, flagging any missing fields.
Calculate Kundali – Compute a full sidereal birth chart with lagna, Moon rashi, nakshatra (with pada), planet positions, whole-sign houses, Navamsa (D9), ashtakavarga tables, and Vimshottari dasha seed. Supports multiple ayanamsas (Lahiri, Raman, KP, etc.).
Calculate Dasha – Generate the complete Vimshottari mahadasha/antardasha/pratyantardasha timeline and identify the currently running period for any given date.
Calculate Gochar – Compute planetary transits relative to natal Moon and Lagna, including Saturn Sade Sati/Dhaiya phase analysis.
Calculate Compatibility – Perform Ashtakoot (36-point) Guna Milan between two kundalis, with koota-wise breakdown and Nadi, Bhakoot, and Manglik dosha findings.
Calculate Panchang – Compute daily almanac elements (vara, tithi, nakshatra, yoga, karana, sunrise/sunset, muhurtas) for any date and location.
Generate JSON Report – Assemble and save a structured astrology report combining kundali, dasha, panchang, and gochar sections.
Generate PDF Report – Render a polished client-facing PDF with charts, planet table, and dasha timeline in Hindi or English, using an HTML/Chromium renderer or ReportLab fallback, with a premium
pandit_v1template option.Save Client Profile – Create or update client profiles (with birth details and notes) in a SQLite store via upsert.
Find Client Profile – Look up a client by exact ID or case-insensitive display name substring.
List Client Reports – Retrieve previously generated reports for a client, sorted newest first, with type, file path, and timestamp.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Astro Skill MCP Server calculate kundali for John born 15 Mar 1990 10:30 AM New York"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
🌌 Astro Skill
🎯 Overview
Astro Skill is a production-grade, deterministic Vedic astrology engine that converts birth details and celestial coordinates into structured mathematical charts, timelines, and factual reports.
🔬 Zero Hallucinations: 100% calculation-backed using bundled Swiss Ephemeris data (
.se1SWIEPH viapyswisseph) and Lahiri (Chitrapaksha) ayanamsa.🔌 3 Plug-and-Play Surfaces:
Stdio MCP Server (
astro-mcp): 11 stable tools for Claude Desktop, Cursor, Codex, OpenClaw, and any Model Context Protocol client.Python Library & CLI: Import directly in Python or run standalone CLI calculator scripts with
--jsonoutputs.Agent Skill: Portable
SKILL.mdready to equip autonomous coding agents and orchestrators.
📄 In-Process PDF Generator: Generates bilingual (Hindi & English) Kundali and Panchang charts via ReportLab with bundled Noto Sans Devanagari font — zero headless browser or Chrome dependencies.
🔒 100% Offline & Private: Zero external API keys, zero rate-limits, and zero network calls required for astrological calculations.
Related MCP server: kundali-mcp
🏛️ Architecture & Layering
[ Client / Agent Request ]
│
┌───────────────┼───────────────┐
▼ ▼ ▼
Stdio MCP Server Python CLI Agent Skill
(11 Tools/JSON) (Scripts/Lib) (SKILL.md)
│ │ │
└───────────────┬───────────────┘
│
▼
┌───────────────────────┐
│ Astro Core Engine │
│ (Swiss Ephemeris │
│ + Lahiri Ayanamsa) │
└───────────┬───────────┘
│
┌───────────────┴───────────────┐
▼ ▼
[ Structured JSON ] [ In-Process ReportLab PDF ]
- 12 Bhavas, Grahas, Yogas - Lagna & Navamsa (D1/D9)
- Vimshottari Timeline - Devanagari Hindi/English
- Gochar & Guna Milan - Dasha Strips & Panchang✨ Core Capabilities
Category | Features & Astrological Foundations |
Kundali (D1 & D9) | Lagna, Rashi, Nakshatra + Pada, 9 Grahas with true retrograde flags, whole-sign houses, and high-precision Navamsa (D9) divisional chart. |
Planetary Strengths | Classical dignity, Digbala, Vargottama, Combustion (Asta), Graha Yuddha, and Lagna-specific functional benefic / malefic classifications. |
Classical Yogas | Gajakesari, Budhaditya, Pancha Mahapurusha, Raja Yogas, Neechabhanga, Vipreet (Harsha/Sarala/Vimala), Kaal Sarp (full/partial), Parivartana (Maha/Khala/Dainya) — with classical cancellation checks. |
12-House Bhava Analysis | House lords with placement & strength, occupants, Parashari planetary aspects (Drishti), and Bhava Karakas. |
Vimshottari Dasha | Mahadasha, Antardasha, and Pratyantardasha timelines with true astronomical birth-balance handling. |
Daily Panchang | Sunrise-anchored Tithi, Vara, Nakshatra, Yoga, Karana, Sunrise/Sunset, auspicious Muhurtas, and Anandadi/Amrit yogas. |
Gochar (Transits) | Real-time planetary transits mapped against natal Moon and Lagna, with retrograde indicators and Saturn Sade Sati tracking. |
Guna Milan (Matchmaking) | Complete 36-point Ashtakoot compatibility scoring with Nadi, Bhakoot, Gana, and Mangalik Dosha analysis. |
Classical Remedies | Prioritized mantras, gemstones, fasting days, daan (charity), and rituals in bilingual Hindi/English. |
🚀 Quick Start
1. Install from PyPI
pip install astro-skillRequires Python 3.11+.
2. Run the Stdio MCP Server
astro-mcp
# or: python -m services.astro_mcp3. CLI Command Examples
# Calculate Birth Kundali (JSON output)
python -m astro.scripts.kundali_calculator --dob 26/12/2019 --tob 09:15 \
--place Delhi --lat 28.6139 --lon 77.2090 --timezone Asia/Kolkata --json
# Calculate Vimshottari Dasha Timeline
python -m astro.scripts.dasha_calculator --kundali-json chart.json --json
# Daily Panchang
python -m astro.scripts.panchang_calculator --date 2026-05-21 \
--place Delhi --lat 28.6139 --lon 77.209 --timezone Asia/Kolkata --json
# Ashtakoot Guna Milan (Compatibility)
python -m astro.scripts.guna_milan --kundali-a-json person_a.json --kundali-b-json person_b.json --json
# Generate Factual Bilingual PDF Report
python -m astro.scripts.pdf_report --kundali-json chart.json --dasha-json dasha.json \
--panchang-json panchang.json --output report.pdf --language hi4. Python Library Usage
from astro.scripts.kundali_calculator import calculate_kundali
kundali = calculate_kundali(
dob="15/08/1990",
tob="14:30",
place="Mumbai",
lat=19.0760,
lon=72.8777,
tz_str="Asia/Kolkata"
)
print(f"Lagna: {kundali['lagna']['sign_name']}, Nakshatra: {kundali['nakshatra']['name']}")🤖 MCP Server Setup
The built-in MCP server exposes 11 tools over stdio. It includes SQLite client profile management and report generation out of the box.
📋 Available MCP Tools (11)
Tool Name | Description |
| Parse conversational birth-detail strings into structured ISO date/time and coordinates. |
| Upsert client profile and birth parameters into local SQLite database. |
| Search client by |
| Retrieve previously generated reports for a client. |
| Compute complete Lahiri/whole-sign Kundali, Navamsa (D9), yogas, and bhava data. |
| Compute Vimshottari Mahadasha + Antardasha timeline with exact birth balance. |
| Compute transit chart and Sade Sati status for any target date. |
| 36-point Ashtakoot Guna Milan compatibility score between two charts. |
| Daily sunrise-anchored Panchang (Tithi, Vara, Nakshatra, Yoga, Karana). |
| Compile an all-in-one structured astrology draft JSON. |
| Render a clean, printable PDF report using in-process ReportLab. |
⚙️ Client Configurations
Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"astro": {
"command": "astro-mcp"
}
}
}Cursor (settings.json / MCP Config)
{
"mcpServers": {
"astro": {
"command": "python",
"args": ["-m", "services.astro_mcp"],
"cwd": "C:/path/to/astro-skill"
}
}
}👑 Pro Report Tier
This repository contains the open-core deterministic engine — mathematical calculations, structured JSON schemas, and factual ReportLab PDFs.
For astrologers, consultancies, and consumer apps seeking client-ready, beautifully designed Janma Patrikas, a Pro Report Tier is available:
📖 Pandit-Grade LLM Synthesis: Deep house-by-house, dasha-by-dasha, and transit narrative analysis in Hindi, English, or Hinglish.
🎨 Premium Print-Ready Layout: Multi-page styled Janma Patrika with rich cover pages, divisional charts, and branded styling.
⚡ Prioritized Actionable Remedies: Context-aware Gemstone, Mantra, Yantra, and Daan suggestions tailored to running dasha periods.
📩 Interested in licensing the Pro Tier or API? Contact: adityaryawork@gmail.com
🛠️ Development & Testing
git clone https://github.com/adityarya24/astro-skill.git
cd astro-skill
python -m venv .venv
source .venv/bin/activate # Windows: .\.venv\Scripts\Activate.ps1
pip install -e ".[dev]"
# Run full test suite (154 tests)
pytest -q
# Linter & format check
ruff check astro services scripts🛡️ Safety Boundaries
Calculation-Backed Drafts: Reports are mathematical baselines intended for review by an astrologer or operator before sharing.
Missing Birth Details: Never guess or synthesize birth times or locations; prompt the user if inputs are missing.
Ethical Guardrails: Strictly prohibits generating fatalistic claims, death timing, medical diagnoses, or unavoidable harm predictions.
📜 License
MIT License © 2026 Aditya Arya
Available Tools
11 toolscalculate_compatibilityGuna Milan CompatibilityARead-onlyIdempotent
Guna Milan (Ashtakoot, 36-point) marriage compatibility between two kundali JSONs (kundali_a = bride, kundali_b = groom). Returns the koota-wise point breakdown, the total out of 36, and Nadi, Bhakoot, and Manglik dosha findings.
Inputs: kundali_a (required), kundali_b (required).
calculate_dashaCalculate Vimshottari DashaARead-onlyIdempotent
Compute the Vimshottari dasha timeline from a kundali: mahadasha and antardasha periods with start/end dates, plus the running mahadasha/antardasha/pratyantardasha for on_date. Returns dasha JSON accepted by the report tools.
Inputs: kundali (required), on_date.
calculate_gocharCalculate Gochar (Transits)ARead-onlyIdempotent
Compute gochar — planetary transits relative to the natal Moon and Lagna — plus the Saturn Sade Sati / Dhaiya phase for a date. Returns gochar JSON accepted by the report tools.
Inputs: kundali (required), on_date.
calculate_kundaliCalculate Kundali (Birth Chart)ARead-onlyIdempotent
Compute a sidereal Vedic kundali (birth chart) from birth details: lagna, Moon rashi, nakshatra with pada, planet positions with sign and whole-sign house placements, navamsa (D9) and further divisional charts, ashtakavarga tables, and the Vimshottari dasha seed. Returns the kundali JSON that the dasha, gochar, compatibility, and report tools consume.
Inputs: dob (required), lat (required), lon (required), tob (required), +3 more.
calculate_panchangCalculate PanchangARead-onlyIdempotent
Compute the daily Panchang for a place and date: vara, tithi, nakshatra, yoga, karana, and sunrise/sunset times. Returns panchang JSON accepted by the report tools.
Inputs: lat (required), lon (required), date (required), place (required), +2 more.
find_client_profileFind Client ProfileAIdempotent
Look up a client profile by exact client_id, otherwise by case-insensitive display_name substring. Returns the profile, or null when nothing matches.
Inputs: query (required), db_path.
generate_pdf_reportGenerate PDF ReportA
Render a client-facing PDF report (cover, Lagna/Navamsa charts, planet table, dasha timeline) from a kundali plus optional sections, using the in-process ReportLab renderer. Returns the report record with the path of the written PDF.
Inputs: kundali (required), brand, dasha, gochar, +8 more.
generate_report_jsonGenerate JSON ReportA
Assemble a structured astrology report draft (birth chart summary plus optional dasha/panchang/gochar sections) and write it to disk as JSON. Returns the report record: report_id, path of the written file, client_id, and created_at.
Inputs: kundali (required), dasha, gochar, db_path, +6 more.
list_client_reportsList Client ReportsBIdempotent
List report records previously generated for a client, newest first. Each record carries report_id, report_type, path, and created_at.
Inputs: client_id (required), db_path.
parse_birth_detailsParse Birth DetailsARead-onlyIdempotent
Conservatively extract dob, tob, place, lat, lon, and timezone from a short operator note. Returns the recognised fields plus a 'missing' list naming everything that could not be parsed, so the agent can ask the operator for clarification instead of guessing.
Inputs: text (required).
save_client_profileSave Client ProfileADestructiveIdempotent
Create or update (upsert by client_id) a client profile in the SQLite store, optionally with birth details. Returns the saved profile.
Inputs: profile (required), db_path.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 11 tools
Most tools target distinct astrological calculations or client operations, making selection clear. The only mild overlap is generate_report_json vs generate_pdf_report, which both assemble reports but differ in output format, so an agent must rely on descriptions to choose.
All 11 tools use snake_case with a predictable verb_noun structure (calculate_*, list_*, parse_*, generate_*, find_*, save_*). No naming inconsistencies or mixed conventions are present.
11 tools fit the domain well: five calculation types, birth parsing, two client profile operations, two report generators, and report listing. No tool feels redundant or missing at this scale.
Core lifecycle for astrology calculations and reports is covered, including parsing, calculation, report generation, and client profile upsert/lookup. Minor gaps exist (e.g., no delete for profiles/reports, no list_clients), but agents can work around them.
Maintenance
Related MCP Connectors
Professional Vedic astrology tools for AI agents via MCP.
Official Divine API MCP for Indian/Vedic Astrology: Panchang, Kundli, Dasha, KP, Lal Kitab.
Vedic kundli, panchang, dashas, nakshatras and KP charts for AI agents, one API key.
Vedic astrology and ephemeris engine calibrated to Swiss Ephemeris and Jagannatha Hora.
Related MCP Servers
- AlicenseAqualityDmaintenanceVedic astrology MCP server providing 6 tools: horoscope predictions (200+ life aspects), compatibility match reports with Kuta scoring, Chaldean numerology, raw planet and house chart data, 24 general astro properties, and Ashtakvarga charts. Free tier included with no API key required, premium unlimited tier also available3682MIT
- 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.-
- AlicenseNot gradedqualityDmaintenanceExposes Vedic astrology tools for birth chart, dasha, transit calculations, and question context analysis.MIT
- 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