Patefona MCP Server
OfficialThis server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
24/7 public-domain literary radio, 1948 KVN-49 HLS television, and stateless MCP server powering patefona.com. Every broadcast slot is anchored to the book, chapter, and scene where that piece of music is named, quoted, or heard.
This repository ships the complete station engine (code, DSP filters, WebGL/WebAudio front-end, deployment units, and a 5-track public-domain fixture under examples/). Audio archives and production schedules live outside Git.
Architecture
examples/ or host library
├─ station.json + catalog.json + jingles.json
│ │
│ ▼
├─ Deterministic Clock (app/rotator/)
│ ├─ SHA-256 hash-chained slots & day heads from epoch
│ ├─ Seeded weighted draw: key = -ln(u)/w, daypart & 7/14-day burn guards
│ ├─ 1/16 s binary-exact qsin crossfades + :00 Greenwich pips & :30 Westminster chimes
│ └─ Companion bernstein-broadcast manifests (examples/bernstein-*.json) for asrun.jsonl & run-receipt/v1 attestation
│
├─ Radio Playout & DSP Bus (app/radio/)
│ ├─ Static cue/LUFS gain + mono/antiphase layout repair → f32le PCM
│ ├─ Clean mount (/radio.mp3): -17 LUFS target, 28 Hz HPF, 4× oversampled -1.5 dBTP limiter
│ ├─ Valve mount (/radio-warm.mp3): sample-aligned 4× asymmetric tanh 1926 tube stage + 12 kHz shelf
│ ├─ Kids 0+ mount (/radio-kids.mp3) + CF-IPCountry EU/World rights-scope edge router
│ └─ Aircheck monitor (silencedetect JSONL + Prometheus metrics)
│
├─ KVN-49 1948 Television (app/tv/)
│ ├─ Offline segment renderer (nice 19): shadow-lifted 1948 kinescope curve, scanlines, corner bug
│ └─ Dual -c copy supervisor (<1% CPU): live.m3u8 (960×720 H.264) + audio.m3u8 (AAC-LC 128k)
│
└─ Web Cabinet & Stateless MCP (app/site/ · app/mixer/)
├─ 3 cabinets × 3 eras, WebGL barrel-CRT shader, 6-stage Web Audio Background Mode
├─ Stateless Streamable HTTP MCP (POST /mcp, SEP-1649 /.well-known/mcp.json, stdlib only)
└─ Quota-guarded literary shelf mixer (/api/mix) + HMAC-SHA256 double opt-in (/api/mix/subscribe)Technical Subsystems
Subsystem | Implementation | Key Invariants |
Deterministic Broadcast Clock |
|
|
|
| Pre-measured cue points and integrated loudness ( |
6-Stage Background Mode |
| Client-side Web Audio API externalization chain for reading/work: Mid/Side matrix, ITD + head-shadow crossfeed, air-absorption high shelf, early reflections, velvet-noise room IR convolution, and gentle bus compression. |
KVN-49 HLS Television |
| Effects are baked offline ( |
Stateless MCP Server |
| Zero-dependency Python stdlib JSON-RPC 2.0 handler ( |
Related MCP server: internet-radio-mcp
Quickstart (Offline, 5-Track Public-Domain Fixture)
Requires Python 3.12+ (and pytest to run the test runner; ffmpeg/ffprobe optional for live audio-render tests, node optional for the localization gate). No API keys or network access are needed.
# 1. Run the full unit, integration, and 5-track fixture test suite
pytest
# 2. Compile and verify a 3-day deterministic hash-chained schedule from examples/
python3 -I app/rotator/rotator.py \
--station examples/station.json \
--catalog examples/catalog.json \
--out /tmp/patefona-example-schedule \
build --days 3 --from 2026-12-01
python3 -I app/rotator/rotator.py \
--station examples/station.json \
--catalog examples/catalog.json \
--out /tmp/patefona-example-schedule \
verify
# 3. Inspect what airs at a given UTC timestamp and run the habitual-listener audit
python3 -I app/rotator/rotator.py \
--station examples/station.json \
--catalog examples/catalog.json \
--out /tmp/patefona-example-schedule \
now --at 2026-12-01T19:30:00Z
# 4. Run the bilingual UI localization & hardcoded-Cyrillic gate (requires Node.js)
node app/site/test_i18n.mjsCompanion Manifests for bernstein-broadcast
While app/rotator/rotator.py compiles and verifies the live schedules in this repository (app/deploy/schedule_keeper.py), examples/bernstein-station.json and examples/bernstein-catalog.json expose the same 5-track public-domain fixture in bernstein-broadcast schema for external schedule compilation, asrun.jsonl reconciliation, and Ed25519 run-receipt/v1 day attestation:
bernstein-broadcast compile --station examples/bernstein-station.json --out /tmp/patefona-bernstein --days 3
bernstein-broadcast verify --station examples/bernstein-station.json --out /tmp/patefona-bernsteinRepository Layout
Path | Purpose |
| Deterministic hash-chained schedule compiler, |
| Continuous |
| 24/7 1948 kinescope HLS & optional RTMP playout supervisor, offline FFmpeg renderer, systemd units, and nginx origin config. |
| Stateless Streamable HTTP MCP server ( |
| Vanilla ES-module web cabinet ( |
| Unprivileged |
| Self-contained 5-track public-domain literary catalog & station manifests ( |
| End-to-end integration tests exercising |
License & Security
Code: Apache License 2.0. Bundled third-party font and shader notices are documented in
NOTICEandapp/site/THIRD_PARTY.md.Security & Attribution Reports: See
SECURITY.md(concerns@patefona.com).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
What's on Static Radio's live stations now and next, with show links and listen links. Read-only.
Audio, music, video, image, PDF, speech, text and web-check tools callable from any MCP client.
Audio, music, video, image, PDF, speech, text and web-check tools callable from any MCP client.
Control your internet radio from any AI client: listeners, stream, playlists, AutoDJ, DJs, store.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables managing a PCRadio Internet radio device via its HTTP API, including playback, channels, volume, EQ, sound effects, user stations, alarms, NTP servers, and timezone settings through Streamable HTTP.-
- AlicenseAqualityBmaintenanceEnables MCP clients such as Claude, Cursor, and VS Code Copilot to search more than 50,000 internet radio stations by name, genre, country, or language and retrieve their direct stream URLs. It also surfaces the most popular and trending stations along with country and genre listings, with no API key or account required.559 npm1MIT
- AlicenseNot gradedqualityCmaintenanceExposes task and note management, focus-plan creation, and daily workspace summaries as MCP tools over Streamable HTTP for compatible clients.1MIT
- AlicenseNot gradedqualityCmaintenanceProvides a stateless Streamable HTTP MCP endpoint with 16 tools for browsing, searching, reading, writing, organizing, importing, and linking files across a read-only drive and writable workspace, including moving items between views and publishing or syncing changes back.MIT