RTL-SDR + MCP server: spectrum, waterfall, FM audio, station DB, GNU Radio demod — web dashboard and AI control via FastMCP 3.4
翻译准备中
开发工具Python · TypeScriptGitHub @sandraschi自行安装运营者未确认
试用过了吗? 点一下就好,无需登录。
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
安装型项目无需部署域名也可验证。个人仓库可通过 GitHub 登录验证,组织仓库可使用上方的仓库验证文件。
正在加载完整 README。 以下为已保存的摘录。
Listen to radio waves with a USB stick — controlled by AI or a web dashboard.
Software Defined Radio (SDR) turns RF into data your PC can plot and play.
This repo is a Model Context Protocol server for RTL-SDR: live spectrum,
waterfall, FM audio, station databases, and a GNU Radio demod sidecar. Works with Cursor,
Claude Desktop, or the built-in React dashboard at http://127.0.0.1:11118/.
This opens an interactive dashboard showing all available commands. Run just bootstrap to install dependencies, then just serve or just dev to start.查看完整 README ↗Listen to radio waves with a USB stick — controlled by AI or a web dashboard.
Software Defined Radio (SDR) turns RF into data your PC can plot and play. This repo is a Model Context Protocol server for RTL-SDR: live spectrum, waterfall, FM audio, station databases, and a GNU Radio demod sidecar. Works with Cursor, Claude Desktop, or the built-in React dashboard at http://127.0.0.1:11118/.
git clone https://github.com/sandraschi/sdr-mcp
cd sdr-mcp
just
This opens an interactive dashboard showing all available commands. Run just bootstrap to install dependencies, then just serve or just dev to start.
If you don't have just installed:
pip install sdr-mcp
sdr-mcp check # needs RTL-SDR + WinUSB on Windows, or use mock mode
sdr-mcp serve # STDIO for Claude Desktop
Windows + real dongle: replace the stick's DVB/TV USB driver with WinUSB via Zadig — see INSTALL.md. You are not replacing the hardware; only the driver Windows uses to talk to USB.
No dongle: mock mode activates automatically (SDR_MCP_MOCK=auto). FFT/waterfall still work.
See MOCK_SDR.md.
For the web dashboard:
cd web_sota
npm install
npm run dev
Or double-click web_sota\start.bat.
| Document | What it covers |
|---|---|
| INSTALL.md | Full setup, drivers, configuration |
| ARCHITECTURE.md | System design, data flow, transport |
| MCP_SERVER.md | Portmanteau MCP tools with examples |
| SDR_TECHNOLOGY.md | Radio basics for beginners |
| RTL_SDR_V4.md | Recommended hardware specs |
| GNURADIO.md | GNU Radio sidecar (Docker + rtl_tcp) |
| HACKRF.md | HackRF TX licensing + hardware buying guide |
| MOCK_SDR.md | Synthetic IQ demo mode (no dongle) |
| OSCILLOSCOPE_MCP.md | USB oscilloscope MCP feasibility |
New to SDR? Open the dashboard → Help (horizontal tabs) or read SDR_TECHNOLOGY.md.
sdr · software-defined-radio · rtl-sdr · mcp · mcp-server · fastmcp · gnuradio · spectrum-analyzer · waterfall · websocket · python · react · docker
See .github/REPOSITORY.md for gh repo edit commands.
Hardware Control
Spectrum Analysis
GNU Radio Demod (sidecar)
sdr_gnuradio for start/stop/statusFrequency Database
WebSocket Streaming
Real-time spectrum broadcast to web clients
Remote frequency/gain control via WebSocket commands
Canvas-based spectrum and waterfall visualizations
Web Dashboard — noob-friendly hero, tabbed Help, spectrum + waterfall + FM audio
Platform: Developed and tested on Windows (WinUSB via Zadig, fleet launchers, MCPB bundle). Core Python code may run on Linux with librtlsdr, but the dashboard launch scripts and MCPB manifest target Windows only.
Recommended: RTL-SDR Blog v4 (~$35)
Any RTL2832U-based SDR with R820T2 tuner works. See RTL_SDR_V4.md for full specs.
sdr-mcp/
├── README.md # This file
├── docs/ # Documentation
│ ├── INSTALL.md # Setup guide
│ ├── ARCHITECTURE.md # System design
│ ├── MCP_SERVER.md # Tool reference
│ ├── SDR_TECHNOLOGY.md # Radio primer
│ └── RTL_SDR_V4.md # Hardware specs
├── pyproject.toml # Python package config
├── justfile # Lint, fix, security recipes
├── start.ps1 # Launch backend + webapp
├── src/sdr_mcp/ # Python backend
│ ├── server.py # FastMCP server, 17 tools
│ ├── capture.py # RTL-SDR hardware interface
│ ├── processor.py # FFT / spectrum processing
│ ├── frequency_db.py # Station database
│ ├── online_db.py # radio-browser.info API
│ ├── websocket_server.py # Real-time WebSocket stream
│ ├── transport.py # STDIO / HTTP transport
│ └── cli.py # Command-line interface
├── web_sota/ # React/TypeScript webapp
│ └── src/
│ ├── pages/ # Spectrum, Waterfall, Stations, etc.
│ └── components/ # Layout, UI components
└── tests/ # Pytest test suite
| Layer | Technology |
|---|---|
| Protocol | FastMCP 3.4, MCP 2.14+ |
| Backend | Python 3.12, asyncio |
| Hardware | pyrtlsdr, RtlSdr |
| Signal | numpy, scipy (FFT) |
| Streaming | websockets (RFC 6455) |
| Frontend | React 19, TypeScript, Vite |
| UI | Tailwind CSS, Radix UI, Lucide icons |
| Standards | Fleet SOTA, ruff, Biome, just |
MIT