meshy-youtube-mcp
Enables generating 3D models from text prompts, rendering turntable animations, and uploading them directly to YouTube via an MCP interface.
README
meshy-youtube-mcp
An MCP server that takes a text prompt all the way to a published YouTube video: Meshy.ai 3D generation → Blender turntable → YouTube upload.
prompt ──▶ Meshy text-to-3D ──▶ Blender 360° turntable ──▶ ffmpeg ──▶ YouTube videos.insert
(.glb model) (PNG frames) (.mp4) (published video)
Any MCP-capable agent — Claude, or anything that speaks MCP — can call it to generate rotating 3D content and publish it straight to YouTube.
Sibling project:
meshy-bottube-mcppublishes the same pipeline to BoTTube (a video network for AI agents). BoTTube is the agent-native channel; YouTube is the human-reach channel — same Meshy generation, two audiences. Pick the publisher that fits who's watching.
The shared render core is proven end-to-end on the BoTTube edition:
a PBR-textured turntable and an
animated walking character (the
render_animation moving-clip path).
Tools
| Tool | Input | Output |
|---|---|---|
generate_3d_model |
prompt, art_style | .glb + task ids (preview→refine, PBR textured) |
generate_3d_from_image |
image (URL/path) | .glb from a single image |
generate_3d_from_images |
1–4 images | .glb from multiple reference images |
retexture_model |
model + style | re-textured .glb variant |
rig_model · animate_model |
model / rig+action_id | rigged / animated .glb |
get_meshy_task_status |
task_id | status / .glb on success |
render_turntable · frames_to_video |
.glb / frames |
PNG frames / .mp4 |
upload_to_youtube |
.mp4, title |
video_id, watch_url (OAuth) |
meshy_to_youtube |
prompt | one-shot: text → 3D → turntable → published |
image_to_youtube |
image | one-shot: image → 3D → turntable → published |
retexture_to_youtube |
model + style | one-shot: re-texture → turntable → published |
animate_to_youtube |
model, action_id | one-shot: rig → animate → render motion → published |
Requirements
- Python 3.10+
ffmpegand Blender onPATH- A Meshy.ai API key
- A Google account + a YouTube OAuth client (one-time setup, below)
Install
git clone https://github.com/Scottcjn/meshy-youtube-mcp
cd meshy-youtube-mcp
pip install -r requirements.txt
cp .env.example .env # add your MESHY_API_KEY
One-time YouTube authorization
YouTube uploads use OAuth2 (not a simple API key). Set it up once:
- Google Cloud Console → create/select a project
- Enable YouTube Data API v3
- Credentials → Create OAuth client ID → Desktop app → download the JSON
- Save it as
~/.config/meshy-youtube-mcp/client_secret.json(or setYOUTUBE_CLIENT_SECRET_FILE) - Authorize once — opens a browser, mints a reusable token:
python -m meshy_youtube.authorize
After that, uploads run unattended via the stored refresh token. You only re-authorize if the token is revoked or deleted.
Quota: YouTube's default free quota is 10,000 units/day and a
videos.insertcosts 1,600 — about 6 uploads/day. Request more in the Cloud Console if you need it.
Run as an MCP server
{
"mcpServers": {
"meshy-youtube": {
"command": "python3",
"args": ["/path/to/meshy-youtube-mcp/meshy_youtube/server.py"],
"env": {
"MESHY_API_KEY": "your_meshy_key",
"YOUTUBE_TOKEN_FILE": "/home/you/.config/meshy-youtube-mcp/token.json"
}
}
}
}
Then ask your agent: "Generate a 3D crystal dragon and publish it to YouTube as
an unlisted turntable." It calls meshy_to_youtube and hands back a watch URL.
You can also pip install -e . and run meshy-youtube-mcp, or
python -m meshy_youtube.server.
Use as a library
from meshy_youtube import meshy, turntable, video, youtube
info = meshy.generate("a steampunk robot", "model.glb", art_style="realistic")
tt = turntable.render(info["glb_path"], "frames/", resolution=1080)
mp4 = video.frames_to_video(tt["frames_dir"], "turntable.mp4")
res = youtube.upload(mp4, title="Steampunk Robot — 3D Turntable",
tags=["3d", "meshy"], privacy="unlisted")
print(res["watch_url"])
Privacy & categories
privacy:public|unlisted|private(default unlisted — shareable by link, not surfaced publicly until you choose to).category_id: YouTube category. Defaults to22(People & Blogs). Common ones:1Film & Animation,20Gaming,23Comedy,24Entertainment,28Science & Technology.
Behavior notes
- The one-shot
meshy_to_youtubealways returns a dict (ok+watch_url, orok=False+error/failed_stage+ partial paths). Granular tools raise. - Secrets (
client_secret.json,token.json,.env) are gitignored and the token is written0600. Never commit them. - The Meshy/Blender/ffmpeg stages are shared, hardened code from the BoTTube edition (two-stage preview→refine, atomic GLB download, subprocess isolation, numeric frame normalization, bounds + preflight).
Roadmap
v0.1–v0.2 (shipped): two-stage Meshy generation, PBR texturing controls
(texture_prompt/enable_pbr), Blender turntable, YouTube OAuth publish
(resumable upload, atomic 0600 token, COPPA madeForKids as an explicit
choice), resilient polling, 21 tests.
v0.3 (shipped): the full Meshy modality set — image-to-3D, multi-image-to-3D, retexture, and rigging + animation (rig a humanoid, apply a motion from Meshy's 500+ action library, and render the moving character via a dedicated Blender animation-render path).
Note: Meshy's 3D-to-Video is a web-app feature with no public API, so it can't be an MCP tool. The rig→animate→render chain delivers the same outcome.
Next: multi-model scenes (camera moves, staging), smarter per-style framing.
Tests
python -m unittest discover -s tests -v
License
MIT © 2026 Scott Boudreaux / Elyan Labs.
推荐服务器
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 模型以安全和受控的方式获取实时的网络信息。