
Physbound
io.github.JonesRobM由 GitHub 帳號 JonesRobM 發布v0.3.0更新於 Oct 24, 2026
Physical Layer Linter: validates RF and radar calculations against hard physical limits.
概覽
本機 MCP 伺服器,用硬性物理極限檢核射頻與雷達計算,協助找出工程數據中不可能成立的數值。
- 可以做什麼
- 檢核射頻鏈路預算:自由空間損耗、接收功率,以及天線增益是否超出孔徑與 Harrington 極限
- 對照香農-哈特利通道容量檢查吞吐量宣稱
- 計算熱雜訊底、串接雜訊指數與接收機靈敏度
- 依單站雷達方程式檢核偵測距離宣稱
- 分析單支天線的增益極限、波束寬度與遠場距離
- 檢查脈衝都卜勒雷達的距離、速度與解析度模糊限制
- 適用情境
- 適合在審查射頻系統設計、核對電信提案、估算雷達系統規模或講解鏈路預算與雷達基礎時使用,讓助理給出的數值先經過物理極限核對,而不是直接採信。
- 執行需求
- 以 stdio 方式在本機執行。建議用 uvx physbound 啟動,需要 uv;也可 pip install physbound,需 Python 3.12 以上版本。首次執行會下載約 60 MB 相依套件(SciPy、NumPy)。未宣告需要帳號、API 金鑰或環境變數。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Physbound,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
PhysBound
Physical Layer Linter — an MCP server that validates RF and physics calculations against hard physical limits, catching AI hallucinations in engineering workflows.
[CI] [codecov] [PyPI] [MCP Registry] [License: MIT] [Python 3.12+] [MCP Badge] [Ko-fi]
[PhysBound CLI catching a Shannon-Hartley violation]
LLMs generate plausible-sounding RF numbers that violate fundamental physics — throughput above the Shannon limit, antenna gains no aperture can produce, radar ranges the range equation forbids. PhysBound gives any MCP-compatible AI assistant six validated calculation tools, backed by CODATA constants (via SciPy) and dimensional analysis (via Pint). Impossible claims return structured PhysicalViolationError responses with the violated law, the computed limit, and a LaTeX explanation — not silent failures.
Installation
PhysBound is a standard stdio MCP server published on PyPI. The recommended launch command is uvx physbound, which fetches and runs the latest release in an isolated environment — no manual install step.
First run:
uvxdownloads ~60 MB of dependencies (SciPy, NumPy) the first time. Runuvx physboundonce in a terminal to pre-cache them (Ctrl-C to exit); subsequent starts are instant.
Claude Code
Claude Desktop
Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):
Cursor, Windsurf, and other MCP clients
Use the same JSON server entry as above in your client's MCP configuration file (Cursor: ~/.cursor/mcp.json; Windsurf: ~/.codeium/windsurf/mcp_config.json).
Without uv
If you prefer a plain Python install (requires Python 3.12+):
then set "command": "physbound" (with no args) in the client configuration.
Once configured, ask your assistant an RF question — "Can a 20 MHz channel with 15 dB SNR support 500 Mbps?" — and it will answer with physics-validated numbers.
Command-Line Usage
The same validators are available directly from the terminal — useful in scripts and CI pipelines, since a physics violation exits with code 1:
Available subcommands: check {link-budget, shannon, noise, radar-range, antenna, radar-ambiguity} (flags mirror the MCP tool parameters; add --json for the full structured result) and serve --transport {stdio,http} for running the MCP server over HTTP. See physbound check --help for details.
What LLMs Get Wrong
Sixteen real hallucination patterns, each caught by PhysBound's test suite:
Generated automatically by pytest tests/test_marketing.py -s
Tools
Full derivations, sources, and worked examples for every formula are in docs/formulas.md.
rf_link_budget
Computes a complete RF link budget using the Friis transmission equation and validates antenna gains against physical limits.
Example: "What's the received power for a 2.4 GHz link at 100 m with 20 dBm TX, 10 dBi TX gain, 3 dBi RX gain?"
Returns FSPL, received power, wavelength, and — when antenna diameters are supplied — gain limit checks. Gains above the hard bound G_max = max((pi D / lambda)^2, (ka)^2 + 2ka) (the eta = 1 aperture value, or Harrington's bound for electrically small antennas) are rejected; gains above the typical dish value (eta = 0.55) are accepted with a warning. Also warns inside the far-field distance 2D^2/lambda and rejects negative losses.
shannon_hartley
Computes Shannon-Hartley channel capacity C = B log2(1 + SNR) and validates throughput claims.
Example: "Can a 20 MHz channel with 15 dB SNR support 500 Mbps?"
Returns theoretical capacity, spectral efficiency, and whether the claim is physically possible, including the exact percentage by which a violating claim exceeds the Shannon limit.
noise_floor
Computes thermal noise power N = k_B T B, cascades noise figures through multi-stage receivers with the Friis noise formula, and calculates receiver sensitivity.
Example: "What's the noise floor for a 1 MHz receiver at 290 K with a two-stage LNA chain?"
Returns thermal noise in dBm and watts, cascaded noise figure, effective input noise temperature T_e = 290 K * (F - 1), and receiver sensitivity.
radar_range
Computes the monostatic radar range equation R_max = [P_t G^2 lambda^2 sigma / ((4pi)^3 S_min L)]^(1/4) and validates detection-range claims.
Example: "Can a 1 kW X-band radar with 30 dBi gain detect a 0.01 m^2 drone at 200 km?"
Returns maximum detection range, minimum detectable signal, wavelength, and intermediate values. Catches the common fourth-root fallacy that doubling power doubles range.
antenna_gain
Analyses a single antenna from its diameter or physical area: gain limits, beamwidth, and far-field distance, with optional validation of a claimed gain.
Example: "Can a 0.5 m dish at 12 GHz really give 50 dBi? What beamwidth should I expect?"
Returns the physical gain limit (aperture or Harrington bound, and which one governs), typical gain at the given efficiency (default 0.55), effective aperture, half-power beamwidth estimates, far-field distance 2D^2/lambda, and — for a claimed gain — the implied aperture efficiency and validity.
radar_ambiguity
Computes pulse-Doppler ambiguity limits for a given carrier frequency and PRF.
Example: "Can a 10 GHz radar at 10 kHz PRF unambiguously measure a 500 m/s target out to 150 km?"
Returns unambiguous range R_ua = c / (2 PRF), unambiguous velocity v_ua = lambda PRF / 4, blind speed, Doppler shift and apparent (aliased) velocity, range resolution (c tau / 2, or c / 2B with pulse compression), minimum range, duty cycle, and the range-Doppler dilemma invariant R_ua v_ua = c lambda / 8. Rejects range, velocity, or resolution claims the PRF or pulse cannot support.
Physics Guarantees
Every calculation is validated against hard physical limits:
- Speed of light:
c = 299,792,458 m/s— no exceptions - Thermal noise floor:
N = -174 dBm/Hzat 290 K — the IEEE standard reference - Shannon limit:
C = B log2(1 + SNR)— no throughput claim exceeds this - Antenna gain limit:
G_max = max((pi D / lambda)^2, (ka)^2 + 2ka)— the eta = 1 aperture value for planar apertures and Harrington's bound for any antenna in a sphere of diameter D; eta = 0.55 is a warning threshold, not a limit - Radar range equation:
R_max = [P_t G^2 lambda^2 sigma / ((4pi)^3 S_min)]^(1/4)— range obeys the fourth-root law - Receiver sensitivity:
S_min = k (T_A + T_0 (F - 1)) B * SNRwithT_e = T_0 (F - 1)referenced to 290 K - Unambiguous range:
R_ua = c / (2 PRF)— echoes beyond it fold into a later pulse interval - Unambiguous velocity:
v_ua = lambda PRF / 4— Doppler is sampled at the PRF, so|f_d| <= PRF/2 - Range-Doppler dilemma:
R_ua * v_ua = c lambda / 8— no PRF choice beats it for a given carrier
Violations return structured PhysicalViolationError responses with LaTeX explanations, not silent failures.
Examples and Documentation
- Catching Hallucinations — walkthrough of five real LLM failure modes with full JSON responses
- Interactive Demo Notebook — Jupyter notebook calling the physics engines directly
- Formula Reference — every formula, constant, and validation guard with sources
- Changelog — release history
Development
Requires uv and Python 3.12+ (CI covers 3.12–3.14):
Contributions that expand the set of validated physics domains are welcome — see CONTRIBUTING.md for the architecture guide and the step-by-step recipe for adding a new validator.
Use Cases
- RF system design review — validate link budgets, receiver sensitivity, and noise cascades
- Telecom proposal vetting — catch impossible throughput claims before they reach a customer
- Radar system sizing — sanity-check detection range, PRF selection, and ambiguity trade-offs
- Educational tools — teach Shannon-Hartley, Friis transmission, and thermal noise with verified calculations
- CI/CD for physics — integrate as a validation step in engineering pipelines
Support
If PhysBound is useful in your work, consider buying me a coffee.
License
MIT License. See LICENSE.
Related
- Model Context Protocol — the open standard for AI tool integration
- MCP Server Registry — official directory of MCP servers
- FastMCP — Python framework for building MCP servers
來源:README.md,提交 77009c7
工具
0版本歷史
1- v0.3.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分