Skip to main content
Glama
MC-Schema-MCP

MC-Schema-MCP

by Nek0cha

MC-Schema-MCP

Claude Code から Minecraft の建築物を設計し、.schem(Sponge Schematic v3)ファイルとして書き出す MCP サーバーです。ブロックはサーバー内の仮想空間(プロジェクト)に配置していき、完成したら1コマンドでエクスポートします。

対象環境: Paper 1.21.11 相当(DataVersion = 4671)。WorldEdit/FAWE の //schematic load で読み込む前提です。

セットアップ

pnpm install
pnpm build

Claude Code の MCP サーバー設定に以下を追加してください(claude_desktop_config.json や .mcp.json など、使用しているクライアントの設定ファイル)。

{
  "mcpServers": {
    "mc-schema-mcp": {
      "command": "node",
      "args": ["/path/to/MC-Schema-MCP/dist/index.js"]
    }
  }
}

Related MCP server: Minecraft Builder MCP Server

使い方

  1. Claude Code 上で建築物の要件を伝える

  2. Claude Code が createProject → setBlock/fillBox/sphere などのツールでブロックを配置していく

  3. 完成したら exportSchematic を呼び、.schem ファイルを書き出す

  4. 書き出されたファイル(./output/<プロジェクト名>.schem)を、手動でMinecraftサーバーの schematics フォルダにコピーする

  5. FAWE の //schematic load <名前> → //paste などでワールドに反映する(この工程はこのMCPサーバーの対象外)

注意: 座標を設定していないマスは「空気(air)」としてエクスポートされます。既存の地形にかぶせて //paste すると、バウンディングボックス内の未設定マスがその地形を消してしまいます。

ツール一覧

プロジェクト管理

ツール

引数

説明

createProject

name: string

新規プロジェクトを作成し、アクティブにする。名前は英数字・スペース・ハイフン・アンダースコアのみ、先頭は英数字

listProjects

-

存在するプロジェクト名一覧を返す

switchProject

name: string

アクティブプロジェクトを切り替える

deleteProject

name: string

プロジェクトを破棄する

ブロック配置

ツール

引数

説明

setBlock

pos: Vec3, block: BlockState

1ブロックを配置

setBlocks

blocks: { pos: Vec3, block: BlockState }[]

複数ブロックを1回の呼び出しでまとめて配置

図形プリミティブ

ツール

引数

説明

fillBox

from, to: Vec3, block: BlockState | Palette

直方体を塗りつぶす

outlineBox

from, to: Vec3, block

直方体の外殻のみ配置

wall

from, to: Vec3, height: number, block

2点を結ぶ線分に沿った垂直な壁

line

from, to: Vec3, block

2点間の直線

sphere

center: Vec3, radius: number, block, hollow?: boolean

球

cylinder

center: Vec3, radius: number, height: number, block, hollow?: boolean

円柱

block には単一の BlockState({ id: "minecraft:oak_stairs", properties?: { facing: "north" } })に加えて、Palette({ block: BlockState; weight: number }[]、重み付きランダム配置)も指定できます。半径0〜1のhollow指定は、中を空洞にできるだけの厚みがないため無視されます(無音で何も置かれないのではなく、ソリッドとして配置されます)。

フェンス・フェンスゲート・ガラス板・鉄格子・壁は、隣接ブロックとの接続を表す north/south/east/west(壁は up も)プロパティを手動で指定する必要はありません。exportSchematic 時に周囲のブロックを見て自動的に補完・上書きされます(waterlogged など接続に関係ないプロパティは温存されます)。

情報・出力

ツール

引数

説明

getBuildInfo

-

アクティブプロジェクトのサイズ・バウンディングボックス・ブロック数集計を返す

exportSchematic

-

アクティブプロジェクトを ./output/<projectName>.schem に書き出し、書き出し先の絶対パスを返す

previewBuild

-

アクティブプロジェクトを2Dレイヤービューアで確認できるローカルサーバーを起動し、URLを返す

エクスポートの上限: 1軸あたり32767ブロック、合計1,600万セル(バウンディングボックスの体積、疎に配置していても密なフォーマットとして書き出すため)。超えると exportSchematic はエラーを返します。

開発

pnpm test    # vitest + テストファイルの型チェック
pnpm build   # tsc
pnpm start   # ビルド済みサーバーを stdio で起動

設計ドキュメント

Available Tools

14 tools
createProjectA

Create a new build project and make it active.

Inputs: name (required).

cylinderC

Build a cylinder.

Inputs: block (required), center (required), height (required), radius (required), +1 more.

deleteProjectB

Delete a build project.

Inputs: name (required).

exportSchematicA

Export the active project to ./output/.schem and return the absolute path. Project names may contain only letters, digits, spaces, hyphens and underscores.

Inputs: no named parameters.

fillBoxC

Fill a solid rectangular box.

Inputs: to (required), from (required), block (required).

getBuildInfoA

Get a summary of the active project (size, bounding box, block counts).

Inputs: no named parameters.

lineB

Draw a straight line of blocks between two points.

Inputs: to (required), from (required), block (required).

listProjectsA

List all build project names.

Inputs: no named parameters.

outlineBoxC

Build a hollow rectangular box (shell only).

Inputs: to (required), from (required), block (required).

setBlockB

Set a single block in the active project.

Inputs: pos (required), block (required).

setBlocksC

Set multiple blocks in the active project in one call.

Inputs: blocks (required).

sphereD

Build a sphere.

Inputs: block (required), center (required), radius (required), hollow.

switchProjectC

Switch the active build project.

Inputs: name (required).

wallC

Build a vertical wall along the line between two points.

Inputs: to (required), from (required), block (required), height (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 14 tools

    Disambiguation5/5

    Each tool targets a distinct resource or shape operation: project lifecycle, block editing, and shape generation are clearly separated. The singular/plural behavior of setBlock vs setBlocks is explicit, and the shape tools are differentiated by geometry.

    Naming Consistency4/5

    Most tools follow a camelCase verb+noun pattern such as createProject, setBlocks, and exportSchematic. The bare shape names wall, line, sphere, and cylinder are a minor deviation, but the overall naming style remains consistent and predictable.

    Tool Count5/5

    14 tools is well within the ideal range for a Minecraft schematic builder. Project management, block editing, and shape generation are each represented without redundant tools.

    Completeness4/5

    The toolset covers project lifecycle, active project state, block setting, common shapes, and schematic export. It lacks a way to read individual blocks or import existing schematics, but these are minor gaps rather than blockers for the core workflow.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers