Darc Dok Mcp

io.github.qso-graphv0.1.0更新於 Oct 7, 2026

DARC DOKs and special DOKs as DARC publishes them, with validity windows

概覽

AI 產生的概覽

讓助理查詢 DARC 的 DOK 與特殊 DOK 代碼、所屬區、俱樂部及有效期間,並在回答中註明來源。

功能
把 DARC 公布的 DOK-Liste 與特殊 DOK 清單以本機事實提供。工具包括:darc_dok_lookup 查詢單一代碼的區、俱樂部、用途、呼號、有效期間與主辦俱樂部;darc_dok_valid_on 判斷某代碼在某個 QSO 日期是否有效;darc_dok_search 依俱樂部、城鎮、區或用途尋找代碼;darc_dok_source_info 提供擁有者、版本、條款及檔案雜湊值;get_version_info 提供服務與所服務版本的身分資訊。darc_dok_codes_for 為共用工具集保留,但 DOK 不對應任何 ADIF 分區。
適用情境
適合涉及 DARC DOK 的業餘無線電工作,例如 DLD 獎、DOK 最佳清單、WAG 競賽或 ADIF 的 DARC_DOK 欄位,需要在不離開助理的情況下查詢代碼並核對有效期間時使用。
執行需求
以 stdio 本機程序執行,通常用 uvx darc-dok-mcp 啟動,因此需要 Python/uv 執行環境。不需要網路、驗證、環境變數或標頭;資料隨套件提供。
安裝前請注意
僅做唯讀查詢,不涉及憑證、付款或寫入。資料屬於 DARC 而非本套件,本套件的 GPL-3.0 授權不涵蓋該資料;回答會註明來源並連結到 DARC 的檔案,而不是複製它們。

安裝

在 SourceWeft 中

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

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

其他 MCP 客戶端

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

README

darc-dok-mcp

[PyPI] [MCP Registry]

Source: the Deutscher Amateur-Radio-Club e.V. (DARC): the DOK-Liste (DARC DX-Referat, by Karsten Radwan, DL2ABM, 26.12.2016) and the special-DOK list (DARC SDOK-Referat). DOKs are DARC's: this package serves the lists' rows as facts, each citing its page or row, and links to DARC's files rather than copying them. Our GPL-3.0 licence covers our code, not DARC's data.

MCP server for DARC DOKs and special DOKs as DARC publishes them: the local-club codes of DARC's DOK-Liste (2016-12-26) and the event codes of DARC's special-DOK list, with each special DOK's validity window. DOKs are used for DARC's DLD award, the DOK best-lists and the WAG contest, and in ADIF's DARC_DOK field.

Part of the qso-graph project. No network, no authentication: the facts from the owner's list ship with the package, and every answer names its source.

Install

bash
uvx darc-dok-mcp            # run it; nothing to install

Tools

ToolDescriptionKey Parameters
darc_dok_lookupOne DOK or special DOK: district and club, or purpose, callsign, window and sponsoring clubcode
darc_dok_valid_onWhether a DOK or special DOK was valid on a QSO's datecode, on_date
darc_dok_searchFind DOKs by club, town, district or purposetext, limit
darc_dok_codes_forKept for the shared tool set; DOKs map to no ADIF subdivisiondxcc, subdivision
darc_dok_source_infoOwner, editions, terms, and the owner's files' URLs and SHA-256s—
get_version_infoService version + the owner's edition served (fleet identity attestation)—

Quick Start

No credentials needed — just install and configure your MCP client.

Configure your MCP client

darc-dok-mcp works with any MCP-compatible client. Add the server config and restart — tools appear automatically.

Claude Desktop

Add to claude_desktop_config.json (~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows):

json
{  "mcpServers": {    "darc-dok": {      "command": "uvx",      "args": ["darc-dok-mcp"]    }  }}
Claude Code

Add to .claude/settings.json:

json
{  "mcpServers": {    "darc-dok": {      "command": "uvx",      "args": ["darc-dok-mcp"]    }  }}
ChatGPT Desktop
json
{  "mcpServers": {    "darc-dok": {      "command": "uvx",      "args": ["darc-dok-mcp"]    }  }}
Cursor

Add to .cursor/mcp.json (project-level) or ~/.cursor/mcp.json (global):

json
{  "mcpServers": {    "darc-dok": {      "command": "uvx",      "args": ["darc-dok-mcp"]    }  }}
VS Code / GitHub Copilot

Add to .vscode/mcp.json in your workspace:

json
{  "servers": {    "darc-dok": {      "command": "uvx",      "args": ["darc-dok-mcp"]    }  }}
Gemini CLI

Add to ~/.gemini/settings.json (global) or .gemini/settings.json (project):

json
{  "mcpServers": {    "darc-dok": {      "command": "uvx",      "args": ["darc-dok-mcp"]    }  }}

Ask questions

"Which club is DOK A01?"

"Was special DOK 01ALT valid on 2004-06-01?"

"Which DOKs are in district Baden?"

MCP Inspector

bash
darc-dok-mcp --transport streamable-http --port 8018

Then open the MCP Inspector at http://localhost:8018.

Development

bash
git clone https://github.com/qso-graph/darc-dok-mcp.gitcd darc-dok-mcpuv sync --group devuv run pytest

scripts/fetch_published.py fetches the owner's document(s) into published/ (not committed) and checks their SHA-256s; uv run pytest --live runs the tests that need them. scripts/build.py regenerates derived/ and load.sql, a PostgreSQL load for QSO Graph's reference data (load QG ADIF's adif schema first).

License

darc-dok-mcp's own code is GPL-3.0-or-later. See LICENSE. The data it serves is the owner's, credited at the top of this page: our licence doesn't cover it, and we claim no rights in it. The owner's document itself is not included; data/SOURCE.json records its URL and SHA-256 so anyone can check the facts against it. Files we built from the facts (data/derived/) are ours and labelled as ours. How the owner's text was read is recorded in docs/TRANSCRIPTION.md. See NOTICE.

來源:README.md,提交 65feaf8

工具

0
工具後設資料尚未被收錄。

版本歷史

1
  1. v0.1.0最新Oct 7, 2026