Back to Home
Developer & Agent Protocol

Model Context Protocol (MCP) & API Docs

Connect Leksmedia directly into Claude Code, Cursor, or any autonomous agent stack to trigger real-time outlier detection, hook remixes, and multi-format script writing on demand.

Connect Claude Code in 1 Line

Run this in your local terminal. Your CLI agent can then query 48h YouTube velocity scores and generate 7-step hook sequences.

claude mcp add --transport http leksmedia https://leksmedia.com/api/v1/mcp --header "Authorization: Bearer leks_live_YOUR_API_KEY"

Cursor IDE Configuration

Add the following JSON into your Cursor mcp.json settings file:

{
  "mcpServers": {
    "leksmedia": {
      "url": "https://leksmedia.com/api/v1/mcp",
      "headers": {
        "Authorization": "Bearer leks_live_YOUR_API_KEY"
      }
    }
  }
}

Exposed Tools & Endpoints

• get_outlier_videos(niche?: string, minScore?: number)

Returns top videos in the last 48 hours where velocity exceeds channel baseline by 200%+ or 500%+.

• remix_7_step_hook(videoId: string, targetVoice?: string)

Generates the 7-step psychological hook remix without AI slop fragments.

• generate_production_script(videoId: string)

Generates full-length 8–12 min YouTube production script with B-roll cues, timestamps, and retention-engineered scene direction.