tkcaption logotkcaption
Dashboard⚡ Get Credits
Model Context Protocol (MCP) · Streamable HTTP

tkcaption MCP Server

Give Claude, Cursor, Windsurf, VS Code, or custom AI agents direct access to TikTok, YouTube, and YouTube Shorts transcripts, timestamps, hashtags, and creator video catalogs with zero API keys required.

Remote Endpoint

Endpoint URL: https://tkcaption.com/api/mcp · Protocol: 2025-03-26 / 2024-11-05 · Transport: Streamable HTTP (JSON-RPC 2.0)

Quick Connect Configurations

1. Cursor / Antigravity / VS Code (Native Streamable HTTP)

Add this block to .cursor/mcp.json or your IDE MCP configuration:

{
  "mcpServers": {
    "tkcaption": {
      "type": "http",
      "url": "https://tkcaption.com/api/mcp"
    }
  }
}

2. Claude Desktop (via mcp-remote stdio bridge)

Add this block to claude_desktop_config.json:

{
  "mcpServers": {
    "tkcaption": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://tkcaption.com/api/mcp"]
    }
  }
}

Available MCP Tools

extract_video_transcript

Extracts full spoken transcript, optional [MM:SS] timestamped segments, original creator caption, hashtags, and public video metrics from a TikTok or YouTube URL. Runs with zero LLM token consumption.

  • url (string, required): Public TikTok video/short URL (tiktok.com, vm.tiktok.com, vt.tiktok.com) or YouTube / Shorts URL (youtube.com, youtu.be).
  • includeTimestamps (boolean, optional, default false): Include formatted [MM:SS] transcript segments.
  • skipTranscript (boolean, optional, default false): Skip transcript extraction when you only need caption, hashtags, and stats.

list_creator_videos

Discovers recent public videos from a YouTube channel (@handle, channel URL, or UC... ID) or TikTok creator handle, returning clean URLs, titles, durations, and view counts.

  • handle (string, required): Creator @handle, YouTube channel URL, or UC... ID.
  • platform ("auto" | "youtube" | "tiktok", optional, default "auto").
  • limit (integer 1-15, optional, default 10): Number of recent videos to return.

Built-in Security & Abuse Defense

  • SSRF & URL Allowlist: Only validated TikTok and YouTube HTTP/HTTPS hostnames are permitted; private IPs, loopback addresses, and non-video URLs are rejected before network fetch.
  • Strict Schema & Payload Bounds: Requests are capped at 16 KB (max 5 JSON-RPC calls per batch), unknown tool arguments are rejected, and transcripts are sanitized and bounded to 30,000 characters to protect agent context windows.
  • Origin & Loop Protection: Untrusted browser cross-origin requests are blocked against DNS rebinding, and tool calls enforce burst (20/min), daily (120/24h), and concurrency (3 in-flight per IP) limits.
  • Zero Unauthenticated LLM Spend: Public MCP exposes deterministic extraction and channel discovery tools only, preventing automated AI loops from draining server LLM quotas.

Test with cURL

curl -s https://tkcaption.com/api/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "extract_video_transcript",
      "arguments": {
        "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
        "includeTimestamps": true
      }
    }
  }'

Prefer using the browser UI or exporting up to 30 videos to CSV in one click? Try our Batch CSV Workbench or YouTube Transcript Extractor.