YouTube Music MCP
Enables managing YouTube Music playlists and searching songs via the YouTube Data API v3, deployed as a free Cloudflare Worker.
README
YouTube Music MCP — Cloudflare Worker (free)
A purpose-built remote MCP server that runs on a genuinely free Cloudflare
Worker (no card required) using Cloudflare's official OAuth-for-MCP pattern
(@cloudflare/workers-oauth-provider + agents' McpAgent, both backed by
a free-tier SQLite Durable Object + a free KV namespace).
It exposes 8 tools to Claude: search_youtube_music, list_playlists,
get_playlist_items, create_playlist, edit_playlist, delete_playlist,
add_song_to_playlist, remove_song_from_playlist.
This is a from-scratch, YouTube Data API v3-only implementation — it does not include the original repo's Spotify-based recommendations or Postgres- backed adaptive playlist history, since those need paid infrastructure.
Prerequisites
- Node.js installed locally (or use
npxwithout a global install) - A GitHub account (to hold this code)
- Your Cloudflare account
Setup
-
Get the code into your own GitHub repo. Done — this repo is it.
-
Install dependencies (from your machine, in the repo folder):
npm install ``` Then run `npm run type-check` before deploying. Also run `npx wrangler types` once — it regenerates the `Env` type from your actual `wrangler.jsonc` bindings/secrets, which is more reliable than the hand-written `src/env.d.ts` I included as a placeholder (safe to delete `src/env.d.ts` once you've done this). 3. **Create the KV namespace:** ``` npx wrangler kv namespace create OAUTH_KV ``` This prints an `id`. Paste it into `wrangler.jsonc` in place of the placeholder. 4. **Set secrets** (these prompt you interactively — nothing typed into chat): ``` npx wrangler secret put GOOGLE_CLIENT_ID npx wrangler secret put GOOGLE_CLIENT_SECRET npx wrangler secret put COOKIE_ENCRYPTION_KEY ``` For `COOKIE_ENCRYPTION_KEY`, generate a random value first, e.g. `openssl rand -hex 32`. 5. **Google Cloud Console — OAuth client:** - Application type: **Web application** - Authorized redirect URI: `https://<your-worker-name>.<your-subdomain>.workers.dev/callback` 6. **Deploy:** ``` npx wrangler deploy ``` This gives you your live URL, e.g. `https://youtube-music-mcp.<your-subdomain>.workers.dev`. 7. Go back to Google Cloud Console and add the exact redirect URI from step 6 (`.../callback`) to the OAuth client's Authorized redirect URIs. 8. **Connect it to Claude:** the MCP endpoint is `https://<your-worker>.<your-subdomain>.workers.dev/mcp`. ## Local development (optional) ``` npx wrangler dev ``` Runs at `http://localhost:8788`. ## Why no Spotify / Postgres requirement Those were hard requirements in the original repo purely due to how its startup validation was written, not because they're needed for core playlist management. This version only needs Google credentials.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.