The Aerospace MCP server provides comprehensive aerospace engineering capabilities for flight planning, orbital mechanics, and aerodynamic analysis, accessible via HTTP API and Model Context Protocol (MCP).
Core Flight Operations:
Search airports by IATA code or city name with optional country filtering
Plan complete flight routes with performance estimates for specific aircraft types
Calculate great circle distances between geographic coordinates with polyline generation
Retrieve aircraft performance data using OpenAP models, including fuel consumption and flight time
Advanced Aerospace Analysis:
Aerodynamics: Wing analysis (VLM), airfoil polar generation, stability derivatives calculation, and propeller performance analysis (BEMT)
Atmospheric Modeling: International Standard Atmosphere (ISA) profiles and wind condition modeling
Coordinate Systems: Convert between aerospace reference frames (ECEF, ECI, geodetic)
Rocketry: 3DOF trajectory simulation, rocket sizing estimation, and launch optimization
Orbital Mechanics: Orbital element conversions, satellite orbit propagation (including J2 perturbations), ground track calculation, Hohmann transfers, and trajectory optimization using genetic algorithms and Monte Carlo analysis
UAV Operations: Energy consumption and endurance estimation
System Features:
Flexible search types with automatic detection
Customizable flight planning parameters (aircraft mass, cruise altitude, route resolution)
System status monitoring and capability verification
Provides access to IATA airport codes and standards for flight planning operations, enabling intelligent airport resolution and routing calculations.
Aerospace MCP - Flight Planning API & MCP Server
A comprehensive aerospace research and flight planning service providing both HTTP API and Model Context Protocol (MCP) integration. Built with FastMCP for streamlined MCP server development. Features intelligent airport resolution, great-circle route calculation, aircraft performance estimation, atmospheric modeling, coordinate frame transformations, aerodynamic analysis, propeller performance modeling, rocket trajectory optimization, orbital mechanics calculations, and spacecraft trajectory planning for aerospace operations.
β οΈ SAFETY DISCLAIMER
THIS SOFTWARE IS FOR EDUCATIONAL, RESEARCH, AND DEVELOPMENT PURPOSES ONLY
NOT FOR REAL NAVIGATION: Do not use for actual flight planning or navigation
NOT CERTIFIED: This system is not certified by any aviation authority
ESTIMATES ONLY: Performance calculations are theoretical estimates
NO WEATHER DATA: Does not account for weather, NOTAMs, or airspace restrictions
NO LIABILITY: Authors assume no responsibility for any consequences of use
For real flight planning, always use certified aviation software and consult official sources including NOTAMs, weather reports, and air traffic control.
π Quick Start
Option 1: UV (Recommended)
Option 2: Docker
Option 3: MCP Client (Claude Desktop)
Add to your Claude Desktop configuration:
Note: The env
section is optional and only needed if you want to enable the AI-powered agent tools for enhanced user experience.
MCP via CLI
π Table of Contents
β¨ Features
Core Capabilities
Airport Resolution: Intelligent city-to-airport mapping with 28,000+ airports worldwide
Route Planning: Great-circle distance calculation with geodesic precision
Performance Estimation: Aircraft-specific fuel and time calculations via OpenAP
Atmospheric Modeling: ISA atmosphere profiles with optional enhanced precision
Coordinate Transformations: ECEF, ECI, geodetic frame conversions for aerospace analysis
Multiple Interfaces: HTTP REST API and Model Context Protocol (MCP) support
Real-time Processing: Sub-second response times for flight planning requests
Space & Orbital Mechanics Capabilities
π°οΈ Orbital Elements & State Vectors: Convert between Keplerian elements and Cartesian state vectors
π Orbit Propagation: Numerical integration with J2 perturbations using RK4 method
πΊοΈ Ground Track Computation: Calculate satellite ground tracks for mission planning
π Hohmann Transfers: Calculate optimal two-impulse orbital transfers
π€ Orbital Rendezvous: Plan multi-maneuver rendezvous sequences
π― Trajectory Optimization: Genetic algorithms and particle swarm optimization
π Uncertainty Analysis: Monte Carlo sampling for trajectory robustness assessment
π Lambert Problem: Two-body trajectory determination for given time-of-flight
Supported Operations
β Airport search by city name or IATA code
β Flight route planning with polyline generation
β Aircraft performance estimation (190+ aircraft types)
β Fuel consumption and flight time calculations
β Great-circle distance calculations
β Multi-leg journey planning
β Aircraft comparison analysis
β Atmospheric profile calculation (ISA standard atmosphere)
β Wind profile modeling (logarithmic/power law)
β Coordinate frame transformations (ECEF, ECI, geodetic)
β Wing aerodynamics analysis (VLM, lifting line theory)
β Airfoil polar generation and database access
β Aircraft stability derivatives calculation
β Propeller performance analysis (BEMT)
β UAV energy optimization and endurance estimation
β Motor-propeller matching analysis
β 3DOF rocket trajectory simulation with atmosphere integration
β Rocket sizing estimation for mission planning
β Launch angle optimization for maximum performance
β Thrust profile optimization using gradient descent
β Trajectory sensitivity analysis for design studies
β System capability discovery and status reporting
β Orbital mechanics calculations (Keplerian elements, state vectors, propagation)
β Ground track computation for satellite tracking and visualization
β Hohmann transfer planning for orbital maneuvers and mission design
β Orbital rendezvous planning for spacecraft proximity operations
β Trajectory optimization using genetic algorithms and particle swarm optimization
β Monte Carlo uncertainty analysis for trajectory robustness assessment
β Lambert problem solving for two-body trajectory determination
β Porkchop plot generation for interplanetary transfer opportunity analysis
β Optional SPICE integration with fallback to simplified ephemeris models
Technical Features
π Fast: In-memory airport database for microsecond lookups
π§ Flexible: Pluggable backend system (currently OpenAP)
π Accurate: Uses WGS84 geodesic calculations
π Standards: Follows ICAO aircraft codes and IATA airport codes
π Reliable: Comprehensive error handling and graceful degradation
π Well-documented: Complete API documentation with examples
πΎ Installation
System Requirements
Python: 3.11+ (3.12+ recommended for best performance)
Memory: 512MB RAM minimum (1GB+ recommended)
Storage: 200MB free space
Network: Internet connection for initial setup
Method 1: UV Package Manager (Recommended)
UV is the fastest Python package manager and provides excellent dependency resolution:
Method 2: Pip (Traditional)
Method 3: Docker
Method 4: Conda/Mamba
Troubleshooting Installation
Common Issues
OpenAP Installation Problems:
GeographicLib Issues:
Import Errors:
π― Usage Examples
HTTP API Examples
Basic Flight Planning
Airport Search
Advanced Flight Planning
Python Client Examples
Simple Client
Batch Processing
Orbital Mechanics Examples
Python Examples
Trajectory Optimization Example
JavaScript/TypeScript Examples
ποΈ Architecture
System Overview
Key Components
FastAPI Application (
main.py
)RESTful endpoints for HTTP clients
Auto-generated OpenAPI documentation
Request/response validation with Pydantic
MCP Server (
aerospace_mcp/server.py
)Model Context Protocol implementation
Tool-based interface for AI assistants
Async request handling
Core Services
Airport Resolution: City β Airport mapping with intelligent selection
Route Calculation: Great-circle paths with polyline generation
Performance Estimation: OpenAP-based fuel and time calculations
Data Layer
In-memory Airport Database: 28,000+ airports loaded at startup
OpenAP Integration: Aircraft performance models
GeographicLib: Precise geodesic calculations
Design Principles
Performance First: In-memory data structures for sub-millisecond lookups
Graceful Degradation: Works without optional dependencies
Type Safety: Full type hints and Pydantic validation
Extensible: Plugin architecture for new backends
Standards Compliant: ICAO, IATA, and OpenAP standards
π FastMCP Migration
This project has been migrated from the traditional MCP SDK to FastMCP, providing significant improvements in developer experience and code maintainability.
What is FastMCP?
FastMCP is a high-level, Pythonic framework for building Model Context Protocol servers. It dramatically reduces boilerplate code while maintaining full MCP compatibility.
Migration Benefits
β 70% Less Code: Tool definitions went from verbose JSON schemas to simple Python decorators β Better Type Safety: Automatic schema generation from type hints β Cleaner Architecture: Modular tool organization across logical domains β Improved Maintainability: Pythonic code that's easier to read and extend β Full Compatibility: Same MCP protocol, works with all existing clients
Before vs After
Before (Traditional MCP SDK):
βοΈ Configuration (.env)
Both the HTTP server and MCP servers automatically load environment variables from a local .env
(via python-dotenv
).
AEROSPACE_MCP_MODE
:http
ormcp
(Docker entrypoint switch)AEROSPACE_MCP_HOST
: Bind host for HTTP (default0.0.0.0
)AEROSPACE_MCP_PORT
: Port for HTTP (default8080
)AEROSPACE_MCP_LOG_LEVEL
:debug|info|warning|error
(defaultinfo
)AEROSPACE_MCP_ENV
:development|production
(controls reload)LLM_TOOLS_ENABLED
:true|false
to enable AI agent tools (defaultfalse
)OPENAI_API_KEY
: Required if LLM tools are enabled
Example .env
:
After (FastMCP):
Architecture Improvements
The FastMCP refactoring introduced a modular architecture with tools organized by domain:
tools/core.py
- Core flight planning (search, plan, distance, performance)tools/atmosphere.py
- Atmospheric modeling and wind analysistools/frames.py
- Coordinate frame transformationstools/aerodynamics.py
- Wing analysis and airfoil polarstools/propellers.py
- Propeller BEMT and UAV energy analysistools/rockets.py
- Rocket trajectory and sizingtools/orbits.py
- Orbital mechanics and propagationtools/optimization.py
- Trajectory optimization algorithms
Compatibility Notes
Entry Point: Now uses
aerospace_mcp.fastmcp_server:run
Dependencies: Includes
fastmcp>=2.11.3
instead of rawmcp
Server Name: Still
aerospace-mcp
for client compatibilityAll Tools: All 30+ tools maintain exact same names and parameters
β‘ Performance
Benchmarks
Operation | Response Time | Throughput | Memory Usage |
Health Check | < 1ms | 10,000+ req/sec | ~5MB |
Airport Search | 1-5ms | 1,000+ req/sec | ~50MB |
Flight Planning | 200-500ms | 5-10 req/sec | ~100MB |
Distance Calc | 10-50ms | 100+ req/sec | ~50MB |
Optimization Tips
Route Resolution: Use larger
route_step_km
values for faster processingCaching: Implement client-side caching for repeated requests
Batch Processing: Use async clients for multiple concurrent requests
Memory: Increase available RAM for better OpenAP performance
Scaling Considerations
Horizontal Scaling: Stateless design allows multiple instances
Load Balancing: Standard HTTP load balancers work well
Database: Consider external database for airport data at scale
Caching: Add Redis for shared cache across instances
π API Documentation
Interactive Documentation
When running the server, comprehensive API documentation is available at:
Swagger UI: http://localhost:8080/docs
ReDoc: http://localhost:8080/redoc
OpenAPI Schema: http://localhost:8080/openapi.json
Core Endpoints
GET /health
Health check and system status.
Response:
GET /airports/by_city
Search airports by city name.
Parameters:
city
(required): City name to searchcountry
(optional): ISO country code filter
Example: GET /airports/by_city?city=London&country=GB
POST /plan
Generate complete flight plan.
Request Body:
Response: Complete flight plan with route polyline and performance estimates.
Error Handling
All endpoints return standard HTTP status codes:
200
: Success400
: Bad Request (invalid parameters)404
: Not Found (airport/city not found)501
: Not Implemented (backend unavailable)
Error responses include detailed messages:
π€ MCP Integration
Supported MCP Clients
Claude Desktop: Native integration
VS Code Continue: Plugin support
Custom Clients: Standard MCP protocol
Available Tools
Tool | Description | Parameters |
| Find airports by IATA or city |
,
,
|
| Complete flight planning |
,
,
,
|
| Great-circle distance |
,
,
|
| Performance estimates |
,
,
|
| ISA atmosphere conditions |
,
|
| Wind profile calculation |
,
,
|
| Coordinate transformations |
,
,
,
|
| Lat/lon to ECEF conversion |
,
,
|
| ECEF to lat/lon conversion |
,
,
|
| Wing aerodynamics analysis (VLM) |
,
,
|
| Airfoil polar generation |
,
,
,
|
| Stability derivatives calculation |
,
,
|
| Propeller performance (BEMT) |
,
,
,
|
| UAV endurance and energy analysis |
,
,
|
| Available airfoil coefficients | None |
| Available propeller data | None |
| 3DOF rocket trajectory simulation |
,
,
,
|
| Rocket sizing for mission requirements |
,
,
|
| Launch angle optimization |
,
,
|
| Thrust profile optimization |
,
,
,
,
|
| Parameter sensitivity analysis |
,
,
|
| System health and capabilities | None |
| Convert orbital elements to state vector |
|
| Convert state vector to orbital elements |
|
| Propagate orbit with J2 perturbations |
,
,
|
| Calculate satellite ground track |
,
|
| Calculate Hohmann transfer orbit |
,
|
| Plan orbital rendezvous maneuvers |
,
|
| Trajectory optimization using GA |
,
,
|
| Trajectory optimization using PSO |
,
,
|
| Monte Carlo trajectory uncertainty analysis |
,
,
|
| Generate porkchop plot for interplanetary transfers |
,
,
,
,
,
|
Claude Desktop Setup
Open Claude Desktop Settings
Add server configuration:
Restart Claude Desktop
Test with: "Search for airports in Tokyo"
VS Code Continue Setup
Add to your config.json
:
π οΈ Development
Development Setup
Testing
Code Quality
Project Structure
π€ Contributing
We welcome contributions! Please see CONTRIBUTING.md for detailed guidelines.
Quick Contributing Guide
Fork & Clone
git clone https://github.com/yourusername/aerospace-mcp.git cd aerospace-mcpSetup Development Environment
uv venv && source .venv/bin/activate uv add --dev pytest httpx black isort mypyMake Changes
Add features or fix bugs
Write tests for new functionality
Update documentation as needed
Test & Format
pytest black . && isort . mypy main.pySubmit Pull Request
Clear title and description
Reference any related issues
Ensure CI/CD checks pass
Areas for Contribution
New Aircraft Support: Add more aircraft types to OpenAP
Weather Integration: Add weather data sources
Route Optimization: Implement waypoint optimization
UI/Frontend: Web interface for flight planning
Database Backend: PostgreSQL/MongoDB integration
Performance: Optimization and caching improvements
π Documentation
Complete Documentation
Quick Start Guide - Get up and running in 5 minutes
API Reference - Complete REST API documentation
MCP Integration - Model Context Protocol setup
Architecture Guide - System design and components
Deployment Guide - Production deployment strategies
Contributing Guide - Development and contribution guidelines
Integration Guide - Client integration examples
Examples Repository
Check out the examples repository for:
Complete client implementations
Integration patterns
Performance benchmarks
Real-world use cases
π License
This project is licensed under the MIT License - see the LICENSE file for details.
Third-Party Acknowledgments
OpenAP: Aircraft performance modeling - TU Delft
AirportsData: Airport database - mborsetti
GeographicLib: Geodesic calculations - Charles Karney
FastAPI: Modern web framework - SebastiΓ‘n RamΓrez
π Support & Community
Getting Help
GitHub Issues: Bug reports and feature requests
GitHub Discussions: Questions and community support
Documentation: Comprehensive guides in
/docs
Examples: Code examples and tutorials
Community
Discord: WIP for real-time chat
Professional Support
For enterprise support, consulting, or custom development:
Email: hello@aeroastro.org
Website: https://aeroastro.org
β Star this repository if you find it useful!
Built with β€οΈ for the aviation and software development communities.
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables flight planning and aviation operations through intelligent airport resolution, great-circle route calculation, and aircraft performance estimation. Supports 28,000+ airports worldwide and 190+ aircraft types for comprehensive flight planning via natural language.
- β οΈ SAFETY DISCLAIMER
- π Quick Start
- π Table of Contents
- β¨ Features
- πΎ Installation
- π― Usage Examples
- ποΈ Architecture
- π FastMCP Migration
- βοΈ Configuration (.env)
- β‘ Performance
- π API Documentation
- π€ MCP Integration
- π οΈ Development
- π€ Contributing
- π Documentation
- π License
- π Support & Community
Related MCP Servers
- -securityFlicense-qualityCreates travel agent-level flight plans using the fast-flights API, allowing users to search for flights and generate comprehensive travel itineraries.Last updated -6
- AsecurityFlicenseAqualityIntegration platform for aviation data sources including weather, NOTAMs, airport information, and flight planning APIs, enabling comprehensive pre-flight preparation and in-flight decision support.Last updated -122
- AsecurityFlicenseAqualityProvides tools to query flight and train information including flight searches, train tickets, weather forecasts, and transfer options between different transportation modes.Last updated -92
- -securityAlicense-qualityA server that provides real-time flight information query capabilities to AI assistants, allowing them to access detailed flight statuses, airport details, and related travel information.Last updated -109MIT License