PixelBridge
Builds, previews, and exports 3D model versions in a local headless Blender installation from JSON specifications, without running code inside Blender.
Exports 3D assets to glTF/GLB and verifies the exported files by re-import.
Generates and edits images and videos through the Gemini API using a Google API key, including character turnaround sheets and asynchronous video jobs with cost tracking.
Supports an optional OpenAI key for image generation with native transparency.
Provides conservative pre-import checks for 3D assets against Roblox import limits.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
PixelBridge
An MCP server and CLI that lets AI coding agents generate images and videos with one Google Gemini API key (app icons, UI art, illustrations, game assets, video clips), and build 3D models in a local copy of Blender. It runs on your machine, stores everything in your project, and enforces spending limits so an agent cannot run up a bill.
You: "Make a pixel-art health potion icon and a 5-second clip of a slime bouncing."
Agent: generate_image → assets/props/potion/references/potion-image.jpg ($0.036)
generate_video → job submitted … get_job → assets/videos/slime/…mp4 (approval asked first)One key. A Gemini API key covers image generation, image editing and video. 3D work uses Blender on your machine and needs no key.
Use it in any project. Save straight into your app's folders (
outputDir,fileName) and get transparent PNGs for icons and sprites. Gemini can't output transparency, so the subject is cut out locally from a flat backdrop; a freeremove_backgroundtool does the same for any image.Cost control. Every paid call is estimated first. A project budget, a per-call ceiling and a daily limit are enforced locally, even across several agents running at once. Repeat requests are served from cache for free.
Keys stay out of files. Store your key once in the operating system's credential store (Windows DPAPI, macOS Keychain, Linux Secret Service). The server reads it at startup.
Everything is recorded. Each file is registered with its prompt, model, cost, hash and the assets it was derived from. A
manifest.jsonper collection keeps that browsable.3D without code execution. Models are described as JSON (primitives, modifiers, materials) and built in headless Blender, then previewed, exported to glb/fbx/obj and checked against Roblox import limits. The agent never runs Python inside Blender.
Status: 0.3.0, pre-release. Image generation is verified against the live Gemini API. Video generation is implemented and tested against Google's documented API, but not yet run live. Tested on Windows 11 with Node 24 and Blender 5.3.
Quick start
1. Install (Node.js 22.15 or newer):
git clone https://github.com/kartikeyapro1/PixelBridge.git
cd PixelBridge
npm ci
npm run build2. Store your Gemini API key. Create one at Google AI Studio. Billing must be enabled, because the image and video models have no free tier. Then:
node dist/cli.js key set gemini # paste the key; input is hiddenThis encrypts the key in your OS credential store and checks it with a free request. To replace it later, run the same command again. See docs/credentials.md.
3. Connect your MCP client. Add this server to your client's MCP configuration (most clients
use this mcpServers format; see docs/getting-started.md for
per-client steps):
{
"mcpServers": {
"pixelbridge": {
"command": "node",
"args": ["/absolute/path/to/PixelBridge/dist/mcp-entry.js"]
}
}
}The server works in the directory the client starts it in (your project). To pin a directory,
set PIXELBRIDGE_PROJECT_ROOT in the server's env.
4. Ask your agent to "call get_status", then to generate something. Files appear under
assets/ in your project.
No key yet? Set PIXELBRIDGE_MOCK=1 in the server's environment. The mock provider writes
placeholder images and charges a fake $0.01 per call, so you can try the whole workflow offline.
Related MCP server: blender-asset-mcp
What it costs
You pay Google directly. PixelBridge itself is free and runs no service. With the defaults:
Asset | Model | Typical cost |
Image (1K) | Nano Banana 2.1 | ~$0.036 (measured) |
Three-view character reference sheet | Nano Banana 2.1 | ~$0.11–0.13 |
8 s video, 360p / 720p / 1080p | Gemini Omni Flash | ~$0.20 / $0.57 / $0.85 |
Blender model, previews, exports | local Blender | free |
Calls estimated above $0.25 need explicit approval. Spending stops at the project budget
($5 by default). Change both in pixelbridge.config.json
(docs/configuration.md). Local limits cannot cap your Google bill in every
failure case, so also set a budget alert in Google Cloud billing.
Tools
Tool | What it does | Cost |
| Providers, key source, Blender, budget, missing setup | free |
| Spending summary and recent ledger entries | free |
| Text-to-image; optional transparent background, output folder and file name | paid |
| Make a flat background transparent, optionally crop to the subject | free |
| Edit an image or generate from up to 14 reference images | paid |
| Front view, then side/back/¾ views conditioned on it | paid |
| 3–15 s video, 360p–4k, up to 6 reference images (async job) | paid |
| Track and download video jobs (survive restarts) | free |
| Browse generated files and their metadata | free |
| How to describe a 3D model as JSON | free |
| Build a new model version in Blender from a JSON spec | local |
| Render previews and return them (with references) as images | local |
| Triangle counts, bounds, issues; Roblox checks | local |
| Export glb/gltf/fbx/obj, verified by re-import | local |
Full argument reference: docs/tools.md (generated from the code).
Using it in an app project
Run your agent in the app's repository and ask for assets where the app expects them:
Generate a flat, minimal dumbbell icon with a transparent background, trimmed, saved to
src/assets/iconsasdumbbell.
The agent calls generate_image with background: "transparent", trim: true,
outputDir: "src/assets/icons" and fileName: "dumbbell". The PNG lands at
src/assets/icons/dumbbell.png, and the flat-background original is kept under assets/ for
reference. Paths are confined to the project, and existing files are never overwritten.
Command line
The same features are available without an agent:
node dist/cli.js status
node dist/cli.js image "pixel-art health potion icon" -c potion
node dist/cli.js image "flat dumbbell icon" --transparent --trim --out src/assets/icons --name dumbbell
node dist/cli.js cutout photos/logo.jpg --out public --trim
node dist/cli.js video "a green slime bouncing" -c slime --duration 5 --resolution 360p --yes
node dist/cli.js job <jobId>
node dist/cli.js build examples/specs/cartoon-cat.json -c pip
node dist/cli.js export <blendAssetId> --formats glb,fbxPaid commands print the estimate and stop if it is above the approval threshold; add --yes to
approve. See docs/cli.md.
What gets written
your-project/
├── pixelbridge.config.json optional settings
├── .pixelbridge/ local database (registry, budget, jobs), temp files - add to .gitignore
└── assets/
├── characters/pip/
│ ├── manifest.json every asset: path, sha256, prompt, model, cost, lineage
│ ├── references/ generated images
│ ├── blender/ pip-spec-v001.json, pip-v001.blend, v002 …
│ ├── renders/v001/ front.png, side.png, three_quarter.png
│ └── exports/ pip-v002.glb
└── videos/slime/videos/ slime-video.mp4Files are never overwritten (-2, -3 … are added on collision) and are written atomically.
Limitations
Gemini images: no masks, one image per call, JPEG output. Transparency is produced by a local cut-out from a flat background: very good for icons, sprites and objects, weaker on hair, smoke, glass or anything that blends into the backdrop. OpenAI (optional key) supports native transparency.
Character reference views are visual references; their consistency is not guaranteed.
Generated video is a motion reference, not game-ready animation.
3D models are built from primitives. That suits props, blockouts and stylised characters; it cannot reproduce detailed sculpted models. Image-to-3D reconstruction is not included.
The Roblox checks are conservative pre-import checks, not a guarantee that Studio accepts the file.
Approval above the threshold is enforced through a tool argument the agent supplies after asking you. The hard limits (budget, per-call ceiling, daily count) cannot be bypassed by the agent.
Documentation
Topic | |
Setup for each MCP client | |
API key storage | |
Configuration reference | |
Tool reference | |
CLI reference | |
Providers, models and prices | |
Describing 3D models | |
Roblox workflow | |
Security model | |
Troubleshooting | |
Architecture and design decisions | |
Related projects |
Development
npm run check # typecheck, lint, format check, tests, build
npm test # Blender integration tests run when Blender is installedTests never call paid APIs. See CONTRIBUTING.md and docs/releasing.md.
License
Apache-2.0, except blender/pixelbridge_bpy.py (GPL-3.0-or-later, because it runs inside
Blender); see NOTICE. Generated content is subject to the terms of the provider that
produced it.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Generate and edit images, video, voice, lip-sync and 3D models from your AI agent.
Connect your AI assistant to Blender for 3D modeling, Geometry Nodes, materials, lighting, animation, rendering and export. Inspect real scenes and viewport images, refine the result and restore checkpoints. OAuth connects your chat to Blender Bridge Desktop on an online Windows 10/11 x64 computer running Blender 4.2+. The chat can run on another device. Requires an active Blender Bridge account; 7-day trial available. AI model access is separate.
Blender-as-a-service for agents: search 3D assets, run Blender Python, or brief the studio agent.
Generate 3D models, worlds, PBR materials, and coordinated asset packs from AI agents.
Related MCP Servers
- AlicenseCqualityBmaintenanceEnables AI agents to control Blender through 150+ tools across 24 modules, including modeling, materials, lighting, animation, rendering, mesh quality analysis, and visual feedback, plus expert prompts and goal-first workflow management.2094MIT
- AlicenseCqualityBmaintenanceEnables AI agents to build game assets in Blender by modeling, lighting, rendering previews to inspect and correct, validating against engine budgets, and exporting to GLB/FBX.126MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to inspect and modify live Blender scenes, manage objects and materials, render images, retrieve PolyHaven assets, and send prompts to configurable local or OpenAI-compatible LLM backends.-
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to model, texture, animate, inspect, and export game assets directly in Blender, with rendered previews and glTF read-back for Godot and three.js.28 PyPIApache 2.0