adif-mcp
This server lets an AI assistant validate, parse, and search the ADIF 3.1.7 amateur-radio specification and compute locator-based distance and heading — all offline, with no authentication.
Validate ADIF records (
validate_adif_record) against the 3.1.7 spec, including field data types and enumeration membership.Parse large ADIF log files (
parse_adif) with streaming and pagination (start_at,limit).Read raw spec modules (
read_specification_resource) such asmode,fields, orall.List enumerations (
list_enumerations) — all 26, with entry counts and source (ADIF vs. derived).Search enumerations (
search_enumerations) by keyword, optionally filtered to one enumeration.Calculate great-circle distance (
calculate_distance) in km between two Maidenhead locators.Calculate beam heading (
calculate_heading) — initial azimuth between two locators.Get version info (
get_version_info) for the server and the upstream ADIF spec version.
Islands on the Air lookup, search, nearby groups
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@adif-mcp Search for ADIF enumeration entries containing 'SSB'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
adif-mcp
MCP server for the ADIF 3.1.8 specification: validate and parse ADIF records, search the spec's fields, enumerations and data types, and compute distance and heading between Maidenhead locators, through any MCP-compatible AI assistant.
Part of the qso-graph project. No authentication required—the ADIF specification is bundled, so it works offline.
Install
uvx adif-mcp # run it; nothing to installRelated MCP server: hamlog-mcp
Tools
Tool | Description | Key Parameters |
| Validate a raw ADIF record against the 3.1.8 spec | adif_string |
| Streaming parser for large ADIF files, with pagination | file_path, start_at, limit |
| Raw JSON for any spec module (band, mode, fields, ...) | resource_name |
| All ADIF enumerations with entry counts | — |
| Search enumeration records by keyword | search_term, enumeration |
| Great-circle distance (km) between two Maidenhead locators | start, end |
| Initial beam heading (azimuth) between two locators | start, end |
| Service version + upstream spec version (fleet identity attestation) | — |
What is ADIF?
ADIF (Amateur Data Interchange Format) is the standard file format amateur radio logging programs use to exchange QSO records. adif-mcp is the specification package of qso-graph: it validates, parses and searches ADIF so an assistant can work with logs safely and accurately. Credentials are handled separately by qso-graph-auth, and each logging service has its own MCP server (see qso-graph.io).
Quick Start
No credentials needed—just install and configure your MCP client.
Configure your MCP client
adif-mcp works with any MCP-compatible client. Add the server config and restart. The tools appear automatically.
Claude Desktop
Add to claude_desktop_config.json (~/Library/Application Support/Claude/ on macOS, %APPDATA%\Claude\ on Windows):
{
"mcpServers": {
"adif": {
"command": "uvx",
"args": ["adif-mcp"]
}
}
}Claude Code
Add to .claude/settings.json:
{
"mcpServers": {
"adif": {
"command": "uvx",
"args": ["adif-mcp"]
}
}
}ChatGPT Desktop
Configure via Settings > Apps & Connectors, or in your agent definition:
{
"mcpServers": {
"adif": {
"command": "uvx",
"args": ["adif-mcp"]
}
}
}Cursor
Add to .cursor/mcp.json (project-level) or ~/.cursor/mcp.json (global):
{
"mcpServers": {
"adif": {
"command": "uvx",
"args": ["adif-mcp"]
}
}
}VS Code / GitHub Copilot
Add to .vscode/mcp.json in your workspace:
{
"servers": {
"adif": {
"command": "uvx",
"args": ["adif-mcp"]
}
}
}Gemini CLI
Add to ~/.gemini/settings.json (global) or .gemini/settings.json (project):
{
"mcpServers": {
"adif": {
"command": "uvx",
"args": ["adif-mcp"]
}
}
}Ask questions
"Is this ADIF record valid?
<CALL:5>KI7MT<QSO_DATE:8>20260928<BAND:3>20m<MODE:3>SSB<EOR>"
"What values does the ADIF MODE enumeration allow for digital modes?"
"Parse my log file and show me the first 50 QSOs."
"How far is it from DN13 to JN48, and what heading should I point the beam?"
What the validator checks
adif-mcp ships ADIF 3.1.8 as ADIF publishes it: 186 fields, 25 enumerations and 28 data types.
validate_adif_record checks each field against its ADIF data type and, for enumerated fields,
against the enumeration:
Enumeration values match regardless of case, so LoTW's
BAND=15Mis accepted as15m.Import-only values (42 of the Mode enumeration's 91 entries, for example) give a warning, not an error: ADIF allows them on import but not in new records.
Compound values such as
CREDIT_SUBMITTED(a list ofCreditorCredit:Mediumentries) are checked entry by entry.SUBMODE must be a valid Submode; one that belongs to a different MODE gives a warning. FT4, for example, is
MODE=MFSKwithSUBMODE=FT4.Structured types are checked against the grammar ADIF states for them: grid squares (2, 4, 6 or 8 characters, any case) and their extensions and lists (VUCC needs two or four, each four or six characters),
Location(XDDD MM.MMM),Boolean(Y or N), and IOTA, WWFF, POTA and SOTA references. What the grammar allows but cannot be right, such as a latitude over 90 degrees or N/S on a longitude, is a warning, never an error.
The server also publishes the MCP resource adif://system/version: the service version and the ADIF
specification version it serves.
MCP Inspector
adif-mcp --transport streamable-http --port 8003Then open the MCP Inspector at http://localhost:8003.
Development
git clone https://github.com/qso-graph/adif-mcp.git
cd adif-mcp
uv sync --group dev
uv run pytestLicense
adif-mcp's own code is GPL-3.0-or-later. See LICENSE for details.
The ADIF specification files are not ours. The package includes ADIF's published files for two versions, the previous and the current (3.1.7 and 3.1.8 today), unmodified: every file in ADIF's resource zip except its test material, in every format ADIF publishes (JSON, XML with all.xml and the XSD, CSV, TSV, XLSX, ODS), with a MANIFEST.json of their SHA-256 hashes per version, from the ADIF Developers Group. They are ADIF's work, and our license doesn't cover them. The only files in that folder that are ours are the derived Country enumeration and each version's MANIFEST.json. See NOTICE.
Available Tools
8 toolscalculate_distanceCalculate DistanceBRead-onlyIdempotent
Calculates distance (km) between Maidenhead locators.
Inputs: end (required), start (required). Returns: result
calculate_headingCalculate HeadingBRead-onlyIdempotent
Calculates heading (azimuth) between Maidenhead locators.
Inputs: end (required), start (required). Returns: result
get_version_infoGet Version InfoARead-onlyIdempotent
Returns the version of the ADIF-MCP server and spec.
Inputs: no named parameters. Returns: object
list_enumerationsList EnumerationsARead-onlyIdempotent
Lists the 26 enumerations: ADIF 3.1.8's 25 plus Country (derived).
Each entry's source says whether it is ADIF's own export or derived
by adif-mcp, so a consumer loading reference tables can tell them apart.
Inputs: no named parameters. Returns: object
parse_adifParse AdifCRead-onlyIdempotent
Streaming parser for large ADIF files with record seeking.
SECURITY NOTE: This tool reads files from the local filesystem using the provided path. Only pass paths to ADIF log files you own.
Inputs: file_path (required), limit, start_at.
read_specification_resourceRead Specification ResourceARead-onlyIdempotent
Reads an ADIF 3.1.8 specification resource (e.g., 'mode', 'fields', 'all').
An unknown or unreadable name is a tool execution error, so the model can see it failed and correct the name rather than being handed an error document that looks like a successful result.
Inputs: resource_name (required). Returns: result
search_enumerationsSearch EnumerationsCRead-onlyIdempotent
Searches ADIF 3.1.8 enumerations. Optionally filter by enumeration name.
Inputs: search_term (required), enumeration. Returns: object
validate_adif_recordValidate Adif RecordBRead-onlyIdempotent
Validates an ADIF record against 3.1.8 rules including enum membership.
Inputs: adif_string (required). Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a fairly distinct role: reading spec resources, enumerating, searching, validating, computing distance/heading, version info, and parsing. The main soft overlap is between read_specification_resource (which can read 'mode'/'fields') and list/search_enumerations, since both surface spec reference content, but descriptions clarify the boundaries well enough.
All tools use a clean snake_case verb_noun pattern (read_specification_resource, list_enumerations, search_enumerations, validate_adif_record, calculate_distance, calculate_heading, get_version_info, parse_adif). No mixed conventions or vague verbs.
Eight tools is well within the ideal 3-15 range and each earns its place: reference lookup, validation, parsing, and locator calculations are all distinct capabilities for the ADIF domain.
The surface covers reading spec/enumerations, validation, parsing large files, and locator math, which are the core ADIF workflows. There is a gap around generating/serializing or writing ADIF records (only read/parse/validate exist), but most agents can work around this.
Maintenance
Related MCP Connectors
Amateur radio MCP server with band plans, EIRP, cable loss, antenna gains, and more
Live amateur-radio APRS data: stations, tracks, weather, telemetry, packets and nets (read-only).
Geocoding, elevation, IP geolocation and coordinate transforms from the MapTiler Cloud API.
Geocode, reverse geocode, and run Overpass spatial queries on OpenStreetMap data.
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP server for QRZ.com — callsign lookups, DXCC entity resolution, and logbook queries through any MCP-compatible AI assistant.6228 PyPI4GPL 3.0
- AlicenseAqualityCmaintenanceEnables read-only access to Turbo HAMLOG amateur radio logs, allowing natural-language search and aggregation of contacts, station history, award progress, and statistics by importing logs from ADIF/CSV or HAMLOG.HDB via the DLL.91MIT
- AlicenseAqualityAmaintenanceEnables read-only querying of live and past amateur-radio nets and check-ins from NetLogger, with caching, rate limiting, and a consistent contract for future sources.656 PyPIGPL 3.0
- AlicenseNot gradedqualityBmaintenanceEnables querying a local SQLite index of FCC ULS licensing data to look up licenses by callsign, licensee, or FRN, find licensed transmitter sites near a coordinate, and see who is authorized on a frequency or band. Runs over STDIO or Streamable HTTP with no API key required at request time.101 npm1Apache 2.0