Precision astronomical ephemeris calculations via Model Context Protocol (MCP). Provides planetary positions using Swiss Ephemeris.
Project description
Ephemeris MCP 🌌
Precision Astronomical Ephemeris for AI Agents.
Ephemeris MCP is a Model Context Protocol (MCP) server that provides AI agents with precision planetary positions using the Swiss Ephemeris.
Quick Start
Install via PyPI (Recommended)
# Install with uvx (recommended - fast & isolated, no local install needed)
uvx ephemeris-mcp
# Or install globally with pip
pip install ephemeris-mcp
python -m ephemeris_mcp
Register with MCP Clients
Add to your MCP client configuration (client will start server on-demand):
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"ephemeris-mcp": {
"command": "uvx",
"args": ["ephemeris-mcp"]
}
}
}
VS Code/Cursor/Windsurf (Cline MCP settings):
{
"mcpServers": {
"ephemeris-mcp": {
"command": "uvx",
"args": ["ephemeris-mcp"]
}
}
}
The client starts the server process automatically, communicates over stdin/stdout, then terminates it when done.
Alternative: Docker
If you prefer container isolation:
# Pull latest image
docker pull ghcr.io/scottchronicity/ephemeris-mcp:latest
# Test it
docker run --rm -i ghcr.io/scottchronicity/ephemeris-mcp:latest
Configure MCP client with Docker:
{
"mcpServers": {
"ephemeris-mcp": {
"command": "docker",
"args": ["run", "--rm", "-i", "ghcr.io/scottchronicity/ephemeris-mcp:latest"]
}
}
}
Local Development
# Clone and install
git clone https://github.com/scottchronicity/ephemeris-mcp.git
cd ephemeris-mcp
uv sync
# Run tests
make test
# Run locally
uv run ephemeris-mcp
# Test the engine directly
make validate-happycase
Available Tools
get_planetary_positions
Returns precise Tropical Zodiac positions for all planets, Sun, Moon, and chart angles.
Parameters:
iso_time(string): ISO-8601 timestamp (e.g.,"2025-12-16T15:28:00Z")latitude(float): Observer latitude (default: 42.3314 - Detroit, MI)longitude(float): Observer longitude (default: -83.0458 - Detroit, MI)
Returns:
bodies: Sun, Moon, planets with sign, degrees, motion (direct/retrograde), speed, declinationhouses: Ascendant (ASC) and Midheaven (MC) with sign and degrees
Architecture
See docs/adr/ for architectural decisions:
- ADR 001: Geocentric Tropical Ecliptic coordinates specification
- ADR 002: Semantic versioning with Conventional Commits
- ADR 003: CI/CD pipeline architecture
License
AGPLv3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ephemeris_mcp-1.1.1.tar.gz.
File metadata
- Download URL: ephemeris_mcp-1.1.1.tar.gz
- Upload date:
- Size: 74.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bef0128fd1414ec2a5c67d7c2d43741ddd3181bedf04f3356401c1736dc7b152
|
|
| MD5 |
b1af1ae0e4a6340fd6ff7c52047df45c
|
|
| BLAKE2b-256 |
7b064a46857e13f251b118f94430ee8f51f1d77de2007b638796ea4a5a9fe787
|
Provenance
The following attestation bundles were made for ephemeris_mcp-1.1.1.tar.gz:
Publisher:
cd-release.yml on scottchronicity/ephemeris-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ephemeris_mcp-1.1.1.tar.gz -
Subject digest:
bef0128fd1414ec2a5c67d7c2d43741ddd3181bedf04f3356401c1736dc7b152 - Sigstore transparency entry: 813496112
- Sigstore integration time:
-
Permalink:
scottchronicity/ephemeris-mcp@3e112124ccd7c76b6422acbfd4bfc44aaca6e8b6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/scottchronicity
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd-release.yml@3e112124ccd7c76b6422acbfd4bfc44aaca6e8b6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ephemeris_mcp-1.1.1-py3-none-any.whl.
File metadata
- Download URL: ephemeris_mcp-1.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c5ba4a472eae53f769cf6fae6f29f59ca11c72e7fdc77b18498e25e92c326bc
|
|
| MD5 |
5d16c28a5299d9bc7a8d2abcd8a75f1c
|
|
| BLAKE2b-256 |
98e6e667795709f80a5ce6e34a03601196cb1dcadf470228b418027ec4c71d17
|
Provenance
The following attestation bundles were made for ephemeris_mcp-1.1.1-py3-none-any.whl:
Publisher:
cd-release.yml on scottchronicity/ephemeris-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ephemeris_mcp-1.1.1-py3-none-any.whl -
Subject digest:
6c5ba4a472eae53f769cf6fae6f29f59ca11c72e7fdc77b18498e25e92c326bc - Sigstore transparency entry: 813496113
- Sigstore integration time:
-
Permalink:
scottchronicity/ephemeris-mcp@3e112124ccd7c76b6422acbfd4bfc44aaca6e8b6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/scottchronicity
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd-release.yml@3e112124ccd7c76b6422acbfd4bfc44aaca6e8b6 -
Trigger Event:
push
-
Statement type: