Blockbench MCP Sample Project
This repository serves as a template or example of how to create a workspace which sets up the Blockbench MCP server for success.
Note: In this example repository, the MCP port in Blockbench is set to 3000 and the endpoint is bb-mcp. These are the default values, but can be changed within the plugin's settings in Blockbench.
Start Blockbench
Desktop version of Blockbench must be running in the background.
IDE Setup Examples
VS Code
See the files in the .vscode and .github directories.
Claude Code
This repository is a Claude Code plugin. Installing it registers the desktop and headless MCP servers from .mcp.json, every skill in skills/, and the reviewer agent in agents/:
claude plugin marketplace add jasonjgardner/blockbench-mcp-project
claude plugin install blockbench-mcp@blockbench-mcp-project --scope user
From a checkout, validate the plugin and load it for one session:
claude plugin validate .claude-plugin/plugin.json
claude --plugin-dir .
Validation warns that the root CLAUDE.md is not loaded as plugin context. That file is for working in this repository, not for plugin users.
To add only the desktop server without the plugin:
claude mcp add blockbench npx mcp-remote http://localhost:3000/bb-mcp
Cline
cline_mcp_settings.json
{
"mcpServers": {
"blockbench": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"http://localhost:3000/bb-mcp"
]
}
}
}
Babylon.js MCP Servers
The workspace also configures the Babylon.js MCP servers (@babylonjs/mcp-servers, pinned to 9.26.2). They build Babylon.js editor graphs that pair with Blockbench assets. For example, a Node Material can drive a Bedrock texture_set in Babylon, and a particle system can add effects to an exported model. See docs/research/babylonjs-mcp-integration.md for workflows.
| Server | Dispatcher | Default |
|---|
babylonjs-node-material | nme | on |
babylonjs-node-geometry | nge | on |
babylonjs-node-particle | npe | on |
babylonjs-gui | gui | opt-in |
babylonjs-flow-graph | flow-graph | opt-in |
babylonjs-node-render-graph | nrge | opt-in |
babylonjs-smart-filters | smart-filters | opt-in |
- Claude Code:
.mcp.json is also the plugin's MCP config, so it lists only the Blockbench servers. Add the Babylon.js servers you need to your local config, for example claude mcp add babylonjs-node-material -- npx -y @babylonjs/[email protected] nme.
- OpenCode:
opencode.jsonc. Set enabled per server.
- VS Code:
.vscode/mcp.json lists all seven. Stop the ones you don't need from the MCP server list, since each one adds 24–29 tools.
Requirements and gotchas:
- Node.js
^20.19, ^22.13 or ^24. Odd-numbered releases such as 23.x print an engine warning.
- On Windows, if the client can't resolve
npx, use C:\Program Files\nodejs\npx.cmd (or cmd /c npx) as the command.
- Each graph server's live editor session listens on
localhost:3001 by default. Keep Blockbench's MCP port on 3000.
save_snippet uploads the graph to the public Babylon.js Snippet Server. Use export_*_json with an outputFile for private work.
Skills
The skills/ directory ships a set of Agent Skills that teach Claude (or any compatible client) how to drive the Blockbench MCP server productively. See skills/README.md for the full index.