Skip to main content
Glama
README.md
# ReelToScript MCP Server

[![ReelToScript MCP connector](https://glama.ai/mcp/connectors/com.reeltoscript/reeltoscript/badges/score.svg)](https://glama.ai/mcp/connectors/com.reeltoscript/reeltoscript)

Give Claude Code, Cursor, Claude Desktop, or any MCP client a tool to extract spoken transcripts and scripts from public short-form and social videos.

- **Remote endpoint (Streamable HTTP):** `https://reeltoscript.com/api/mcp`
- **Docs & API keys:** [reeltoscript.com/mcp](https://reeltoscript.com/mcp)
- **Glama listing & quality score:** [glama.ai/mcp/connectors/com.reeltoscript/reeltoscript](https://glama.ai/mcp/connectors/com.reeltoscript/reeltoscript)
- **Stdio bridge:** Zero-dependency Node.js CLI included in this repo (`bin/reeltoscript-mcp.mjs`) for clients that only speak `stdio`.

## Supported Platforms

| Platform | What works | Formats returned |
| --- | --- | --- |
| **Instagram** | Public Reels and feed videos | `text`, `segments`, `srt`, `vtt` |
| **TikTok** | Public TikTok videos (including AI speech fallback when native captions are absent) | `text`, `segments`, `srt`, `vtt` |
| **Facebook** | Public Facebook videos and Reels | `text`, `segments`, `srt`, `vtt` |
| **Meta Ad Library** | Public video ads (`facebook.com/ads/library/?id=...`) — see [Facebook Ad Transcript](https://reeltoscript.com/facebook-ad-transcript) | `text` |
| **YouTube** | Public YouTube videos and YouTube Shorts | `text`, `segments`, `srt`, `vtt` |
| **X (Twitter)** | Public X/Twitter posts with video | `text`, `segments`, `srt`, `vtt` |

> Private accounts, expired stories, DM-only videos, and music-only clips with no speech return an error and cost nothing.

---

## Quick Start (Remote Streamable HTTP)

Most modern MCP clients connect straight to `https://reeltoscript.com/api/mcp` without installing anything locally.

1. Sign in at [reeltoscript.com](https://reeltoscript.com/mcp) and create an API key in **Settings → API keys** (starts with `rts_`).
2. Add the server to your client:

### Claude Code

```bash
claude mcp add --transport http reeltoscript https://reeltoscript.com/api/mcp \
  --header "Authorization: Bearer YOUR_API_KEY"
```

### Cursor

Add to `~/.cursor/mcp.json` (or `.cursor/mcp.json` in your project):

```json
{
  "mcpServers": {
    "reeltoscript": {
      "url": "https://reeltoscript.com/api/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_API_KEY"
      }
    }
  }
}
```

### Generic HTTP MCP Clients

Send JSON-RPC `POST` requests to `https://reeltoscript.com/api/mcp` with either:

- `Authorization: Bearer YOUR_API_KEY`, or
- `x-api-key: YOUR_API_KEY`

---

## Stdio Bridge (Claude Desktop & stdio-only clients)

If your MCP client only supports local `stdio` commands (Node.js >= 18 required, zero dependencies):

```bash
git clone https://github.com/yanhua1010/reeltoscript-mcp.git
```

Or run directly via `npx` from GitHub:

```json
{
  "mcpServers": {
    "reeltoscript": {
      "command": "npx",
      "args": ["-y", "github:yanhua1010/reeltoscript-mcp"],
      "env": {
        "REELTOSCRIPT_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}
```

If you cloned the repo locally, point `command` to `node` and `args` to `/path/to/reeltoscript-mcp/bin/reeltoscript-mcp.mjs`.

### Docker (stdio)

```bash
docker build -t reeltoscript-mcp .
docker run -i --rm -e REELTOSCRIPT_API_KEY=YOUR_API_KEY reeltoscript-mcp
```

## Glama MCP Server

Browse the tool schemas, check the endpoint health score, or inspect the server online via Glama:

- **Glama Connector:** [glama.ai/mcp/connectors/com.reeltoscript/reeltoscript](https://glama.ai/mcp/connectors/com.reeltoscript/reeltoscript)
- **Glama Server Directory:** [glama.ai/mcp/servers/yanhua1010/reeltoscript-mcp](https://glama.ai/mcp/servers/yanhua1010/reeltoscript-mcp)

---

## Tools Reference

### `get_transcript`

Get the spoken transcript of a public video URL.

**Inputs:**

- `url` (string, required): Public Instagram, TikTok, Facebook, Meta Ad Library, YouTube, or X video URL.
- `format` (string, optional): One of `text` (default), `segments`, `srt`, `vtt`.

**Example response (`format: "text"`):**

```json
{
  "platform": "Instagram",
  "url": "https://www.instagram.com/reel/Dd1gQBsCWE8/",
  "language": "en",
  "words": 94,
  "credits_spent": 0,
  "free_transcripts_left_today": 2,
  "credits_left": 30,
  "text": "This asteroid, 2024YR4, might get interesting..."
}
```

When `format` is `segments`, the response includes `segments` (array of `{ start, end, text }` in milliseconds) alongside `text`. When `format` is `srt` or `vtt`, it returns `srt` or `vtt` subtitle text.

### `get_account`

Check how many daily free transcripts remain today and your credit balance.

**Inputs:** `{}` (no parameters)

**Example response:**

```json
{
  "free_transcripts_left_today": 3,
  "free_transcripts_per_day": 3,
  "credits_total": 30,
  "credits_from_packs": 30,
  "credits_this_month": 0,
  "monthly_renews_at": null,
  "credit_rule": "1 credit per started 5 minutes of video",
  "buy_credits": "https://reeltoscript.com/pricing"
}
```

---

## Example Workflows for AI Agents

1. **Meta Ad Library Competitor Hook Breakdown**
   > *"Fetch the transcript for these 5 Meta Ad Library URLs (`facebook.com/ads/library/?id=...`), extract the opening hook, offer, and CTA from each, and summarize the patterns."*
2. **Creator Reels / TikTok Swipe File**
   > *"Call `get_transcript` with `format: "segments"` on these 10 Instagram Reels and compare how many seconds each creator takes before delivering the main payoff."*
3. **Short Video to Thread / Newsletter**
   > *"Get the transcript of this TikTok video and rewrite the key points into a structured 5-post thread without keeping filler words."*

---

## Pricing & Limits

MCP calls share the exact same balance and rules as [reeltoscript.com](https://reeltoscript.com/pricing):

- **3 free transcripts every day** with any free account.
- **1 credit per started 5 minutes** of video after daily free transcripts are used (credit packs start at **$5 for 30 credits**, never expire).
- **7-day free re-fetch:** Requesting a video you already transcribed in the last 7 days is free.
- **Failed fetches cost nothing:** Private, deleted, or music-only clips never deduct credits.
- **Rate limit:** Up to 60 requests per minute per API key.

Looking for one-click transcripts directly while browsing? Check out the [ReelToScript Chrome Extension](https://reeltoscript.com/chrome-extension).

---

## Verify Live Endpoint

You can inspect the available tools without an API key using `tools/list`:

```bash
curl -s https://reeltoscript.com/api/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
```

## License

MIT — see [LICENSE](./LICENSE).

TDQS

A4.1/5.0

Scored across 2 tools

Disambiguation5/5

The two tools serve entirely separate purposes: get_transcript fetches video transcripts, while get_account reports quota and credit balance. There is no overlap in resource or action, so an agent cannot misselect.

Naming Consistency5/5

Both tools use the same get_<noun> snake_case pattern, giving a predictable and readable convention. Output variants (segments, SRT, VTT) are handled as parameters rather than separate tools, keeping naming clean.

Tool Count4/5

Two tools is thin in absolute terms, but the server has a deliberately narrow scope: transcribe a video and check account status. Each tool clearly earns its place, though a slightly richer surface (e.g. batch fetch) would justify more.

Completeness4/5

The core workflow is fully covered: fetch a transcript in multiple formats and verify remaining free transcripts/credits, with caching and failure semantics described. Only minor conveniences like batch transcription or transcript history are absent, and agents can work around those.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues