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

@iflow-mcp/fal-mcp-server

v1.0.0

Published

MCP server for Luma video generation

Readme

AI Video Generator MCP Server

このMCP(Model Context Protocol)サーバーは、AI画像生成モデルを使用してテキストプロンプトや画像から動画を生成するツールを提供します。

対応モデル

  • Luma Ray2 Flash - Lumaの最先端画像→動画変換モデル
  • Kling v1.6 Pro - Klingの高品質画像→動画変換モデル

機能

  • テキストプロンプトからの動画生成
  • 開始および/または終了画像を使用した動画生成
  • 動画パラメータのコントロール(アスペクト比、解像度、長さ、ループ)
  • 生成ステータスの確認
  • 使用するAIモデルの選択

インストール

  1. このリポジトリをクローンします
  2. 依存関係をインストールします:
    npm install
  3. .envファイルを作成し、FAL.AI APIキーを設定します:
    FAL_KEY=your_fal_key_here
    APIキーはFAL.AIから取得できます

サーバーのビルド

npm run build

サーバーの実行

サーバーを直接実行できます:

npm start

Claude Desktopとの統合

このサーバーをClaude Desktopで使用するには、claude_desktop_config.jsonファイルに次のように追加します:

{
  "mcpServers": {
    "video-generator": {
      "command": "node",
      "args": ["your_install_path/fal-mcp-server/build/index.js"],
      "env": {
        "FAL_KEY": "your_fal_key_here"
      }
    }
  }
}

利用可能なツール

generate-video

AIモデルを使用してテキストプロンプトおよび/または画像から動画を生成します。

パラメータ:

  • prompt (必須): 生成したい動画の内容のテキスト説明
  • image_url (オプション): 動画の開始画像URL(URLまたはbase64データURI)
  • end_image_url (オプション): 動画の終了画像URL(URLまたはbase64データURI)
  • aspect_ratio (デフォルト "16:9"): 動画のアスペクト比 ("16:9", "9:16", "4:3", "3:4", "21:9", "9:21")
  • resolution (デフォルト "540p"): 動画の解像度 ("540p", "720p", "1080p")
  • duration (デフォルト "5s"): 動画の長さ ("5s", "9s")
  • loop (デフォルト false): 動画をループさせるかどうか
  • model (デフォルト "luma"): 使用するAIモデル ("luma"=Ray2, "kling"=Kling v1.6 Pro)

check-video-status

動画生成リクエストの状態を確認します。

パラメータ:

  • request_id (必須): チェックするリクエストID
  • model (デフォルト "luma"): リクエストに使用したAIモデル ("luma"=Ray2, "kling"=Kling v1.6 Pro)

Claudeでの使用例

猫が毛糸玉で遊んでいる動画を生成してください。縦向きモードでお願いします。Klingモデルを使用してください。

Claudeは適切なパラメータでgenerate-videoツールを呼び出し、結果の動画URLを提供します。

モデル比較

  • Luma Ray2 Flash: 滑らかな動きとリアルな物理挙動に優れており、自然な結果が得られます。
  • Kling v1.6 Pro: 詳細な質感と特殊な効果に優れており、スタイル化された結果が得られます。

プロンプトと希望する結果によって、最適なモデルが異なる場合があります。

制限事項

  • 動画生成には時間がかかる場合があります(特に高解像度の場合)
  • 有効なFAL.AI APIキーと十分なクレジットが必要です
  • 高解像度や長い動画はより多くのクレジットを消費します
  • 両モデルともFAL.AIのクレジットを消費します(料金はモデルごとに異なる場合があります)

トラブルシューティング

APIキーエラー

FAL_KEY環境変数が正しく設定されていることを確認してください。Claude Desktop設定ファイル内で直接設定することも可能です。

動画生成エラー

動画生成中にエラーが発生した場合、詳細なエラーメッセージがログに記録されます。一般的な問題は:

  • APIキーの無効または期限切れ
  • アカウントのクレジット不足
  • 不適切なプロンプトまたは画像
  • サーバー側の一時的な問題

エラーが続く場合は、しばらく待ってから再試行するか、プロンプトを変更してみてください。

ライセンス

MIT