Skip to main content
Glama

faster-whisper-mcp

動画ファイルから高品質な字幕を生成するMCPサーバ&CLIツール。Faster Whisperを使用し、ローカルGPU/CPUで高速に音声認識を実行します。

特徴

  • MCPサーバ対応 - Claude Desktop等のMCPクライアントから直接利用可能

  • Claude Skill対応 - skills/whisper.skill で安定した実行

  • 高速処理 - Faster Whisper (CTranslate2) による最適化された推論

  • 多言語対応 - 59言語の自動検出・翻訳

  • 柔軟な入力 - ローカルファイル / URL(YouTube等)両対応

  • GPU/CPU対応 - CUDA GPU または CPU で実行可能

Related MCP server: whisper-transcribe-mcp

インストール

git clone https://github.com/uzusio/faster-whisper-mcp.git
cd faster-whisper-mcp

pip install uv
uv venv
uv pip install -e .

MCPサーバとして使用

Claude Desktopに登録

%APPDATA%\Claude\claude_desktop_config.json(Windows)または ~/Library/Application Support/Claude/claude_desktop_config.json(Mac)に追加:

{
  "mcpServers": {
    "faster-whisper": {
      "command": "uv",
      "args": ["--directory", "/path/to/faster-whisper-mcp", "run", "python", "mcp_server.py"],
      "env": {
        "OPENAI_API_KEY": "sk-..."
      }
    }
  }
}

Note: OPENAI_API_KEY は翻訳機能使用時のみ必要です。

提供ツール

ツール

説明

transcribe_from_file

ローカル動画/音声ファイルから字幕生成

transcribe_from_url

URLから動画をダウンロードして字幕生成

get_supported_languages

サポート言語一覧を取得

詳細なパラメータは skills/whisper/ を参照。

使用例

この動画の字幕を生成して: C:\Videos\meeting.mp4
https://www.youtube.com/watch?v=xxxxx この動画を日本語字幕付きで文字起こしして

CLIとして使用

# 基本
python main.py video.mp4

# デバイス指定
python main.py video.mp4 --device cpu

# 翻訳付き
python main.py video.mp4 --input-lang ja --output-lang en

# URLから処理
python main.py https://www.youtube.com/watch?v=xxxxx

主要オプション: --device, --model, --input-lang, --output-lang

全オプションは python main.py --help で確認。

環境要件

  • Python 3.11+

  • uv

  • GPU使用時: CUDA Toolkit 12.x + cuDNN 9.x

  • 翻訳機能: OpenAI APIキー(.envに設定)

出力

  • 形式: SRT

  • 出力先: ローカルファイルは同ディレクトリ、URLはoutput/

  • ファイル名: {元ファイル名}_{言語コード}.srt

ライセンス

MIT License

関連リンク

Available Tools

3 tools
get_supported_languagesB

サポートされている言語の一覧を取得します。

翻訳可能な言語コードと言語名のリストを返します。

Inputs: no named parameters. Returns: サポート言語一覧

transcribe_from_fileA

ローカルの動画/音声ファイルから字幕を生成します。

Args:
    file_path: 動画/音声ファイルの絶対パス
    device: 推論に使用するデバイス ("cuda" または "cpu")
    model_size: Whisperモデルサイズ (デフォルト: "large-v3")
    input_lang: 入力言語コード(省略時は自動検知)
    output_lang: 翻訳先言語コード(省略時は翻訳なし)
    initial_prompt: 専門用語や固有名詞のヒントを提供するプロンプト
    condition_on_previous_text: 前のセグメントを参照して文脈維持 (デフォルト: False、ハルシネーション防止)
    temperature: 温度パラメータ(0.0で最も決定的、デフォルト: 0.0)
    no_speech_threshold: 無音判定の閾値 (デフォルト: 0.6)
    compression_ratio_threshold: 繰り返し検出の閾値 (デフォルト: 2.4)
    vad_filter: 音声区間検出フィルタを使用 (デフォルト: True、ハルシネーション防止)

Returns:
    生成されたSRTファイルのパスと検出された言語情報

Inputs: file_path (required), device, model_size, input_lang, +7 more. Returns: 文字起こし結果

transcribe_from_urlA

URLから動画をダウンロードして字幕を生成します。

Args:
    url: 動画のURL(YouTube等)
    device: 推論に使用するデバイス ("cuda" または "cpu")
    model_size: Whisperモデルサイズ (デフォルト: "large-v3")
    input_lang: 入力言語コード(省略時は自動検知)
    output_lang: 翻訳先言語コード(省略時は翻訳なし)
    initial_prompt: 専門用語や固有名詞のヒントを提供するプロンプト
    condition_on_previous_text: 前のセグメントを参照して文脈維持 (デフォルト: False、ハルシネーション防止)
    temperature: 温度パラメータ(0.0で最も決定的、デフォルト: 0.0)
    no_speech_threshold: 無音判定の閾値 (デフォルト: 0.6)
    compression_ratio_threshold: 繰り返し検出の閾値 (デフォルト: 2.4)
    vad_filter: 音声区間検出フィルタを使用 (デフォルト: True、ハルシネーション防止)

Returns:
    生成されたSRTファイルのパスと検出された言語情報

Inputs: url (required), device, model_size, input_lang, +7 more. Returns: 文字起こし結果

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 3 tools

    Disambiguation5/5

    The three tools have clearly distinct purposes: get_supported_languages retrieves language metadata, transcribe_from_file processes local files, and transcribe_from_url handles remote content. There is no overlap in functionality, and each tool's name and description make its specific role unambiguous.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern with snake_case: get_supported_languages, transcribe_from_file, and transcribe_from_url. The naming is predictable and uniform throughout the set, making it easy to understand the action and target.

    Tool Count4/5

    Three tools are reasonable for a transcription server, covering language support and transcription from both local and remote sources. However, the count feels slightly thin as it lacks utilities like managing transcriptions or adjusting parameters post-transcription, though the core functionality is well-represented.

    Completeness4/5

    The server provides essential operations for transcription: language lookup and transcription from file/URL, covering the main workflows. A minor gap exists in not offering tools to edit or delete generated transcripts, but agents can work around this by handling files externally.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers