SimConnect MCP docs
Configuration
SimConnect MCP is configured entirely through environment variables. There are no configuration files, and no command-line flags other than --version. All variables have safe defaults so the server runs without any configuration in docs mode.
Environment Variables
| Variable | Default | Description |
|---|---|---|
MCP_MODE |
docs |
Operating mode: docs (cross-platform), simconnect (Windows only), or both (docs tools plus SimConnect tools on Windows) |
PORT |
8080 |
TCP port to listen on |
SIMCONNECT_APP_NAME |
simconnect-mcp |
Application name registered with SimConnect (SimConnect and both modes) |
SIMCONNECT_AIRCRAFT_PROFILES |
(none) | Directory of local aircraft systems profile overrides (*.json), read by the user aircraft tools (SimConnect and both modes) |
SIMCONNECT_TRAFFIC_DATA |
(user cache) | Directory where the traffic engine keeps what it learns: each airport’s airways read from the simulator, de-icing pads (SimConnect and both modes) |
DOCS_MSFS_VERSION |
2024 |
MSFS version for the docs corpus: 2020, 2024, or both |
DOCS_OVERRIDE_PATH |
(embedded) | Filesystem path to a directory of JSON corpus files. Overrides the embedded corpus. See security note below. |
DOCS_LIVE_SCRAPE |
false |
true: the SDK reference tools need confirm_live_scraping: true on every call |
GIN_MODE |
debug |
Gin server mode: debug or release. In release mode, CORS is restricted to localhost only (DNS rebinding protection). |
MCP_MODE
Selects the operating mode at startup. The server does not support switching modes at runtime; restart with a different value to change modes.
docs— serves SimConnect SDK reference documentation and thegithub.com/mrlm-net/simconnectGo library guides (15 tools). Cross-platform, no simulator required.simconnect— connects to a running MSFS instance via the SimConnect SDK (70 tools, including the AI traffic, airborne ATC, scheduled traffic and user aircraft tools). Windows only; requires thewindowsbuild tag and the SimConnect SDK.both— always serves the docs tools, and on Windows also the SimConnect tools (85 tools in total). The SimConnect tools are registered only if the connection to the simulator opens at startup (10-second timeout); otherwise, and on non-Windows platforms, the server runs docs-only with the 15 docs tools. Thesimconnect_readyfield of/healthreports which case applies.
PORT
The TCP port the HTTP server binds to. Use this to avoid conflicts with other local services or to expose the server on a non-default port.
SIMCONNECT_APP_NAME
The name SimConnect MCP registers with the simulator when establishing a connection. This name appears in the simulator’s SimConnect client list. Only applies in simconnect and both modes.
SIMCONNECT_AIRCRAFT_PROFILES
A directory of local aircraft systems profiles: JSON files in the format of the library’s pkg/systems (see the systems library guide). get_aircraft_systems and the other user aircraft tools read the user aircraft through a profile: the standard SimVars, the library’s shipped profile for the model on top (the Fenix A320 family), then each matching file from this directory on top of that, winning per value. Files are read again on every call, so an edit applies without a restart; get_aircraft_systems lists the files that applied and any that did not read. Only applies in simconnect and both modes.
SIMCONNECT_TRAFFIC_DATA
A writable directory where the AI traffic engine (the library’s pkg/traffic/world) keeps what it learns between runs: each airport’s airways read from the simulator (re-read after a week), and the optional deicing.json, custom-pushes.json and stations.json. Default: simconnect-mcp\traffic in the user cache folder (%LocalAppData%). Only applies in simconnect and both modes.
DOCS_MSFS_VERSION
Controls which version of the SimConnect SDK documentation is fetched when running in docs mode. Set to 2020 for the original MSFS 2020 SDK, 2024 (the default) for the MSFS 2024 SDK, or both to merge both corpora — SimVars and events include a versions field indicating which simulator defines them. Only applies in docs and both modes.
DOCS_OVERRIDE_PATH
Points the server at a local directory of JSON corpus files instead of the compiled-in embedded corpus. Useful for testing a freshly scraped corpus without rebuilding the binary.
Security note: DOCS_OVERRIDE_PATH must point to a trusted local directory. Never derive it from user-provided input. In production, leave it unset to use the embedded corpus.
DOCS_LIVE_SCRAPE
Set to true to mark the documentation source as live. The twelve SDK reference tools then take a confirm_live_scraping parameter and answer with a request to confirm until it is true (see Live scraping confirmation). /health reports live_scrape: true and docs_source: "live". Default false. Only applies in docs and both modes.
GIN_MODE
Controls Gin’s logging verbosity and CORS behaviour.
debug(default) — verbose request logging, all origins permitted. Suitable for local development.release— minimal logging, CORS restricted tolocalhostorigins only. Recommended for any non-development deployment (DNS rebinding protection).
Version
To check the installed binary version:
simconnect-mcp --version
# simconnect-mcp 0.10.0 (commit bd955d715f3b17cd2f8a0dfdea176d610bf18ed0, built 2026-10-07T14:45:32Z)
The version, commit hash, and build date are embedded at build time by GoReleaser. Binaries built locally with go build will show dev / none / unknown.
Examples
Run in docs mode on a non-default port:
MCP_MODE=docs PORT=9000 simconnect-mcp
Run in SimConnect mode with a custom application name:
MCP_MODE=simconnect SIMCONNECT_APP_NAME=MyApp simconnect-mcp
Run in docs mode targeting MSFS 2020 documentation:
MCP_MODE=docs DOCS_MSFS_VERSION=2020 simconnect-mcp
Run in both mode — docs tools everywhere, plus live SimConnect tools on Windows when the simulator is running:
MCP_MODE=both simconnect-mcp
Build Tags
SimConnect mode requires the windows build tag. This tag gates the CGo/FFI bindings to the SimConnect SDK so the package compiles on non-Windows platforms without the SDK present.
Build with SimConnect support (Windows only):
go build -tags windows ./cmd/simconnect-mcp/
Cross-platform build for docs mode (no build tag required):
go build ./cmd/simconnect-mcp/
When cross-compiling for Windows from another OS, combine the build tag with GOOS:
GOOS=windows go build -tags windows ./cmd/simconnect-mcp/
Attempting to run MCP_MODE=simconnect with a binary built without the windows tag will result in a startup error, preventing accidental use of an unsupported configuration.