Skip to main content
Glama

Unwatched MCP Server

A Model Context Protocol (MCP) server for Unwatched that lets AI agents read YouTube videos through the Unwatched REST API. It exposes the API's video-reading features as eight MCP tools: subtitles with timestamps, available subtitle tracks, video metadata, frames at given seconds, transcript translation, AI article summaries, search over already-generated articles, and the remaining credit balance.

The server runs locally over stdio via npx, or a Streamable HTTP client can connect to the hosted endpoint once it is available.

Requirements

Related MCP server: YouTube for AI Agents

Quick Start

Claude Code

claude mcp add unwatched --env UNWATCHED_API_KEY=unw_sk_your_key -- npx -y unwatched-click-mcp

Verify the connection with claude mcp list.

Claude Desktop

Open claude_desktop_config.json:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

Add the server:

{
  "mcpServers": {
    "unwatched": {
      "command": "npx",
      "args": ["-y", "unwatched-click-mcp"],
      "env": {
        "UNWATCHED_API_KEY": "unw_sk_your_key"
      }
    }
  }
}

Cursor

Open ~/.cursor/mcp.json (global) or .cursor/mcp.json (project-level) and add the same mcpServers block as in the Claude Desktop example.

Windsurf

Open ~/.codeium/windsurf/mcp_config.json (Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json) and add the same mcpServers block as in the Claude Desktop example.

Other MCP clients

The server uses the standard MCP stdio transport: launch it with command npx, arguments -y unwatched-click-mcp, and the environment variable UNWATCHED_API_KEY set to your API key.

Hosted server (Streamable HTTP)

The hosted option is planned at:

https://mcp.unwatched.click/mcp

It is not live yet; until it is, use the local stdio option above. Once available, it will use the Streamable HTTP transport with your API key in the Authorization: Bearer header. With Claude Code:

claude mcp add --transport http unwatched --url https://mcp.unwatched.click/mcp --header "Authorization: Bearer unw_sk_your_key"

For clients configured by JSON, set the server URL to https://mcp.unwatched.click/mcp and add the request header Authorization: Bearer <your API key>.

Getting an API key

Sign in at https://unwatched.click and open https://unwatched.click/en/developer/keys. Create a key and pass it to the server as UNWATCHED_API_KEY (stdio) or in the Authorization header (hosted and self-hosted HTTP). If a key leaks, revoke it on the same page.

Tools

Tool

Description

Cost

get_video_subtitles

Fetch the subtitle transcript of a YouTube video as timestamped lines. Accepts a video URL or an 11-character video id, with an optional language code.

Charged on the first fetch of a video and language; repeat fetches are served from cache and are free.

list_subtitle_tracks

List the subtitle languages available for a video, including whether each track is auto-generated and its extraction quality.

Free

get_video_info

Title, duration, thumbnail URL and publish date of a video.

Free

get_video_frame

Extract still frames at given timestamps (in seconds) and return them as images with stable URLs, for reading on-screen text, slides and charts. Batch the timestamps into one call.

Charged per newly extracted frame; a timestamp extracted before is free.

translate_transcript

Translate an already-fetched transcript into another language, keeping timestamps. Run get_video_subtitles for the source language first.

Charged per hour of video; cached translations are free.

summarize_video

Generate a structured article from a video — title, intro, sections, key points, conclusion — in the requested language. Slower than get_video_subtitles; prefer the subtitles tool when you only need the raw text.

Charged per hour of video; an already-generated article is returned free.

search_articles

Search the articles already generated on unwatched.click by title text, category and language. Use it before summarize_video to check whether a video has already been processed.

Free

get_credit_balance

Remaining pay-as-you-go credits on the account the API key belongs to.

Free

Pricing

Unwatched is pay-as-you-go: you buy credits and the tools marked as charged above spend them. One credit costs $0.01. Free tools and cache hits cost nothing. Call get_credit_balance at any time to check the remaining credits. Current prices per operation: https://unwatched.click/en/pricing

Configuration

Environment variable

Required

Default

Description

UNWATCHED_API_KEY

Yes

—

Unwatched API key (unw_sk_...). Create one at https://unwatched.click/en/developer/keys.

UNWATCHED_API_BASE

No

https://api.unwatched.click

Base URL of the Unwatched REST API.

MCP_TRANSPORT

No

stdio

Transport to serve: stdio or http.

PORT

No

3002

Port to listen on in http mode.

GLAMA_CLAIM_TOKEN

No

—

Claim token for the Glama directory listing of the hosted deployment. Not used in local stdio mode.

MCPRUSH_CLAIM_TOKEN

No

—

Claim token for the MCPRush directory listing of the hosted deployment. Not used in local stdio mode.

A template is provided in .env.example.

Local development

git clone https://github.com/unwatched-click/mcp-server.git
cd mcp-server
npm ci
npm run build
npm test
UNWATCHED_API_KEY=unw_sk_your_key npm run inspect

npm run inspect starts the MCP Inspector against the built server; build first and have an API key ready.

Self-hosting (Streamable HTTP)

The server can serve the Streamable HTTP transport instead of stdio:

npm ci
npm run build
MCP_TRANSPORT=http PORT=3002 node build/index.js

npm run http does the same. The server listens on PORT (default 3002) and expects the same Authorization: Bearer <API key> header as the hosted deployment. Point a Streamable HTTP MCP client at it.

With Docker:

docker build -t unwatched-click-mcp .
docker run -i --rm -e UNWATCHED_API_KEY=unw_sk_your_key unwatched-click-mcp

For the HTTP transport with Docker, also pass -e MCP_TRANSPORT=http -p 3002:3002 (and -e PORT=... if you change the port).

Security

Treat your API key as a secret: pass it through environment variables or your MCP client's secret storage, and never commit it. See SECURITY.md for how to report vulnerabilities.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers