Fragment MCP Server
Provides tools for working with Building Information Modeling (BIM) files, converting IFC files to fragment format, loading fragments, and querying BIM data by category like walls, doors, and windows.
Requires Node.js to run the server and access file system functionality for reading IFC files and writing fragment files.
Uses pnpm for dependency management and installation of required packages.
Uses Zod for schema validation within the MCP server to ensure proper data formatting and validation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Fragment MCP Server load the building.frag file and show me all the walls"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Fragment MCP Server
A Model Context Protocol (MCP) server for working with Building Information Modeling (BIM) files. This server provides tools to convert IFC files to fragment format, load fragments, and query BIM data by category.
Features
IFC to Fragment Conversion: Convert Industry Foundation Classes (IFC) files to the open and efficient fragment format
Fragment Loading: Load and work with pre-converted fragment files
Category-based Querying: Fetch BIM elements by category (e.g., walls, doors, windows) with configurable attributes and relations
Related MCP server: Bonsai-mcp
Tools
convert-ifc-to-frag
Converts an IFC file to a .frag file format for efficient processing.
Parameters:
inputPath(string): Full path of the IFC file to convertoutputPath(string): Full path where the output .frags file will be saved
Example:
Input: /path/to/building.ifc
Output: /path/to/building.fragload-frag
Loads a .frag file into memory for querying.
Parameters:
filePath(string): Full path of the .frag file to load
fetch-elements-of-category
Fetches elements of a specified IFC category from loaded fragments.
Parameters:
category(string): Category name (e.g., "IFCWALL", "IFCDOOR", "IFCWINDOW")config(object): Configuration for fetching elements with the following structure:attributesDefault(boolean): Include default attributesattributes(array): List of specific attributes to includerelations(object): Relation configurationHasAssociations: Include association relationsIsDefinedBy: Include definition relations
Dependencies
@modelcontextprotocol/sdk: MCP server framework@thatopen/fragments: Fragment processing libraryweb-ifc: IFC file processingzod: Schema validation
Installation
Install dependencies:
pnpm installRun the server:
node main.tsClaude Desktop Integration
To use this MCP server with Claude Desktop, add the following configuration to your Claude Desktop settings file:
Configuration
Open Claude Desktop settings
Navigate to the MCP servers configuration
Add the following JSON configuration:
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/path/to/your/models/directory"
]
},
"bim": {
"command": "npx",
"args": [
"-y",
"tsx",
"/path/to/your/openbim-mcp/main.ts"
]
}
}
}Prerequisites for Claude Desktop
Node.js must be installed and accessible via
npxThe
tsxpackage should be available (install globally withnpm install -g tsxif needed)Both the filesystem and bim servers need to be configured for full functionality
Usage Workflow
Convert IFC to Fragment: Use
convert-ifc-to-fragto convert your IFC file to the efficient fragment formatLoad Fragments: Use
load-fragto load the fragment file into memoryQuery Elements: Use
fetch-elements-of-categoryto retrieve specific building elements by their IFC category
Supported IFC Categories
Common categories you can query include:
IFCWALL- WallsIFCDOOR- DoorsIFCWINDOW- WindowsIFCSLAB- Slabs/FloorsIFCBEAM- BeamsIFCCOLUMN- ColumnsIFCSPACE- Spaces/Rooms
Requirements
Node.js
File system access for reading IFC files and writing fragment files
Compatible with Model Context Protocol clients
Author
Helen Kwok
Available Tools
3 toolsconvert-ifc-to-fragC
Convert an IFC file to a .frag file. Needs file-system server
Inputs: inputPath (required), outputPath (required).
fetch-elements-of-categoryC
Fetch elements of a specified category
Inputs: category (required), config (required).
load-fragC
Load a .frag file. Needs file-system server
Inputs: filePath (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: converting IFC to FRAG, fetching elements by category, and loading FRAG files. There is no overlap or ambiguity in their functions, making it easy for an agent to select the correct tool for each task.
The tools follow a consistent verb-object naming pattern (e.g., convert-ifc-to-frag, fetch-elements-of-category, load-frag), with all names using kebab-case. There is a minor deviation in 'load-frag' being slightly simpler, but overall the naming is predictable and readable.
With only 3 tools, the server feels thin for a domain involving IFC/FRAG file processing and element fetching. While the tools cover basic operations, the scope suggests more comprehensive functionality might be expected, such as querying or manipulating loaded data.
The toolset has significant gaps for a fragment processing domain. It lacks operations for updating, deleting, or querying beyond category fetching, and there are no tools for saving or exporting modified fragments, leaving agents with dead ends in workflows.
Maintenance
Related MCP Connectors
Model Context Protocol server for Studex tools, notifications, and profile integrations
A Model Context Protocol server for Wix AI tools
Convert Revit files to XKT, IFC, or DWG and query BIM data via natural language.
Global CAD/BIM, industrial engineering (FEM, CFD) and property tools via one MCP endpoint.
Related MCP Servers
- FlicenseBqualityDmaintenanceA Model Context Protocol server that enables LLMs to extract and use content from unstructured documents across a wide variety of file formats.111-
- AlicenseAqualityCmaintenanceA Model Context Protocol server that integrates Claude with Blender, enabling users to analyze and interact with IFC (Industry Foundation Classes) building models through natural language commands.1768MIT
- AlicenseNot gradedqualityDmaintenanceA server that implements the Model Context Protocol, providing a standardized way to connect AI models to different data sources and tools.12MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that provides intelligent file reading and semantic search capabilities across multiple document formats with security-first access controls.7MIT