Skip to main content

Convert online video to text, read it quickly

Project description

mcp-video2text

Convert online video to text, read it quickly

screenshoot

Usage

$ uv pip install mcp-video2text[mlx]  # recommend with mlx for silicon machine
$ uv pip install mcp-video2text[cpp]

for mcp client, pass uv run mpc-video2text to command field

first run will download whisper model, should spend a few minutes, recommend update the timeout settings by your client.

or your can custom your own client, view example test_mcp_client.py

import asyncio
import os

from mcp import ClientSession, StdioServerParameters
from mcp.client.stdio import stdio_client


async def client():
  server_params = StdioServerParameters(
    command="uv", args=["run", "video2text.py"], env=os.environ
  )
  async with stdio_client(server_params) as (read, write):
    async with ClientSession(read, write) as session:
      await session.initialize()
      print(await session.list_tools())
      result = await session.call_tool(
        "video2text", {"url": "https://www.bilibili.com/video/BV1gdERzuEYB/"}
      )
      print(result.content[0].text)


if __name__ == "__main__":
  asyncio.run(client())

Thanks

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_video2text-0.1.1.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_video2text-0.1.1-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file mcp_video2text-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_video2text-0.1.1.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.5

File hashes

Hashes for mcp_video2text-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ec781236b3a426699f2d22f035f9c617d136f9ba30446b0635f0282dada1a59f
MD5 bb7e13c91dc6acd66239dcb17df89a9d
BLAKE2b-256 cbfbeacd4728c98160c741206aee0ef369d3c2dfc5ac8806854ccc6f762c6843

See more details on using hashes here.

File details

Details for the file mcp_video2text-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_video2text-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 dce316699259a0396ff9f0ba4fd317c6d67c0c8fbb8c3763738ecdf86447e122
MD5 8352854799b11ecf0a2d6e0530d0e5bb
BLAKE2b-256 043c98580da5c74ba850255cddb28d26e2679940f716a8a09b01f19bc2e416b6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page