An MCP server with MPFB tools. Its Blender-side half is a companion add-on of our own, the MPFB Bridge in bridge/, which dispatches a closed vocabulary of named commands rather than executing code.
In practice, you will most likely want to use this in parallel with a Blender MCP bridge such as either of:
- Blender Lab's Blender MCP
- Ahujasid's MCP for Blender
In fact, you can control MPFB solely by using either of these, but it will then be an inefficient and token-heavy thing. By steering MPFB-specific operation to the MPFB specific bridge, you can speed up things and save some tokens.
Early beta. Fifty-six tools are implemented.
Introspection — read-only, and each of them always answers rather than failing:
mpfb_get_status— is MPFB present, initialized and correctly configured?mpfb_get_character_summary— what is this character, in one call: phenotype, rig, assets, skin, morphs, face and where it stands, each exactly as the detailed tool below would report it?mpfb_list_objects— which MakeHuman objects are in the current scene?mpfb_get_object_info— what is this object, what was it made from, and what belongs with it?mpfb_get_macro_details— what is this character's phenotype?mpfb_get_target_stack— which modeling targets are on this character, and how strong?mpfb_get_face_units— what is this character's face doing, in ARKit face units?mpfb_get_expression— which saved expressions is this character wearing, and do they explain its face?mpfb_get_material_settings— what are this character's iris colours, layered skin and hair and garment tints, exactly as a preset would save them?mpfb_get_pose_controls— which bones pose this character, by body part, what does each do, and where does it rest?mpfb_get_pose— what is this character's pose now: what is off rest, where are its hands, feet, hips and head, and is a limb stretched or out of reach?mpfb_get_rigify_hand_shape— on a Rigify character, how curled and spread is each finger, what shape is each hand making, and where are the fingertips?
Catalogues — what could be added, each entry named the way the acting tool will want it:
mpfb_list_rigs— which armatures could be attached?mpfb_list_assets— which garments, body parts, body proxies and skins are installed? With no arguments, a summary of the library across subdir, pack and license.mpfb_list_targets— which modeling targets could be set?mpfb_list_asset_materials— which other materials ship beside this equipped asset?mpfb_list_presets— which characters have been saved?mpfb_list_expressions— which saved expressions are installed?
Documentation — addresses to look something up, and neither of them fetches anything:
mpfb_list_urls— where to download MPFB, get asset packs, ask on the forum, file a bug. Answers even when MPFB or Blender is unreachable, which is when those links matter most.mpfb_list_docs— MPFB's developer documentation, one document per service and file format.
Creation and modification:
mpfb_create_human— wraps MPFB'sHumanService.create_human().mpfb_set_macro_details— change a character's phenotype in place.mpfb_set_targets— set modeling targets, batched.mpfb_symmetrize_targets— copy one side of a character onto the other.mpfb_set_face_units— compose a character's face from ARKit face units. Transient: not saved by a preset, and overwritten by the next expression applied.mpfb_apply_expressions— put a character into saved expressions, blended at chosen weights, or take them all off.mpfb_save_expression— keep a composed face as an expression file, which is what makes it survive: apply the file, and presets carry it.mpfb_refit_human— refit everything to a changed body.mpfb_add_rig/mpfb_generate_rigify_rig— attach an armature, and finish a Rigify meta rig.mpfb_add_asset/mpfb_remove_asset— equip an MHCLO asset, optionally saying how it fits what is already on the character, and take it off properly.mpfb_set_skin— give the character a skin, in any of MPFB's five material models.mpfb_set_asset_material— recolour an equipped asset, or restore its own material.mpfb_set_material_settings— change iris colours, the layered skin and the tint of hair and garments, batched, in a way a preset keeps.mpfb_set_pose_bones— pose a character: move, rotate, aim and scale its controls in the character's own forward, left and up, batched, and say where each one actually ended up.mpfb_set_pose_switches— change a generated Rigify rig's IK/FK, pole, parent and stretch switches, keeping each limb where it is as Rigify's own buttons do.mpfb_set_rigify_hand_shape— on a Rigify character, make a fist, point, grip or pinch, or curl and spread any finger by an amount, one call per change.mpfb_reset_pose— put a character back at rest, and answer with the calls that put the pose back: Blender's own undo does not see what these tools do.mpfb_place_character— stand a character somewhere in the scene, facing a direction or a point or the camera, and say how much room it takes up, so that several can be lined up. MPFB builds every character at the origin.mpfb_save_preset/mpfb_create_human_from_preset— keep a character past this Blender session, and build a new one from a saved character.mpfb_create_export_copy/mpfb_export_character— take a character to a game engine or another application: a processed copy, as MPFB's Export copy panel makes one, with visemes, ARKit face units and GameEngine materials if asked; then one FBX, glTF or USD file, with presets for Unity, Unreal and Godot. The file goes in a directory set in the MPFB Bridge's preferences, never one the agent picks.
Authoring — make a mesh into an asset, and see how it behaves on somebody else (the recipe):
mpfb_check_intersections— how much meshes pass through each other and how close they come, in numbers, with the body's delete-group masks on and off: a count on a masked body cannot see through the mask, and that is the trap. Two characters, a character and a held prop, or one character's own garments.mpfb_check_mesh_asset— whether a mesh is ready to be an asset, beyond MPFB's own check: which way each part's faces point, how it fits the body and itself, its UV islands, its textures and its metadata.mpfb_set_makeskin_material/mpfb_get_makeskin_material— give any mesh a MakeSkin material from image files or Blender images and numbers, and read which maps are wired and which numbers are in effect.mpfb_store_makeskin_material— keep one as an alternate of its asset or as a body skin, without changing a source texture. MPFB's loader then restores the textures and the diffuse colour, and the answer names any other number it will not.mpfb_generate_delete_group— give the body the vertex group that hides it under a garment, with no margins to find by trial and error, and two numbers: removed skin that can still be seen, and standing skin that lies under the garment. Rerun it freely, since it starts over each time from the group it found first, which it keeps.mpfb_write_mesh_asset— write a mesh as a complete asset, MHCLO, OBJ, MHMAT and textures, in the library or the export directory the bridge's user chose, and say what to call next to try it on another body. Only MPFB's own validator blocks it; everything else measured is reported.mpfb_get_rig_definition— read any rig, shipped, library or authored, as a bone table against the body's joints, in exactly the shape the builder takes, so a shipped rig can be the start of a new one.mpfb_create_rig— build a rig onto a character from such a table, fitted by MPFB so that it follows any body.mpfb_weight_rig— weight it: Blender's heat weighting on the neutral body, so the stored weights suit every body, a transfer from a catalogue rig that understands merged bones, or a mirror; then a rule per helper for what the pass missed (the eyes and teeth bound rigidly) and a clean that caps influences and normalises.mpfb_check_rig_weights— measure any rig's weighting: coverage, influences, each bone's reach, the helpers, symmetry, and an opt-in bend test. Numbers, not a verdict: compare against a shipped rig on a similar body.mpfb_store_rig— store it in the library ascustom.<name>, refusing a name or identifying bones that would let MPFB mistake it for another rig, and saying what the file loses.
mpfb_save_preset, mpfb_save_expression, mpfb_export_character, mpfb_store_makeskin_material,
mpfb_write_mesh_asset and mpfb_store_rig are the only tools here that write a file, and nothing in Blender can undo
it, so each refuses to overwrite unless told to.
Order matters and MPFB reports no error when it is wrong: add the rig before the garments, generate a Rigify rig after them, and dress a character before placing it - a garment with its own sub-rig, such as a ponytail, equipped on a character away from the origin is bound wrong until the character is refitted. The tools report the violation they can see rather than enforcing it.
A refit keeps a pose, which MPFB's own does not on a generated Rigify rig: keep_pose says otherwise, and
pose_after_refit says what happened. A character whose collection is excluded from the view layer is included for
the call and excluded again, so one collection per character works, and temporarily_included says when it happened.
See src/mpfbmcp and CLAUDE.md for how they work and how to run them.
Modelling, unwrapping and weight painting are general Blender work, and no tool here does them. Once there is a mesh, author on one character, write, then try it on another, because every poke-through in the session this comes from appeared only on another body shape in a pose, while the authoring scene showed zero overlaps throughout:
- Measure with
mpfb_check_mesh_asset, against the body it was made on. Give it a material withmpfb_set_makeskin_material, if it has none, and the body a delete group withmpfb_generate_delete_group. - Write it with
mpfb_write_mesh_asset, withdestinationexport_directorywhile iterating, so that the library does not fill up, andoverwritefrom then on. The character must be at rest and facing forward, since MPFB would bake a pose or a turn into the file:mpfb_reset_poseandmpfb_place_characterput it back, and theirrestore_withreturns it.try_within the answer is the rest of this list, with the asset's name filled in. - Build a second character with
mpfb_create_human_from_preset, and pose it withmpfb_set_pose_bones. - Equip the asset with
mpfb_add_asset. - Measure with
mpfb_check_intersections, readingface_pairs_unmasked, then fix the mesh and go back to 2.
No tool removes a character yet, so the second one stays in the scene: do this in a file you do not mean to keep.
Textures are image work, and need no tool. What worked was to rasterize the UV triangles into per-texel position and island maps, build a height field in metres, and derive the normal map: about 500 lines to write and 20 s to run.
Three traps:
- An overlap count on a masked body is blind. Once a delete group grows, the masked skin is no longer in the evaluated mesh, so a garment and the body can read 0 while it pokes through on the next character. Measure with the masks off, which is why each answer carries both.
- Mixed faces are refused. MPFB's validator requires every face to have the same number of vertices, so an all-triangle draft forces anything added to it to be triangles too.
- Subdivision can ripple a narrow band. MPFB adds Subdivision with Blender's default
uv_smooth, and a strip one face wide, as a belt naturally is, renders its stitching as a ripple. Margin strips along both long edges fix it.
The same shape as an asset: author on one character, store, then try it on another.
- Start from a table.
mpfb_get_rig_definitionwithrigreads a shipped one fitted to the body, andinclude_jointslists the joint cubes an end can name. Rename the bones you keep, since a rig whose bones another library rig is identified by is refused at the store. - Build it with
mpfb_create_rigon a character with no rig and nothing equipped;replacerebuilds while iterating. - Weight it with
mpfb_weight_rig. Leave a root from the ground out withexclude_bones, or it takes the thighs. Check it withmpfb_check_rig_weights, and the same withbendon a character carryingdefault, as the baseline. - Store it with
mpfb_store_rig,dry_runfirst.try_withis the next two calls: a new character, andmpfb_add_rigwithcustom.<name>. Pose it withmpfb_set_pose_bones, and read it back withmpfb_get_pose.
The structured specifications for the project live in the specifications/ directory. Start with its index. Highlights:
- Vision — why this project exists, why a bridge add-on of our own, and the target tool catalog.
- Architecture — standing architectural principles new tools should follow.
To install every part from this checkout — MPFB, the bridge add-on, the server and an MCP client configuration — follow INSTALL.md. Developer setup and commands are documented in CLAUDE.md. Planned and in-progress development efforts are tracked in feature-requests/.