BlockbenchMCP - Blockbench 模型上下文协议集成のロゴ

BlockbenchMCP - Blockbench 模型上下文协议集成

コミュニティ
enfp-dev-studio

BlockbenchMCP connects Blockbench to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blockbench. This integration enables AI-assisted 3D…

公開者enfp-dev-studio
リポジトリblockbench-mcp
言語TypeScript
フォーク
5
スター
30
利用可能なツール
0
通信方式stdio
カテゴリ
ライセンスMIT
リンク
  • ツールをAIワークフローに接続

    BlockbenchMCP - Blockbench 模型上下文协议集成は、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには30件のスターと5件のフォークがあります。

BlockbenchMCP - Blockbench Model Context Protocol Integration

BlockbenchMCP connects Blockbench to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blockbench. This integration enables AI-assisted 3D modeling, texture creation, and block model manipulation.

🚀 Features

  • Two-way communication: Connect Claude AI to Blockbench through a socket-based server
  • Real-time command tracking: Monitor all MCP commands with a dedicated history panel
  • Model manipulation: Create, modify, and delete block models in Blockbench
  • Live feedback: Get instant responses from Blockbench operations
  • Extensible architecture: Easy to add new tools and capabilities

🏗️ Components

The system consists of two main components:

  1. Blockbench Plugin (apps/mcp-plugin): A Blockbench plugin that creates a socket server within Blockbench to receive and execute commands
  2. MCP Server (apps/mcp-server): A Node.js server that implements the Model Context Protocol and connects to the Blockbench plugin

📦 Project Structure

blockbench-mcp/
├── apps/
│   ├── mcp-server/      # MCP server implementation
│   └── mcp-plugin/      # Blockbench plugin
└── packages/
    └── shared/          # Shared TypeScript types

�️ Installation

Prerequisites

  • Blockbench 4.0 or newer
  • Node.js 18.0 or newer
  • pnpm package manager

Install pnpm if you haven't already:

bash
npm install -g pnpm

1. Clone and Setup

bash
git clone https://github.com/enfpdev/blockbench-mcp.git
cd blockbench-mcp
pnpm install

2. Build the Project

bash
pnpm build

3. Install the Blockbench Plugin

  1. Build the plugin: cd apps/mcp-plugin && pnpm build
  2. Open Blockbench
  3. Go to File > Plugins > Load Plugin from File
  4. Select the built plugin file from apps/mcp-plugin/dist/
  5. Enable the plugin by checking the box next to "MCP Plugin"

4. Claude Desktop Integration

Add the following to your Claude Desktop configuration file:

Location:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Configuration:

json
{
  "mcpServers": {
    "blockbench": {
      "command": "node",
      "args": [
        "/path/to/blockbench-mcp/apps/mcp-server/dist/index.js"
      ]
    }
  }
}

🎮 Usage

Starting the Connection

  1. In Blockbench, open the plugin panel (if not visible, go to View > Panels)
  2. Find the "MCP Plugin" panel
  3. Click "Connect to MCP Server"
  4. The plugin will start listening on port 9999

Using with Claude

Once the configuration is set in Claude Desktop and the plugin is running in Blockbench, you'll see a hammer icon with tools for Blockbench MCP.

Capabilities

  • Get model and project information
  • Create, delete, and modify block models
  • Apply textures and materials
  • Execute custom modeling operations
  • Real-time command history tracking

Example Commands

Here are some examples of what you can ask Claude to do:

  • "Create a simple sword model with proper proportions"
  • "Add a crossguard to the existing sword model"
  • "Create a chest model with opening animation"
  • "Generate a pickaxe tool with different material variants"
  • "Show me the current model structure and elements"
  • "Create a character head with facial features"

🔧 Development

Development Mode

bash
# Start both server and plugin in development mode
pnpm dev

# Or start individually
cd apps/mcp-server && pnpm dev
cd apps/mcp-plugin && pnpm dev

Version Management

This project uses Changesets for version management:

bash
# Record changes
pnpm changeset

# Update versions
pnpm version

# Build all packages
pnpm build

🐛 Troubleshooting

  • Connection issues: Make sure the Blockbench plugin is running and the MCP server is configured in Claude Desktop
  • Port conflicts: The plugin uses port 9999 by default. Make sure no other application is using this port
  • Plugin not loading: Verify that the plugin file is properly built and Blockbench version is compatible
  • Command timeouts: Try simplifying your requests or breaking them into smaller steps

🔧 Technical Details

Communication Protocol

The system uses Socket.IO for real-time communication between components:

  • WebSocket connection on port 9999
  • JSON-based commands with type and payload structure
  • Event-driven architecture for responsive interactions

Architecture

Claude AI ← MCP Protocol → MCP Server ← Socket.IO → Blockbench Plugin

⚠️ Limitations & Security Considerations

  • The plugin allows executing code within Blockbench, which can be powerful but potentially risky
  • Always save your work before using experimental features
  • Complex operations might need to be broken down into smaller steps
  • Network communication happens over localhost only for security

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

� License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments


Disclaimer: This is a third-party integration and not officially affiliated with Blockbench.

インストール

TypingMind
前提条件:

Node.js 18+

{
  "mcpServers": {
    "enfpdev-blockbench-mcp": {
      "command": "",
      "args": []
    }
  }
}

BlockbenchMCP - Blockbench 模型上下文协议集成のMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度BlockbenchMCP - Blockbench 模型上下文协议集成に接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

BlockbenchMCP - Blockbench 模型上下文协议集成をサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. BlockbenchMCP - Blockbench 模型上下文协议集成のMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "enfpdev-blockbench-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "blockbench-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてBlockbenchMCP - Blockbench 模型上下文协议集成のMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. BlockbenchMCP - Blockbench 模型上下文协议集成のMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
BlockbenchMCP - Blockbench 模型上下文协议集成を使ってこのタスクを手伝ってもらえますか?
BlockbenchMCP - Blockbench 模型上下文协议集成
はい、読みました。
BlockbenchMCP - Blockbench 模型上下文协议集成で調べた結果をお伝えします。

よくある質問

BlockbenchMCP - Blockbench 模型上下文协议集成 MCPサーバーは何に使いますか?

BlockbenchMCP - Blockbench 模型上下文协议集成は、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでBlockbenchMCP - Blockbench 模型上下文协议集成 MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでBlockbenchMCP - Blockbench 模型上下文协议集成を利用できます。

TypingMindでBlockbenchMCP - Blockbench 模型上下文协议集成 MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。BlockbenchMCP - Blockbench 模型上下文协议集成を接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

BlockbenchMCP - Blockbench 模型上下文协议集成 MCPをTypingMindに接続するにはどうすればよいですか?

BlockbenchMCP - Blockbench 模型上下文协议集成はTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでBlockbenchMCP - Blockbench 模型上下文协议集成 MCPのどのようなツールを利用できますか?

BlockbenchMCP - Blockbench 模型上下文协议集成はMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

BlockbenchMCP - Blockbench 模型上下文协议集成 MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。BlockbenchMCP - Blockbench 模型上下文协议集成で認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇