Swiss Ephemeris MCP Server
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., "@Swiss Ephemeris MCP Server calculate my birth chart for April 12, 1985 at 11:20 PM in New York City"
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.
Swiss Ephemeris MCP Server
A Model Context Protocol (MCP) server that provides astronomical calculations using the Swiss Ephemeris library. Calculate planetary positions, houses, chart points, and asteroids for any date and location.
Features
Planetary Positions: Sun, Moon, Mercury, Venus, Mars, Jupiter, Saturn, Uranus, Neptune, Pluto
Lunar Nodes: True and Mean Node calculations
Asteroids: Chiron, Ceres, Pallas, Juno, Vesta, Lilith
Houses: 12-house system using Placidus
Chart Points: Ascendant, Midheaven, IC, Descendant
Additional Points: South Node, Part of Fortune
Related MCP server: astromock-mcp
Installation
Prerequisites for Local Development
For local use with Claude Desktop, you need to install the Swiss Ephemeris swetest command:
# Install swetest (required for Claude Desktop usage)
git clone https://github.com/aloistr/swisseph.git /tmp/swisseph && \
cd /tmp/swisseph && \
make && \
cp swetest /usr/local/bin/ && \
rm -rf /tmp/swissephClaude Desktop
Add to your Claude Desktop configuration:
{
"mcpServers": {
"swissEphemeris": {
"command": "npx",
"args": ["github:dm0lz/swiss-ephemeris-mcp-server"]
}
}
}Manual Installation
git clone https://github.com/dm0lz/swiss-ephemeris-mcp-server.git
cd swiss-ephemeris-mcp-server
npm install
npm startUsage
The server provides four main tools:
calculate_planetary_positions
Calculate astronomical data for a specific date, time, and location.
Parameters:
datetime(string): ISO8601 format, e.g., "1985-04-12T23:20:50Z"latitude(number): Latitude in decimal degrees (-90 to 90)longitude(number): Longitude in decimal degrees (-180 to 180)
Returns:
planets: Positions of all planets and celestial bodieshouses: 12 astrological houseschart_points: Ascendant, Midheaven, IC, Descendantadditional_points: South Node, Part of Fortune
calculate_transits
Calculate birth chart positions and current transits for comparison.
Parameters:
birth_datetime(string): Birth datetime in ISO8601 formatlatitude(number): Birth latitude in decimal degreeslongitude(number): Birth longitude in decimal degrees
Returns:
natal_chart: Complete birth chart datacurrent_transits: Current planetary positionscalculation_time: Timestamp of transit calculation
calculate_solar_revolution
Calculate solar return chart for a specific year (when Sun returns to natal position).
Parameters:
birth_datetime(string): Birth datetime in ISO8601 formatbirth_latitude(number): Birth latitude in decimal degreesbirth_longitude(number): Birth longitude in decimal degreesreturn_year(number): Year for solar return calculation (e.g., 2024)return_latitude(number, optional): Solar return location latitudereturn_longitude(number, optional): Solar return location longitude
Returns:
natal_chart: Original birth chart datasolar_return_chart: Solar return chart for the specified yearnatal_sun_longitude: Original Sun position in degreesreturn_sun_longitude: Solar return Sun position in degreescalculation_time: Timestamp of calculation
calculate_synastry
Calculate synastry chart between two people for relationship compatibility analysis.
Parameters:
person1_datetime(string): Person 1 birth datetime in ISO8601 formatperson1_latitude(number): Person 1 birth latitude in decimal degreesperson1_longitude(number): Person 1 birth longitude in decimal degreesperson2_datetime(string): Person 2 birth datetime in ISO8601 formatperson2_latitude(number): Person 2 birth latitude in decimal degreesperson2_longitude(number): Person 2 birth longitude in decimal degrees
Returns:
person1_chart: Complete birth chart for person 1person2_chart: Complete birth chart for person 2synastry_aspects: Array of planetary aspects between the chartscalculation_time: Timestamp of calculation
Docker
# Build and run
docker build -t swiss-ephemeris-mcp .
docker run -p 8000:8000 -e MCP_HTTP_MODE=true swiss-ephemeris-mcp
# Health check
curl http://localhost:8000/healthTransport Modes
Stdio: Default mode for Claude Desktop integration
HTTP: Use
MCP_HTTP_MODE=truefor web integration via ngrok
Links
MCP URL: https://www.theme-astral.me/mcp
Repository: https://github.com/dm0lz/swiss-ephemeris-mcp-server
Swiss Ephemeris: https://www.astro.com/swisseph/
License
MIT
Available Tools
4 toolscalculate_planetary_positionsB
Calculate planetary positions, houses, chart points and asteroids for a given datetime and coordinates
Inputs: datetime (required), latitude (required), longitude (required).
calculate_solar_revolutionB
Calculate solar return chart for a specific year. The solar return occurs when the Sun returns to the exact same position as at birth.
Inputs: birth_datetime (required), birth_latitude (required), birth_longitude (required), return_year (required), +2 more.
calculate_synastryA
Calculate synastry chart between two people for relationship compatibility analysis. Compares planetary positions and calculates aspects between the charts.
Inputs: person1_datetime (required), person1_latitude (required), person1_longitude (required), person2_datetime (required), +2 more.
calculate_transitsA
Calculate birth chart positions and current transits for comparison. Returns both natal chart and current planetary positions.
Inputs: birth_datetime (required), latitude (required), longitude (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool targets a distinct astrological calculation (general positions, solar return, synastry, transits), but calculate_planetary_positions and calculate_transits both involve planetary positions, potentially causing confusion. Descriptions help differentiate.
All tools use a consistent 'calculate_' verb followed by a snake_case noun phrase, forming a clear and predictable pattern.
With 4 tools, the set is well-scoped for an ephemeris server, covering essential calculations without being overly sparse or bloated.
The tools cover key astrological functions (positions, transits, synastry, solar return), but missing some operations like progressions or aspect-only calculations, though these may be included in outputs.
Maintenance
Related MCP Connectors
Swiss Ephemeris astrology: natal charts, transits, synastry, solar returns and astrocartography.
Western, Vedic, and Chinese astrology calculations, charts, forecasts, and geocoding.
Swiss Ephemeris for AI agents: exact natal charts, transits, synastry and birth-place resolution
Ephemeris-grade natal charts, current transits, zodiac sign profiles. No API key.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceHigh-precision astrology tools for LLM agents, including natal charts, transits, progressions, synastry, and more, backed by Swiss Ephemeris.1MIT
- AlicenseNot gradedqualityDmaintenanceExposes Vedic astrology tools for birth chart, dasha, transit calculations, and question context analysis.MIT
- AlicenseAqualityDmaintenanceCalculates astrological natal charts with high precision using Swiss Ephemeris, supporting multiple house systems and location inputs.228 npm5AGPL 3.0
- AlicenseAqualityBmaintenanceEnables AI agents to compute deterministic astrological data with Swiss Ephemeris, including natal charts, transits, synastry, and birth-place resolution, so they never invent planetary positions.464 npmMIT