# ArchLang

> Author and check architectural floor plans as code.

- **URL**: https://followmcp.com/en/servers/chanmeng666-mcp
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 289
- **FMRS Score**: 66/100 (Grade C)
- **Source**: https://github.com/ChanMeng666/archlang/tree/main/packages/mcp
- **Transports**: stdio (local process), Streamable HTTP
- **Runtimes**: Node.js, Hosted (no local runtime)
- **Auth**: No credential needed

## Overview
ArchLang MCP Server lets MCP hosts describe, compile, inspect, and repair architectural floor plans written in ArchLang. It can produce SVG, text, Plan JSON, or PNG; the core ArchLang project also supports DXF and PDF exports. The server is offered as a local stdio package and a hosted streamable HTTP endpoint.

## Best for
- People using MCP hosts to author or review architectural floor plans.
- Workflows that need reproducible compilation and checks on text-based plans.

## Not for
- Users who need BIM, IFC, or permit drawings.
- Users who need the server to read photos or images to create a plan.
- Users who need element-by-element keyboard and screen-reader interaction in MCP output; the source says this requires calling the core library directly.

## Required permissions
- Tools process floor plan source or Plan JSON supplied by the caller; the README says tools do not write files.
- The local configuration launches the package with npx; the provided material does not specify additional system permissions or authentication requirements.

## Risks
- Not all validation checks are gates; checks other than reachability and area may be advisory.
- PNG compilation requires the optional @resvg/resvg-js dependency, which the README says is omitted from the .mcpb bundle.
- The MCP accessible option adds an SVG title and description but does not provide element-level accessible interaction.

## Client config (JSON)
```json
{"mcpServers":{"archlang":{"command":"npx","args":["-y","@chanmeng666/archlang-mcp"]}}}
```

## Tools (12)
- `compile`: Compiles ArchLang source or Plan JSON to SVG, text, a Plan JSON object, or PNG, and returns diagnostics.
- `describe`: Returns semantic facts about a plan, including rooms, areas, adjacency, doors, circulation, zones, and storeys.
- `lint`: Reports advisory soundness warnings for a floor plan.
- `validate`: Parses, resolves, and checks a plan, with options for strict validation, room graphs, or design intent.
- `score`: Measures how much of a brief's intent a plan satisfies; it does not gate success or failure.
- `repair`: Moves furniture out of walls, doorways, or door swings and returns rewritten source with a change log; it does not add doors or windows.
- `finish`: Furnishes rooms that lack furniture and adds missing sheet details such as dimensions and legends, returning rewritten source.
- `fix`: Applies machine-applicable fixes to diagnostic findings.
- `suggest`: Provides door or window suggestion data for unreachable rooms or windowless bedrooms; suggestions are not applied automatically.
- `complete`: Returns language-server completion items at a source byte offset.
- `explain`: Explains a diagnostic code with its message, cause, fix, and examples.
- `link`: Creates Playground and embed links for a plan and reports its compressed size and compile status.
