A production-grade Model Context Protocol (MCP) server for professional astrology powered by Swiss Ephemeris.
Astro-MCP is an open-source, production-ready Model Context Protocol server that exposes professional astrology tools using the Swiss Ephemeris.
Designed for AI assistants, desktop clients, automation platforms, and custom applications, Astro-MCP provides mathematically precise astronomical calculations while remaining modular, extensible, and standards compliant.
- Swiss Ephemeris precision
- FastMCP 3.x server
- Model Context Protocol compliant
- Tropical and Sidereal zodiac support
- Multiple house systems
- Natal chart calculations
- Transit calculations
- Solar returns
- Secondary progressions
- Synastry
- Composite charts
- Aspect calculations
- Planetary positions
- Lunar nodes
- Fixed stars (planned)
- Asteroids (planned)
- Time zone support
- Geocoding
- REST API
- Structured JSON responses
- Docker support
- GitHub Actions CI/CD
- Fully typed Python
- Extensive automated tests
Astro-MCP aims to provide a modern astrology engine that can be integrated into AI systems through the Model Context Protocol.
Goals include:
- Scientific astronomical calculations
- Transparent methodology
- Reproducible chart calculations
- Professional software architecture
- Extensible plugin system
- Open source collaboration
+----------------+
| AI Assistant |
+--------+-------+
|
Model Context Protocol
|
+--------v--------+
| Astro-MCP |
+--------+--------+
|
+----------------+----------------+
| | |
v v v
Natal Charts Transit Engine REST API
| | |
+----------------+----------------+
|
Swiss Ephemeris
- Planet positions
- Houses
- Angles
- Aspects
- Elements
- Modalities
- Chart ruler
- Essential dignities
- Current transits
- Future transits
- Historical transits
- Transit aspects
- Orb filtering
- Annual return charts
- Return house overlays
- Return aspects
- Secondary progressions
- Progressed Moon
- Progressed angles
- Cross-chart aspects
- Relationship compatibility
- Composite chart generation
- Placidus
- Whole Sign
- Koch
- Equal
- Campanus
- Regiomontanus
- Topocentric
- Porphyry
- Tropical
- Sidereal (Lahiri)
- Sidereal (Fagan-Bradley)
- Sidereal (Krishnamurti)
git clone https://github.com/YOUR_USERNAME/Astro-MCP.git
cd Astro-MCPpython -m venv .venv
source .venv/bin/activateWindows
.venv\Scripts\activatepip install -e .pip install -e ".[dev]"python -m astro_mcpor
fastmcp run src/astro_mcp/server.pyuvicorn astro_mcp.api:app --reload{
"name": "Natal Chart",
"arguments": {
"date": "1992-08-13",
"time": "16:01",
"latitude": 47.774,
"longitude": -96.608,
"timezone": "America/Chicago"
}
}{
"name": "Current Transits",
"arguments": {
"date": "2026-07-26"
}
}Astro-MCP/
src/
astro_mcp/
api.py
server.py
config.py
services/
tools/
models/
tests/
docs/
examples/
scripts/
.github/
ruff format .ruff check .mypy srcpytestdocker compose upContinuous Integration includes:
- Ruff
- MyPy
- Pytest
- Package build
- Wheel validation
- Docker build
- Release artifacts
- Natal charts
- Transits
- REST API
- FastMCP
- Solar returns
- Progressions
- Synastry
- Composite charts
- Asteroids
- Fixed stars
- Stable API
- Plugin system
- Documentation complete
Contributions are welcome.
Please read:
- CONTRIBUTING.md
- CODE_OF_CONDUCT.md
- SECURITY.md
before submitting pull requests.
Released under the MIT License.
See LICENSE for details.
- Swiss Ephemeris
- FastMCP
- Model Context Protocol
- Pydantic
- FastAPI
- Uvicorn
Astro-MCP performs astronomical calculations and exposes astrology-related tooling.
Interpretation of charts is subjective and varies across astrological traditions. This project does not claim scientific validation for astrological interpretations. Users should distinguish between the underlying astronomical calculations and any interpretive layer built on top of them.
If you find Astro-MCP useful, please consider starring the repository.
⭐ Contributions, bug reports, and feature requests are always welcome.