Mocai from your terminal and your AI agent: turn video files into motion capture (FBX, GLB, USD, BVH) with one command, or run a local MCP server.
pip install mocai==0.1.3 Copy PIP instructions
Turn ordinary video into production-ready motion capture from your terminal or your AI agent. Mocai reconstructs the people in a clip and gives you rigged animation as FBX, GLB, USD or BVH, retargeted onto Mixamo, UE5 Manny or MetaHuman if you like.
The same tool ships on npm and PyPI. Use whichever runtime you have:
npx @mocai/cli process clip.mp4 # Node 18+ uvx mocai process clip.mp4 # Python 3.9+ (or: pipx install mocai) Sign in mocai login This opens your browser to sign in to Mocai (a free account works) and stores the sign-in in ~/.config/mocai/credentials.json (%APPDATA%\mocai on Windows). Both the npm and the PyPI versions share it. If your browser can't reach the CLI after you click Allow (WSL, SSH, containers), copy the address it landed on and paste it into the terminal. For scripts and CI, set MOCAI_API_KEY to a key from mocai.ai/app/developers instead.
mocai process clip.mp4 # FBX into ./mocai-out mocai process takes/ --exports fbx,glb --rigs ue5 --out mocap mocai process a.mp4 b.mov --kinds keypoints-json --json Give files or folders (every video inside is processed). Videos upload in parallel, process on Mocai's GPUs, and the exports land in --out (default ./mocai-out).
Other commands: mocai account (plan and usage), mocai takes, mocai download --kinds fbx,glb, mocai logout.
mocai mcp runs a local MCP server, so Claude Desktop, Claude Code, Cursor and other MCP clients can process the videos on your machine with one tool call (process_videos). Point it at files or whole folders (~/shoot works); the exports land in a mocai-out folder next to the videos. Add it to your client's MCP config:
{ "mcpServers": { "mocai": { "command": "npx", "args": ["-y", "@mocai/cli", "mcp"] } } } or with Python: "command": "uvx", "args": ["mocai", "mcp"]. Claude Code: claude mcp add mocai -- npx -y @mocai/cli mcp. Claude Desktop: download the one-click extension from mocai.ai/mocai.mcpb and open it. The first tool call opens your browser to sign in.
Prefer a hosted connector instead (claude.ai, ChatGPT, Gemini, Grok)? Add https://api.mocai.ai/v1/mcp as a custom connector. Step-by-step setup for each app: mocai.ai/agents.
0 success, 1 a video or request failed, 2 usage error, 3 not signed in.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.




