Skip to main content

MCP server for ARRL Logbook of The World — QSO query, QSL status, DXCC credit

Project description

lotw-mcp

MCP server for ARRL Logbook of The World (LoTW) — query confirmations, uploaded QSOs, DXCC credits, and user activity through any MCP-compatible AI assistant.

Part of the qso-graph project. Read-only — uploads require TQSL digital signatures and are out of scope.

Install

pip install lotw-mcp

Tools

Tool Auth Description
lotw_confirmations Yes Query confirmed QSLs with band/mode/call/date filters
lotw_qsos Yes Query all uploaded QSOs (confirmed and unconfirmed)
lotw_dxcc_credits Yes DXCC award credits from LoTW confirmations
lotw_download Yes Download QSOs as ADIF file
lotw_user_activity No Check if a callsign uses LoTW and when they last uploaded
get_version_info No Service version + upstream LoTW schema version (fleet identity attestation)

Quick Start

1. Set up credentials

lotw-mcp uses qso-graph-auth personas for credential management:

pip install qso-graph-auth

qso-auth persona create ki7mt --callsign KI7MT
qso-auth persona provider ki7mt lotw --username KI7MT
qso-auth persona secret ki7mt lotw

Note: The LoTW login is usually your callsign but not always. Pre-Sept 2019 accounts may require lowercase passwords. Avoid special characters in passwords.

2. Configure your MCP client

Claude Desktop

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

{
  "mcpServers": {
    "lotw": {
      "command": "lotw-mcp"
    }
  }
}

Claude Code

Add to .claude/settings.json:

{
  "mcpServers": {
    "lotw": {
      "command": "lotw-mcp"
    }
  }
}

ChatGPT Desktop

{
  "mcpServers": {
    "lotw": {
      "command": "lotw-mcp"
    }
  }
}

Cursor

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

{
  "mcpServers": {
    "lotw": {
      "command": "lotw-mcp"
    }
  }
}

VS Code / GitHub Copilot

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

{
  "servers": {
    "lotw": {
      "command": "lotw-mcp"
    }
  }
}

Gemini CLI

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

{
  "mcpServers": {
    "lotw": {
      "command": "lotw-mcp"
    }
  }
}

3. Ask questions

"How many LoTW confirmations did I get this month?"

"Show me all unconfirmed 20m FT8 QSOs uploaded to LoTW in the last 90 days"

"What DXCC credits do I have on 40m CW?"

"Does JA1ABC use LoTW? When did they last upload?"

Public Tool

lotw_user_activity works without any credentials. It uses the public LoTW user activity CSV, cached locally for 7 days.

Testing Without Credentials

Set the mock environment variable:

LOTW_MCP_MOCK=1 lotw-mcp

Performance Notes

LoTW can be slow (30-60s for large queries). lotw-mcp uses 120s timeouts. Use date filters (since, start_date) to limit result sets.

MCP Inspector

lotw-mcp --transport streamable-http --port 8004

Development

git clone https://github.com/qso-graph/lotw-mcp.git
cd lotw-mcp
pip install -e .

License

GPL-3.0-or-later

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

lotw_mcp-0.3.3.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

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

lotw_mcp-0.3.3-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file lotw_mcp-0.3.3.tar.gz.

File metadata

  • Download URL: lotw_mcp-0.3.3.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lotw_mcp-0.3.3.tar.gz
Algorithm Hash digest
SHA256 cbb87b04c681faaabeaeeb2add8178932fa4fd122b96966bd0e0dcde54127588
MD5 4fe49038a530c759a88ceca7a4dc8fa1
BLAKE2b-256 c0712269e6375a39318dfe51ddadc023a0baf76af01843dae452bdbab02d2759

See more details on using hashes here.

Provenance

The following attestation bundles were made for lotw_mcp-0.3.3.tar.gz:

Publisher: publish.yml on qso-graph/lotw-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file lotw_mcp-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: lotw_mcp-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for lotw_mcp-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c531382b1a984b3757d4745d22d8404c1b59b7d2ae5821cf5f6c3d514594125c
MD5 c713e2d2cffa7b762addfabf5e558147
BLAKE2b-256 abf5aaf835797f3485c59e3adc1fb8bcf1133f70c034a4f20e2b94bdf89f8e7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for lotw_mcp-0.3.3-py3-none-any.whl:

Publisher: publish.yml on qso-graph/lotw-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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