mcp-video2text
Convert online video to text, read it quickly
Usage
## require
$ curl -LsSf https://astral.sh/uv/install.sh | sh # install uv package manager
$ brew install ffmpeg # or `sudo apt install ffmpeg` for linux
## install
$ 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.
{
"mcpServers": {
"mcp-video2text": {
"command": "uv",
"args": ["run", "mcp-video2text"],
}
}
}
The first run will download the Whisper model and may take a few minutes.
It's recommended to update the timeout settings in 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", "mcp-video2text"], 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
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.2.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_video2text-0.1.2.tar.gz.
File metadata
- Download URL: mcp_video2text-0.1.2.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
83a825e02dd68481e57299450ffb1aec1c722113604c22a7d1b7cb4da3c5dfb7
|
|
| MD5 |
b235cf0c8514cc0499d45daff2cd7820
|
|
| BLAKE2b-256 |
21d86bb41c4aeea77ee0fab25bc1add963a0877623edf23a1563248a3ccb901d
|
File details
Details for the file mcp_video2text-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mcp_video2text-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.7.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ecbe36a2fd371f5b5ecac9f1f1cb4001128fc956d528a2063cb480bac6cbfa8
|
|
| MD5 |
62e684f2f9b023660769a8e0baae0de6
|
|
| BLAKE2b-256 |
fe166f7a2f8046ec95a6e336c7c8d1a405c3c90f99d16a4d828cdba9a7911915
|