Skip to main content
Glama
io.github.sbrunner-atx/wsjtx-mcp

io.github.sbrunner-atx/wsjtx-mcp

by sbrunner-atx

wsjtx-mcp

Project page: ae5vg.com/products/wsjtx-mcp

An MCP server that controls WSJT-X (FT8/FT4/JT65/MSK144/Q65/WSPR…) from MCP clients such as Claude Desktop and the MCP Inspector.

It is the weak-signal leg of an "operate → log" trio for amateur radio:

  • fldigi-mcp — operate broad digital modes via fldigi (XML-RPC).

  • n3fjp-mcp — log QSOs to N3FJP (TCP API).

  • wsjtx-mcp (this one) — operate the FT8/FT4 weak-signal world via WSJT-X (UDP message protocol).

⚠️ Experimental (v0.1). Transmit is gated behind your callsign and you keep the operator in command. Read the Transmit safety section.

How it is different

WSJT-X does not offer a request/response API. It broadcasts state over UDP (Status, Decode, QSOLogged, Heartbeat, …) and honours a small set of inbound control messages. So this server runs a background UDP listener that continuously parses datagrams and keeps the latest status, a buffer of decodes, and completed QSOs — you read those, and nudge WSJT-X with control messages.

Consequences worth knowing up front:

  • No dial-frequency control over UDP. You can read the dial frequency from Status, and set mode/sub-mode/Rx DF/T-R period via configure, but QSY is a rig-control concern (Hamlib/CAT or the UI), not this server.

  • You can start and halt Tx, but cannot toggle "Enable Tx". Transmission is started by answering a CQ (reply) or by free_text with send=true, and stopped by transmit halt. There is no UDP command for the "Enable Tx", "Auto Seq", "Call 1st", or "Hold Tx Freq" checkboxes — those stay UI settings.

  • reply gives hands-free QSOs only when WSJT-X's "Auto Seq" is on. A reply is equivalent to double-clicking a CQ; with Auto Seq enabled (the usual FT8/FT4 default) WSJT-X then sequences the whole exchange to QSOLogged with no further calls. With Auto Seq off, reply starts only the first transmission.

  • Best for search-and-pounce, weak for RUN. The API is built to answer CQs (and only CQ/QRZ decodes), so S&P is fully automatable. It has no clean way to drive a repeating call-CQ (RUN) cycle — that needs WSJT-X's own "Enable Tx", or a free_text CQ re-sent each period.

Related MCP server: hamqth-mcp

Requirements

  • WSJT-X 2.1 through 3.x — the UDP message protocol is schema 3 / Qt_5_4 and has been stable across those releases (verified live against WSJT-X 3.0.2).

  • In WSJT-X: Settings → Reporting → UDP Server

    • UDP Server = the host running this server (default 127.0.0.1), port 2237.

    • Accept UDP requests = ON to allow control (it is OFF by default). Observing decodes/status works without it; commanding does not.

Install (Claude Desktop)

Download the wsjtx-mcp.mcpb from the latest release and drag it onto Claude Desktop → Settings → Desktop app → Extensions (Manage). It then shows as a connector under Settings → Customize → Connectors. Fill in the settings form (callsign, host, port). See docs/INSTALL.md.

To run the server itself in Claude Code, Codex, Cursor or VS Code, see Other AI assistants for the command or configuration block to copy.

Configuration

Variable

Default

Purpose

WSJTX_HOST

127.0.0.1

UDP address to bind/listen on.

WSJTX_PORT

2237

WSJT-X UDP Server port.

WSJTX_CALLSIGN

(empty)

Operator callsign — the single transmit gate. Blank = receive-only.

WSJTX_MULTICAST

(off)

Optional multicast group to join (coexist with other UDP consumers).

WSJTX_INSTANCE

(auto)

Target a specific WSJT-X Id when several instances broadcast.

Host/port are where this server listens; control replies are sent back to the address each datagram arrived from.

Tools

Tool

Kind

What it does

status

observe

Latest Status snapshot + listener/instance health.

diagnostics

observe

Host/network + bind status + datagram counts + gate state.

decodes

observe/nudge

read / drain (poll new) / clear_local / replay. The RX plane.

log

observe

Buffered completed QSOs (QSOLogged + LoggedADIF) → feed N3FJP.

reply

transmit

Answer a buffered CQ/QRZ decode (auto-sequences the QSO when WSJT-X "Auto Seq" is on).

free_text

transmit if send

Set the Tx5 free-text message; send=true keys the radio.

transmit

control

halt / halt_auto — stop transmitting (UDP can't enable Tx).

configure

control

Mode/sub-mode/Rx DF/T-R period/freq-tol/DX call+grid. No dial freq.

clear

control

Clear the Band Activity / Rx Frequency windows.

highlight

control

Colour or clear a callsign in Band Activity.

location

control

Override the session Maidenhead grid.

switch_config

control

Switch to a named WSJT-X configuration.

annotate

control

Set a Fox/Hound sort-order annotation for a DX call (niche, DXpedition).

wsjtx_call

escape hatch

Build & send any message type by name (gate still applies).

Transmit safety

The callsign is the single transmit gate, exactly as in fldigi-mcp. With WSJTX_CALLSIGN blank the server is receive-only: it refuses every transmit-initiating message — reply, free_text with send=true, and any keying message via wsjtx_call. transmit halt, clear, configure, highlight, location, replay, and all reads are always available (they don't put you on the air; halt takes you off).

Beyond that gate:

  • Per-transmit approval comes from the Claude Desktop tool-permission prompt — lean on it for human-in-the-loop control.

  • WSJT-X's own Tx Watchdog and the Tx Enabled / Transmitting flags (surfaced in status) are extra safety signals.

  • Operating under Part 97 automatic/remote control is the operator's responsibility: ensure station identification and a control operator who can intervene.

Running alongside other UDP tools

Only one process can normally own UDP 2237 on a host. If JTAlert, GridTracker, or N1MM already consume it, either point WSJT-X's secondary UDP server here, use a multicast group (WSJTX_MULTICAST) so several listeners coexist, or run this server on a different host. To reach a WSJT-X on another machine, set WSJTX_HOST to this computer's LAN address (or 0.0.0.0) and point WSJT-X's UDP Server at that address, port 2237. Claude Desktop lets connectors talk to the LAN directly. With an older Claude Desktop or a client that sandboxes connectors, use the mcp-host-bridge tool (mcp-host-bridge install wsjtx --to <rig-host>) and set WSJTX_PORT=2238. See docs/REMOTE-HOST.md.

Development

uv sync
uv run ruff check .
uv run pytest

The protocol codec is pure standard library and unit-tested against byte fixtures, so the tests need no running WSJT-X. A smoke_test.py proves a live WSJT-X is reachable receive-only. The field-tested message reference lives in docs/WSJTX-API.md.

License

MIT © 2026 Stefan Brunner (AE5VG)

Available Tools

14 tools
annotateA

Set a Fox/Hound sort-order annotation for a DX call (no transmit).

Niche DXpedition feature (AnnotationInfo): lets a server "score" callers so the Hound queue can be sorted by it. sort_order is a number (lower sorts first); omit it to send "no sort order"; pass 4294967295 (0xFFFFFFFF) to remove a call's entry from WSJT-X's internal table.

Inputs: dx_call (required), instance, sort_order.

clearC

Clear a WSJT-X decode window (no transmit).

window: 'band' (Band Activity, default), 'rx' (Rx Frequency), or 'both'.

Inputs: window, instance.

configureA

Set operating parameters via a Configure message (no transmit).

Sets: mode, submode, frequency tolerance, fast mode, T/R period, Rx DF, DX call, DX grid, and whether to regenerate the standard messages. Empty string = "no change" for text fields; None = "no change" for the numeric fields.

IMPORTANT caveats:

  • There is no dial-frequency control over UDP. QSY is a rig-control concern (Hamlib/CAT or the WSJT-X UI), not this tool.

  • The protocol has no "no change" for the two booleans, so fast_mode and generate_messages are always sent (defaulting to false). Pass them explicitly if you care about their state.

Inputs: mode, rx_df, dx_call, dx_grid, +6 more.

decodesA

The RX data plane: buffered Decode / WSPRDecode lines.

operations:

  • read (limit): the most recent N decodes (default 50).

  • drain: every decode seen since the last drain — the polling primitive for automation. Advances an internal cursor so each line is returned once.

  • clear_local: empty our local buffer (does not touch WSJT-X).

  • replay: ask WSJT-X to re-broadcast its current Band-Activity decodes (each with New=false) followed by a Status — useful to backfill state on connect. (No transmit; safe.)

Each decode carries: kind (decode/wspr), New, time, snr, delta_time, delta_frequency, mode, message, low_confidence, off_air, and a seq you can pass to the reply tool.

Inputs: limit, operation.

diagnosticsA
Read-only

Host + network + listener diagnostics for troubleshooting connectivity.

Does NOT command WSJT-X. Reports the resolved WSJTX_HOST/PORT, whether the UDP listener is bound (and any bind error), datagram counts by message type, the discovered instances, the transmit-gate state, and this host's network interfaces — so you can tell whether this process can even receive WSJT-X's broadcasts (e.g. host-side vs. sandboxed, or a port already owned by JTAlert / GridTracker).

Inputs: no named parameters.

free_textA

Set the free-text (Tx5) message; with send=true initiates TX (gated).

Setting the text alone (send=false) is safe and always allowed. With send=true the message is transmitted — that keys the radio, so it requires WSJTX_CALLSIGN. An empty text with send=true sends the current free text unchanged; empty text with send=false clears it.

Inputs: send, text, instance.

highlightA

Colour (or clear) a callsign in the Band Activity panel (no transmit).

operations:

  • set (callsign, background, foreground, highlight_last): apply colours. Colours accept a name (red, yellow, …), '#RRGGBB', or [r,g,b].

  • clear (callsign): cancel highlighting for one callsign (sends an invalid colour).

  • clear_all: cancel every highlight at once.

Keep the number of active highlights modest (a rough cap of ~100) so WSJT-X decoding performance isn't impacted.

Inputs: callsign, instance, operation, background, +2 more.

locationA

Override the session Maidenhead grid (4- or 6-character). No transmit.

Session-lifetime only — does not change the persistent setting. Intended for mobile/portable operation where the grid changes during a session.

Inputs: grid (required), instance.

logA
Read-only

Read buffered completed QSOs (QSOLogged paired with LoggedADIF).

Observe-only: WSJT-X emits these when the operator accepts its "Log QSO" dialog. Each entry has the structured QSO record (call, grids, frequency, mode, reports, times, exchanges, propagation mode) and the one-record ADIF document — ready to forward to N3FJP via n3fjp-mcp.

Inputs: limit.

replyA

Answer a buffered decode — initiates a transmission (gated by callsign).

Equivalent to double-clicking that decode in the Band Activity window. WSJT-X only acts if the message exactly matches a prior decode that is a CQ or QRZ. If WSJT-X's "Auto Seq" is on (the usual FT8/FT4 default) it then sequences the rest of the QSO to completion on its own; if Auto Seq is off this starts only the first transmission (Auto Seq is a UI setting, not UDP-controllable).

Identify the decode by seq (from the decodes tool) or by exact message text (the most recent matching buffered decode is used). modifiers may be a name or list (shift, ctrl/cmd, alt, meta, keypad, group) to mimic modifier-clicks.

Inputs: seq, message, instance, modifiers.

statusA
Read-only

Latest WSJT-X state snapshot plus listener/connection health.

Returns the most recent Status broadcast — dial frequency, mode/sub-mode, Tx Enabled / Transmitting / Decoding, DE/DX call & grid, Rx/Tx DF, T/R period, special-operation mode (e.g. FIELD DAY), configuration name, current Tx message — together with the discovered instances and the transmit-gate state.

If no Status has arrived yet, that is reported with guidance (WSJT-X must have its UDP Server pointed at this host:port).

Inputs: no named parameters.

switch_configA

Switch WSJT-X to a named configuration (which must already exist). No transmit.

Inputs: name (required), instance.

transmitA

Stop transmitting. (WSJT-X's UDP protocol can halt but cannot enable Tx.)

operations:

  • halt: stop immediately (takes you off the air now).

  • halt_auto: stop at the end of the current transmission period.

Always allowed — halting only ever takes you off the air. To start a transmission use reply (answer a CQ) or free_text with send=true.

Inputs: instance, operation.

wsjtx_callA

Escape hatch: build and send any WSJT-X message type by name.

message is a type name (heartbeat, clear, reply, close, replay, halt_tx, free_text, location, highlight, switch_configuration, configure). fields is a dict of builder arguments for that type (see protocol.build_* signatures), e.g. message="configure", fields={"mode":"FT8","rx_df":1500}.

The same transmit gate applies: a keying message — reply, or free_text with send=true — is refused unless WSJTX_CALLSIGN is set.

Inputs: message (required), fields, instance.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 14 tools

    Disambiguation4/5

    Most tools have distinct primary purposes: reply vs free_text vs transmit halt, configure vs switch_config, decodes vs log, and diagnostics vs status are mostly separable from the descriptions. Some overlap remains: status and diagnostics both report listener/health information, wsjtx_call can duplicate many outbound tools, and generic 'clear' can be confused with decodes clear_local or highlight clear. Descriptions resolve most confusion, so the set is mostly distinct.

    Naming Consistency3/5

    Names are consistently lowercase, with snake_case for multiword tools, avoiding camelCase mixing. However, the convention mixes nouns for state/read tools (status, decodes, diagnostics, log) with verbs or verb phrases for actions (transmit, configure, reply, switch_config), and some action tools are noun-named (free_text, location, wsjtx_call). It is readable but not a predictable uniform pattern.

    Tool Count5/5

    Fourteen tools is well within a reasonable range for a WSJT-X UDP control and observation surface. The tools cover distinct areas such as state, decodes, transmit operations, configuration, highlighting, logging, diagnostics, and an explicit escape hatch, without excessive redundancy.

    Completeness5/5

    The surface covers the WSJT-X UDP protocol well: status snapshots, decode RX, QSO log reading, transmit halt/reply/free_text, configuration, highlighting, location, configuration switching, annotation, diagnostics, and an escape hatch for remaining message types. Inherent protocol limits such as no dial-frequency control and no Tx enable are documented, and no obvious outbound message capability is missing.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      An MCP server for agents to control MultiViewer, the best way to watch motorsports. Works locally or remotely.
      20
      MIT
    • A
      license
      A
      quality
      A
      maintenance
      MCP server for HamQTH.com — callsign lookup, DX cluster spots, Reverse Beacon Network, DXCC resolution, and more through any MCP-compatible AI assistant.
      8
      58 PyPI
      GPL 3.0
    • A
      license
      A
      quality
      A
      maintenance
      MCP server for QRZ.com — callsign lookups, DXCC entity resolution, and logbook queries through any MCP-compatible AI assistant.
      6
      93 PyPI
      4
      GPL 3.0
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that lets an LLM operate an amateur radio shack: query live APRS traffic, predict satellite passes, schedule SDR captures, and monitor FT8/WSPR band activity.
      MIT