# OpenCalque

OpenCalque is a Claude Code MCP server that draws 2D floor plans in JSON and exports them to PDF, DXF, or SVG. The agent edits walls, rooms, doors, and furniture.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 128 repo stars
- Author: laurent512
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/laurent512/opencalque/tree/HEAD/packages/cli
- Updated: 2026-11-17
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/opencalque

## What it does

OpenCalque lets an agent create and edit 2D floor plans stored as JSON. It opens or creates a `.opencalque` file, applies JSON operations, then inspects the result: room and wall checks, measurements for rooms, walls, and doors, plus a rendered plan view.

The command-line package can create drawings, apply an operations file, validate plans, export PDF, PNG, SVG, and DXF, import DXF, and calculate room and element quantities. The MCP server starts with `npx -y opencalque mcp`. PDF output with Chinese, Japanese, or Korean text needs fonts from a checkout or the desktop app because the package includes only Noto Sans.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add opencalque -- npx -y opencalque
```

### Codex

**Platform CLI**
```bash
codex mcp add cli -- npx -y opencalque
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "cli": {
            "command": "npx",
            "args": [
                "-y",
                "opencalque"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "cli": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "opencalque"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add cli npx -y opencalque
```

## When to use it
- create a 2D floor plan as JSON
- find open rooms and duplicated walls
- measure rooms, walls, and doors
- export a drawing to PDF, DXF, or SVG

## Example prompts
- Draw a flat plan in `plan.opencalque` with walls, doors, rooms, and furniture.
- Open `plan.opencalque`, check for open rooms and duplicated walls, then show the drawing.
- Measure the rooms and walls in `plan.opencalque` and export the plan to `plan.pdf`.

## Similar
- [Vectorize](https://affpapa.org/en/nevibecode/mcp/vectorize.md) — MCP server
- [KerfScript](https://affpapa.org/en/nevibecode/mcp/kerfscript.md) — MCP server · ★ 11 repo stars
- [homotope](https://affpapa.org/en/nevibecode/mcp/homotope.md) — MCP server · ★ 9 repo stars
- [Aspicio](https://affpapa.org/en/nevibecode/mcp/aspicio.md) — MCP server · ★ 6 repo stars
- [Nestbolt sheet nesting](https://affpapa.org/en/nevibecode/mcp/nestbolt-sheet-nesting.md) — MCP server · ★ 19 repo stars
- [CadCraft Studio](https://affpapa.org/en/nevibecode/mcp/cadcraft-studio.md) — MCP server

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
