mcp-floorplans
Generates workspace floorplans with deterministic layout calculations, providing tools for space layout generation, zone adjacency analysis, and space brief validation.
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 areaworkstations— Number of workstationsmeeting_rooms— Number of dedicated meeting roomsphone_booths— Number of private call boothsquiet_zones— Number of focus areasbreak_rooms— Number of break/social areascollaboration_zones_pct— % of space for collaborative workaverage_sqm_per_person— Density metricwindow_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
- Deterministic (no APIs): Core calculation is pure Python, testable, reproducible
- Stub floorplans:
stub:///floorplans/...URLs indicate placeholder images - Dataclasses: Type-safe zone/layout/metrics models
- No external services: Calculation doesn't depend on CasaAI, HWFC, Roomify, etc.
- MCP standard tools: Integrates with Claude agents via MCP protocol
License
Proprietary — Virtus Agents
See Also
- Phase 3: mcp-interior
- Phase 4: mcp-archviz
- Orchestrator: WorkspaceAgent
Recommended Servers
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.
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.
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.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
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.
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.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
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.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.