astrovisor-mcp
TypeScript icon, indicating that this package has built-in type declarations

3.0.2ย โ€ขย Publicย โ€ขย Published

๐ŸŒŸ AstroVisor MCP Server

Complete professional astrology MCP server with 45 tools covering all 55 backend endpoints

npm version License: MIT

๐Ÿš€ Features

  • Complete Astrology Coverage: 45+ tools covering all major astrology systems
  • Production Ready: 100% success rate with robust error handling
  • Universal Data Formats: Standardized input/output for all tools
  • Professional Quality: Built for Claude Desktop and MCP protocol
  • Real-time API: Direct integration with AstroVisor backend API

๐Ÿ“ฆ Installation

NPM Package

npm install astrovisor-mcp

Claude Desktop Configuration

Add to your Claude Desktop config file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "astrovisor": {
      "command": "npx",
      "args": ["astrovisor-mcp"],
      "env": {
        "ASTROVISOR_API_KEY": "your-api-key-here",
        "ASTROVISOR_URL": "https://astrovisor.io"
      }
    }
  }
}

๐Ÿ”‘ API Key Setup

  1. Visit AstroVisor.io
  2. Register for a free account
  3. Generate your API key in the dashboard
  4. Add it to your Claude Desktop config

๐Ÿ› ๏ธ Available Tools

๐Ÿ“Š Natal Astrology (7 tools)

  • calculate_natal_chart - Generate complete natal chart
  • analyze_natal_aspects - Analyze planetary aspects
  • analyze_natal_houses - House analysis and meanings
  • analyze_natal_planets - Planetary positions and interpretations
  • analyze_natal_transits - Current transits to natal chart
  • analyze_natal_progressions - Secondary progressions
  • get_natal_info - Module information

๐Ÿฎ BaZi Chinese Astrology (15 tools)

  • calculate_bazi_chart - Four Pillars calculation
  • analyze_bazi_compatibility - Relationship compatibility
  • analyze_bazi_life_focus - Life priorities analysis
  • calculate_bazi_luck_pillars - Fortune cycles
  • calculate_bazi_annual_forecast - Yearly predictions
  • get_bazi_complete_analysis - Comprehensive analysis
  • get_bazi_career_guidance - Career recommendations
  • get_bazi_relationship_guidance - Relationship insights
  • get_bazi_health_insights - Health and wellness guidance
  • analyze_bazi_nayin - Na Yin sound analysis
  • analyze_bazi_useful_god - Useful God identification
  • analyze_bazi_personality - Personality traits
  • analyze_bazi_twelve_palaces - Twelve Palaces analysis
  • analyze_bazi_symbolic_stars - Symbolic stars interpretation
  • get_bazi_info - Module information

๐Ÿ”„ Transits & Time Analysis (8 tools)

  • calculate_current_transits - Current planetary transits
  • calculate_transits_period - Transits in date range
  • get_transits_info - Transit module information
  • calculate_solar_return - Solar return chart
  • calculate_lunar_return - Lunar return analysis
  • calculate_secondary_progressions - Secondary progressions
  • calculate_solar_arc_progressions - Solar arc directions
  • calculate_primary_directions - Primary directions

๐Ÿ’• Relationships (2 tools)

  • analyze_synastry - Partner compatibility analysis
  • calculate_composite_chart - Composite relationship chart

๐Ÿ”ฎ Specialized Systems (13 tools)

Horary Astrology:

  • analyze_horary_question - Question-based divination
  • analyze_horary_judgment - Horary judgment analysis
  • get_horary_question_analysis - Complete horary reading

Electional Astrology:

  • find_best_times - Optimal timing for events

Numerology:

  • calculate_numerology - Complete numerological analysis
  • calculate_life_path_number - Life path calculation
  • calculate_destiny_number - Destiny number analysis

Matrix of Destiny:

  • calculate_matrix_of_destiny - Matrix calculation
  • calculate_matrix_chart - Matrix chart visualization

Human Design:

  • calculate_human_design_chart - Human Design analysis
  • analyze_human_design - Complete Human Design reading

Jyotish (Vedic) Astrology:

  • calculate_jyotish_chart - Vedic chart calculation
  • calculate_jyotish_main - Main Jyotish analysis
  • calculate_jyotish_dashas - Dasha periods
  • calculate_jyotish_yogas - Yoga combinations
  • get_jyotish_info - Module information

Astrocartography:

  • find_best_places - Location recommendations
  • analyze_astrocartography - Relocation astrology

๐Ÿ“‹ Data Formats

Standard Birth Data

Most tools use this standard format:

{
  "name": "John Smith",
  "datetime": "1990-05-15T14:30:00",
  "latitude": 40.7128,
  "longitude": -74.0060,
  "location": "New York, USA",
  "timezone": "America/New_York"
}

Partner Compatibility

For relationship analysis:

{
  "partner1": {
    "name": "Person A",
    "datetime": "1990-05-15T14:30:00",
    "latitude": 40.7128,
    "longitude": -74.0060,
    "location": "New York, USA",
    "timezone": "America/New_York"
  },
  "partner2": {
    "name": "Person B",
    "datetime": "1992-08-22T09:15:00",
    "latitude": 34.0522,
    "longitude": -118.2437,
    "location": "Los Angeles, USA",
    "timezone": "America/Los_Angeles"
  }
}

Transits Analysis

For transit calculations:

{
  "name": "John Smith",
  "birth_datetime": "1990-05-15T14:30:00",
  "birth_latitude": 40.7128,
  "birth_longitude": -74.0060,
  "birth_location": "New York, USA",
  "birth_timezone": "America/New_York",
  "target_date": "2024-08-21"
}

Time-based Analysis

For progressions, directions, returns:

{
  "name": "John Smith",
  "datetime": "1990-05-15T14:30:00",
  "latitude": 40.7128,
  "longitude": -74.0060,
  "location": "New York, USA",
  "timezone": "America/New_York",
  "target_date": "2024-08-21", // for directions
  "progression_date": "2024-08-21", // for progressions
  "return_year": 2024, // for solar return
  "return_date": "2024-08-21" // for lunar return
}

Horary Questions

For horary astrology:

{
  "question": "Should I change my job?",
  "question_time": "2024-08-21T15:30:00",
  "location": {
    "latitude": 40.7128,
    "longitude": -74.0060,
    "location": "New York, USA",
    "timezone": "America/New_York"
  }
}

Electional Astrology

For finding optimal times:

{
  "birth_data": {
    "name": "John Smith",
    "datetime": "1990-05-15T14:30:00",
    "latitude": 40.7128,
    "longitude": -74.0060,
    "location": "New York, USA",
    "timezone": "America/New_York"
  },
  "purpose": "wedding",
  "start_date": "2024-09-01T00:00:00",
  "end_date": "2024-12-31T23:59:59",
  "location": {
    "latitude": 40.7128,
    "longitude": -74.0060,
    "location": "New York, USA",
    "timezone": "America/New_York"
  }
}

Astrocartography

For location analysis:

{
  "birth_data": {
    "name": "John Smith",
    "datetime": "1990-05-15T14:30:00",
    "latitude": 40.7128,
    "longitude": -74.0060,
    "location": "New York, USA",
    "timezone": "America/New_York"
  }
}

๐ŸŽฏ Usage Examples

Basic Natal Chart

Ask Claude: "Generate a natal chart for someone born May 15, 1990 at 2:30 PM in New York"

Compatibility Analysis

Ask Claude: "Analyze compatibility between two people - first born May 15, 1990 in New York, second born August 22, 1992 in Los Angeles"

Transit Analysis

Ask Claude: "What are the current transits for someone born May 15, 1990 in New York?"

BaZi Analysis

Ask Claude: "Create a BaZi chart and personality analysis for someone born May 15, 1990 at 2:30 PM in New York"

Location Analysis

Ask Claude: "Find the best places to live for someone born May 15, 1990 in New York"

๐Ÿ”ง Configuration

Environment Variables

  • ASTROVISOR_API_KEY - Your AstroVisor API key (required)
  • ASTROVISOR_URL - API endpoint (default: https://astrovisor.io)

Rate Limits

  • Free Tier: 50 requests/day, 1,500/month
  • Premium Tier: 10,000 requests/day, 250,000/month

๐Ÿ›ก๏ธ Error Handling

The MCP server includes comprehensive error handling:

  • Invalid coordinates validation
  • Date format validation
  • API rate limit handling
  • Network timeout management
  • Graceful degradation

๐Ÿงช Testing

The package includes comprehensive testing with 100% success rate across all 45 tools.

๐Ÿ“š Complete API Reference

Tool to Endpoint Mapping

All 45 MCP tools map directly to backend API endpoints:

๐ŸŒŸ Natal Astrology

  • calculate_natal_chart โ†’ POST /api/natal/chart
  • analyze_natal_aspects โ†’ POST /api/natal/aspects
  • analyze_natal_houses โ†’ POST /api/natal/houses
  • analyze_natal_planets โ†’ POST /api/natal/planets
  • analyze_natal_transits โ†’ POST /api/natal/transits
  • analyze_natal_progressions โ†’ POST /api/natal/progressions
  • get_natal_info โ†’ GET /api/natal/info

๐Ÿ‰ BaZi Chinese Astrology

  • calculate_bazi_chart โ†’ POST /api/bazi/chart
  • analyze_bazi_compatibility โ†’ POST /api/bazi/compatibility
  • analyze_bazi_life_focus โ†’ POST /api/bazi/life-focus
  • calculate_bazi_luck_pillars โ†’ POST /api/bazi/luck-pillars
  • calculate_bazi_annual_forecast โ†’ POST /api/bazi/annual-forecast
  • get_bazi_complete_analysis โ†’ POST /api/bazi/complete-analysis
  • get_bazi_career_guidance โ†’ POST /api/bazi/career-guidance
  • get_bazi_relationship_guidance โ†’ POST /api/bazi/relationship-guidance
  • get_bazi_health_insights โ†’ POST /api/bazi/health-insights
  • analyze_bazi_nayin โ†’ POST /api/bazi/nayin-analysis
  • analyze_bazi_useful_god โ†’ POST /api/bazi/useful-god
  • analyze_bazi_personality โ†’ POST /api/bazi/personality
  • analyze_bazi_twelve_palaces โ†’ POST /api/bazi/twelve-palaces
  • analyze_bazi_symbolic_stars โ†’ POST /api/bazi/symbolic-stars
  • get_bazi_info โ†’ GET /api/bazi/info

๐ŸŒ Transits & Time Analysis

  • calculate_current_transits โ†’ POST /api/transits/calculate
  • calculate_transits_period โ†’ POST /api/transits/period
  • get_transits_info โ†’ GET /api/transits/info
  • calculate_solar_return โ†’ POST /api/solar/return
  • calculate_lunar_return โ†’ POST /api/solar/lunar-return
  • calculate_secondary_progressions โ†’ POST /api/progressions/secondary
  • calculate_solar_arc_progressions โ†’ POST /api/progressions/solar-arc
  • calculate_primary_directions โ†’ POST /api/directions/primary

๐Ÿ’• Relationships

  • analyze_synastry โ†’ POST /api/relationship/synastry
  • calculate_composite_chart โ†’ POST /api/relationship/composite

โ“ Horary Astrology

  • analyze_horary_question โ†’ POST /api/horary/analyze-question
  • analyze_horary_judgment โ†’ POST /api/horary/judgment
  • get_horary_question_analysis โ†’ POST /api/horary/question

โฐ Electional Astrology

  • find_best_times โ†’ POST /api/electional/find-best-times

๐Ÿ”ข Numerology

  • calculate_numerology โ†’ POST /api/numerology/calculate
  • calculate_life_path_number โ†’ POST /api/numerology/life-path
  • calculate_destiny_number โ†’ POST /api/numerology/destiny-number

๐ŸŽด Matrix of Destiny

  • calculate_matrix_of_destiny โ†’ POST /api/matrix/calculate
  • calculate_matrix_chart โ†’ POST /api/matrix/chart

๐Ÿ‘ค Human Design

  • calculate_human_design_chart โ†’ POST /api/human_design/chart
  • analyze_human_design โ†’ POST /api/human_design/analysis

๐Ÿ•‰๏ธ Jyotish/Vedic Astrology

  • calculate_jyotish_chart โ†’ POST /api/jyotish/chart
  • calculate_jyotish_main โ†’ POST /api/jyotish/calculate
  • calculate_jyotish_dashas โ†’ POST /api/jyotish/dashas
  • calculate_jyotish_yogas โ†’ POST /api/jyotish/yogas
  • get_jyotish_info โ†’ GET /api/jyotish/info

๐Ÿ—บ๏ธ Astrocartography

  • find_best_places โ†’ POST /api/astrocartography/best-places
  • analyze_astrocartography โ†’ POST /api/astrocartography/analysis

Specialized Parameter Formats

Transits Period

{
  "name": "John Smith",
  "datetime": "1990-05-15T14:30:00",
  "latitude": 40.7128,
  "longitude": -74.0060,
  "location": "New York, USA",
  "timezone": "America/New_York",
  "start_date": "2024-01-01",
  "end_date": "2024-12-31"
}

Solar Return

{
  "name": "John Smith",
  "datetime": "1990-05-15T14:30:00",
  "latitude": 40.7128,
  "longitude": -74.0060,
  "location": "New York, USA",
  "timezone": "America/New_York",
  "return_year": 2024
}

Lunar Return

{
  "name": "John Smith", 
  "datetime": "1990-05-15T14:30:00",
  "latitude": 40.7128,
  "longitude": -74.0060,
  "location": "New York, USA",
  "timezone": "America/New_York",
  "return_date": "2024-08-21"
}

Progressions

{
  "name": "John Smith",
  "datetime": "1990-05-15T14:30:00", 
  "latitude": 40.7128,
  "longitude": -74.0060,
  "location": "New York, USA",
  "timezone": "America/New_York",
  "progression_date": "2024-08-21"
}

Primary Directions

{
  "name": "John Smith",
  "datetime": "1990-05-15T14:30:00",
  "latitude": 40.7128,
  "longitude": -74.0060,
  "location": "New York, USA", 
  "timezone": "America/New_York",
  "target_date": "2024-08-21"
}

Horary Questions

{
  "question": "Should I change my job?",
  "question_time": "2024-08-21T15:30:00",
  "location": {
    "latitude": 40.7128,
    "longitude": -74.0060,
    "location": "New York, USA",
    "timezone": "America/New_York"
  },
  "querent_name": "John Smith",
  "question_category": "career"
}

Current Transits

{
  "name": "John Smith",
  "birth_datetime": "1990-05-15T14:30:00",
  "birth_latitude": 40.7128,
  "birth_longitude": -74.0060,
  "birth_location": "New York, USA",
  "birth_timezone": "America/New_York",
  "target_date": "2024-08-21",
  "orb_factor": 1.0,
  "min_significance": 0.5,
  "include_minor_aspects": true
}

Transits Period

{
  "name": "John Smith",
  "birth_datetime": "1990-05-15T14:30:00",
  "birth_latitude": 40.7128,
  "birth_longitude": -74.0060,
  "birth_location": "New York, USA",
  "birth_timezone": "America/New_York",
  "start_date": "2024-01-01",
  "end_date": "2024-12-31",
  "min_significance": 0.5,
  "max_days": 365
}

Electional Astrology

{
  "birth_data": {
    "name": "John Smith",
    "datetime": "1990-05-15T14:30:00",
    "latitude": 40.7128,
    "longitude": -74.0060,
    "location": "New York, USA",
    "timezone": "America/New_York"
  },
  "purpose": "wedding",
  "start_date": "2024-09-01T00:00:00",
  "end_date": "2024-12-31T23:59:59",
  "location": {
    "latitude": 40.7128,
    "longitude": -74.0060,
    "location": "New York, USA",
    "timezone": "America/New_York"
  },
  "preferred_planets": ["Venus", "Jupiter"],
  "avoid_planets": ["Mars", "Saturn"],
  "moon_phase": "waxing",
  "day_of_week": "Friday"
}

Astrocartography

{
  "birth_data": {
    "name": "John Smith",
    "datetime": "1990-05-15T14:30:00",
    "latitude": 40.7128,
    "longitude": -74.0060,
    "location": "New York, USA",
    "timezone": "America/New_York"
  }
}

Authentication

All endpoints use Bearer token authentication:

Authorization: Bearer your-api-key-here

Complete API documentation is available at AstroVisor API Docs

๐Ÿค Support

๐Ÿ“„ License

MIT ยฉ Emil Rokossovskiy

๐Ÿ† Version History

v3.0.0 - Production Ready

  • โœ… 100% success rate across all tools
  • โœ… Complete endpoint coverage (55 endpoints)
  • โœ… Universal data format standardization
  • โœ… Robust error handling
  • โœ… Comprehensive documentation

Key Features:

  • 45 Professional Tools - Complete astrology toolkit
  • 14 Astrology Systems - From Western to Chinese to Vedic
  • Universal Data Formats - Standardized for easy use
  • Production Quality - Battle-tested and reliable
  • Claude Desktop Ready - Perfect integration

๐ŸŒŸ Transform your astrological practice with professional-grade calculations and analysis. Get started today!

Package Sidebar

Install

npm i astrovisor-mcp

Weekly Downloads

31

Version

3.0.2

License

MIT

Unpacked Size

111 kB

Total Files

15

Last publish

Collaborators

  • rokoss21