Skip to main content

An MCP server that controls WSJT-X (FT8/FT4/etc.) over its UDP message protocol.

Project description

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).
  • contest-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.

Two 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 halt Tx but not "Enable Tx". Transmission is started by answering a CQ (reply) or by free_text with send=true; it is stopped by transmit halt. There is no UDP command to press "Enable Tx".

Requirements

  • WSJT-X 2.x (verified against the 2.7 message schema, schema 3 / Qt_5_4).
  • 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 double-click it, or drag it onto Claude Desktop → Settings → Extensions. Fill in the settings form (callsign, host, port). See docs/INSTALL.md.

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).
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.
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. See docs/REMOTE-HOST.md for reaching a WSJT-X on another machine (it requires a small UDP forwarder because sandboxed MCP clients reach only loopback).

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wsjtx_mcp-0.1.0.tar.gz (127.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wsjtx_mcp-0.1.0-py3-none-any.whl (28.1 kB view details)

Uploaded Python 3

File details

Details for the file wsjtx_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: wsjtx_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 127.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for wsjtx_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3a57025dfd04ab2be0cc053c0c30933691d460fd5c72f5fc7f062b2c76687d97
MD5 023930a402467d0f9ad99be391d29f2e
BLAKE2b-256 d0ddbe312464eaa7a950b4965ab02e19f49e476e75cf66260678f907a9472515

See more details on using hashes here.

File details

Details for the file wsjtx_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: wsjtx_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 28.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for wsjtx_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb4fdacd5d75c88e7308b1a7e1a6af2fc703abdc9868a0c8b888b1aeaeccadad
MD5 2339807b81f80808afe2fbe7c204f8db
BLAKE2b-256 2af9d16945a99863007744209613fbf4a622884b2519394916de7a6f326d5a74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page