Product Hub & Live Demo: raymonddeoliveira.com/software#rfbench-example · Apify Actor: apify.com/raydeoliveira/rfbench-mcp · Glama MCP: glama.ai/mcp/servers/raydeoliveira/rfbench · Official MCP Registry: io.github.raydeoliveira/rfbench · Buy Pro ($29): Polar Checkout
RFBench calculates VSWR and return loss from RF impedance, analyzes Touchstone .s1p and .s2p sweeps, and models impedance-matching networks and link budgets.
Try RFBench on Apify. Run the prefilled 75 Ω load on a 50 Ω line at 100 MHz, then open the default dataset. The single row gives data.vswr of 1.5 and data.return_loss_db of 13.9794 dB, rounded. This example uses zero paid Actor events.
Calculate the standing-wave ratio of a 25 + j50 Ω load on a 50 Ω line at 100 MHz. This free hosted call needs only curl.
curl -sS https://rfbench-mcp.raymond-deoliveira.workers.dev/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"rf_smith_transform","arguments":{"z":{"re":25,"im":50},"freq_hz":100000000}}}'The response gives vswr of 4.265564437074637 and return_loss_db of 4.149733479708181 under result.structuredContent. To keep the example handy, star RFBench on GitHub.
Paste a one-port VNA sweep as .s1p text. This anonymous call uses three synthetic samples on a 50 Ω reference.
curl -q -fsS --max-time 15 https://rfbench-mcp.raymond-deoliveira.workers.dev/mcp \
-H 'Content-Type: application/json' \
--data-binary '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"rf_touchstone_analyze","arguments":{"touchstone_text":"# MHz S RI R 50\n900 0.5 0\n910 0 0\n920 0.5 0","vswr_threshold":2}}}'VSWR is 3 at 900 MHz, 1 at 910 MHz and 3 at 920 MHz. RFBench linearly interpolates these sampled VSWR values to estimate the 2:1 crossings. The band in result.structuredContent.passbands runs from 905 to 915 MHz (bandwidth_hz = 10000000).
For a 15 − j30 Ω load at 915 MHz, RFBench selected a 10 nH shunt inductor across the load followed by a 6.2 nH series inductor toward the 50 Ω source. Both values are in the E24 series.
| Calculated result | Value |
|---|---|
| Nominal VSWR with component Q of 50 | 1.0376 |
| Worst VSWR over the four ±5% component corners | 1.1294 |
| Insertion loss at the design frequency | 0.175 dB |
These are circuit-model results for a synthetic load. To reproduce the calculation, call rf_match_network with these arguments. The hosted fee is $0.01 per matching calculation through x402, or the tool accepts a $29 perpetual Pro key.
{"z_load":{"re":15,"im":-30},"z_source":{"re":50,"im":0},"freq_hz":915000000,"topology":"l-network","series":"E24","component_q":50,"max_vswr":1.5}| Surface / Tool | Tier / Price | What It Does |
|---|---|---|
rf_smith_transform / rfbench smith |
Free ($0) |
Exact Z, Y, Gamma (rectangular/polar), VSWR + phase, series/parallel RLC equivalents, and passive-region guards (Re(Z) >= 0, |Gamma| <= 1 unless allow_active: true) |
rf_link_budget / rfbench link |
Free ($0) |
Friis FSPL, EIRP/ERP, 290 K thermal noise floor, SNR, binding link margin, 1st Fresnel midpoint radius, and max range |
rf_txline / rfbench txline |
Free ($0) |
Lossless and lossy Z_in, Gamma_in, VSWR_in, wavelength, dissipative/transducer loss, and quarter-wave Z0 |
rf_match_network / rfbench match |
Metered ($0.01) |
Analytical L, Pi, and T matching with Q_min guards, 2^N bracketing E12/E24/E48/E96 snapping, finite-Q insertion loss, and 2^N tolerance corner VSWR |
rf_touchstone_analyze / rfbench s-param |
Free ($0) |
IEEE Touchstone v1.0 .s1p/.s2p (HZ/KHZ/MHZ/GHZ, RI/MA/DB), uniform single-pass phase rotation S_ij * exp(+j * 2 * pi * f * delay_ps * 1e-12) across s11, s21, s12, s22 (use delay_ps = 2 * tau for 1-port round-trip VNA fixture extension of one-way delay tau), VSWR passband, insertion loss, reverse isolation, group delay, and Rollett K/|Delta| stability |
rf_fcc_compliance / rfbench fcc |
Metered ($0.02) |
47 CFR §15.107/15.109/15.207/15.209 radiated and conducted limits (20*log10 >=30 MHz, 40*log10 <30 MHz), plus §15.247 ISM harmonic comb and §15.205 restricted-band collision checks |
HTTP 402 MCP & stdio MCP |
MCP 2025-03-26 |
Live Worker at https://rfbench-mcp.raymond-deoliveira.workers.dev/mcp: GET/HEAD /health, GET/HEAD /.well-known/mcp/server-card.json, POST /mcp (flat schemas, read-only/idempotent annotations, 405 + Allow on non-POST, Free, SHA-256 Bearer, Polar /validate, deferred x402 v2 /verify+/settle), plus rfbench mcp over stdin/stdout |
| Apify Actor & Standby MCP | PPE / Standby | Single ({ tool, arguments }) and batch ({ calls }) Dataset/OUTPUT runs plus Standby HTTP /mcp with readiness probe and Pay-Per-Event charging |
What It Does Not Do:
- No physical VNA or spectrum-analyzer USB/serial drivers (
$0Day 1 stateless compute only). - No full-wave EM/FDTD field simulation.
- No remote Touchstone URL fetching (inline payloads only;
<= 204,800bytes and<= 4096frequency points). - No Touchstone v2
[...]directives (Touchstone v1.0 only).
Use the hosted endpoint with curl or an MCP client. The public GitHub repository contains documentation and MCP metadata. The local CLI, fixtures and tests require a separate source checkout.
The source checkout requires Node.js >= 22.18.0 for native TypeScript execution (verified on v25.9.0; 0 runtime and 0 dev npm dependencies, 267,022 bytes / 260.8 KiB source across 29 TypeScript files and 5,781 lines in src/, 312 KB on disk via du -sk, 768 KB project total):
node --test tests/*.test.ts
node --test e2e/*.test.tsMeasured runs on node v25.9.0 (macOS):
- Unit & integration (
node --test tests/*.test.ts):82tests across23suites in9test files (82pass,0fail,0skipped). - End-to-end (
node --test e2e/*.test.ts):135tests across11test files (135pass,0fail,0skipped). - Total:
217tests (217pass,0fail). - Representative CLI latency (median of 5 runs on
node v25.9.0):388.5 ms(smith --z 25+j50 --freq-hz 100e6 --json),415.3 ms(s-param --touchstone fixtures/antenna_915mhz.s1p --json).
Hosted & container deployment:
- Live Cloudflare Worker: Deployed at
https://rfbench-mcp.raymond-deoliveira.workers.dev(MCP endpointPOST /mcp, agent summaryGET/HEAD /llms.txt, discovery cardGET/HEAD /.well-known/mcp/server-card.json, healthGET/HEAD /health, telemetry inMETER_KV). - Official MCP Registry listing
- Glama Connector: https://glama.ai/mcp/connectors/io.github.raydeoliveira/rfbench
- Polar Pro License (
$29perpetual, up to 3 devices): https://buy.polar.sh/polar_cl_mOqAzUHFS8WLUnO5GA1QR7C7933zfjDqIA4h44MLSGA - Apify Actor / Standby: Verified
234 MBnode:22-alpinecontainer (FROM node:22-alpine, zeronpm install, non-rootUSER node, requires Node>= 22.18native type-stripping) across batch Actor and HTTP Standby modes.
To uninstall locally, remove the directory (rm -rf rfbench).
Run Smith-chart conversion and inspect structured --json output:
node src/adapters/cli.ts smith --z 25+j50 --freq-hz 100e6 --jsonObserved output:
{"schema_version":1,"ok":true,"command":"smith","data":{"z0":50,"allow_active":false,"is_passive":true,"z_norm":{"re":0.5,"im":1},"y_norm":{"re":0.4,"im":-0.8},"z":{"re":25,"im":50},"y":{"re":0.008,"im":-0.016},"gamma_rect":{"re":0.07692307692307689,"im":0.6153846153846153},"gamma_polar":{"mag":0.6201736729460422,"deg":82.87498365109822},"vswr":4.265564437074637,"return_loss_db":4.149733479708181,"mismatch_loss_db":2.1085336531489314,"reflected_power_ratio":0.3846153846153845,"loaded_q":2,"equivalent_circuit":{"freq_hz":100000000,"omega_rad_s":628318530.7179586,"series":{"r_s":25,"x_s":50,"l_s_h":7.957747154594767e-8,"c_s_f":null},"parallel":{"r_p":125,"x_p":62.5,"g_p":0.008,"b_p":-0.016,"l_p_h":9.94718394324346e-8,"c_p_f":null}}},"error":null}Run included reference fixtures directly:
node src/adapters/cli.ts s-param --touchstone fixtures/antenna_915mhz.s1p --json
node src/adapters/cli.ts s-param --touchstone fixtures/filter_1500mhz.s2p --json
node src/adapters/cli.ts match --input fixtures/match_915mhz_e24.json --json
node src/adapters/cli.ts fcc --input fixtures/fcc_radiated_part15b_class_a.json --json
node src/adapters/cli.ts fcc --input fixtures/fcc_conducted_class_b.json --json
node src/adapters/cli.ts fcc --input fixtures/fcc_ism_comb_2440mhz.json --jsonFrom a source checkout, dry-run and start the local HTTP 402 MCP server:
node src/adapters/cli.ts serve --dry-run --json
API_KEYS_CSV="demo-key" node src/adapters/cli.ts serve --port 0Unauthenticated metered POST /mcp calls fail closed with HTTP 402 plus Base64 PAYMENT-REQUIRED and WWW-Authenticate headers (linking to live Polar checkout https://buy.polar.sh/polar_cl_mOqAzUHFS8WLUnO5GA1QR7C7933zfjDqIA4h44MLSGA and x402 v2 requirements); authenticated calls (Authorization: Bearer demo-key, X-Polar-License-Key, or x402 v2 PAYMENT-SIGNATURE) return HTTP 200 with JSON-RPC result.structuredContent.
From your project directory, run npx skills add raydeoliveira/rfbench to install the agent reference for RF impedance and Touchstone sweeps.
Connect Claude Code (free tier out of the box, or pass -H "X-Polar-License-Key: ..."):
claude mcp add --transport http rfbench https://rfbench-mcp.raymond-deoliveira.workers.dev/mcpFor a client that accepts mcpServers JSON, configure the free hosted tools with the server URL.
{
"mcpServers": {
"rfbench": {
"url": "https://rfbench-mcp.raymond-deoliveira.workers.dev/mcp"
}
}
}Run offline Actor mode against APIFY_LOCAL_STORAGE_DIR:
APIFY_LOCAL_STORAGE_DIR=./storage node src/adapters/apify_main.tsRun Standby MCP mode (reads ACTOR_WEB_SERVER_PORT / PORT, preserves 0 for ephemeral bind, responds 200 to GET / with x-apify-container-server-readiness-probe):
APIFY_META_ORIGIN=STANDBY ACTOR_WEB_SERVER_PORT=0 node src/adapters/apify_main.ts- Stateless
$0hardware compute: Zero OS driver installation and zero hardware state mutation. - Fail-closed input & numeric bounds: Non-finite values, non-positive
z0/freq_hz, active impedances withoutallow_active: true, unknown JSON fields (ERR_UNKNOWN_FIELD), prototype-chain keys (__proto__,constructor,prototype), and extreme-scale numeric overflows (ERR_NUMERIC_OVERFLOW) fail deterministically viaRfValidationError. - JSON-safe singularities: Singular values (
VSWRat|Gamma| >= 1, open-circuitZ, short-circuitY) serialize asnull, with-0normalized to+0. - Bounded remote surfaces & exact matching sweeps: HTTP
POST /mcpenforces a262,144-byte request limit (413on overflow,400on invalid JSON,405+Allow: POST, OPTIONSon unsupported methods), Touchstone caps input at204,800bytes and4,096frequency points, FCC Part 15 caps input at4,096points and64clock frequencies (ERR_TOO_MANY_POINTS/ERR_TOO_MANY_CLOCKS), and matching reports swept-3 dBtransducer gainbandwidth_3db_hzandvswr_2_bandwidth_hzdirectly from ladder ABCD analysis. - Fail-closed
402, deferred x402 settlement & Apify PPE billing: Authorization (/verifyfor x402,/validatefor Polar with full 64-hex SHA-256 cache keys, or SHA-256 Bearer) runs before tool argument validation on metered HTTP MCP calls (402withPAYMENT-REQUIREDandWWW-Authenticateon missing/invalid credentials), while x402/settleexecutes only after tool execution succeeds soRfValidationErrorinputs never charge the caller. In Apify Actor mode, metered calls withchargeEventsenabled (defaulttrue) fail closed withERR_PAYMENT_REQUIREDand withhold metered output data ifchargeEventrejects or throws (passchargeEvents: falsefor unpaid local runs); free and failed calls never emit Apify Pay-Per-Event charges. In Apify Standby (APIFY_IS_AT_HOME=1), internalapify_api_*/ runtime tokens are ignored unless an explicit external credential orAPI_KEYS_CSVis present; unauthenticated metered requests fail closed (402/500) on PPE failure, while explicit external auth headers authenticate via the HTTP402gate without double-charging PPE. - Clean shutdown:
serveand Standbyapify_main.tsclose sockets and flush pending metering tasks onSIGINT(130) andSIGTERM(0).
| Code | Meaning |
|---|---|
0 |
Success |
1 |
Runtime error |
2 |
Usage or RfValidationError input error (including closed non-TTY stdin) |
3 |
Capability unavailable |
4 |
Permission denied |
5 |
License or HTTP 402 payment entitlement error |
130 |
SIGINT interrupted |
In a source checkout, inspect CLI flags and schemas with --help or --describe. Reference inputs live under fixtures/.
fixtures/antenna_915mhz.s1pfixtures/filter_1500mhz.s2pfixtures/match_915mhz_e24.jsonfixtures/fcc_radiated_part15b_class_a.jsonfixtures/fcc_conducted_class_b.jsonfixtures/fcc_ism_comb_2440mhz.json
Proprietary commercial software. Copyright (c) 2026 Raymond de Oliveira. All rights reserved. See COMMERCIAL_LICENSE.md and SECURITY.md.
Documentation, packaging manifests, Dockerfiles, and skill files in this public distribution repository are licensed under the MIT License. Compiled release binaries, private source code, and hosted Pro/API services remain proprietary under COMMERCIAL_LICENSE.md.