podcast_helper.mcp module

Podcast Helper: Model Context Protocol (MCP) surface.

A thin adapter that exposes the FastAPI app from podcast_helper.api as MCP tools, so any MCP-aware host (an agent runtime, an IDE integration, a custom shell) can call podcast-helper’s universal audio-stream-consumer operations (feed introspection, URL classification, PCM streaming, server-side archiving) as first-class tools — local files, direct audio URLs, RSS feed enclosures, and any yt-dlp-supported source, all with URL-in -> PCM-out semantics. Uses fastapi-mcp (https://github.com/tadata-org/fastapi_mcp): one wrapper publishes the whole existing HTTP surface, so the routes are never duplicated.

Install the extra to pull in fastapi-mcp:

pip install "podcast-helper[mcp]"

Then run the server (HTTP API + MCP endpoint at /mcp):

podcast-helper-mcp                 # console entry point
python -m podcast_helper.mcp       # equivalent

Author

Warith Harchaoui, Ph.D. — https://linkedin.com/in/warith-harchaoui/

podcast_helper.mcp.main()[source]

Console entry point (podcast-helper-mcp): serve the API + MCP endpoint.

Boots the FastAPI app (now serving both the plain HTTP routes and the /mcp MCP endpoint) with uvicorn in a single worker. Local-first: binds to loopback by default (override with PODCAST_HELPER_HOST / PODCAST_HELPER_PORT).

Return type:

None