Skip to main content

Model Context Protocol server giving any LLM client authoritative astrodynamics tools — TLE/SGP4, Lambert, ground-station access, time/frame conversions, porkchop, B-plane.

Project description

astrodynamics-mcp

A Model Context Protocol server that gives any MCP-capable LLM client (Claude Code, Cursor, ChatGPT desktop, custom agents) authoritative astrodynamics tools: TLE/SGP4 propagation, Lambert solving, ground-station access, time-scale and coordinate-frame conversions, porkchop scans, B-plane targeting.

Why

LLMs reason well about astrodynamics concepts but cannot do the numerical work — they cannot propagate orbits, solve Lambert problems, or query SPICE ephemerides. astrodynamics-mcp lets you plug authoritative tools into any MCP-capable client so the LLM calls vetted upstream libraries instead of fabricating numbers. Every result carries explicit units; every tool description tunes against an Inspect AI eval suite that measures whether the LLM picks the right tool and binds the right arguments.

Tools

Tool What it does Backed by
tle_lookup Fetch current TLEs from CelesTrak by NORAD ID, name, or group. CelesTrak gp.php API
sgp4_propagate Propagate TLEs across UTC ISO 8601 epochs in TEME / ICRF / GCRS / ITRS / CIRS. sgp4
lambert_solve Solve Lambert's problem; multi-rev solutions enumerated; two-impulse Δv on demand. lamberthub
access_windows Ground-station / observer access intervals over a window, with AOS / LOS / peak elevation. skyfield
time_convert UTC / TAI / TT / TDB / UT1 / GPS / TCB / TCG conversions across ISO / JD / MJD / J2000-seconds / Unix. astropy.time
frame_transform State-vector transforms across ICRF / ITRS / GCRS / TEME / CIRS / TIRS / IAU body-fixed frames. astropy.coordinates
porkchop (depart × arrive) Δv / C3 grid for interplanetary transfers, ASCII contour, summary or full output. lamberthub + JPL Horizons
bplane_target B-plane element calculation and impulsive targeting for hyperbolic flybys. in-house, JPL Horizons fed

Full input / output JSON schemas live on the Tool reference page of the docs site.

Quick start

Install:

uv tool install astrodynamics-mcp     # or: pipx install astrodynamics-mcp

Claude Code

Add to your Claude Code MCP settings:

{
  "mcpServers": {
    "astrodynamics": {
      "command": "astrodynamics-mcp",
      "args": ["stdio"]
    }
  }
}

Restart Claude Code. In a chat:

You: Compute the Hohmann Δv from a 250 km circular LEO to GEO.

(The model calls lambert_solve with the Hohmann geometry and answers ≈ 3.91 km/s, citing the tool output — not the LLM's own weights.)

Cursor

~/.cursor/mcp.json (or workspace-level .cursor/mcp.json):

{
  "mcpServers": {
    "astrodynamics": {
      "command": "astrodynamics-mcp",
      "args": ["stdio"]
    }
  }
}

Restart Cursor. The tools appear under the astrodynamics server group.

See Pick a client in the docs for ChatGPT desktop, a raw Python MCP smoke client, and the Streamable HTTP transport for remote agents.

Supported clients

Client Transport Verified
Claude Code stdio ✅ Yes
Cursor stdio ✅ Yes
ChatGPT desktop stdio ⏳ Expected to work
Raw Python (mcp SDK) stdio ✅ Yes
Remote agents Streamable HTTP ⏳ Expected to work
LangGraph / AutoGen / CrewAI any ⏳ Expected to work

What this is not

  • Not a general-purpose astrodynamics framework. Wraps vetted upstream libraries; does not re-implement propagators, integrators, or coordinate systems.
  • Not an agent framework. Exposes MCP tools; LangGraph, AutoGen, CrewAI, and the LLM clients themselves consume them.
  • Not an ML / inference server. Tools that need their own ML models (maneuver detection, neural propagators) belong in separate MCP servers — kept modular for dependency isolation.
  • Not a SaaS. Runs locally or in your own infrastructure. No hosted multi-tenant deployment.
  • Not a web UI. Tool consumption is via MCP clients; no browser frontend, no desktop app, no notebook widget.

For direct (non-MCP) Python use of the same surfaces, reach for the upstream libraries: sgp4, lamberthub, skyfield, astropy, interplanetary-porkchop, spiceypy.

Built on

The official Anthropic modelcontextprotocol/python-sdk (MIT). The bundled FastMCP server class is the server primitive; stdio + Streamable HTTP transports are first-class.

Docs and links

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

astrodynamics_mcp-0.1.0.tar.gz (500.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

astrodynamics_mcp-0.1.0-py3-none-any.whl (73.4 kB view details)

Uploaded Python 3

File details

Details for the file astrodynamics_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: astrodynamics_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 500.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for astrodynamics_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 516f29f3b6adbaf56de0de3baecfcad8ddd41e73b7e23d489ca9033917e22e5f
MD5 e992dcbbc3dac8ad776c01f64773da1a
BLAKE2b-256 5f9cf78be6c20ea0f21220da4701480b70d34d7ce06628ad54ae12fffc394735

See more details on using hashes here.

Provenance

The following attestation bundles were made for astrodynamics_mcp-0.1.0.tar.gz:

Publisher: release.yml on astro-tools/astrodynamics-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file astrodynamics_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for astrodynamics_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4127593509b0db1ff0c2cd47b7f79a4bbd8f1fb80a50724f42b7037646b8eaa4
MD5 bd371d28720971e784fb3425f4dbd1ac
BLAKE2b-256 82d36eceb1a1a19d6589e1fadf121d86800fe40ca840943669a773a23d77622c

See more details on using hashes here.

Provenance

The following attestation bundles were made for astrodynamics_mcp-0.1.0-py3-none-any.whl:

Publisher: release.yml on astro-tools/astrodynamics-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page