VideoReceiverMCP
MCP server that receives base64-encoded video files, saves them locally, and supports listing and deletion; works via stdio for local agents and HTTP for remote clients.
README
VideoReceiverMCP
A minimal MCP (Model Context Protocol) server that receives video files over both:
- stdio — for local agents (Claude Desktop, Cursor)
- HTTP (Streamable-HTTP) — for remote/network clients
How it works
Sender project VideoReceiverMCP server
| |
| 1. encode video -> base64 string |
| 2. call receive_video(base64) -----> |
| | 3. decode base64 -> binary
| | 4. save to received_videos/
| <-- "Video received! ..." |
MCP uses JSON-RPC (text only), so videos are base64-encoded before sending.
Setup (local)
# 1. Run the setup script (creates venv + installs deps)
.\setup.ps1
# 2. Activate venv
.\venv\Scripts\Activate.ps1
Run locally
stdio mode (for Claude Desktop / Cursor)
python video_mcp_server.py
HTTP mode (test network transport locally)
python video_mcp_server.py --http
# MCP endpoint: http://localhost:8000/mcp
Configure in Claude Desktop
Edit %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"VideoReceiverMCP": {
"command": "C:/path/to/mcp/venv/Scripts/python.exe",
"args": ["C:/path/to/mcp/video_mcp_server.py"]
}
}
}
Configure in Cursor / VS Code
Edit .cursor/mcp.json in your project:
{
"mcpServers": {
"VideoReceiverMCP": {
"command": "C:/path/to/mcp/venv/Scripts/python.exe",
"args": ["C:/path/to/mcp/video_mcp_server.py"]
}
}
}
Deploy on Render (free, persistent server)
Why Render and not Netlify? Netlify runs serverless/stateless functions — they cannot keep a persistent connection open, which MCP Streamable-HTTP requires. Render's free tier runs a full persistent Python process.
- Push this repo to GitHub
- Go to render.com -> New -> Web Service
- Connect your GitHub repo — Render auto-reads
render.yaml - Deploy! Your MCP endpoint will be:
https://<your-app>.onrender.com/mcp
Connect your other project to the deployed server
# In your other project:
from mcp.client.streamable_http import streamablehttp_client
from mcp import ClientSession
import base64, asyncio
async def send_video(video_path: str, server_url: str):
with open(video_path, "rb") as f:
b64 = base64.b64encode(f.read()).decode()
async with streamablehttp_client(server_url) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
result = await session.call_tool(
"receive_video",
arguments={"video_base64": b64, "filename": "clip.mp4"}
)
print(result.content[0].text)
asyncio.run(send_video("myvideo.mp4", "https://your-app.onrender.com/mcp"))
Available Tools
| Tool | Args | Description |
|---|---|---|
receive_video |
video_base64, filename?, description? |
Receives a base64 video, saves to received_videos/ |
list_received_videos |
— | Lists all saved videos |
delete_video |
filename |
Deletes a video from the server |
Test with the included client
# stdio (local)
python send_video_client.py myvideo.mp4
# HTTP (local server running on port 8000)
python send_video_client.py myvideo.mp4 --url http://localhost:8000/mcp
# HTTP (deployed on Render)
python send_video_client.py myvideo.mp4 --url https://your-app.onrender.com/mcp
Limitations
| Issue | Notes |
|---|---|
| Size overhead | Base64 adds ~33% to file size |
| Large files | Videos >50 MB may strain memory / context windows |
| Netlify | Cannot host persistent MCP HTTP servers — use Render instead |
Project structure
mcp/
├── video_mcp_server.py # MCP server (stdio + HTTP transport)
├── send_video_client.py # Test client (stdio + HTTP)
├── requirements.txt # Python dependencies
├── setup.ps1 # One-click setup script
├── render.yaml # Render deployment config
├── Procfile # Railway / Heroku deployment
├── .gitignore
└── received_videos/ # Videos saved here (auto-created)
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。