EMS MCP Server
Provides LLM access to EMS flight data analytics through MCP: discover data, query flights, and retrieve time-series analytics.
List EMS systems and check whether a system is online.
Navigate EMS database hierarchies and discover fields by keyword, browsing, or deep traversal.
Get field metadata, units, and discrete value mappings.
Query flight records with filters, sorting, aggregation, and table/CSV/JSON output.
Search for and retrieve time-series flight analytics such as altitude and airspeed for specific flights.
Retrieve reference data: fleets, aircraft, airports, and flight phases.
Access stable MCP resources for workflow guides, systems, fleets, airports, and common fields.
Use reusable prompts for flight analysis, flight comparison, and parameter search workflows.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@EMS MCP Server Show me the 10 most recent flights for aircraft N123AB"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
EMS MCP Server
An MCP (Model Context Protocol) server that provides LLM access to the EMS (Event Management System) API for flight data analytics.
Prerequisites
Python 3.11+
uv package manager
Related MCP server: Flightradar24 MCP Server
Installation
git clone <repo-url>
cd ems-mcp
# Create virtual environment
uv venv
# Activate virtual environment
# Windows (cmd):
.venv\Scripts\activate
# Windows (PowerShell):
.venv\Scripts\Activate.ps1
# macOS / Linux:
source .venv/bin/activate
# Install the package
uv pip install -e .This creates an ems-mcp executable inside the virtual environment:
Windows:
.venv\Scripts\ems-mcp.exemacOS / Linux:
.venv/bin/ems-mcp
Configuration
Credentials (Windows Credential Manager)
Your EMS username and password are stored in Windows Credential Manager (or the OS keychain on macOS/Linux) rather than in MCP config files. Store them once:
.venv\Scripts\ems-mcp.exe credentials set # prompts for username and password
.venv\Scripts\ems-mcp.exe credentials show # shows the stored username
.venv\Scripts\ems-mcp.exe credentials delete # removes the stored credentialThis creates a Generic Credential named ems-mcp, visible under
Control Panel > Credential Manager > Windows Credentials. To update your
password, run credentials set again.
Environment variables
Variable | Description |
| Required. EMS server URL (e.g. |
| Optional. Credential Manager entry name (default |
| Optional overrides for the stored credential (e.g. for CI). If only |
Claude Code (CLI)
Create a .mcp.json file in the project root:
{
"mcpServers": {
"ems-mcp": {
"command": "C:\\absolute\\path\\to\\ems-mcp\\.venv\\Scripts\\ems-mcp.exe",
"args": [],
"env": {
"EMS_BASE_URL": "https://your-ems-server.com"
}
}
}
}Claude Code reads .mcp.json automatically when you open the project directory.
Claude Desktop
Edit claude_desktop_config.json:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the server to the mcpServers block:
{
"mcpServers": {
"ems-mcp": {
"command": "C:\\absolute\\path\\to\\ems-mcp\\.venv\\Scripts\\ems-mcp.exe",
"args": [],
"env": {
"EMS_BASE_URL": "https://your-ems-server.com"
}
}
}
}On macOS/Linux, use the Unix-style path to the executable (e.g. /home/user/ems-mcp/.venv/bin/ems-mcp).
Restart Claude Desktop after saving changes.
Gemini CLI
Create .gemini/settings.json in the project directory:
{
"mcpServers": {
"ems-mcp": {
"command": "C:\\absolute\\path\\to\\ems-mcp\\.venv\\Scripts\\ems-mcp.exe",
"args": [],
"env": {
"EMS_BASE_URL": "https://your-ems-server.com"
}
}
}
}Available Tools
Discovery
list_ems_systems-- List available EMS systems (start here)list_databases-- Navigate the database hierarchyfind_fields-- Find fields by keyword (mode="search"; runs asmode="deep"automatically on entity-type databases such as FDW Flights), browse the field group tree (mode="browse"), or BFS-traverse a database (mode="deep"); returns numbered[N]references usable directly in other tools. Field names elsewhere must match exactly -- near-misses return candidate[N]refs instead of being substitutedget_field_info-- Get field metadata and discrete value mappingssearch_analytics-- Search for time-series analytics by name (altitude, airspeed, etc.)get_result_id-- (Deprecated) Resolve[N]references to full opaque IDs; no longer needed in the standard workflow
Querying
query_database-- Query flight records with filters, sorting, and aggregationquery_flight_analytics-- Get time-series data for specific flights
Assets
get_assets-- Get reference data:asset_typeoffleets,aircraft(optionally filtered byfleet_id),airports, orflight_phasesping_system-- Check whether an EMS system is online
Resources
The server also exposes MCP resources for stable reference data:
ems://workflow-guide-- Discovery-to-query workflow guideems://systems-- List of available EMS systems (cached)ems://systems/{system_id}/fleets-- Fleet catalog for a system (cached)ems://systems/{system_id}/airports-- Airport reference data (cached)ems://databases/common-fields-- Index of databases with curated field vocabulariesems://databases/{database_name}/common-fields-- Curated common fields for a named database (e.g.FDW Flights)
Prompts
Reusable templates that pre-encode multi-step EMS workflows:
analyze_flights-- Discovery -> query -> analytics for a tail number / date rangecompare_flights-- Side-by-side time-series comparison between two flight IDssearch_flight_parameters-- Discover available fields by keyword, with entity-database support
Development
uv pip install -e ".[dev]"
pytest tests/Troubleshooting
401 Unauthorized -- Check the stored credential with ems-mcp credentials show (re-run credentials set if your password changed), make sure stale EMS_USERNAME/EMS_PASSWORD variables are not overriding it, and confirm the account has API access.
Connection errors -- Verify EMS_BASE_URL does not include a /api suffix. It should be just the server URL (e.g. https://your-ems-server.com).
Server not found by MCP client -- Make sure the path to the ems-mcp executable in your config is an absolute path and that the virtual environment has been created (uv venv && uv pip install -e .).
Available Tools
10 toolsfind_fieldsA
Find fields in a database. Three modes available:
search: Fast keyword search (default). Requires search_text. Does NOT work on entity-type databases.
browse: Navigate field group hierarchy. Use group_id to drill down.
deep: BFS traversal across all field groups. Requires search_text. Works on ALL databases including entity-type. Slower (multiple API calls).
Results show numbered references [N] that can be used directly in query_database, get_field_info, etc. Field names also work.
Args: ems_system_id: EMS system ID. database_id: Database ID or name (e.g. "FDW Flights"). mode: "search" (fast keyword), "browse" (navigate groups), or "deep" (BFS). search_text: Search keyword (required for search and deep modes). group_id: Field group ID to navigate into (browse mode only). max_results: Maximum results (search/deep modes, default: 50). max_depth: Maximum traversal depth (deep mode, default: 5, max: 10). max_groups: Maximum API calls (deep mode, default: 50, max: 200). show_ids: If True, show full IDs inline instead of numbered references.
Returns: Fields with names, types, and IDs (or numbered references).
Inputs: ems_system_id (required), database_id (required), mode, search_text, +5 more. Returns: result
get_assetsC
Get reference data: fleets, aircraft, airports, or flight phases.
Args: ems_system_id: EMS system ID (from list_ems_systems). asset_type: Type of assets to retrieve. fleet_id: Filter aircraft by fleet ID (only for asset_type="aircraft").
Returns: Formatted list of the requested asset type.
Inputs: ems_system_id (required), asset_type (required), fleet_id. Returns: result
get_field_infoA
Get field metadata including type, units, and discrete value mappings.
Essential for discrete fields: shows numeric code-to-label mappings needed for filtering. String labels in filters are auto-resolved, but use this to verify available values.
Args: ems_system_id: EMS system ID. database_id: Database ID or name (e.g. "FDW Flights"). field_id: Field reference: [N] number from find_fields, field name (e.g. "Takeoff Airport Name"), or bracket-encoded ID.
Returns: Field details with discrete value mappings if applicable.
Inputs: ems_system_id (required), database_id (required), field_id (required). Returns: result
get_result_idA
DEPRECATED: query_database and get_field_info now accept [N] reference numbers and field names directly. This tool is no longer needed in the standard workflow.
Retrieve full opaque IDs for numbered [N] references from search results.
Args: result_numbers: Reference numbers from search results (e.g., [1, 3, 5]).
Returns: The name and full ID for each requested result.
Inputs: result_numbers (required). Returns: result
list_databasesA
Navigate the database hierarchy. Call without group_id for root level.
The "FDW Flights" database (Flight Data Warehouse) contains flight records.
Args: ems_system_id: EMS system ID (from list_ems_systems). group_id: Group ID to navigate into (omit for root).
Returns: Databases and subgroups at the specified level.
Inputs: ems_system_id (required), group_id. Returns: result
list_ems_systemsA
List available EMS systems. Start here to get system IDs for all other tools.
Returns: EMS systems with IDs, names, and descriptions.
Inputs: no named parameters. Returns: result
ping_systemA
Check if an EMS system is online and responsive.
Args: ems_system_id: EMS system ID.
Returns: System status.
Inputs: ems_system_id (required). Returns: result
query_databaseB
Query flight records from a database.
Accepts field names (e.g. "Flight Date"), [N] reference numbers from find_fields, or raw bracket-encoded IDs. Database names (e.g. "FDW Flights") are also resolved automatically.
Supports aggregation (avg/count/max/min/stdev/sum/var) and discrete filter auto-resolution (string labels resolved to numeric codes automatically).
Args: ems_system_id: EMS system ID. database_id: Database ID or name (e.g. "FDW Flights"). fields: Fields to retrieve. Each has field_id (name, [N] ref, or bracket ID), optional alias, optional aggregate. filters: Filter conditions (AND-combined). Each has field_id, operator (equal/notEqual/greaterThan/lessThan/between/in/like/isNull/etc.), value. order_by: Sort order. Each has field_id, optional direction (asc/desc). limit: Max rows (1-10000, default: 100). format: 'display' (human-readable, default) or 'raw' (numeric codes). output_format: 'table' (default), 'csv' (compact), or 'json' (structured).
Returns: Results in the requested output format.
Inputs: ems_system_id (required), database_id (required), fields (required), filters, +4 more. Returns: result
query_flight_analyticsA
Get time-series data (altitude, airspeed, etc.) for specific flights.
Flight IDs come from query_database. Accepts human-readable analytic names (e.g. "Airspeed") which are resolved automatically, or raw IDs from search_analytics.
Args: ems_system_id: EMS system ID. flight_ids: Flight record IDs (max 10, from query_database). analytics: Analytic names or IDs (max 20). e.g. ["Airspeed", "Altitude"]. start_offset: Start time in seconds from flight start. end_offset: End time in seconds from flight start. sample_rate: Samples per second (default: 1.0). output_format: 'table' (default), 'csv' (compact), or 'json' (structured).
Returns: Per-flight time-series data in the requested output format.
Inputs: ems_system_id (required), flight_ids (required), analytics (required), start_offset, +3 more. Returns: result
search_analyticsA
Search for time-series analytics by name (altitude, airspeed, etc.).
You can pass analytic names directly to query_flight_analytics -- raw IDs are not needed. Use this tool to discover available analytic names.
Args: ems_system_id: EMS system ID. search_text: Keyword to search for in analytic names. group_id: Optional analytic group ID to narrow search. max_results: Maximum results (default: 50). show_ids: If True, show full IDs inline.
Returns: Matching analytics with names, types, units, and descriptions.
Inputs: ems_system_id (required), search_text (required), group_id, max_results, +1 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools have distinct purposes, but there is some overlap between find_fields and search_analytics as both involve searching for metadata with similar arguments (search_text, group_id, max_results). However, their domains (database fields vs. flight analytics) are clearly separated, and the descriptions help clarify their distinct use cases.
Tool names follow a consistent verb_noun pattern (e.g., find_fields, get_assets, list_databases), with minor deviations like ping_system (verb_noun but less standard) and get_result_id (deprecated, but fits the pattern). Overall, the naming is predictable and readable across the set.
With 10 tools, the server is well-scoped for interacting with EMS systems, covering essential operations like listing systems, querying databases, retrieving metadata, and accessing flight analytics. Each tool serves a clear purpose without redundancy, making the count appropriate for the domain.
The tool set provides comprehensive coverage for flight data analysis, including system discovery (list_ems_systems, ping_system), database navigation (list_databases), field and analytic metadata retrieval (find_fields, get_field_info, search_analytics), asset reference data (get_assets), and core querying (query_database, query_flight_analytics). No obvious gaps exist for the intended workflows.
Maintenance
Related MCP Connectors
Aircraft intelligence for AI agents: valuations with uncertainty bands, FAA registry lookups, cost of ownership, comparable aircraft, fleet search, airworthiness directives and STCs, market metrics and forecasts, verified value reports, pre-buy diligence checklists, logbook search and a watchlist. 38 tools; free tier with OAuth or a Windsock API key.
Lets AI agents analyze API metrics, request logs, and traces, and manage apps and alerts.
Paid Aviation & Airport Operations Intelligence API via x402. Unpaid tool calls return 402.
List datasets, schemas, run APL queries, and use prompts for exploration, anomalies, and monitoring.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides access to real-time and historical flight data from Flightradar24 API, enabling users to track live aircraft positions, query flight histories, and retrieve comprehensive aviation information including aircraft, airline, and airport details.1512 npmMIT
- AlicenseAqualityDmaintenanceProvides real-time and historical flight data via the Flightradar24 API, enabling AI assistants to track aircraft positions, flight summaries, and airport details.159,610 npm29MIT

AirLabs MCP Serverofficial
AlicenseAqualityDmaintenanceProvides AI assistants with access to real-time flight data, airport schedules, delays, and aviation reference databases through natural language queries.12192 npmMIT- AlicenseNot gradedqualityDmaintenanceProvides aerospace fleet telemetry monitoring, Mil-Spec RAG search, fleet maintenance queries, sandboxed mission log exports, and tactical alert dispatching.MIT