v1.1.0 · Tiled 1.12.2 verified

Build Tiled maps from a prompt

Tiled MCP Pro connects Claude Code, Cursor and other MCP clients to the Tiled Map Editor. The AI creates maps and layers, places tiles from your tilesets, paints terrain with matching edges and corners, adds objects and properties, renders the map to check its own work, and exports for your engine. 105 tools.

Buy once, free updates. Verified on Tiled 1.12.2, Windows 11.
dungeon.tmx· 20×15 · 64 pxrender_map_to_image
Stone dungeon rooms and corridors in Tiled, rendered to PNG
Development test map, rendered by render_map_to_image. Tiles: Screaming Brain Studios (CC0).
105
MCP tools
14
tool categories
2
auto-tiling engines
$10
once, updates included

How it works

Two parts: a Node.js MCP server that your AI client starts, and a one-file extension inside Tiled that runs the commands with Tiled's own scripting API.

MCP client  --stdio-->  tiled-mcp-pro (Node.js MCP server)
                              |
                              |  loopback HTTP, ports 6520-6524 (long poll)
                              v
             Tiled extension (JavaScript, Tiled scripting API)
             -> long-polls the server, runs each command in the open editor
             -> maps, layers, tiles, tilesets, terrain, objects, export

No bridge process, no spawned helpers and no cloud service. The extension long-polls the server over loopback HTTP, so it uses almost no CPU while idle, and the server rejects browser-origin and non-loopback requests. Commands run in the open editor: you watch the map change as the AI works and can keep editing by hand. Several AI clients can share one Tiled.

What the AI can do in Tiled

Grouped by area. Tool names are the ones your AI client sees.

Maps

Create, open, save, close and resize maps; orthogonal, isometric, staggered and hexagonal orientation; tile size; switch between open maps; undo and redo.

create_map open_map save_map resize_map set_map_orientation get_map_info undo_map

Layers

Tile, object, image and group layers. Rename, reorder, remove, and set visibility, lock, opacity, offset, parallax factor and tint color.

get_layers add_tile_layer add_object_layer add_group_layer set_layer_property reorder_layer

Tiles

Place single tiles or hundreds in one batch, fill and clear rectangles, flood fill like the bucket tool, and list where tiles are used.

set_tile set_tiles_batch fill_rect flood_fill clear_rect get_used_tiles

Tilesets

Add tilesets from .tsx files or images, collection tilesets, tile classes and probabilities, and a tileset preview image with a tile-ID grid that the model can look at.

add_tileset get_tileset_info get_tileset_preview set_tile_class set_tile_probability

Smart Tiles 1.1

Bitmask auto-tiling for tilesets without Wang sets: define rules once (blob47, simple16 or custom), then paint with terrain names. Rules are saved in the tileset.

define_autotile_rules place_terrain place_terrain_rect get_semantic_map

Wang terrain placement 1.1

Paint with the terrain (Wang) sets already defined in your tileset: give a grid of terrain colors and the transition tiles are chosen for you, neighbours included.

place_wang_terrain get_wang_terrain_map get_terrain_sets

Terrain set editing

Create terrain sets (corner, edge or mixed), add and remove terrain colors, and assign Wang IDs to tiles, so the AI can prepare a tileset for auto-tiling.

add_terrain_set add_terrain_color set_terrain_tile get_terrain_set_info

Objects

Rectangles, ellipses, points, polygons, polylines, text and tile objects, with class, rotation and visibility. Spawn points, triggers, doors, collision shapes.

add_object update_object get_objects remove_object

Custom properties

Read and write custom properties on the map, layers, objects and tiles, one at a time or in a batch.

set_property set_properties_batch get_properties set_map_property

Sees its own map

render_map_to_image renders the whole map to a PNG with no dialog and, with return_image, hands the picture back to the model so it can check the result and fix it.

render_map_to_image get_tileset_preview get_semantic_map

Export

Write the map in any format your Tiled has: TMX, JSON, Lua, CSV, and plugin formats such as Godot 4 scenes. Export tilesets too.

get_export_formats export_map export_tileset export_map_to_json

Checks, editor and project

Validate a map, get statistics, compare layers, run AutoMapping, read the selection, trigger Tiled actions, list worlds and project files.

validate_map get_map_statistics compare_layers auto_map trigger_action get_worlds

Auto-tiling that gets edges right

Placing a wall or a shoreline tile by tile means picking the right edge, corner and inner-corner piece for every cell. Tiled MCP Pro does that choice in code, so the AI only says where each terrain goes.

Wang sets: use what the tileset already knows

Many tilesets ship with terrain (Wang) sets defined in Tiled. place_wang_terrain takes a grid of terrain colors, works out the corner or edge IDs for every cell and its neighbours, and places the matching transition tiles. No extra setup.

Lake beforebefore
Lake after place_wang_terrainafter
place_wang_terrain, before and after. On Tiled's bundled orthogonal-outside example the AI painted a grass bank and a dirt field into the lake; the shoreline tiles were chosen by the tool. Tileset: Michele "Buch" Bucelli, CC-BY 3.0.

Smart Tiles: bitmask rules for any tileset

For tilesets without Wang sets, define_autotile_rules maps each neighbour pattern to a tile once. Each cell's neighbours add up to a bitmask; diagonals only count when both cardinal neighbours match, which folds 256 cases into the 47 of blob47. simple16 uses the four sides only.

Bitmask weights around a cell (N=1, E=2, S=4, W=8, NE=16, SE=32, SW=64, NW=128). Highlighted: N+E+NE = 19.

Read back as terrain

get_semantic_map and get_wang_terrain_map return a layer as terrain names instead of tile IDs, so the model can reason about the level layout:

########## #........# #..~~~...# #..~~~...# ####..#### #..#

Demo

Screen recordings of the AI building maps in Tiled.

Demo video coming soon: a dungeon level from one prompt
Demo video coming soon: Wang terrain and Smart Tiles

Supported clients

Any MCP client that can start a local stdio server. Configs for the first three are in the setup guide.

Claude Codeclaude mcp add tiled -- node <path>/server/build/index.js
Cursor~/.cursor/mcp.json or a project .cursor/mcp.json
Claude Desktopclaude_desktop_config.json
Other stdio MCP clientsSame command and arguments; not individually tested. Add --lite for tool caps.

Install outline

About ten minutes. Full instructions ship in the download; the setup guide walks through every step.

Install the Tiled extension and restart Tiled

powershell -ExecutionPolicy Bypass -File scripts\install-extension.ps1

macOS / Linux (untested): bash scripts/install-extension.sh. Either script copies tiled_mcp_pro.js into a tiled-mcp-pro folder in Tiled's extensions folder.

Install the MCP server (Node.js 18+)

cd server
npm ci --omit=dev

Register the server with your AI client

claude mcp add tiled -- node C:/tools/tiled-mcp-pro/server/build/index.js

Open a map in Tiled and ask

Try "Call get_editor_info, then create a 30x20 map with 16 px tiles."

What to expect in 1.1.0

  • Verified live on Tiled 1.12.2 on Windows 11 with all 105 tools. Tiled 1.11 or later is required. macOS and Linux are untested; there, a click in Tiled or MCP: Reconnect may be needed if Tiled starts before the AI client.
  • Tiled must be running with the map open; commands act on the active map.
  • If a tileset lacks a transition tile, Wang placement uses the closest match and lists those cells as approximate or unmatched in its result.
  • Actions that would open a modal dialog are refused by default, because a dialog blocks Tiled until someone closes it; the dedicated tools (save_map with file_path, export_map, render_map_to_image) work without one.
  • auto_map runs the AutoMapping rules you already set up in Tiled; it does not write rules.
  • All later updates are free for buyers.

FAQ

What is Tiled MCP Pro?
An MCP (Model Context Protocol) server plus a Tiled extension. Together they let an AI client such as Claude Code or Cursor drive the Tiled Map Editor: create maps and layers, place tiles, paint terrain with matching edges and corners, add objects and custom properties, render the map to an image and export it. Version 1.1.0 has 105 tools.
Does the AI draw pictures, or edit real Tiled maps?
Real maps. Every tile comes from a tileset you loaded, and the result is an ordinary .tmx map with .tsx tilesets that you can open and edit by hand. No image model is involved.
Which Tiled versions and operating systems are supported?
Tiled 1.11 or later is required. Live verification was done on Tiled 1.12.2 on Windows 11 with all tools. macOS and Linux are untested so far (on those, a click in Tiled or MCP: Reconnect may be needed if Tiled starts before the AI client). You also need Node.js 18 or later for the MCP server.
Which AI clients work?
Any MCP client that can start a local stdio server. Configs for Claude Code, Cursor and Claude Desktop are in the setup guide. Other clients (Windsurf, Cline and so on) use the same command but have not been individually tested. For clients with a tool cap, start the server with --lite (63 tools).
Will it work with my tileset?
Any tileset Tiled can load works for direct tile placement. For automatic edges and corners: if the tileset has Wang (terrain) sets, place_wang_terrain uses them directly; if it has none, define Smart Tiles bitmask rules once and they are saved in the tileset. get_tileset_preview shows the model the tileset image with tile IDs, so it can pick tiles by looking.
Can the AI see the map it made?
render_map_to_image renders the whole map to a PNG without opening a dialog; with return_image it also returns the picture to the model, so the AI can look at it and fix what is off. get_tileset_preview returns the tileset image to the model directly, and get_semantic_map returns a layer as an ASCII terrain grid.
Is it safe to run?
The MCP server listens on 127.0.0.1 only, rejects browser-origin and non-loopback requests, and sends nothing to the internet; your AI client talks to its own model provider as usual. The AI can save maps and, through the project tools, read and write text files, so keep your maps under version control. Lite mode leaves the file tools out.
Tiled is free. Why is this paid?
Tiled is free, open-source software by Thorbjørn Lindeijer and contributors, and it stays free. Tiled MCP Pro is a separate, independent add-on that connects AI clients to it. If Tiled is useful to you, consider supporting its development as well.
How much is it, and is there a subscription?
$10 USD, paid once on itch.io. No subscription; later updates are included.
v1.1.0
$10 USD, once

Buy once on itch.io. Every later update is included.

Buy Tiled MCP Pro
  • MCP server with 105 tools in 14 categories
  • Lite mode with 63 core tools for clients with tool caps
  • Tiled extension (one JavaScript file)
  • Smart Tiles bitmask auto-tiling and Wang terrain placement
  • Setup instructions and example prompts
  • Free updates; license terms are in the download