motion3d-mcp
by maomyu
README.md
# Motion3D MCP Server (`motion3d-mcp`)
Official **Model Context Protocol (MCP)** server for **[Motion3D](https://motion3d.dev)** — search, inspect, and install **76+ 100% original 3D interactive website blueprints** (Three.js, WebGL/GLSL, GSAP) and **195+ Visual Video Agent Skills** (with `SKILL.md`, shot grammar, 3 palettes, and deterministic local 1080p MP4 renderers) directly from **Claude Code, Cursor, Codex, Antigravity, and OpenClaw**.
> **Live Dynamic Catalog:** `motion3d-mcp` queries `https://motion3d.dev/api/*` dynamically at runtime with zero hardcoded asset lists. Every newly launched 3D website blueprint or Visual Video Skill is immediately searchable and installable without updating this package.
---
## Highlights
- **Zero-Friction Free Tier (No Login / No API Key Needed):** Browse the entire live catalog and install all **34 permanent free commercial assets** (8 Free 3D Web Blueprints + 26 Free Visual Video Skills) right out of the box—no credit card, no trial countdown.
- **Seamless Pro Unlock via Personal API Token:** Generate a personal `m3d_...` token from your Motion3D Account panel to unlock all 76+ 3D web blueprints and 195+ Visual Video Skills (reusing your existing Pro / Founding Lifetime plan and daily quotas).
- **Direct Workspace Extraction:** Downloads and unpacks clean standalone ZIP bundles directly into `.agents/skills/<slug>/` (for Video Skills) or your chosen folder (for 3D websites) with zero external CLI dependencies.
---
## Quick Start
### 1. Claude Code (1-Line Install)
**Free Tier (no token needed — browse everything & install 34 free commercial assets):**
```bash
claude mcp add motion3d -- npx -y motion3d-mcp
```
**Pro / Lifetime Members (unlock all 76+ 3D blueprints & 195+ Video Skills):**
```bash
claude mcp add motion3d -e MOTION3D_API_KEY=m3d_your_token_here -- npx -y motion3d-mcp
```
### 2. Cursor (`.cursor/mcp.json`)
```json
{
"mcpServers": {
"motion3d": {
"command": "npx",
"args": ["-y", "motion3d-mcp"],
"env": {
"MOTION3D_API_KEY": "m3d_your_token_here"
}
}
}
}
```
*(Omit the `"env"` block if you only want to browse the catalog and install the 34 free commercial assets.)*
### 3. OpenAI Codex (`~/.codex/config.toml`)
```toml
[mcp_servers.motion3d]
command = "npx"
args = ["-y", "motion3d-mcp"]
[mcp_servers.motion3d.env]
MOTION3D_API_KEY = "m3d_your_token_here"
```
### 4. DeepSeek (Cherry Studio / Chatbox) / Antigravity / OpenClaw / Windsurf / Trae (`mcp_config.json`)
*(For **DeepSeek V3/R1** in Cherry Studio or Chatbox: go to **Settings → MCP Servers → Import JSON** and paste below.)*
```json
{
"mcpServers": {
"motion3d": {
"command": "npx",
"args": ["-y", "motion3d-mcp"],
"env": {
"MOTION3D_API_KEY": "m3d_your_token_here"
}
}
}
}
```
### 5. VS Code / GitHub Copilot (`.vscode/mcp.json`)
```json
{
"servers": {
"motion3d": {
"type": "stdio",
"command": "npx",
"args": ["-y", "motion3d-mcp"],
"env": {
"MOTION3D_API_KEY": "m3d_your_token_here"
}
}
}
}
```
### 6. Cline / Roo Code (`cline_mcp_settings.json`)
```json
{
"mcpServers": {
"motion3d": {
"command": "npx",
"args": ["-y", "motion3d-mcp"],
"env": {
"MOTION3D_API_KEY": "m3d_your_token_here"
},
"disabled": false
}
}
}
```
---
## Available MCP Tools (4)
| Tool | Purpose | Auth Required |
|---|---|---|
| `search_motion3d_works` | Search live 3D interactive web blueprints by `query`, `industry`, `interaction`, `category`, or `tier` (`free` / `featured` / `standard`). Returns live preview URLs, tech stack, and descriptions. | Optional (anonymous allowed) |
| `search_motion3d_skills` | Search live Visual Video Agent Skills by `query`, `category`, `access` (`free` / `pro`), or `aspect_ratio` (`16:9` / `9:16` / `1:1`). | Optional (anonymous allowed) |
| `get_motion3d_asset_detail` | Inspect a single 3D blueprint or Video Skill's full tech stack, palettes, file list, resolution/duration specs, and access tier. | Optional (token reveals entitlement) |
| `install_motion3d_asset` | Download and extract the official standalone ZIP (`SKILL.md`, references, `render_video.py`, or runnable 3D HTML/GLSL/Three.js source) into `target_dir`. | Free for 34 free assets; `MOTION3D_API_KEY` for Pro assets |
---
## Example Prompts for Your AI Coding Agent
- *"Search Motion3D for free WebGL shader hero templates and install `dither-tide` into `./hero-demo`."*
- *"Find a 16:9 Motion3D Visual Video Skill for an AI product launch film, show its color palettes, and install it into `.agents/skills/`."*
- *"Install the free `acoustic-waveform-reveal` Motion3D video skill, customize the headline for my app, and render a 1080p MP4 locally."*
---
## Getting Your Personal API Token (`m3d_...`)
1. Sign in at **[https://motion3d.dev](https://motion3d.dev)** (Email or Google Sign-In).
2. Click your **Account avatar** (bottom-left rail) → **API Token (MCP / CLI)**.
3. Click **Generate API Token** and copy your `m3d_...` key (shown once; stored server-side as a keyed HMAC-SHA256 hash—you can rotate or revoke it anytime).
---
## Environment Variables
| Variable | Default | Description |
|---|---|---|
| `MOTION3D_API_KEY` | *(empty)* | Optional `m3d_...` personal API token. Omit to use Free Tier anonymously. |
| `MOTION3D_BASE_URL` | `https://motion3d.dev` | Custom API origin (useful for local development, e.g. `http://127.0.0.1:8091`). |
---
## Local Development & Testing
```bash
cd motion3d-mcp
npm install
npm run check
MOTION3D_BASE_URL=http://127.0.0.1:8091 node ./src/index.js
```
---
## Links & License
- **Website (EN):** https://motion3d.dev
- **Website (中文):** https://motion3d.dev/zh/
- **Official MCP Hub:** https://motion3d.dev/mcp/
- **Visual Video Skills Catalog:** https://motion3d.dev/skills/
- **Free 3D Browser Tools:** https://motion3d.dev/tools/
- **Open Shadcn Component Registry (Free 3D Blocks):** https://motion3d.dev/r/registry.json
- **Pricing & Licensing:** https://motion3d.dev/plans/ · https://motion3d.dev/licensing/
- **License:** MIT