allplan-mcp-bridge
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@allplan-mcp-bridgeCreate a 5 m wall at (0,0,0) to (5000,0,0), height 3000 mm, thickness 300 mm."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
allplan-mcp-bridge
A production-grade MCP server that exposes Allplan's BIM API (geometry, attributes, IFC import/export, and layer management) to MCP clients such as Claude Code and Claude Desktop. Runs as a normal Python process that communicates with a PythonPart agent embedded inside Allplan over local TCP, so Claude can create, query, and modify BIM elements while every operation stays inside Allplan's native undo history.
Quick start
Prerequisites
Component | Version |
Allplan | 2026 (tested), likely works on 2025 / 2024-1 |
OS | Windows 10 / 11 |
Python (external) | 3.12+ |
|
|
Claude Code or Claude Desktop | Latest |
1 — Clone and install the MCP server
git clone https://github.com/andrej-reeg/allplan-mcp-bridge.git
cd allplan-mcp-bridge
uv sync2 — Install the Allplan PythonPart
python scripts\install_pythonpart.pyAuto-detects the Allplan 2026 PythonParts directory. Pass --scripts-dir and
--library-dir explicitly if auto-detection fails.
3 — Activate the bridge in Allplan
Launch Allplan 2026 and open any project.
In the Library, find Allplan MCP Bridge → AllplanMcpBridge and activate it.
A palette should appear. The bridge is now listening on TCP port 49152.
4 — Start the MCP server
uv run python -m allplan_mcp_serverYou should see {"event": "ipc.connected", ...} in the log. If not, check that the
Allplan palette is visible and the bridge is active.
5 — Configure Claude Code (or Claude Desktop)
Add to ~/.claude/claude_desktop_config.json:
{
"mcpServers": {
"allplan": {
"command": "uv",
"args": ["run", "python", "-m", "allplan_mcp_server"],
"cwd": "C:\\path\\to\\allplan-mcp-bridge"
}
}
}Then ask Claude:
"Create a 5 m wall at (0,0,0) to (5000,0,0), height 3000 mm, thickness 300 mm."
The wall should appear in Allplan, inside one undo bracket.
Architecture
Claude Code / Desktop
│ stdio JSON-RPC (MCP protocol)
▼
allplan_mcp_server (this repo — normal Python 3.12 process)
│ TCP 127.0.0.1:49152 length-prefixed JSON + HMAC token auth
▼
allplan_agent (PythonPart — runs INSIDE Allplan's embedded Python)
│ thread-safe queue
▼
Allplan main thread → NemAll_Python_* API → BIM documentSee docs/architecture.md for the full picture and
docs/threading-model.md for the one law that must
never be broken.
Configuration reference
All settings use the ALLPLAN_MCP_ prefix. Set as environment variables or in a
.env file in the repository root.
Variable | Default | Description |
|
|
|
|
| TCP host (loopback only) |
|
| TCP port |
| auto-detected | Root path for IFC file allowlist |
|
| Timeout for standard operations |
|
| Timeout for IFC import/export |
|
|
|
|
| IPC frame size cap (16 MiB) |
|
| Per-tool argument size cap (1 MiB) |
Available tools
See docs/tool-catalog.md for the full catalog with input
schemas and examples. Short summary:
Category | Tools |
Geometry |
|
Document |
|
Attributes |
|
Layers |
|
IFC |
|
Health |
|
Supported Allplan versions
Version | Status |
Allplan 2026 | Tested, supported |
Allplan 2025 | Should work — not formally tested |
Allplan 2024-1 | Should work — not formally tested |
Earlier | Not supported |
Limitations (v1)
Single instance. One Allplan + one MCP server. Multi-instance support is out of scope for v1; see
docs/architecture.mdfor the design note.Windows only. Allplan is Windows-only. The MCP server can run in WSL2 and connect to Allplan over TCP.
Geometry only.
create_slab,create_column,create_beamcreate generic 3-D solids (not architectural elements with material assignments). Architecture elements are planned for v2.No live preview. Elements are inserted when the bridge processes the command, not on mouse hover.
IFC size. Exports > 1 GiB are hard-rejected. Exports > 100 MiB log a warning.
Main-thread serialisation. All Allplan API calls run on the main thread. Heavy operations (large IFC export) will briefly freeze Allplan's UI.
Troubleshooting
ipc.connect_failed in MCP server logs
Confirm the Allplan palette is visible and shows "running".
Check that the TCP port (default 49152) is not blocked.
Check
~/.allplan-mcp/bridge.logfor errors from the agent.
Wall/element created but in wrong position
Check
~/.allplan-mcp/debug.logfor_wall: attempt Nlines — these show which geometry placement strategy succeeded.
PathNotAllowedError on IFC export
The path is outside
ALLPLAN_MCP_ALLPLAN_WORKSPACE_ROOT.Either move the file or set the env var to a parent directory.
Timeout errors on get_active_document_info
This call requires the Allplan main thread and returns
{main_thread_required: true}when called from the background pump. Trigger a mouse event in Allplan (move the cursor into the drawing) to process the next tick.
Development
uv sync --dev
uv run pytest tests/unit tests/integration
uv run ruff check src tests
uv run mypy srcSee CONTRIBUTING.md for how to add a new tool.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/andrej-reeg/allplan-mcp-bridge'
If you have feedback or need assistance with the MCP directory API, please join our Discord server