- Python 3.10+
- World Labs account with API credits
- API key from platform.worldlabs.ai/api-keys
git clone https://github.com/sandraschi/worldlabs-mcp
cd worldlabs-mcp
# With Just (recommended)
just bootstrap
# Or manually
uv pip install -e ".[dev]"Set your API key in .env:
WORLDLABS_API_KEY=your_key_here
Note: Credits on marble.worldlabs.ai (web app) are SEPARATE from API Platform credits. Check your balance at platform.worldlabs.ai.
# Full stack (backend + webapp browser)
just serve
# Or manually
.\start.ps1The web dashboard opens at http://localhost:10864.
| Flag | Effect |
|---|---|
-Headless |
Background processes only (hidden windows) |
-BackendOnly |
API server only (no Vite frontend) |
-NoBrowser |
Skip automatic browser launch |
| Port | Service |
|---|---|
| 10864 | Web dashboard frontend (Vite) |
| 10865 | Backend API + MCP HTTP |
Add to your MCP client (claude_desktop_config.json, opencode.json, etc.):
{
"mcpServers": {
"worldlabs": {
"command": "uv",
"args": ["run", "--directory", "path/to/worldlabs-mcp", "worldlabs-mcp"],
"env": {
"WORLDLABS_API_KEY": "your_key_here"
}
}
}
}- 402 Payment Required: You're out of API credits. Top up at platform.worldlabs.ai.
- 401 Unauthorized: Check
WORLDLABS_API_KEYis set and valid. - Port conflicts: Kill zombies with
Get-NetTCPConnection -LocalPort 10864 | Stop-Process.