npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@twick/mcp-agent

v0.15.7

Published

MCP server for Claude Desktop that generates video captions using Google Vertex AI and integrates with Twick Studio

Readme

MCP Twick Server

An MCP (Model Context Protocol) server for Claude Desktop that generates video captions using Google Vertex AI (Gemini) and integrates with Twick Studio.

📦 Installation

Quick Install (Recommended)

git clone https://github.com/ncounterspecialist/twick.git
cd twick/packages/agents/mcp-agent
npm run install-claude

This will automatically install dependencies, build the project, and configure Claude Desktop.

See SHIPPING.md for distribution options and release information.

Features

  • 🎬 Video Transcription: Transcribe videos from public URLs using Google Vertex AI
  • 🌍 Multi-language Support: Support for multiple languages and fonts
  • 📝 Subtitle Generation: Generate timed subtitle files in Twick Studio format
  • 🔗 Twick Studio Integration: Direct upload and link generation for Twick Studio
  • 📦 Claude Desktop Extension: Easy one-click installation

Prerequisites

  • Node.js 18+ and npm
  • Google Cloud Platform account with:
    • Vertex AI API enabled
    • Service account key file (gcp-sa-key.json)
  • Claude Desktop installed

Quick Installation (One-Click)

npm run install-claude

This will:

  1. Install all dependencies
  2. Build the TypeScript project
  3. Automatically merge the MCP server config into your Claude Desktop configuration

Manual Installation

  1. Clone and install dependencies:

    git clone https://github.com/ncounterspecialist/twick.git
    cd twick/packages/agents/mcp-agent
    npm install
  2. Build the project:

    npm run build
  3. Configure Claude Desktop:

    • Open Claude Desktop settings
    • Go to "MCP Servers" section
    • Click "Import config from file"
    • Select claude_desktop_config.json from this project
    • Edit the environment variables with your values (see Configuration below)
  4. Restart Claude Desktop

Configuration

Edit the twick-mcp-agent section in your Claude Desktop config file:

Windows:

%APPDATA%\Claude\claude_desktop_config.json

macOS:

~/Library/Application Support/Claude/claude_desktop_config.json

Linux:

~/.config/Claude/claude_desktop_config.json

Required Environment Variables

  • GOOGLE_CLOUD_PROJECT: Your GCP project ID
  • GOOGLE_CLOUD_LOCATION: GCP location (default: "global")
  • GOOGLE_APPLICATION_CREDENTIALS: Absolute path to your gcp-sa-key.json file

Optional Environment Variables

  • GOOGLE_VERTEX_MODEL: Vertex AI model name (default: "gemini-2.5-flash-lite")
  • UPLOAD_API_URL: Your upload API endpoint for uploading project files
  • TWICK_STUDIO_URL: Twick Studio URL with $project placeholder (e.g., https://studio.example.com?project-file=$project)

Example Configuration

{
  "mcpServers": {
    "twick-mcp-agent": {
      "command": "node",
      "args": ["C:\\path\\to\\mcp-agent\\dist\\stdio-server.js"],
      "env": {
        "GOOGLE_CLOUD_PROJECT": "my-gcp-project",
        "GOOGLE_CLOUD_LOCATION": "global",
        "GOOGLE_APPLICATION_CREDENTIALS": "C:\\path\\to\\mcp-agent\\gcp-sa-key.json",
        "GOOGLE_VERTEX_MODEL": "gemini-2.5-flash-lite",
        "UPLOAD_API_URL": "https://api.example.com/upload",
        "TWICK_STUDIO_URL": "https://studio.example.com?project-file=$project"
      }
    }
  }
}

Usage

Once installed, the generate-subtitles tool will be available in Claude Desktop. You can use it like:

Generate subtitless for this video: https://example.com/video.mp4

Or with specific language settings:

Generate subtitless for https://example.com/video.mp4 in Spanish with Spanish font

Tool Parameters

  • videoUrl (required): Publicly accessible video URL
  • language (optional): Target language for transcription (default: "english")
  • language_font (optional): Font/script for subtitles (default: "english")

Project Structure

mcp-agent/
├── dist/                 # Compiled JavaScript (generated)
├── src/                  # TypeScript source files
├── stdio-server.ts       # Main MCP server entry point
├── transcriber.ts        # Video transcription logic
├── utils.ts              # Utility functions
├── claude_desktop_config.json  # Claude Desktop config template
├── install.js            # Installation script
├── package.json
└── README.md

Development

# Install dependencies
npm install

# Build TypeScript
npm run build

# Run in development mode
npm run dev

Troubleshooting

Server not appearing in Claude Desktop

  1. Check that the config file path is correct
  2. Verify all environment variables are set
  3. Check Claude Desktop logs for errors
  4. Ensure dist/stdio-server.js exists (run npm run build)

Transcription errors

  1. Verify your GCP credentials are valid
  2. Check that Vertex AI API is enabled in your GCP project
  3. Ensure the video URL is publicly accessible
  4. Check that you have sufficient GCP quota

Upload/Studio link issues

  • If UPLOAD_API_URL is not set, the tool will return the project as a downloadable JSON file
  • If TWICK_STUDIO_URL is not set, only the upload result will be returned
  • The $project placeholder in TWICK_STUDIO_URL will be automatically replaced with the encoded project URL

License

ISC