mcp-floorplans

mcp-floorplans

Generates workspace floorplans with deterministic layout calculations, providing tools for space layout generation, zone adjacency analysis, and space brief validation.

Category
Visit Server

README

mcp-floorplans

Workspace floorplan generation MCP server with deterministic space layout calculation.

Status: Phase 4 MVP — Deterministic space layout engine (no external APIs)

Features

  • Deterministic space layout calculation — No API dependencies, pure Python logic
  • 3 layout variants per brief — Balanced, Collaboration-heavy, Focus-intensive
  • Detailed metrics — Workstations, meeting rooms, collaboration %, window distances
  • Zone adjacency analysis — Functional recommendations for zone placement
  • Space brief validation — Feasibility checking with recommendations

Architecture

space_calculator.py
  ├─ SpaceCalculator class — Core calculation engine
  ├─ Zone, LayoutVariant, SpaceMetrics dataclasses
  └─ generate_space_layouts_json() — Main entry point

server.py
  ├─ MCP server with 3 tools
  ├─ generate_space_layouts — Layout generation
  ├─ analyze_zone_adjacencies — Adjacency rules
  └─ validate_space_brief — Feasibility validation

test_space_calculator.py
  └─ 15+ unit tests, 100% deterministic

Quick Start

# Install dependencies
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# Run tests
pytest test_space_calculator.py -v

# Start MCP server (stdio mode for Claude)
python server.py

MCP Tools

generate_space_layouts

Generate 3 workspace layout variants from brief.

Input:

{
  "surface_sqm": 200,
  "headcount": 20,
  "zone_types": ["open-space", "meeting", "quiet-zone"],
  "collaboration_style": "medium_collab",
  "project_id": "test-proj-1"
}

Output: JSON with 3 layout variants, each containing:

  • Zones with dimensions and occupancy
  • Metrics (workstations, meeting rooms, collaboration %, window distances)
  • Stub floorplan URL (stub:///floorplans/...)
  • Design notes

analyze_zone_adjacencies

Get functional adjacency recommendations for zone types.

Input:

{
  "zone_types": ["open-space", "meeting", "quiet-zone"]
}

validate_space_brief

Check feasibility and get recommendations.

Input:

{
  "surface_sqm": 200,
  "headcount": 20,
  "zone_types": ["open-space", "meeting"]
}

Calculation Logic

Space Sizing

Standard guidelines per zone type:

  • Open-space: 5–8.5 sqm per workstation (hotdesking to dedicated)
  • Quiet-zone: 4 sqm per person
  • Meeting: 2.5 sqm per person
  • Phone-booth: 2 sqm per booth (1 person)
  • Break-room: 1 sqm per person

Collaboration Percentages

  • high_collab: 40% meeting + break + phone zones
  • medium_collab: 30%
  • low_collab: 20%

Circulation

15% of total area reserved for corridors, stairs, etc.

Metrics Provided

For each variant:

  • total_sqm — Total workspace area
  • workstations — Number of workstations
  • meeting_rooms — Number of dedicated meeting rooms
  • phone_booths — Number of private call booths
  • quiet_zones — Number of focus areas
  • break_rooms — Number of break/social areas
  • collaboration_zones_pct — % of space for collaborative work
  • average_sqm_per_person — Density metric
  • window_distance_avg — Average distance to windows (meters)
  • natural_light_zones_pct — % of space with potential window access

Example Usage

from space_calculator import generate_space_layouts_json

# Generate layouts for 200 sqm, 20 people
json_output = generate_space_layouts_json(
    surface_sqm=200,
    headcount=20,
    zone_types=["open-space", "meeting", "quiet-zone", "phone-booth", "break-room"],
    project_id="my-project"
)

# Parse output
import json
data = json.loads(json_output)

# Access first variant
variant = data["variants"][0]
print(f"Variant: {variant['layout_name']}")
print(f"Workstations: {variant['metrics']['workstations']}")
print(f"Collaboration: {variant['metrics']['collaboration_zones_pct']}%")

Testing

All calculation logic is deterministic and fully tested:

# Run all tests
pytest test_space_calculator.py -v

# Test categories:
# - Calculator initialization and configuration
# - Usable area calculation
# - Zone distribution across types
# - Metrics calculation accuracy
# - Variant generation (3 variants per brief)
# - JSON output format validation
# - Edge cases (small/large spaces)
# - Determinism (same input → same output)

Phase 3 Integration (mcp-interior)

mcp-floorplans works alongside:

  • mcp-interior — Interior redesign of existing spaces (Decor8 API, stub provider)
  • mcp-archviz — 3D visualization of layouts (stub provider)
  • WorkspaceAgent — Orchestrates all three services

Phase 4 Status

COMPLETED:

  • Space calculator implementation (deterministic, no API calls)
  • 3 layout variants per brief
  • Metrics calculation
  • Zone adjacency analysis
  • Space brief validation
  • 15+ unit tests (all passing)
  • Full test coverage of calculation logic

⏸️ DEFERRED (Phase 5+):

  • Real floorplan image generation (requires image service)
  • 3D model generation (via mcp-archviz)
  • CAD export (SVG/DXF format)
  • Furniture library integration
  • Cost estimation (fit-out budgeting)

Architecture Decisions

  1. Deterministic (no APIs): Core calculation is pure Python, testable, reproducible
  2. Stub floorplans: stub:///floorplans/... URLs indicate placeholder images
  3. Dataclasses: Type-safe zone/layout/metrics models
  4. No external services: Calculation doesn't depend on CasaAI, HWFC, Roomify, etc.
  5. MCP standard tools: Integrates with Claude agents via MCP protocol

License

Proprietary — Virtus Agents

See Also

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured