Skip to main content
Glama
tkcaption-mcp

tkcaption-mcp

README.md
# tkcaption-mcp

Model Context Protocol (MCP) server for **[tkcaption](https://tkcaption.com)** — extract **TikTok, YouTube, and YouTube Shorts transcripts**, timestamped speech segments, original captions, hashtags, and creator video catalogs directly inside Claude, Cursor, Antigravity, VS Code, or custom AI agents.

- **Hosted Streamable HTTP Endpoint:** `https://tkcaption.com/api/mcp`
- **Documentation & Live Setup Guide:** [https://tkcaption.com/mcp](https://tkcaption.com/mcp)
- **Web Workbench & CSV Batch Export:** [https://tkcaption.com/batch](https://tkcaption.com/batch)

---

## Features

- **Zero API keys required:** Works immediately out of the box for public TikTok videos/short links and YouTube videos/Shorts.
- **Deterministic & Zero LLM Burn:** Runs deterministic extraction and RSS/public catalog lookup only, so agent loops never drain LLM tokens.
- **Built-in Security Guardrails:** Strict TikTok/YouTube URL allowlist (SSRF protection), 16 KB payload ceiling, per-IP rate & concurrency caps, and bounded 30,000-character output sanitization.

---

## Quick Connect

### Option 1: Native Streamable HTTP (Cursor, Antigravity, VS Code)

Add to your `.cursor/mcp.json` or IDE MCP settings:

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

### Option 2: Stdio Bridge via `npx` (Claude Desktop & Local MCP Clients)

No local cloning or dependencies required (Node.js 18+):

```json
{
  "mcpServers": {
    "tkcaption": {
      "command": "npx",
      "args": ["-y", "github:ericx0/tkcaption-mcp"]
    }
  }
}
```

*(Alternatively, `npx -y mcp-remote https://tkcaption.com/api/mcp` also works.)*

---

## Available Tools

### 1. `extract_video_transcript`

Extract the full spoken transcript, optional `[MM:SS]` timestamped segments, original author caption, hashtags, and public engagement metrics for a TikTok or YouTube URL.

| Parameter | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| `url` | `string` | Yes | Public TikTok (`tiktok.com`, `vm.tiktok.com`, `vt.tiktok.com`) or YouTube / Shorts (`youtube.com`, `youtu.be`) URL. |
| `includeTimestamps` | `boolean` | No | Include formatted `[MM:SS]` transcript segments (`false` by default). |
| `skipTranscript` | `boolean` | No | Skip speech/timedtext transcript lookup when only caption, hashtags, and stats are needed. |

### 2. `list_creator_videos`

List up to `15` recent public videos for a YouTube channel (`@handle`, channel URL, or `UC...` ID) or TikTok creator handle.

| Parameter | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| `handle` | `string` | Yes | Creator `@handle`, YouTube channel URL, or `UC...` channel ID. |
| `platform` | `"auto" \| "youtube" \| "tiktok"` | No | Platform hint (defaults to `"auto"`). |
| `limit` | `integer` (`1–15`) | No | Maximum videos to return (defaults to `10`). |

---

## Verify with cURL

```bash
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=jNQXAC9IVRw",
        "includeTimestamps": true
      }
    }
  }'
```

---

## License

MIT © [tkcaption](https://tkcaption.com)