Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables natural language control of a live GNU Radio SDR flowgraph, allowing users to tune frequencies, adjust gain, capture IQ samples, analyze spectra, and detect signals through an MCP-compatible client.

README.md

GNU Radio MCP Server

![PyPI version](https://pypi.org/project/gnuradio-mcp-server/) ![Python Versions](https://pypi.org/project/gnuradio-mcp-server/) ![License: MIT](https://opensource.org/licenses/MIT)

An MCP (Model Context Protocol) server that bridges an LLM to a live GNU Radio SDR flowgraph. Control your software-defined radio — tune frequencies, adjust gain, capture IQ samples, analyse spectra, and sweep for signals — all through natural language via any MCP-compatible client.

Architecture

┌─────────────┐      MCP (stdio / HTTP)      ┌──────────────────┐
│   LLM /     │◄──────────────────────────────►│  gnuradio_mcp    │
│   Claude    │        tool calls &            │  MCP Server      │
│   Desktop   │        responses               │                  │
└─────────────┘                                └──┬──────────┬───┘
                                                  │          │
                                    XML-RPC       │          │  ZMQ SUB
                                    (control)     │          │  (IQ data)
                                                  ▼          ▼
                                            ┌────────────────────┐
                                            │    GNU Radio       │
                                            │    Companion       │
                                            │    Flowgraph       │
                                            │  ┌──────────────┐  │
                                            │  │ XMLRPC Server │  │
                                            │  │ ZMQ PUB Sink  │  │
                                            │  └──────────────┘  │
                                            └────────┬───────────┘
                                                     │
                                                     ▼
                                            ┌────────────────────┐
                                            │  SDR Hardware      │
                                            │  (HackRF / RTL-SDR │
                                            │   / USRP / Sim)    │
                                            └────────────────────┘

Quick Start (Simulation — No Hardware)

pip install gnuradio-mcp-server

# Open simulation_mcp.grc in GNU Radio Companion and click Run
# (provides two test tones at +10 kHz and +50 kHz from center)

gnuradio-mcp

Quick Start (HackRF)

pip install gnuradio-mcp-server

# Open hackrf_mcp.grc in GNU Radio Companion and click Run & ensure HackRF is connected

GNURADIO_HARDWARE=hackrf gnuradio-mcp

Claude Desktop Integration

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "gnuradio_mcp": {
      "command": "gnuradio-mcp",
      "args": [],
      "env": {
        "GNURADIO_HARDWARE": "hackrf",
        "GNURADIO_GR_HOST": "127.0.0.1",
        "GNURADIO_GR_XMLRPC_PORT": "8080",
        "GNURADIO_GR_ZMQ_PORT": "5555"
      }
    }
  }
}

For HTTP transport:

{
  "mcpServers": {
    "gnuradio_mcp": {
      "url": "http://127.0.0.1:8000/mcp",
      "transport": "streamable-http"
    }
  }
}

Tools Reference

| # | Tool Name | Description | Read-Only | |----|------------------------------------|-----------------------------------------------------|-----------| | 1 | gnuradio_flowgraph_start | Start the GNU Radio flowgraph | No | | 2 | gnuradio_flowgraph_stop | Stop the GNU Radio flowgraph | No | | 3 | gnuradio_flowgraph_status | Get flowgraph status and current parameters | Yes | | 4 | gnuradio_set_center_frequency | Set the SDR center frequency | No | | 5 | gnuradio_set_sample_rate | Set the SDR sample rate | No | | 6 | gnuradio_set_gain | Set the SDR gain (IF/RF/BB stages) | No | | 7 | gnuradio_set_variable | Set an arbitrary flowgraph variable | No | | 8 | gnuradio_get_variable | Read an arbitrary flowgraph variable | Yes | | 9 | gnuradio_list_variables | List all flowgraph variables | Yes | | 10 | gnuradio_capture_samples | Capture IQ samples and return a power summary | Yes | | 11 | gnuradio_get_spectrum_snapshot | FFT/PSD analysis with peak detection | Yes | | 12 | gnuradio_detect_signals | Sweep a frequency range and detect active signals | Yes | | 13 | gnuradio_ping | Health check (XML-RPC + ZMQ connectivity) | Yes |

Environment Variables

All variables use the GNURADIO_ prefix:

| Variable | Default | Description | |------------------------------|---------------|--------------------------------------| | GNURADIO_GR_HOST | 127.0.0.1 | GNU Radio host address | | GNURADIO_GR_XMLRPC_PORT | 8080 | XML-RPC server port | | GNURADIO_GR_ZMQ_PORT | 5555 | ZMQ PUB sink port | | GNURADIO_GR_XMLRPC_TIMEOUT| 5 | XML-RPC timeout in seconds | | GNURADIO_GR_ZMQ_TIMEOUT_MS| 3000 | ZMQ receive timeout in ms | | GNURADIO_HARDWARE | hackrf | Hardware type: hackrf/rtlsdr/usrp/simulation | | GNURADIO_FREQ_MIN_HZ | 1000000 | Minimum tunable frequency (Hz) | | GNURADIO_FREQ_MAX_HZ | 6000000000 | Maximum tunable frequency (Hz) | | GNURADIO_GAIN_MIN_DB | 0 | Minimum gain (dB) | | GNURADIO_GAIN_MAX_DB | 62 | Maximum gain (dB) | | GNURADIO_SAMP_RATE_MIN | 100000 | Minimum sample rate (sps) | | GNURADIO_SAMP_RATE_MAX | 20000000 | Maximum sample rate (sps) | | GNURADIO_DEFAULT_SAMP_RATE| 2000000 | Default sample rate for DSP | | GNURADIO_TRANSPORT | stdio | Transport: stdio / streamable_http | | GNURADIO_HTTP_PORT | 8000 | HTTP transport port |

Edge Cases & Known Limitations

  1. Sample rate restart: Some SDR hardware (especially RTL-SDR) requires a flowgraph restart after changing the sample rate. The gnuradio_set_sample_rate tool includes a warning about this.
  1. ZMQ dtype requirement: The ZMQ PUB Sink in your flowgraph must output complex64 (8 bytes per sample). Misaligned data will raise a GRHardwareError.
  1. Frequency clamping: Frequencies outside the configured [freq_min_hz, freq_max_hz] range are rejected before being sent to hardware. Adjust the env vars for your specific hardware.
  1. Context overflow warning: Capturing more than 65,536 IQ samples triggers a warning, as the response summary may still be large. Use gnuradio_get_spectrum_snapshot for analysed results instead.
  1. XML-RPC not thread-safe: A new ServerProxy is created per RPC call to avoid shared-state bugs in async contexts.
  1. ZMQ socket lifecycle: Each recv_samples call opens and closes its own ZMQ SUB socket. This is intentional — the slight overhead avoids shared-socket state issues.

Development

# Install in development mode
pip install -e ".[dev]"

# Run tests
pytest tests/ -v

# Run with HTTP transport
GNURADIO_TRANSPORT=streamable_http python -m gnuradio_mcp.server

License

MIT

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Other servers.