copper-mountain-vna-mcp
This server lets AI agents and Python scripts remotely control Copper Mountain Vector Network Analyzers (RVNA, TRVNA, S2VNA, S4VNA) over TCP/IP SCPI, exposing structured MCP tools for RF measurements and automation.
Connection & discovery: scan for VNA instances, connect/disconnect, identify instrument, check status, launch VNA software on Windows.
Sweep configuration: set frequency range, center/span, number of points, IF bandwidth, power, averaging, and enable/disable RF output.
Measurements: trigger sweeps, fetch S-parameters (S11/S21/S12/S22 and 4-port options), measure return loss, VSWR, and insertion loss.
Marker analysis: place/read markers, search for min/max values, measure bandwidth around peaks.
Calibration: start SOL/SOLT/SOLR/TRL calibrations, measure OPEN/SHORT/LOAD/THRU standards, apply calibration, and toggle error correction.
Port extension: get/set/clear port extension delay and loss compensation for cables or fixtures.
Export: save Touchstone files and VNA display screenshots.
Templates: list, load, and apply predefined measurement templates for antennas, cables, filters, and other DUTs.
State management: save/load VNA configuration files and retrieve full state as JSON.
Limits testing: define pass/fail limits, check measurements against them, list and clear limits.
Low-level control: send raw SCPI commands, reset or preset the VNA, and show/hide the VNA software UI.
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., "@copper-mountain-vna-mcp Sweep 1-2 GHz at 201 points and return S11 data."
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.
Drive Copper Mountain Vector Network Analyzers from any MCP-compatible AI client. TCP/IP SCPI over the wire: 45 tools spanning sweep, calibration, measurement, and export.
Quick start ยท Tools ยท Workflows ยท Documentation
What is copper-mountain-vna-mcp?
copper-mountain-vna-mcp is a Model Context Protocol
server that exposes a Copper Mountain VNA: RVNA, TRVNA, S2VNA, or S4VNA family
to any MCP-capable AI assistant. The server speaks raw TCP/IP SCPI to the
Copper Mountain software socket server (default port 5025), then surfaces
sweep configuration, calibration, S-parameter capture, marker math, and
Touchstone export as plain MCP tools.
Drive it from Claude Desktop, Claude Code, VS Code Copilot, or any other MCP
client. SCPI is generated server-side, so the AI agent never needs to know the
underlying command set. It just calls vna_configure_sweep, vna_trigger_sweep,
vna_get_s_parameter and gets back structured data.
What copper-mountain-vna-mcp does well:
๐ค AI-native via MCP. First-class Model Context Protocol server with 45 tools. Any Claude / LLM agent can drive it.
๐ Python + MCP surfaces. Import
coppermountain_vna_mcpfor direct driver access, or run as an MCP server for AI-agent automation.โก Direct TCP/IP SCPI. No VISA dependency, no proprietary middleware: just asyncio sockets straight to the Copper Mountain software socket server.
โ Validated against 4 VNA families. RVNA (S11), TRVNA (S11/S21), S2VNA (full 2-port), S4VNA (full 4ร4).
๐ AGPL-3.0-or-later. Network-copyleft open-source. Independent of Copper Mountain Technologies (trademark disclaimer below).
Disclaimer: This project is not affiliated with, endorsed by, or sponsored by Copper Mountain Technologies. "Copper Mountain" is a trademark of Copper Mountain Technologies. This is an independent open-source project.
Related MCP server: CyPerf MCP Server
Quick start
Install
pip install coppermountain-vna-mcpOr from source:
git clone https://github.com/RFingAdam/copper-mountain-vna-mcp.git
cd copper-mountain-vna-mcp
pip install -e ".[dev]"Supported instruments
Family | Description | Example models | S-parameters |
RVNA | 1-port reflectometer | R54, R60 | S11 |
TRVNA | 2-port 1-path | TR1300 | S11, S21 |
S2VNA | 2-port full reversing | M5090, Planar 804/1 | S11, S12, S21, S22 |
S4VNA | 4-port full | S5048 | Full 4ร4 matrix |
Two surfaces, same answer
Python
import asyncio
from coppermountain_vna_mcp.driver import CopperMountainVNADriver
from coppermountain_vna_mcp.models import SParameter, SweepConfig
async def main():
async with CopperMountainVNADriver("127.0.0.1", 5025) as vna:
await vna.configure_sweep(SweepConfig(
start_freq_hz=1e9, stop_freq_hz=2e9,
num_points=201, if_bandwidth_hz=1000, power_dbm=0,
))
await vna.trigger_sweep()
data = await vna.get_s_parameter_data(SParameter.S11)
marker = await vna.marker_search_min()
print(f"Best match: {marker.frequency_hz/1e9:.3f} GHz @ {marker.magnitude_db:.1f} dB")
asyncio.run(main())MCP (Claude Desktop, Claude Code, any MCP client)
{
"mcpServers": {
"copper-mountain-vna": {
"command": "python",
"args": ["-m", "coppermountain_vna_mcp"],
"env": {
"VNA_DEFAULT_HOST": "127.0.0.1",
"VNA_DEFAULT_PORT": "5025"
}
}
}
}Then ask your assistant in plain English:
"Connect to the VNA on 127.0.0.1, sweep 1โ2 GHz at 201 points, and tell me where S11 is best matched."
The agent will call vna_connect, vna_configure_sweep, vna_trigger_sweep,
and vna_marker_search_min in sequence and report the result.
Start the VNA software socket server
The VNA software runs on Windows. Enable the socket server via command line:
:: S2VNA / S4VNA
S2VNA.exe /SocketServer:on /SocketPort:5025 /visible:on
:: RVNA / TRVNA
RVNA.exe EnableSocket:5025Or in the GUI: System > Socket Server > Enable.
Configuration
Configure via environment variables or .env file:
Variable | Default | Description |
|
| VNA software host IP |
|
| Socket server port |
|
| TCP connection timeout (s) |
|
| SCPI command timeout (s) |
|
| Max output power |
|
| Min output power |
|
| Upper sweep bound |
|
| Maximum sweep points |
Tools
45 MCP tools, grouped:
Group | Tools |
Connection |
|
Configuration |
|
Measurement |
|
Markers |
|
Calibration |
|
Export |
|
Templates |
|
State |
|
Limits |
|
Software |
|
Low-level SCPI |
|
Full tool reference in docs/tools.md.
Calibration
Standard cal flows are exposed as discrete tools so an agent can walk them step by step.
SOL (1-port reflection):
vna_calibration_start(method="SOL")vna_calibration_measure_standard(standard="SHORT", port_num=1)vna_calibration_measure_standard(standard="OPEN", port_num=1)vna_calibration_measure_standard(standard="LOAD", port_num=1)vna_calibration_apply()vna_correction_on()
SOLT (2-port full): SHORT/OPEN/LOAD on both ports, then THRU between
them, then apply.
Calibration is frequency-specific: recalibrate when the sweep range changes substantially.
Measurement templates
Pre-configured sweep + marker + trace setups for common DUT classes. Load by
name with vna_load_template, then vna_apply_template to push to the VNA.
Category | Examples |
Antennas: WiFi/BLE |
|
Antennas: MIMO |
|
Antennas: ISM/cellular/GNSS |
|
Antennas: UWB |
|
Cables |
|
Filters |
|
await vna.load_template("antenna_wifi_5ghz")
await vna.apply_template()
# Custom filter: provide parameters at load time
await vna.load_template("filter_bandpass_custom",
center_freq_hz=1.5e9, bandwidth_hz=100e6)
await vna.apply_template()Workflows
copper-mountain-vna-mcp fits in the following eng-mcp-suite
workflow bundles:
lab-automation: pair withmcp-rs-spectrum-analyzer,mcp-rs-siggen, andmcp-rs-cmw500for end-to-end RF bench-test workflows driven from a single agent session.antenna-tuning: feed return-loss / VSWR traces intomcp-nec2-antennaormcp-openemsfor iterative match optimization.
Install the bundle with:
eng-mcp-suite install --workflow lab-automationDocumentation
๐ Quick Start: install through first call.
๐ ๏ธ Tool reference. Every MCP tool, every argument.
๐ Usage examples. A practical end-to-end S11 walkthrough.
๐๏ธ Architecture: how this MCP fits in eng-mcp-suite.
๐ Changelog
Part of eng-mcp-suite
This MCP server is part of
Part of eng-mcp-suite. An open
umbrella of MCP servers for RF / EMC / PCB / signal-integrity engineering. Drop
into the lab-automation workflow bundle with
eng-mcp-suite install --workflow lab-automation.
Domain | Sibling MCPs |
RF / Transmission lines | |
EMC regulatory | |
EM simulation | mcp-openems, mcp-nec2-antenna |
Diagrams | |
Lab gear | copper-mountain-vna-mcp ยท mcp-rs-spectrum-analyzer ยท mcp-rs-siggen ยท mcp-rs-cmw500 |
Contributing
Contributions welcome.
Pick a GitHub issue.
Fork + branch (
feature/your-thingorfix/your-bug).Run the local check suite:
ruff check . && mypy src/coppermountain_vna_mcp pytest --cov=coppermountain_vna_mcpOpen a PR: link the issue, request review.
License
AGPL-3.0-or-later. Copyright 2025-2026 Adam Engelbrecht (RFingAdam). Relicensed from Apache-2.0 in v0.3.0 to align with the eng-mcp-suite toolkit-wide AGPL move.
Brand assets
The project name and the logo files in this repository are not part of the licensed work. The licence above grants no permission to use them, except as needed to describe the origin of the work.
Acknowledgments
Copper Mountain Technologies: for documenting the SCPI command set used by RVNA / TRVNA / S2VNA / S4VNA software.
The MCP working group: for the Model Context Protocol specification.
Part of eng-mcp-suite: built for RF engineers, PCB designers, EMC labs, and AI agents.
Available Tools
49 toolsvna_apply_templateC
Apply loaded template configuration to VNA
Inputs: host, port.
vna_calibration_applyC
Apply calibration (calculate and save coefficients)
Inputs: host, port.
vna_calibration_measure_standardB
Measure calibration standard (OPEN/SHORT/LOAD/THRU)
Inputs: standard (required), host, port, port_num.
vna_calibration_startA
Start calibration procedure. Automatically disables port extension on all ports before starting (port extension during calibration causes incorrect coefficients). Returns port_extension_was_disabled: true if any ports had extension enabled.
Inputs: method (required), host, port.
vna_calibration_statusC
Get calibration validity status
Inputs: host, port.
vna_check_limitsC
Check measurement against defined limits
Inputs: s_param (required), host, port.
vna_clear_limitsA
Clear all defined limits
Inputs: no named parameters.
vna_clear_port_extensionC
Clear/disable port extension for specified port
Inputs: host, port, vna_port.
vna_configure_sweepC
Configure sweep parameters: frequency range, points, IF BW, power
Inputs: stop_freq_hz (required), start_freq_hz (required), host, port, +4 more.
vna_connectB
Connect to VNA at specified host:port
Inputs: host, port.
vna_correction_offB
Disable error correction
Inputs: host, port.
vna_correction_onC
Enable error correction
Inputs: host, port.
vna_define_limitC
Define pass/fail limit for measurements
Inputs: name (required), limit_db (required), limit_type (required), stop_freq_hz (required), +1 more.
vna_disconnectB
Disconnect from VNA
Inputs: host, port.
vna_discoverB
Scan ports 5025-5035 for running VNA instances
Inputs: host, end_port, start_port.
vna_get_full_stateC
Get complete VNA configuration state as JSON
Inputs: host, port.
vna_get_markerB
Get marker value (frequency, magnitude, phase)
Inputs: host, port, marker_num.
vna_get_port_extensionB
Get port extension settings (delay and loss compensation)
Inputs: host, port, vna_port.
vna_get_s_parameterC
Get S-parameter data (frequencies, magnitude, phase)
Inputs: s_param (required), host, port.
vna_get_statusC
Get VNA connection and configuration status
Inputs: host, port.
vna_identifyB
Get VNA identification (*IDN?): manufacturer, model, serial, firmware
Inputs: host, port.
vna_launchB
Launch VNA software with socket server enabled (Windows only)
Inputs: port, family, timeout, visible, +1 more.
vna_list_limitsB
List all defined limits
Inputs: no named parameters.
vna_list_templatesA
List available measurement template presets
Inputs: no named parameters.
vna_load_stateC
Load and restore VNA configuration from file
Inputs: filepath (required), host, port.
vna_load_templateC
Load measurement template (preset name or file path)
Inputs: template (required), span_hz, center_freq_hz.
vna_marker_bandwidthB
Find -3dB (or specified) bandwidth around peak
Inputs: host, port, marker_num, bandwidth_level_db.
vna_marker_search_maxC
Search for maximum value in sweep
Inputs: host, port, marker_num.
vna_marker_search_minC
Search for minimum value in sweep
Inputs: host, port, marker_num.
vna_measure_insertion_lossC
Measure insertion loss (S21) at specific frequency
Inputs: frequency_hz (required), host, port.
vna_measure_return_lossA
Measure return loss (S11) at specific frequency
Inputs: frequency_hz (required), host, port.
vna_measure_vswrC
Measure VSWR at specific frequency
Inputs: frequency_hz (required), host, port.
vna_output_offC
Disable RF output (safe state)
Inputs: host, port.
vna_output_onC
Enable RF output
Inputs: host, port.
vna_presetC
Preset VNA (SYST:PRES)
Inputs: host, port.
vna_resetB
Reset VNA to default state (*RST)
Inputs: host, port.
vna_save_screenshotB
Save VNA display screenshot
Inputs: filepath (required), host, port.
vna_save_stateB
Save current VNA configuration to file
Inputs: filepath (required), host, port, notes.
vna_save_touchstoneB
Export S-parameter data to Touchstone file (.s1p/.s2p/.s4p)
Inputs: filepath (required), host, port.
vna_scpi_queryC
Send SCPI query and return response
Inputs: command (required), host, port.
vna_scpi_sendA
Send raw SCPI command (no response)
Inputs: command (required), host, port.
vna_set_averagingC
Configure sweep averaging
Inputs: count (required), host, port.
vna_set_center_spanC
Configure frequency via center and span
Inputs: span_hz (required), center_freq_hz (required), host, port.
vna_set_markerC
Position marker at frequency
Inputs: frequency_hz (required), host, port, marker_num.
vna_set_port_extensionA
Set port extension to compensate for cables/fixtures (delay and/or loss)
Inputs: delay_s (required), host, port, vna_port, +1 more.
vna_set_port_powerC
Set power level per port
Inputs: power_dbm (required), host, tcp_port, vna_port.
vna_software_hideC
Hide VNA software UI
Inputs: host, port.
vna_software_showC
Show VNA software UI
Inputs: host, port.
vna_trigger_sweepB
Trigger single sweep and wait for completion
Inputs: host, port, timeout.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
TDQS
Scored across 49 tools
Most tools target distinct operations (e.g., measure_return_loss vs. get_s_parameter, save_touchstone vs. save_state). A few pairs like reset/preset and configure_sweep/set_center_span have overlapping scope, but descriptions clarify their specific purposes.
All tools share the vna_ prefix and use consistent snake_case. Verbs like get_, set_, measure_, save_, and load_ follow a predictable pattern, with minor exceptions (output_on, calibration_start) that are still clear and consistent.
The server exposes 49 tools, which is well beyond the typical well-scoped range. While the VNA domain is complex, many tools could be consolidated (e.g., a single measure tool with parameters), making the surface feel excessive and harder to navigate.
The tool set covers the full VNA workflow: connection, configuration, measurement, calibration, marker analysis, state/template management, limit testing, and raw SCPI access. The inclusion of scpi_send/scpi_query provides a fallback for any missing functionality.
Maintenance
Related MCP Connectors
Protocol-native energy infrastructure orchestration for AI data centers. Provides 46 MCP tools across 8 grid protocols (IEC-61850, DNP3, Modbus, OCPP, OpenADR, IEEE 2030.5, IEC 60870-5-104, ICCP) with 5 core API primitives: connect, dispatch, settle, comply, and intel. Enables AI agents to programmatically interact with substations, grid interfaces, and energy assets for real-time workload-grid coordination.
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Connect your AI agent to 300+ methods and 100+ live tools
Discover, inspect and run 63,000+ agent tools from one balance. Pay per call, no subscriptions.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to directly control NI oscilloscopes (e.g., PXIe-5160/5164/5110) through the Model Context Protocol, including waveform acquisition, measurement, and configuration.MIT

CyPerf MCP Serverofficial
AlicenseNot gradedqualityDmaintenanceExposes Keysight CyPerf network performance and security testing as 100 tools across 15 categories, enabling AI assistants to orchestrate tests, manage agents, and analyze results through natural language.1MIT- AlicenseCqualityBmaintenanceEnables natural language control of test instruments like spectrum analyzers and power supplies via SCPI commands, with auto-discovery and multi-instrument session support.1001MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control Siglent SDG-series signal generators, configure waveforms, and switch outputs via natural language.3MIT