Hi everyone,
I've been working on a small side project and it's finally ready to share:
mcp-bridge-for-moi, a free and open-source MCP server that connects an AI assistant (e.g. Claude Code, Claude Desktop, or any other client that supports the Model Context Protocol) to MoI3D.
You describe what you want, and the agent builds it right in your open MoI document. It looks at the result, fixes its own mistakes, and keeps going. You stay in charge the whole time: select something to point at it, undo a step, or take over whenever you like.
Here's a short video of it in action:
https://youtu.be/OCRmmbYtlfk
And here's the repository with everything you need:
https://github.com/preluceo-tools/mcp-bridge-for-moi
A few things worth knowing
Just to be clear, this is an unofficial project and isn't affiliated with or endorsed by Triple Squid Software.
- The agent never saves your file. Nothing is written to disk unless you save it yourself.
- One Ctrl+Z undoes one whole agent step.
- If you're in the middle of a MoI command, the agent waits until you finish or cancel before it changes anything.
- It needs MoI 4 on Windows and Node.js 22 or newer. MoI 5 and macOS haven't been tested yet. If you have a Mac and feel like trying it, I'd love to hear how it goes.
Setup: a bit of DIY, sorry!
Unfortunately there's
no simple installer yet. You'll need to do the technical setup yourself: download the code with git, build it with Node.js, install the bridge script into MoI's startup folder, and add the server to your AI client's configuration. It's all explained step by step in the README. If you've set up an MCP server before, it should feel familiar.
Work in progress
Please treat this as a
work in progress. It's tested, but you'll probably still run into bugs.
Save your work before you let the agent loose on it, keep backups of anything important, and keep an eye on what it does. The README has a
Safety section worth reading before you start.
This is a
spare-time project, so I'll fix bugs as my free time allows. If you run into a problem, opening an issue on
GitHub is the best way to report it, and it really helps me.
- - - -
▎ v. 0.2.0 is out:
The full change log can be found here:
Changelog v 0.2.0
what changed? => the export function is now available in the MCP.
Please update.
A short description on that can be now found on the repo main page.
- - - -
▎ v. 0.3.0 is out:
a new boolean() helper warns when a difference or union missed its target, a script that throws now names the objects it left behind, and get_scene stays within the client's output limit on large scenes. After updating, install the bridge again, because the server refuses the old one.
- - - -
▎ v. 0.4.0 is out
This release only changes the server. The MoI side is unchanged, so you don't need to reinstall the bridge. Pull, rebuild, and restart your AI client.
What's new:
- Better help on MoI objects. moi_factory_help can now describe objects, edges and styles, which MoI's own API doesn't document. It works without a running MoI session.
- Clearer hints when a script goes wrong.
- If a script returns nothing because it has no return, the reply now says so.
- If a script fails on a large model, the error stays short: it lists up to 10 object ids and gives a count for the rest.
- Nine more MoI scripting pitfalls are explained to the agent. These include commit() return values, mesh import, join returning one object per connected group, and isClosed on breps. The whole list is now easier for the agent to read.
- Units. On a document with no unit system, the agent may set millimeters on its own when it's only testing. Otherwise it still asks you first.
Full changelog and download:
Changelog mcp-bridge-for-moi 0.4.0
- - - -
▎ v. 0.5.0 is out
- New tokens command. "mcp-bridge-for-moi tokens" estimates how many tokens each tool definition costs an agent, and the total. It needs no MoI session. Add --json to print the definitions as the server sends them.
- Token use section in the README. It lists the cost tool by tool and explains how to check it in your own client. With every definition loaded up front, the estimate is about 3,900–4,400 tokens. Claude Code's /context counted about 5,700 in my test. Clients that load definitions on demand pay less.
- A size guard. A test fails ifst a set size, so the cost can't creep upunnoticed.
- moi_eval description trimmed.de's 2,048-character cap on tooldescriptions, so its ending was cut off. The MoI scripting traps and helper details now live inmoi_factory_help('traps') and moi_factory_
- Pointer on failure. When a moi_eval fails with moi_error, the reply now points to moi_factory_help('traps').
Release notes and download:
v0.5.0 on GitHub'
---
A very special thank you to Michael for MoI 3D.Thank you so much for the incredible tool that has saved my skin over the years.
Happy modelling!
Gabriel