flightmortem
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
flightmortem
Deterministic ArduPilot .bin, PX4 .ulog, and Betaflight/INAV .bbl flight-log parser, Cooley-Tukey Welch gyro/accel FFT spectral analyzer, OLS battery internal-resistance (R_int) & motor balance estimator, 8-cause crash root-cause fingerprinter, and bounds-clamped PID/filter diffing utility in zero-dependency TypeScript (node >= 22.18.0, Cloudflare Workers, and Apify Actor / Standby MCP).
What It Does / What It Does Not Do
Surface / Tool | Tier / Price | What It Does |
| Free ( | Parses ArduPilot DataFlash |
| Free ( | Auto battery cell count ( |
| Metered ( | Cooley-Tukey Radix-2 Welch Hann-windowed PSD (detrended 50%-overlap segments), MAD noise floor, parabolic sub-bin peak interpolation, |
| Metered ( | Ranks 8 failure causes (motor saturation/loss, battery brownout sag, EKF innovation divergence, high vibration/clipping, PID/D-term resonance oscillation, attitude tracking loss, logging dropout, failsafe/error events) + chronological timeline in a |
| Metered ( | Synthesizes ArduPilot, PX4, Betaflight, and INAV PID/notch/LPF adjustments clamped to |
| Metered ( | A/B before/after comparison returning |
HTTP | MCP | Hosted Streamable HTTP MCP at |
Apify Actor & Standby MCP | PPE / Standby | Single ( |
What It Does Not Do:
Does not connect to live flight controllers over USB, MAVLink serial, or MSP radios (
flightmortemoperates offline on recorded logs and telemetry JSON).Does not synthesize or flash full parameter dumps; parameter changes are emitted as clamped
<= 25%-step diffs with explicit rollback commands requiring pilot review.Inline MCP
log_base64inputs are capped at1,572,864decoded bytes inside a2,097,152-byte JSON-RPC body (use local CLI--filefor larger logs up to52,428,800bytes).PX4 ULog nested struct decoding and Betaflight Blackbox frame support target standard telemetry streams (
sensor_combined,vehicle_attitude,actuator_outputs,battery_status,estimator_status,gyroADC,motor,vbatLatest); vendor-proprietary encrypted logs are rejected fail-closed.
Related MCP server: px4-ulog-mcp
Install & Uninstall
Requires Node.js >= 22.18.0 (verified on v25.9.0; 0 runtime and 0 dev npm dependencies, 237,180 bytes / 231.6 KiB across 32 TypeScript files and 5,290 lines in src/, 300 KB in src/ and 432 KB project total via du -sk):
node --test tests/*.test.ts
node --test e2e/*.test.tsMeasured runs on node v25.9.0 (macOS Arm64):
Unit & integration (
node --test tests/*.test.ts):20tests across6suites in6files (20pass,0fail,0skipped).End-to-end (
node --test e2e/*.test.ts):2suites (2pass,0fail,0skipped).Independent Python oracle (
struct.pack+ independent Welch Hann DFT + OLSR_int):< 1e-3agreement across rounded FFT peak Hz / dB, OLSR_int(0.0 mOhmdiff), and trapezoidalmAh/Wh.
To uninstall locally, remove the flightmortem directory.
Quick Start
1. Human & --json Agent CLI
Inspect capability schema and exit codes:
node src/adapters/cli.ts --describeAnalyze battery internal resistance (R_int) and cell sag via inline JSON or a .bin/.ulog/.bbl file:
node src/adapters/cli.ts power --input '{"telemetry":{"battery":[{"t_s":0,"voltage_v":25.0,"current_a":0},{"t_s":1,"voltage_v":24.4,"current_a":24},{"t_s":2,"voltage_v":23.8,"current_a":48},{"t_s":3,"voltage_v":24.4,"current_a":24}]}}' --jsonObserved output:
{"schema_version":1,"ok":true,"command":"power","data":{"firmware":"json","sample_count":4,"motor_sample_count":0,"cell_count":6,"cell_source":"auto_inferred","resting_voltage_v":24.4,"min_voltage_v":23.8,"max_sag_v":0.6,"sag_pct":2.46,"min_cell_v":3.9667,"r_int_mohm":25,"r_int_r2":1,"consumed_mah":23.33,"consumed_wh":0.564,"peak_current_a":48,"mean_current_a":24,"hover_throttle_norm":null,"motor_count":0,"motor_means":[],"motor_imbalance_pct":null,"motor_saturation_pct":null,"warnings":[]}}Common workflows on recorded binary logs:
node src/adapters/cli.ts inspect --file flight.bin --json
node src/adapters/cli.ts fft --file flight.bin --sensor gyro --window-size 512 --json
node src/adapters/cli.ts diagnose --file crash.ulog --cell-count 6 --json
node src/adapters/cli.ts tune --file noisy.bbl --log-index 0 --max-step-pct 15 --out tune_manifest.json --dry-run --json
node src/adapters/cli.ts compare --baseline before.bin --candidate after.bin --json2. HTTP 402 Streamable HTTP MCP & Stdio MCP
Dry-run or run the local MCP server:
node src/adapters/cli.ts serve --dry-run --json
API_KEYS_CSV="demo-key" node src/adapters/cli.ts serve --host 127.0.0.1 --port 8787
node src/adapters/cli.ts mcpConnect to the hosted Cloudflare Worker MCP endpoint (https://flightmortem-mcp.raymond-deoliveira.workers.dev/mcp):
Free tools (
fm_inspect_log,fm_power_health) work without credentials.Metered tools (
fm_fft_spectrum,fm_crash_diagnose,fm_tune_diff,fm_compare_flights) acceptX-Polar-License-Key,PAYMENT-SIGNATURE(Base Mainnet x402 v2 USDC), orAuthorization: Bearer <token>, failing closed with HTTP402+PAYMENT-REQUIRED.
Exit Codes
0: success1: unexpected runtime error2: CLI usage or input validation error3: file I/O, missing path, or symlink rejection4: corrupt or unrecognized flight-log binary format5: payload size limit exceeded or permission error130:SIGINT/SIGTERMshutdown
License
Commercial Software License (see LICENSE — all rights reserved).
Commercial Pro license key (
$29, up to 3 devices/clients) and hosted pay-per-call access available via Polar.sh (https://buy.polar.sh/polar_cl_qBGivPZfy8sSjg81OkKqtWmXZqGorfs4jLAQC4QojVO) and Base Mainnet USDC x402.
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
Analytics and debugging for your MCP server — explore usage and sessions, then root-cause errors.
Free MCP tools: the only MCP linter, health checks, cost estimation, and trust evaluation.
Structured analysis API and remote MCP tool for text, JSON records and numeric series.
Self-hosted MCP server: 26 deterministic dev, security, and EVM tools.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables natural language analysis of ArduPilot flight logs (.bin files) via AI chat apps like Claude Desktop, Cursor, and VS Code, providing explanations and answering questions about flight issues.12278 PyPI4AGPL 3.0
- AlicenseNot gradedqualityDmaintenanceMCP server for inspecting PX4 ULog flight logs, enabling AI assistants to understand, debug, and reason about drone systems.3MIT
- AlicenseNot gradedqualityDmaintenanceA set of MCP tools for parsing, filtering, analyzing, formatting, and computing stats on logs in common formats (JSON, Apache/Nginx, syslog, structured, custom regex).46 npm1MIT
- AlicenseBqualityBmaintenanceEnables any MCP client to plan and run verifiable analysis of engine hot-fire and bench test data through tools that open runs, segment phases, check sensor health, redlines, valve response and oscillations, compare simulations, verify every reported number against an evidence ledger, and write HTML reports. All findings stay traceable and reproducible from deterministic tool calls rather than raw samples.524 PyPIMIT