cast-mcp
cast-mcp
독립형 HTTP MCP 서버로, 파일 시스템 라이브러리의 오디오북을 Google Cast 스피커로 전송합니다.
이 서비스는 에이전트용 MCP 도구와 물리적 기기용 일반 HTTP 엔드포인트를 모두 제공합니다. 오디오북은 기본적으로 ./media에서 읽어들이며, ffmpeg 기반의 서명된 세션 URL을 통해 스피커로 스트리밍됩니다.
또한 짧은 음성 메시지를 위한 완전 로컬 TTS도 포함되어 있습니다. Docker는 기본적으로 en_GB-jenny_dioco-medium 음성의 Piper를 사용하며, Piper가 실패하면 espeak-ng로 대체됩니다.
로컬 설정
bun install
cp .env.example .env
mkdir -p media data
bun run startRelated MCP server: sonos-mcp
Docker
cp .env.example .env
mkdir -p media data
docker compose up -d --buildDocker는 ./media를 /media:ro로, ./data를 /data로 마운트합니다.
라이브러리 구조
오디오북 파일을 어디에 둬야 하는지, 어떤 형식을 지원하는지에 대한 자세한 내용은 MEDIA.md를 참조하세요.
./media 아래의 각 폴더는 하나의 책으로 취급됩니다:
media/
the-hobbit/
metadata.json
001.mp3
002.mp3선택적 metadata.json:
{
"id": "the-hobbit",
"title": "The Hobbit",
"author": "J.R.R. Tolkien"
}현재 지원되는 입력 확장자는 .mp3, .m4a, .m4b, .aac, .wav, .flac, .ogg입니다. 스트림은 MP3로 트랜스코딩됩니다.
엔드포인트
GET /healthPOST /mcpGET /booksPOST /scanGET /speakersPOST /playPOST /sayPOST /stopGET /status/:speakerIdGET /media/stream?sessionId=...&sig=...GET /tts/:id?sig=...
구성된 경우 제어 엔드포인트에는 Authorization: Bearer <CONTROL_AUTH_TOKEN>이 필요합니다. MCP는 MCP_AUTH_TOKEN을 사용합니다.
OpenCode MCP 구성
{
"mcp": {
"cast-audio": {
"type": "remote",
"url": "http://127.0.0.1:4130/mcp",
"enabled": true,
"headers": {
"Authorization": "Bearer {env:CAST_MCP_TOKEN}"
}
}
}
}This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityCmaintenanceMCP server for ElevenReader TTS service. Enables document management, URL/ebook upload, voice configuration, and progress tracking.17MIT
- FlicenseNot gradedqualityBmaintenanceMCP server for controlling Sonos speakers. Currently early scaffolding with a temporary discover tool.
- AlicenseNot gradedqualityCmaintenanceEnables searching and retrieving audiobooks, authors, and tracks from LibriVox through an MCP interface.7MIT
- AlicenseNot gradedqualityAmaintenanceA Go MCP server for inspecting and safely operating Audiobookshelf libraries.MIT
Related MCP Connectors
MCP server exposing the AceDataCloud Fish Audio API (text-to-speech with voice conditioning)
MCP server for Project Gutenberg — 75,000+ public-domain ebooks with full plain-text retrieval.
MCP Server for Slima - AI Writing IDE for Novel Authors with AI Beta Reader.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/zapplebee/cast-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server