Natal MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Natal MCP Server
A Model Context Protocol (MCP) server that provides professional astrology chart generation and analysis capabilities using the natal library. This server enables AI assistants like Claude to create and analyze astrological charts with high precision and detail.
✨ Features
🎯 Chart Generation: Create natal charts, transit charts, synastry charts, and solar return charts
📊 Data Analysis: Extract detailed astrological data including planet positions, houses, aspects, and statistics
🔗 MCP Integration: Seamlessly integrate with Claude Desktop and other MCP clients
📈 Multiple Formats: Support for SVG chart generation and structured data output
⚡ Performance: Built-in caching for improved performance
🛡️ Robust: Comprehensive error handling and input validation
📱 Cross-Platform: Works on Windows, macOS, and Linux
Related MCP server: astro-mcp
🚀 Installation
Prerequisites
Python 3.12 or higher
uv (recommended) or pip
Using uv (Recommended)
uv add natal-mcpUsing pip
pip install natal-mcpUsing npm (for Node.js projects)
npm install natal-mcp🏃♂️ Quick Start
Running the Server
# Using uv (recommended)
uv run natal-mcp
# Using pip
natal-mcp
# Using npm
npx natal-mcp
# With custom options
natal-mcp --transport sse --port 8080 --log-level debugClaude Desktop Integration
Add the following to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"natal": {
"command": "uv",
"args": ["run", "natal-mcp"]
}
}
}Alternative configurations:
{
"mcpServers": {
"natal": {
"command": "natal-mcp"
}
}
}Or with npm:
{
"mcpServers": {
"natal": {
"command": "npx",
"args": ["natal-mcp"]
}
}
}🛠️ Available Tools
Chart Generation Tools
create_natal_chart
Generate a natal (birth) chart from birth data.
Parameters:
name(string): Full name of the personutc_datetime(string): Birth date and time in UTC (ISO format, e.g., '1990-01-15T10:30:00Z')latitude(float): Birth location latitude (-90 to 90)longitude(float): Birth location longitude (-180 to 180)width(int, optional): Chart width in pixels (default: 600)theme(string, optional): Chart theme - 'light', 'dark', or 'mono' (default: 'dark')
create_transit_chart
Generate a transit chart comparing natal positions with current planetary positions.
Parameters:
name(string): Full name of the personbirth_utc_datetime(string): Birth date and time in UTCbirth_latitude(float): Birth location latitudebirth_longitude(float): Birth location longitudetransit_utc_datetime(string): Transit date and time in UTCtransit_latitude(float, optional): Transit location latitude (defaults to birth location)transit_longitude(float, optional): Transit location longitude (defaults to birth location)width(int, optional): Chart width in pixels (default: 600)theme(string, optional): Chart theme (default: 'dark')
create_synastry_chart
Generate a synastry chart comparing two people's natal charts.
Parameters:
person1_name(string): Full name of the first personperson1_utc_datetime(string): First person's birth date and time in UTCperson1_latitude(float): First person's birth location latitudeperson1_longitude(float): First person's birth location longitudeperson2_name(string): Full name of the second personperson2_utc_datetime(string): Second person's birth date and time in UTCperson2_latitude(float): Second person's birth location latitudeperson2_longitude(float): Second person's birth location longitudewidth(int, optional): Chart width in pixels (default: 600)theme(string, optional): Chart theme (default: 'dark')
create_solar_return_chart
Generate a solar return chart for a specific year.
Parameters:
name(string): Full name of the personbirth_utc_datetime(string): Birth date and time in UTCbirth_latitude(float): Birth location latitudebirth_longitude(float): Birth location longitudereturn_year(int): Year for the solar return (e.g., 2024)return_latitude(float, optional): Location latitude for solar return (defaults to birth location)return_longitude(float, optional): Location longitude for solar return (defaults to birth location)width(int, optional): Chart width in pixels (default: 600)theme(string, optional): Chart theme (default: 'dark')
Data Analysis Tools
get_chart_data
Extract detailed astrological data from a natal chart.
Parameters:
name(string): Full name of the personutc_datetime(string): Birth date and time in UTClatitude(float): Birth location latitudelongitude(float): Birth location longitudetheme(string, optional): Chart theme (default: 'dark')
Returns: Detailed chart data including planets, houses, aspects, and signs.
get_chart_statistics
Get statistical analysis of a natal chart.
Parameters:
name(string): Full name of the personutc_datetime(string): Birth date and time in UTClatitude(float): Birth location latitudelongitude(float): Birth location longitudetheme(string, optional): Chart theme (default: 'dark')
Returns: Statistical distributions including elements, modalities, polarities, quadrants, and hemispheres.
generate_chart_report
Generate a comprehensive astrological chart report.
Parameters:
name(string): Full name of the personutc_datetime(string): Birth date and time in UTClatitude(float): Birth location latitudelongitude(float): Birth location longitudeformat(string, optional): Report format - 'markdown' or 'html' (default: 'markdown')theme(string, optional): Chart theme (default: 'dark')
Returns: Comprehensive chart analysis in the specified format.
📝 Example Usage
Basic Natal Chart
Create a natal chart for John Doe born on January 15, 1990 at 10:30 AM UTC in New York City (latitude: 40.7128, longitude: -74.0060).Transit Analysis
Create a transit chart for the same person for today's date to see current planetary influences.Relationship Compatibility
Create a synastry chart comparing John Doe with Jane Smith (born March 22, 1992 at 2:15 PM UTC in Los Angeles, latitude: 34.0522, longitude: -118.2437) to analyze relationship compatibility.Annual Forecast
Generate a solar return chart for John Doe for the year 2024 to see the themes for his upcoming year.🔧 Command Line Options
natal-mcp --helpAvailable options:
--transport: Transport protocol ('stdio' or 'sse', default: 'stdio')--port: Port for SSE transport (default: 8000)--host: Host for SSE transport (default: 'localhost')--log-level: Logging level ('debug', 'info', 'warning', 'error', default: 'info')--cache-size: Maximum number of charts to cache (default: 100)--version: Show version information
🧪 Development
Requirements
Python 3.12+
uv (recommended) or pip
natal library
MCP Python SDK
Setup
git clone <repository-url>
cd natal-mcp
uv syncRunning Tests
# Run all tests
uv run pytest
# Run with coverage
uv run pytest --cov=natal_mcp
# Run specific test file
uv run pytest tests/test_tools.py
# Run with verbose output
uv run pytest -vCode Quality
# Format code
uv run black src/ tests/
# Sort imports
uv run isort src/ tests/
# Type checking
uv run mypy src/Building
# Build package
uv build
# Install in development mode
uv pip install -e .🐛 Troubleshooting
Common Issues
1. Python Version Error
Error: Python 3.12+ not foundSolution: Install Python 3.12 or higher and ensure it's in your PATH.
2. Natal Library Import Error
ImportError: No module named 'natal'Solution: Ensure all dependencies are installed with uv sync or pip install -r requirements.txt.
3. Claude Desktop Connection Issues
Verify the configuration file path is correct
Check that the command path is accessible
Restart Claude Desktop after configuration changes
Check logs for error messages
4. Chart Generation Errors
Verify date format is ISO 8601 (e.g., '1990-01-15T10:30:00Z')
Check latitude/longitude ranges (-90 to 90, -180 to 180)
Ensure timezone is UTC
Debug Mode
Run with debug logging to see detailed information:
natal-mcp --log-level debug📚 API Reference
For detailed API documentation, see the docstrings in the source code or generate documentation with:
uv run python -m pydoc natal_mcp🤝 Contributing
Contributions are welcome! Please follow these steps:
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Make your changes
Add tests for new functionality
Ensure all tests pass (
uv run pytest)Format code (
uv run black src/ tests/)Commit your changes (
git commit -m 'Add amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
Development Guidelines
Follow PEP 8 style guidelines
Add type hints to all functions
Write comprehensive tests
Update documentation for new features
Ensure backward compatibility
📄 License
MIT License - see LICENSE file for details.
🙏 Acknowledgments
natal - The excellent astrology library that powers this server
Model Context Protocol - The protocol that enables AI integration
FastMCP - The Python SDK for MCP servers
📞 Support
📧 Email: contact@natal-mcp.com
Made with ❤️ for the astrology and AI communities.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Astrology app for ChatGPT and Claude: real charts from NASA JPL DE440, not AI guesses.
Western natal charts, horoscopes, transits and synastry for AI agents, verified vs NASA JPL.
AstroMansion is a hosted MCP server for astrology computed exactly, never estimated. Positions come from our own engine on NASA JPL ephemerides, with no third-party astrology API behind it. Checked against NASA JPL Horizons, major-planet positions stay within half an arcsecond, and the audit is public at https://astromansion.com/en/accuracy. 52 techniques Natal charts, transits and transit hits, stations, solar, lunar and Saturn returns, secondary progressions, solar arc, primary directions, synastry, composite charts, compatibility, dignities, profections, firdaria, zodiacal releasing, decennials, horary, electional, lunar mansions, Arabic lots, Vedic charts, nakshatras, Vimshottari dasha, navamsa, aspect patterns, midpoints, antiscia, declinations, harmonics, draconic and heliocentric charts, astrocartography, fixed stars, parans, heliacal risings, rectification, great conjunctions, Venus star points, ingresses, the age point, temperament and moon phases. Tools - search_places finds a birthplace with its coordinates and time zone. - natal_chart casts a birth chart with its planets, houses and aspects. - body_sign tells the sign a body stood in at a birth. - list_techniques lists every technique, the plan it needs, and an example of its options. - run_technique runs any of the 52 techniques. - sky_calendar lists moon phases, retrogrades, eclipses and void-of-course Moon periods. - chart_image draws the chart wheel as a PNG. - mansionsql_query answers SQL questions about a chart. Eight tools keep the assistant's context small. list_techniques shows what exists, and run_technique runs it. Connect - Claude and ChatGPT: add https://api.astromansion.com/mcp as a custom connector and sign in with your AstroMansion account. - Claude Code: claude mcp add --transport http astromansion https://api.astromansion.com/mcp --header "X-API-Key: YOUR_KEY" - Any other client: Streamable HTTP at https://api.astromansion.com/mcp, with OAuth or an X-API-Key header. Plans The free plan includes 100 calls a month for natal charts. Paid plans open the other techniques. See https://astromansion.com/en/pricing.
Your natal chart, forecasts, synastry and astromap from NASA/JPL-grade ephemeris data
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables astrological chart generation including natal charts, synastry, transits, composite charts, and planetary returns using the Kerykeion library. Supports multiple output formats (text, SVG, PNG) and customizable themes, house systems, and languages.MIT
- AlicenseNot gradedqualityBmaintenanceHigh-precision astrology tools for LLM agents, including natal charts, transits, progressions, synastry, and more, backed by Swiss Ephemeris.1MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to retrieve precise astrology calculations, including natal charts, transits, composites, harmonic midpoints, and ranked daily aspects, using real ephemeris data rather than guesses.51AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to compute ephemeris-grade natal charts, current transits, and zodiac sign profiles through deterministic astrology tools.MIT