Raspberry Pi Audio Control System
БесплатноНе проверенEnables remote control of audio playback and system volume on a Raspberry Pi via the Model Context Protocol (MCP).
Описание
Enables remote control of audio playback and system volume on a Raspberry Pi via the Model Context Protocol (MCP).
README
Cualquier modificación en el nombre del proyecto debe ser consultada.
A distributed audio management system based on the Model Context Protocol (MCP). This project allows you to remotely control audio playback and system volume on a target machine (e.g., a Raspberry Pi) via a standardized MCP interface.
🏗️ Architecture
The system is split into two main components:
server/: The MCP Server. It runs on the machine connected to the speakers. It exposes tools to play audio bytes, stop playback, manage volume, and play notification sounds.client/: A reference Python client that demonstrates how to send audio files and control commands to the server.
🚀 Quick Start
1. Server Setup
The server requires ffmpeg (for ffplay) to be installed on the host machine:
sudo apt install ffmpeg
2. Running the Server
For production:
python -m server.main
For development:
uv run mcp dev server/main.py
3. Client Usage
Once the server is running, you can use the client CLI:
# Play an audio file
python -m client.main play --file path/to/audio.mp3
# Stop playback
python -m client.main stop
# Play a notification sound (default)
python -m client.main notify
# Play a random notification sound
python -m client.main notify --random
🧪 Testing
It is highly recommended to run the integration tests to verify the audio processing and server logic.
# Set PYTHONPATH to include the current directory and run tests
export PYTHONPATH=$PYTHONPATH:.
python -m unittest discover tests
🛠️ Tech Stack
- Language: Python 3.11+
- Protocol: Model Context Protocol (MCP)
- Audio Backend:
ffplay(FFmpeg) - Package Management:
uv/pyproject.toml
📁 Project Structure
.
├── client/ # Reference MCP Client
│ ├── main.py # Client CLI entry point
│ ├── audio_client.py # Audio control logic
│ └── notification_client.py # Notification logic
├── server/ # MCP Server implementation
│ ├── audio/ # Audio playback and volume logic
│ │ ├── play.py # Base audio control
│ │ └── notify.py # Notification sounds logic
│ ├── image/ # Placeholder for image tools
│ └── video/ # Placeholder for video tools
└── tests/ # Integration tests
Установка Raspberry Pi Audio Control System
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/ChilindrinoBot/raspberry-pi-mcpFAQ
Raspberry Pi Audio Control System MCP бесплатный?
Да, Raspberry Pi Audio Control System MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Raspberry Pi Audio Control System?
Нет, Raspberry Pi Audio Control System работает без API-ключей и переменных окружения.
Raspberry Pi Audio Control System — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Raspberry Pi Audio Control System в Claude Desktop, Claude Code или Cursor?
Открой Raspberry Pi Audio Control System на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Omni Video
An MCP server that transforms LLM-enabled IDEs into professional video editors by pre-processing footage into text proxies, generating motion graphics via HTML/
автор: buildwithtazaARA
Generate images, video and audio from any AI agent — one connector.
автор: ARAYouTube
Transcripts, channel stats, search
автор: YouTubeEverArt
AI image generation using various models.
автор: modelcontextprotocolCompare Raspberry Pi Audio Control System with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории media
