ArchLang
Floor plans as code.
Write a floor plan as text. Get a precise, dimensioned drawing back.
Send this to your agent
Paste this into any coding agent. The skills are listed on skills.sh: https://skills.sh/ChanMeng666/archlang
1. Run: npx -y skills add ChanMeng666/archlang --yes
2. Run: npx -y @chanmeng666/archlang spec (read it before writing anything)
3. Write my floor plan as plan.arch from this brief: <describe rooms, areas, adjacencies>
4. Run: npx -y @chanmeng666/archlang compile plan.arch -o plan.svg --json
then describe plan.arch --json, validate plan.arch --strict --json (same prefix); fix, recompile
5. Run: npx -y @chanmeng666/archlang finish plan.arch, then compile again to export.For MCP clients: claude mcp add archlang -- npx -y @chanmeng666/archlang-mcp.
https://github.com/user-attachments/assets/a60f3174-6a8c-4a42-b24a-fac030d39627
Related MCP server: AutoCAD MCP
Try it
npx skills add ChanMeng666/archlangThen ask your coding agent:
Design a one-bedroom flat of about 54 m², with the front door on the north wall.
It writes the plan, compiles it and checks it. This one is 56 lines of text:
Click the drawing to open this exact plan in the playground. Change a number and it redraws.
Why text
Change one number, and one thing moves. Nothing else is redrawn.
The same source gives the same drawing, byte for byte.
An agent can check its own plan without ever looking at an image.
flowchart LR
B([Brief]) --> W[Write .arch]
W --> C{Compiles?}
C -->|no| F[Apply the fix<br/>the error carries] --> C
C -->|yes| V{Matches<br/>the brief?}
V -->|no| W
V -->|yes| O([SVG · DXF · PDF · PNG])For your agent
This page is all a person needs. Everything else is written for agents: clone the repo and point yours at AGENTS.md, or give it the whole language in one call:
npx -y @chanmeng666/archlang contextFull overview · Language reference · Release notes (installed: node_modules/@chanmeng666/archlang/CHANGELOG.md) · Contributing · MIT
ArchLang is the engine behind ArchCanvas. Built by Chan Meng.
This server cannot be deployed
Maintenance
Related MCP Connectors
Floor plans in real mm: doors, windows, fixtures; validate, render, elevations, sections, storeys.
Headless CAD engine & MCP server for 2D/3D drafting, solids, DXF/SVG export, and automation.
Architecture compiler for AI code. 11 tools, 92 actions, 872 Lean4 proofs, 100/100 self-cert.
Agent-first CAD: editable .kcad.ts source, deterministic review, OpenCASCADE kernel.
Related MCP Servers
- AlicenseAqualityAmaintenanceModern CAD CLI + MCP Server: 2D/3D drawing, editing, measurement, validation, batch automation, real-time collaboration (CRDT + WebSocket).222Apache 2.0
- AlicenseAqualityBmaintenanceEnables an AI assistant to conversationally control Autodesk AutoCAD, drawing, inspecting, and editing plans, and includes a cross-platform DXF engine that runs without AutoCAD on macOS and Linux. It exposes tools for rendering views as images, batching geometry, blocks, and structures, measuring and checking plans, and undoing whole batches.12MIT
- FlicenseNot gradedqualityAmaintenanceFloor plans, elevations and sections for agents. Draw a room in real millimetres, place doors, windows and tables, validate with typed errors, render deterministic SVG. Free key, no approval.-
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to automate 2D architectural drafting and CAD file management, including DXF/DWG parsing, SVG/PNG/PDF rendering, wall extrusion to 3D STL meshes, room and beam analysis, block/script library access, and persistent depot storage via a REST API and MCP tools.18MIT