AstroConsultant
An AI astrology MCP server providing 49 tools for Western and Vedic astrology calculations, including natal charts, dashas, transits, and compatibility analysis, powered by Swiss Ephemeris.
README
title: JyotishMCP emoji: ๐ช colorFrom: purple colorTo: indigo sdk: docker pinned: false
๐ญ AstroConsultant โ AI Astrology MCP Server
Professional-grade astrology API + MCP Server powered by Swiss Ephemeris (pyswisseph), supporting both Western (Tropical) and Vedic/Jyotish (Sidereal) traditions. Exposes 49 MCP tools and 70+ API endpoints for comprehensive astrological consultation.
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Claude Desktop (UI) โ
โ โ โ
โ MCP Protocol (stdio) โ
โ โ โ
โ โโโโโโโโโโโโผโโโโโโโโโโโ โ
โ โ MCP Server โ โ
โ โ (49 tools) โ โ
โ โโโโโโโโโโโโฌโโโโโโโโโโโ โ
โ โ HTTP/JSON โ
โ โโโโโโโโโโโโผโโโโโโโโโโโ โ
โ โ FastAPI Backend โ โ
โ โ (10 routers, โ โ
โ โ 70+ endpoints) โ โ
โ โโโโโโโโโโโโฌโโโโโโโโโโโ โ
โ โ โ
โ โโโโโโโโโโโโผโโโโโโโโโโโ โ
โ โ Swiss Ephemeris โ โ
โ โ (pyswisseph) โ โ
โ โโโโโโโโโโโโโโโโโโโโโโโ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โจ Features at a Glance
๐๏ธ Vedic / Jyotish (Sidereal)
| Feature | Description |
|---|---|
| Kundli (Birth Chart) | Full sidereal chart with Whole Sign houses |
| Varga Charts (D1โD60) | 16+ divisional charts (Navamsa, Dasamsa, etc.) |
| Dasha Systems | Vimshottari (Mahadasha โ Sookshma), Yogini, Chara, Kalachakra |
| Current Dasha | Real-time Mahadasha / Antardasha / Pratyantardasha / Sookshma |
| Dasha Interpretation | AI-ready interpretation texts for any Dasha lord combination |
| Yogas | 30+ classical yogas (Raja, Dhana, Viparita, Pancha Mahapurushaโฆ) |
| Doshas | Mangal Dosha, Kala Sarpa Dosha detection |
| Shadbala | Six-fold planetary strength analysis |
| Ashtakavarga | Sarvashtakavarga + Bhinnashtakavarga + Transit Scoring |
| Sade Sati | Complete 100-year Sade Sati timeline with peak dates |
| Bhava Chalit | Sripati house system shifted-planet chart |
| Upagrahas | Mandi, Gulika, Dhooma, Vyatipata, Parivesha, Indrachapa, Upaketu |
| Jaimini System | Chara Karakas (AKโDK), Arudha Padas, Karakamsa |
| Lagna Lord Analysis | Ascendant lord placement, dignity, and interpretation |
| Gochar (Transit) | Vedic transit report based on natal Moon sign |
| Varshaphal | Tajika annual horoscope (Solar year return) |
| Nakshatra Deep Dive | Detailed Nakshatra analysis with deity, syllable, compatibility |
| Remedies | Gemstones, Mantras, Charity, Fasting based on chart afflictions |
๐ Western (Tropical)
| Feature | Description |
|---|---|
| Natal Chart | Full tropical chart with Placidus / Koch / Equal houses |
| Aspects | 11 aspect types with configurable orbs |
| Essential Dignities | Domicile, Exaltation, Detriment, Fall, Term, Face |
| Secondary Progressions | Day-for-a-year progressed chart |
| Solar Arc Directions | Arc-directed planetary positions |
| Solar Return | Annual return chart |
| Lunar Return | Monthly return chart |
| Synastry | Cross-chart aspects for relationship analysis |
| Composite Chart | Midpoint composite chart |
| Midpoint Analysis | Natal & synastry midpoint trees |
| Arabic Parts | Part of Fortune, Spirit, Love, and 8 more |
| Fixed Stars | 31 major stars with conjunctions and parans |
| Asteroids | Chiron, Ceres, Pallas, Juno, Vesta |
๐ Timing & Prediction
| Feature | Description |
|---|---|
| Panchang | Tithi, Nakshatra, Yoga, Karana, Sunrise/Sunset |
| Muhurta | Quality assessment for any activity + auspicious time finder |
| Planetary Hours | Hora chart for any day |
| Eclipse Impacts | Detect eclipses hitting natal planets (conjunction/opposition) |
| Retrograde Calendar | Mercury through Saturn retrograde periods for any year |
| Transit Aspects | Real-time transit-to-natal aspects |
| Outer Planet Transits | Jupiter, Saturn, Rahu/Ketu over natal chart |
| Planetary Ingresses | Sign-change dates for all planets |
| AstroCartoGraphy | ACG lines for relocation astrology |
๐ ๏ธ All 48 MCP Tools
Every tool is available to Claude Desktop (or any MCP client) via the AstroConsultant server.
<details> <summary><b>Click to expand full tool list</b></summary>
| # | Tool Name | Category |
|---|---|---|
| 1 | get_natal_chart |
Core |
| 2 | get_vedic_kundli |
Vedic |
| 3 | get_varga_chart |
Vedic |
| 4 | get_sade_sati |
Vedic |
| 5 | get_bhava_chalit_chart |
Vedic |
| 6 | get_upagrahas |
Vedic |
| 7 | get_remedies |
Vedic |
| 8 | get_gochar_report |
Vedic |
| 9 | get_jaimini_karakas |
Vedic |
| 10 | get_arudha_padas |
Vedic |
| 11 | get_karakamsa |
Vedic |
| 12 | get_yogas |
Vedic |
| 13 | get_doshas |
Vedic |
| 14 | get_gemstones |
Vedic Remedies |
| 15 | get_mantras |
Vedic Remedies |
| 16 | get_shadbala |
Vedic |
| 17 | get_ashtakavarga |
Vedic |
| 18 | get_lagna_lord_analysis |
Vedic |
| 19 | get_transit_scoring |
Vedic / Transits |
| 20 | get_current_dasha |
Dasha |
| 21 | get_dasha_timeline |
Dasha |
| 22 | get_dasha_interpretation |
Dasha |
| 23 | get_yogini_dasha |
Dasha |
| 24 | get_chara_dasha |
Dasha |
| 25 | get_kalachakra_dasha |
Dasha |
| 26 | get_varshaphal |
Predictive |
| 27 | get_current_transits |
Transits |
| 28 | get_eclipse_impacts |
Transits |
| 29 | get_retrograde_calendar |
Transits |
| 30 | get_now |
Transits |
| 31 | get_panchang |
Timing |
| 32 | get_muhurta |
Timing |
| 33 | find_auspicious_time |
Timing |
| 34 | get_planetary_hours |
Timing |
| 35 | get_nakshatra_info |
Timing |
| 36 | get_moon_phase |
Timing |
| 37 | get_secondary_progressions |
Western |
| 38 | get_solar_return |
Western |
| 39 | get_lunar_return |
Western |
| 40 | get_composite_chart |
Western |
| 41 | get_synastry |
Relationships |
| 42 | get_synastry_midpoints |
Relationships |
| 43 | get_compatibility |
Relationships |
| 44 | get_natal_midpoints |
Analysis |
| 45 | get_arabic_parts |
Analysis |
| 46 | get_astrocartography |
Analysis |
| 47 | geocode_location |
Utility |
| 48 | get_nakshatra_info |
Utility |
| 49 | get_pro_analysis |
PROFESSIONAL COMPLETE ANALYSIS |
</details>
๐ Quick Start
1. Install Dependencies
cd astrology-consultant
python3 -m venv venv && source venv/bin/activate
pip install -r requirements.txt
2. Download Ephemeris Files
python scripts/download_ephemeris.py
3. Start the API
uvicorn api.main:app --reload --host 0.0.0.0 --port 8000
4. Verify
curl http://localhost:8000/utilities/health
# โ {"status": "ok", "version": "1.0.0", ...}
๐ค Claude Desktop Integration
1. Start the FastAPI Server
source venv/bin/activate
uvicorn api.main:app --host 0.0.0.0 --port 8000
2. Configure Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"astro-consultant": {
"command": "/FULL/PATH/TO/venv/bin/python",
"args": ["/FULL/PATH/TO/astrology-consultant/mcp/server.py"],
"env": {
"MCP_FASTAPI_BASE_URL": "http://localhost:8000"
}
}
}
}
3. Restart Claude Desktop
Quit and reopen Claude Desktop. The 48 AstroConsultant tools will appear automatically.
๐ก API Examples
Natal Chart
curl -X POST http://localhost:8000/natal/chart \
-H "Content-Type: application/json" \
-d '{
"birth_data": {
"name": "Test",
"birth_year": 1990, "birth_month": 3, "birth_day": 15,
"birth_hour": 14, "birth_minute": 30,
"latitude": 28.6139, "longitude": 77.209,
"timezone": "Asia/Kolkata"
}
}'
Vedic Kundli
curl -X POST http://localhost:8000/vedic/kundli \
-H "Content-Type: application/json" \
-d '{
"birth_data": {
"birth_year": 1990, "birth_month": 3, "birth_day": 15,
"birth_hour": 14, "birth_minute": 30,
"latitude": 28.6139, "longitude": 77.209,
"timezone": "Asia/Kolkata"
},
"options": {"ayanamsa": "LAHIRI"}
}'
Daily Panchang
curl -X POST http://localhost:8000/panchang/daily \
-H "Content-Type: application/json" \
-d '{
"year": 2026, "month": 3, "day": 6,
"latitude": 28.6139, "longitude": 77.209,
"timezone": "Asia/Kolkata"
}'
Current Dasha
curl -X POST http://localhost:8000/vedic/dashas/current \
-H "Content-Type: application/json" \
-d '{
"birth_data": {
"birth_year": 1990, "birth_month": 3, "birth_day": 15,
"birth_hour": 14, "birth_minute": 30,
"latitude": 28.6139, "longitude": 77.209,
"timezone": "Asia/Kolkata"
}
}'
Current Planetary Positions
curl http://localhost:8000/transits/now
๐ API Reference
| Category | Endpoints | Description |
|---|---|---|
/natal/* |
10 | Natal chart, planets, houses, aspects, dignities, midpoints, arabic parts |
/vedic/* |
20 | Kundli, varga, dashas, yogas, shadbala, ashtakavarga, doshas, jaimini, lagna lord |
/transits/* |
10 | Current transits, retrogrades, eclipses, ingresses, ashtakavarga scoring |
/synastry/* |
4 | Cross-chart aspects, composite, Davison, compatibility |
/panchang/* |
5 | Daily/monthly panchang, nakshatra, tithi, festivals |
/muhurta/* |
4 | Quality assessment, auspicious time finder, hora |
/western/* |
5 | Progressions, solar/lunar returns, composite chart |
/timing/* |
4 | Solar/lunar returns, dasha interpretation, kalachakra |
/fixed-stars/* |
3 | Star list, conjunctions, heliacal events |
/utilities/* |
9 | Health, geocode, zodiac signs, nakshatras metadata |
Total: 70+ endpoints ยท 48 MCP tools
๐ง Configuration
Supported Ayanamsas
LAHIRI ยท RAMAN ยท KRISHNAMURTI ยท FAGAN_BRADLEY ยท TRUE_CHITRAPAKSHA ยท YUKTESHWAR ยท JN_BHASIN ยท SASSANIAN
Supported House Systems
PLACIDUS ยท KOCH ยท WHOLE_SIGN ยท EQUAL ยท CAMPANUS ยท REGIOMONTANUS ยท PORPHYRY ยท ALCABITIUS ยท MORINUS ยท MERIDIAN ยท AZIMUTHAL ยท POLICH_PAGE
Zodiac Types
TROPICAL ยท SIDEREAL
๐งช Running Tests
source venv/bin/activate
python3 test_tools.py
Tests validate: Lagna Lord, Ashtakavarga Scoring, Dasha Interpretation, Kalachakra Dasha, Lunar Return, Eclipse Impacts, Retrogrades.
๐ Troubleshooting
| Issue | Solution |
|---|---|
ModuleNotFoundError: swisseph |
pip install pyswisseph |
| Inaccurate positions | Run python scripts/download_ephemeris.py |
| Port 8000 in use | Change API_PORT in .env |
| MCP not connecting | Ensure FastAPI server is running first |
| Timezone errors | Use IANA format: Asia/Kolkata, America/New_York |
| Chiron warnings | Non-critical โ Chiron ephemeris data not available for all dates |
๐ License
This project uses pyswisseph which is licensed under AGPL. Please review the Swiss Ephemeris license for commercial use requirements.
Created by Team Magicmond ยท Powered by Swiss Ephemeris
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.