Blockbench MCP

Blockbench MCP

A local MCP server that runs inside Blockbench, enabling Codex and other MCP clients to control and inspect Blockbench projects through 95 tools for modeling, animation, UV editing, painting, and more.

Category
访问服务器

README

Blockbench MCP

Codex-ready local MCP server for controlling Blockbench. This distribution combines the mature MCP implementation from jasonjgardner/blockbench-mcp-plugin with the local command-history idea from enfp-dev-studio/blockbench-mcp, then modernizes the result for direct use by Codex.

This is an independent community project. It is not affiliated with or endorsed by Blockbench, OpenAI, Jason J. Gardner, or ENFP Dev Studio.

What is inside

  • A ready-to-load Blockbench desktop plugin with an embedded Streamable HTTP MCP server.
  • 95 tools for projects, cubes, meshes, armatures, animation, UV editing, painting, textures, materials, cameras, import/export, and history.
  • 11 resources, 7 resource templates, and 3 prompts.
  • Codex-oriented server instructions and MCP tool annotations.
  • Loopback-only networking, optional bearer authentication, a 16 MiB request limit, and a bounded privacy-aware audit log.
  • A reproducible no-dependency build from the preserved upstream bundle.

See the full tool index, source comparison, and live verification report.

Requirements

  • Blockbench desktop. The web app cannot host this local server.
  • A local Codex client: ChatGPT desktop app, Codex CLI, or Codex IDE extension.
  • Node.js 20 or newer only when rebuilding the plugin. It is not required to run the bundled plugin.

Installation

  1. Clone or download this repository.

    git clone https://github.com/illia3/Blockbench-MCP.git
    cd Blockbench-MCP
    
  2. Open Blockbench and select File > Plugins > Load Plugin from File. Choose plugin/blockbench_codex_mcp.js and allow local network access if Blockbench asks.

  3. Keep these plugin defaults unless you need a different local setup:

    • port: 3000
    • MCP endpoint: /bb-mcp
    • prompt CDN: disabled
    • bearer token: empty (optional)
  4. Connect Codex. In the ChatGPT desktop app or IDE extension, open Settings > MCP servers > Add server, choose Streamable HTTP, enter http://127.0.0.1:3000/bb-mcp, save, and restart the client.

    For file-based configuration, copy .codex/config.toml.example to either ~/.codex/config.toml or a trusted project's .codex/config.toml:

    [mcp_servers.blockbench]
    url = "http://127.0.0.1:3000/bb-mcp"
    startup_timeout_sec = 10
    tool_timeout_sec = 120
    enabled = true
    required = false
    default_tools_approval_mode = "writes"
    
  5. Keep Blockbench open. Check http://127.0.0.1:3000/bb-mcp/ready, then use /mcp in Codex to confirm that blockbench is connected.

Codex MCP configuration details are documented in the official OpenAI MCP guide.

What to expect

The MCP server runs inside Blockbench, so commands act on the currently open desktop session. Read-only inspection can run automatically. The supplied Codex configuration asks for approval before tools that are not marked read-only. Blockbench undo/redo remains available for supported operations.

Some tools require a compatible project format, an active texture, a selected element, or an open project. Optional Hytale capabilities appear only when the corresponding Blockbench environment is available.

Suggested first prompts

  • Inspect the open Blockbench project and summarize its hierarchy.
  • Create a 16 x 16 x 16 cube named body and place it at the origin.
  • List the textures and materials used by the selected elements.
  • Capture a preview screenshot and identify visible modeling issues.
  • Show the last 20 Blockbench MCP audit entries.

Security

The server binds explicitly to 127.0.0.1; do not expose it through port forwarding, a reverse proxy, or a firewall rule. Bearer authentication is optional and disabled by default so this repository never stores a secret. See SECURITY.md for safe token setup and the audit policy.

The risky_eval and UI-emulation tools are powerful. Keep the Codex approval mode set to writes or stricter and review their arguments before approval.

Troubleshooting

  • Codex cannot connect: keep Blockbench open, verify the plugin is loaded, and open the /ready URL.
  • The server is missing from /mcp: save the MCP entry and restart the desktop app or IDE extension.
  • A tool reports that no project is open: create or open a Blockbench project, then retry.
  • Unauthorized response: the token configured in Blockbench must match the Authorization environment header configured for Codex.
  • Port already in use: stop the conflicting service or change the plugin port and the Codex URL together.

Development and verification

Rebuild and check the committed plugin:

npm run build
npm run check
npm test

source/build-custom.mjs deterministically applies the documented changes to the preserved upstream 1.6.1 bundle. npm test also fails if the generated plugin differs from the committed artifact.

Attribution and license

The included plugin is a modified work of Jason J. Gardner's blockbench-mcp-plugin 1.6.1 and is distributed under GPL-3.0-only. The ENFP Dev Studio repository was analyzed, but its source code was not copied. See THIRD_PARTY_NOTICES.md, MODIFICATIONS.md, and LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选