MCP4IFC: IFC-Based Building Design Using Large Language Models
Bharathi Kannan Nithyanantham, Tobias Sesterhenn, Ashwin Nedungadi, Sergio Peral Garijo, Janis Zenkner, Christian Bartelt, Stefan Lüdtke
TL;DR
MCP4IFC introduces an open-source MCP server that enables LLMs to directly query, create, and edit IFC-based BIM data through a standardized Model Context Protocol, using IfcOpenShell and Blender (via Bonsai) as the execution environment. The framework combines in-context learning with retrieval-augmented generation to dynamically produce Python code for IFC tasks beyond predefined tools, supporting end-to-end BIM manipulation in a platform-agnostic manner. Through scene querying, semantic editing, and geometry generation experiments, the paper demonstrates feasible end-to-end LLM-driven IFC interactions while highlighting current limitations in semantic robustness and geometric correctness. The work provides a foundation for AI-assisted BIM design, offering an extensible toolkit and a path toward broader tool libraries, generative design capabilities, and multi-modal spatial feedback across IFC-compliant workflows.
Abstract
Bringing generative AI into the architecture, engineering and construction (AEC) field requires systems that can translate natural language instructions into actions on standardized data models. We present MCP4IFC, a comprehensive open-source framework that enables Large Language Models (LLMs) to directly manipulate Industry Foundation Classes (IFC) data through the Model Context Protocol (MCP). The framework provides a set of BIM tools, including scene querying tools for information retrieval, predefined functions for creating and modifying common building elements, and a dynamic code-generation system that combines in-context learning with retrieval-augmented generation (RAG) to handle tasks beyond the predefined toolset. Experiments demonstrate that an LLM using our framework can successfully perform complex tasks, from building a simple house to querying and editing existing IFC data. Our framework is released as open-source to encourage research in LLM-driven BIM design and provide a foundation for AI-assisted modeling workflows. Our code is available at https://show2instruct.github.io/mcp4ifc/.
