N3fjp Mcp

io.github.sbrunner-atx由 GitHub 帳號 sbrunner-atx 發布v0.3.2更新於 Oct 28, 2026

Log amateur-radio QSOs to N3FJP logging software over its TCP API.

已驗證STDIO僅桌面資料庫位置與生活

概覽

AI 產生的概覽

透過 N3FJP 日誌軟體的本機 TCP API 記錄業餘無線電 QSO,讓助理記錄通聯、讀取日誌並進行重複通聯檢查。

可以做什麼
  • 記錄通聯:設定呼號、查重、填寫交換資訊並送出
  • 讀取日誌:狀態快照、通聯數量、路徑、通聯速率、波段/模式/頻率
  • 檢視欄位:讀取單一輸入框,或列出可見欄位及全部欄位的值
  • 檢索與檢查:列出最近通聯、搜尋、查重、實體狀態
  • 管理波段、模式與頻率,並開關推送通知
  • 執行直接資料庫操作,並透過原始指令介面送出任意 N3FJP 指令
適用情境
適合使用 N3FJP Amateur Contact Log 或其比賽日誌軟體的業餘無線電玩家,希望用自然語言讓助理記錄通聯並查詢日誌,包括比賽或 Field Day 的自動化操作流程。
執行需求
以本機程序方式從 PyPI 安裝;桌面擴充由 uv 提供 Python。需要 N3FJP 程式正在執行並已啟用 TCP API。設定項:N3FJP_HOST(預設 127.0.0.1)、N3FJP_PORT(預設 1100)、N3FJP_TIMEOUT。N3FJP 僅在 Windows 上執行;從 Mac 或其他電腦連線需要主機橋接工具,因為沙箱用戶端只能連到 127.0.0.1。
安裝前請注意
N3FJP API 沒有身分驗證,網路連線應僅限可信任的區域網路。寫入類工具(記錄通聯、波段/模式、通知、新增/編輯/刪除記錄以及原始指令介面)會改動日誌,需經核准,也可設為永遠允許。整份資料庫清空預設會被拒絕,除非啟用 N3FJP_ALLOW_DB_WIPE,該開關具危險性,僅在備份後使用。專案為實驗性 v0.3,僅針對 API 2.2 驗證。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 N3fjp Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

n3fjp-mcp

An MCP server for logging amateur-radio QSOs to N3FJP logging software — Amateur Contact Log and the 100-plus N3FJP contest loggers — from MCP-aware clients such as Claude Desktop.

Every program in the N3FJP suite shares one TCP control API. n3fjp-mcp speaks that protocol directly (Python's standard-library socket, no third-party wrapper) and exposes it as a small set of logically-grouped MCP tools, so an assistant can log contacts, read the log, run dupe checks, and manage band/mode through plain language.

It is the logging half of an "operate → log" workflow; its sibling project fldigi-mcp operates the radio.

Status: experimental (v0.3). Verified live against N3FJP's ARRL Field Day Contest Log, API version 2.2. The protocol is shared across the suite, but field sets vary per contest — confirm with the fields tool.

⚠️ Independent project — not affiliated with N3FJP

n3fjp-mcp is an independent, community project by Stefan Brunner (AE5VG), using the "N3FJP" name with the permission of its owner. It is not affiliated with, endorsed by, or supported by N3FJP Software / Affirmatech. Please direct all support questions for this app to its issue tracker — not to N3FJP. MIT licensed. "N3FJP" is the callsign and trademark of its owner.

Highlights

  • Automatic logging — the headline log tool runs the real N3FJP flow: set the call → CALLTAB (dupe check + previous-contact lookup) → set the exchange → ENTER, surfacing the dupe response and the number of records added.
  • Broad coverage — read queries, field read/write, search/list, dupe and entity checks, band/mode/frequency, direct database operations, and opt-in push notifications, grouped into 9 tools (one permission each), a read-only diagnostics tool, and an n3fjp_call escape hatch for the long tail and future commands.
  • Safe by design for a tool that can touch your log database:
    • Reads are marked read-only so clients can default them to Always Allow.
    • Writes (logging, band/mode, and adding, editing or deleting individual records) sit at Needs Approval, with no extra in-band confirmation.
    • Whole-database wipes/overwrites are refused outright unless you flip a dedicated, off-by-default N3FJP_ALLOW_DB_WIPE switch.
  • Names match N3FJP — tools and fields mirror N3FJP's own terminology (Action ENTER, CALLTAB, the TXTENTRY… boxes, Class/Section, etc.).
  • No fragile dependencies — the only runtime dependency is the MCP SDK.

Requirements

To install the desktop extension (.mcpb):

  • An N3FJP program running, with Settings → Application Program Interface → "TCP API Enabled" checked (default API port 1100).

Claude Desktop's uv runtime supplies Python and the dependencies, so end users do not install Python or uv themselves.

For development from source you additionally need Python 3.10+ and uv (and Node.js, only for the MCP Inspector).

Install

Easiest: one-click desktop extension

Download n3fjp-mcp.mcpb from the latest release, then in Claude Desktop go to Settings → Extensions → Advanced settings → Install Extension… and choose the file. A short settings form asks for the host/port (defaults to 127.0.0.1:1100). No terminal, no Python, no uv to install.

👉 New to this? Follow the step-by-step install guide.

From source (development)

bash
git clone https://github.com/sbrunner-atx/n3fjp-mcp.gitcd n3fjp-mcpuv sync

Then add it to Claude Desktop's config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

json
{  "mcpServers": {    "contest": {      "command": "uv",      "args": ["--directory", "/absolute/path/to/n3fjp-mcp", "run", "n3fjp-mcp"],      "env": { "N3FJP_HOST": "127.0.0.1", "N3FJP_PORT": "1100" }    }  }}

Restart Claude Desktop and ask "What's the N3FJP status?".

Try it with the MCP Inspector

bash
uv run mcp dev src/n3fjp_mcp/server.py

Tools

Each tool is one permission and takes an operation argument.

ToolDefaultControls
statusreadsnapshot: program, version, API version, QSO count, band/mode/frequency
diagnosticsreadresolved host and port, this process's Python and hostname, network interfaces; does not connect to N3FJP
queryreadprogram, qso_count, next_serial, log/settings/shared paths, qso_rate, band_mode_freq
fieldsreadread one entry box, or list visible / all fields with values
searchreadlist recent, search, dupecheck (no side effects), entity status
logapprovallog_qso (set call → CALLTAB → exchange → ENTER), set, set_many, calltab, enter, clear, focus
bandmodeapprovalchange_freq, set_band, set_mode, ignore_rig_polls
notificationsapprovalenable / disable push events, drain buffered events
databaseapprovaladd_direct, delete a record, raw sql, checklog, openlog, sqlclose
n3fjp_callapprovalescape hatch — send any raw command, incl. future ones

All write tools sit at the Needs Approval tier, so you can set them to Always Allow in the client for hands-off automation. The single exception is a whole-database wipe (see below), which is hard-blocked regardless.

The headline is log → log_qso:

log_qso  call="W1AW"  contest="field_day"  exchange={"class":"2A","section":"CT"}

This sets the call, fires CALLTAB (dupe check), fills the exchange, sends ENTER, and reports records added plus any dupe detail.

Configuration

VariableDefaultPurpose
N3FJP_HOST127.0.0.1N3FJP API host
N3FJP_PORT1100N3FJP API port (the suite's default)
N3FJP_TIMEOUT6Socket/response timeout, seconds
N3FJP_ALLOW_DB_WIPEoffDanger. Allow whole-database delete/overwrite (raw SQL DROP/TRUNCATE/unscoped DELETE/UPDATE). Leave off unless you really mean it

In the packaged desktop extension these appear as a settings form.

Safety model

Logging doesn't key a transmitter, so there is no transmit gate. The protection here is about your log database:

  • Read operations (status, query, fields, search) are marked read-only — clients can default them to Always Allow.
  • Write operations — logging (log), band/mode (bandmode), notifications, and adding, editing, or deleting individual records (database), plus the n3fjp_call escape hatch — all sit at the Needs Approval tier. There is no extra in-band confirmation, so you can set them to Always Allow in the client and let automation run hands-off.
  • Whole-database operations — raw SQL that could delete or overwrite the entire log (DROP, TRUNCATE, a DELETE/UPDATE with no WHERE) — are the one exception: refused unless N3FJP_ALLOW_DB_WIPE is on. This switch is separate from, and stricter than, the client's approval prompts, and carries a stern warning in the settings form. Back up your log before ever enabling it.

Wherever possible, n3fjp-mcp leans on N3FJP's own validation (it dupe-checks and reports oddities) and surfaces those responses rather than re-implementing them.

Remote / contest-station setups (N3FJP on another computer)

N3FJP runs only on Windows. If N3FJP runs on the same Windows computer as Claude Desktop, leave N3FJP_HOST at 127.0.0.1 and you are done. On a Mac, N3FJP is always elsewhere: in a Windows virtual machine (Parallels, VMware Fusion, UTM) or on a Windows PC on the LAN. A VM has its own network address, so it counts as a different computer and needs the bridge below.

If N3FJP runs on a different computer, there's a catch: a sandboxed MCP client (notably Claude Desktop) runs the connector so it can only reach 127.0.0.1, not LAN addresses — so putting N3FJP's LAN IP in the settings will time out even though telnet to that IP works. Fix it with the standalone mcp-host-bridge tool on the client computer, then set the host to 127.0.0.1:

pipx install mcp-host-bridge            # or download a binary from its releasesmcp-host-bridge install n3fjp --to 192.168.1.50   # knows n3fjp = port 1100; auto-starts

Manage it with mcp-host-bridge status n3fjp / uninstall n3fjp. Full details are in docs/REMOTE-HOST.md and the mcp-host-bridge README. The diagnostics tool helps confirm whether you need it. Keep the link on a trusted LAN — the API is unauthenticated.

Documentation

📻 A field-tested N3FJP API reference (free community resource)

Building this server meant reverse-engineering and live-verifying the N3FJP TCP API, including several places where today's API (v2.2) differs from the public 0.9 documentation. We've written that up as a complete, human-readable guide and are sharing it freely to give back to the community:

  • The N3FJP TCP API — A Field-Tested Reference (PDF) — transport, every command grouped by area, verified response examples, contest exchange fields, and a hard-won gotchas section (the API vs. networking ports, CMD_NOT_FOUND, commands removed since 0.9, the CALLTABEVENT lookup, and why ENTER can report 0 yet still log in networked mode).
  • Machine-readable spec — the same information in a terse, structured command catalog suitable for code generation.

Corrections and additions are welcome — please open an issue or PR.

Project docs

  • Install guide and Test plan.
  • Field Day 2026 lessons learned — the full after-action report from running an autonomous BPSK31 Field Day station (class 2A, callsigns anonymized) with n3fjp-mcp + fldigi-mcp: the operating loop, special cases encountered live, and recommended improvements.

Skills

The skills/ directory contains agent skills — operating procedures distilled from live on-air use — bundled with the repo and the .mcpb package:

  • contest-operating — the contest QSO state machine (CQ → exchange → TU → log), the special-case playbook (QRM, garbled callsigns, doubling, no-copy repeats, callsign-only callers), and the verified N3FJP logging sequence with its known quirks. Field-proven during ARRL Field Day 2026.

The Operating Skills Field Guide (PDF) documents this skill and its companions fldigi-operating and signal-hunting from the sibling fldigi-mcp — skills at a glance, installation, a plain-language "first session" chapter for hams new to Claude, the operating standard, the special-case playbook, and worked examples transcribed from ARRL Field Day 2026.

To use with Claude Code / Cowork, copy the skill directory into your ~/.claude/skills/ (or a project's .claude/skills/). Pair it with the fldigi-operating skill from fldigi-mcp for radio control.

Development

bash
uv syncuv run ruff check .      # lintuv run pytest            # tests (no running N3FJP required)python3 smoke_test.py 192.168.1.50 1100   # Phase 0: prove the link to N3FJP

The test suite covers the wire protocol, the operation maps and field catalog, type coercion, and the permission and database-wipe safety model; none of it requires a running N3FJP.

License

MIT © 2026 Stefan Brunner (AE5VG)

來源:README.md,提交 4fe9dcc

工具

0
SourceWeft 尚未在沙箱中啟動過該軟體包,因此其工具未知。

版本歷史

2
  1. v0.3.2最新Sep 23, 2026
  2. v0.3.1Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分