Skip to main content
Glama

whisper-mcp

ローカル Whisper 文字起こしを MCP サーバーとして公開 — これにより、任意の MCP クライアント(Claude Desktop、Claude Code など)が、ツール呼び出しとして直接、音声・動画ファイルの文字起こし、.srt 字幕の生成、動画へのキャプション焼き込みを行えます。クラウド API は不要で、「スクリプトを実行して出力ファイルを読みに行く」手作業もありません。

推論には faster-whisper を、音声抽出・キャプション焼き込みには ffmpeg を利用しています。

Claude Code が transcribe ツールを呼び出し、タイムスタンプ付き文字起こしを返している様子

アーキテクチャ

MCP client (Claude, etc.) --stdio--> whisper-mcp server --> faster-whisper (Whisper model)
                                                        \--> ffmpeg (audio extract / burn-in)

サーバーは読み込んだ Whisper モデルをプロセスの稼働中メモリにキャッシュするため、1 セッション内でツールを繰り返し呼び出しても、モデル読み込みの時間を再度かけずに済みます。

Related MCP server: Whisper MCP Server

ツール

ツール

説明

transcribe(path, model_size="small", device="auto")

検出された言語とタイムスタンプ付きセグメントを構造化データとして返します。

generate_srt(path, output_path=None, model_size="small", device="auto")

文字起こしを行い、.srt ファイルを書き出します。

burn_captions(video_path, srt_path, output_path=None)

ffmpeg を使用して .srt を動画に焼き込みます。

要件

  • Python 3.10+

  • ffmpegPATH 上にあること

  • 任意: CUDA 対応 GPU(自動的に CPU にフォールバックします)

インストールと実行

pip install -e ".[dev]"
whisper-mcp

または、インストール不要:

uvx --from git+https://github.com/Chain-P/whisper-mcp whisper-mcp

MCP クライアントでの設定

クライアントの MCP 設定(例: Claude Code の .mcp.json や Claude Desktop の claude_desktop_config.json)に追加します:

{
  "mcpServers": {
    "whisper": {
      "command": "whisper-mcp"
    }
  }
}

その後、クライアントにファイルの文字起こしを依頼します。例: 「samples/podcast_clip.mp4 を文字起こしして SRT をください。」

開発

pip install -e ".[dev]"
ruff check .
pytest                        # unit tests only
pytest -m integration         # + real transcription against a sample file

ロードマップ

  • SRT 出力で複数話者をラベル付けするための話者分離 (pyannote.audio / whisperx)。

  • 長時間の文字起こしのための MCP 進行状況通知。

  • 最近の文字起こし履歴を公開する resource

ライセンス

MIT

Install Server
A
license - permissive license
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    Enables high-quality transcription and subtitle generation from local media files or URLs using Faster Whisper on local hardware. It supports automatic language detection and integration with MCP clients for seamless speech-to-text workflows.
    3
  • A
    license
    A
    quality
    F
    maintenance
    Provides local audio transcription using whisper.cpp, supporting multiple models and audio formats. Enables transcription of audio files via MCP tools with optional timestamps.
    3
    67
    3
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Enables local media processing (video/audio) using FFmpeg and FFprobe, allowing frame extraction, audio conversion, and metadata retrieval through natural language.
    5
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables AI agents to query local video timelines by extracting speech, frame captions, and on-screen text into a SQLite store, exposing search and retrieval tools via MCP.
    PolyForm Noncommercial 1.0.0

View all related MCP servers

Related MCP Connectors

  • OCR, transcription, file extraction, and image generation for AI agents via MCP.

  • Transform video, audio and images, and generate media from prompts. FFmpeg, captions, models.

  • MCP server for Clipkit — gives AI agents a video toolbox via the Clipkit schema.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Chain-P/whisper-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server