Fragment MCP Server

v1.0.0Developer Toolsstable

A Model Context Protocol server that enables working with Building Information Modeling (BIM) files by converting IFC files to fragment format and querying BIM data by category.

fragment-mcp-servermcpai-integration
Share:
37
Stars
0
Downloads
0
Weekly
0/5

What is Fragment MCP Server?

Fragment MCP Server is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to model context protocol server that enables working with building information modeling (bim) files by converting ifc files to fragment format and querying bim data by category.

A Model Context Protocol server that enables working with Building Information Modeling (BIM) files by converting IFC files to fragment format and querying BIM data by category.

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • A Model Context Protocol server that enables working with Bu

Use Cases

Work with Building Information Modeling (BIM) files by converting IFC format and querying BIM data by category.
helenkwok

Maintainer

LicenseMIT License
Languagetypescript
Versionv1.0.0
UpdatedMay 8, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx fragment-mcp-server

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Fragment MCP Server

The Fragment MCP Server (openbim-mcp) is a TypeScript-based MCP server for working with Building Information Modeling (BIM) files. It converts industry-standard IFC files to the efficient .frag format used by the ThatOpen ecosystem, loads them into memory, and allows AI assistants to query building elements by category — such as fetching all walls, doors, or windows with their attributes and relationships. It is aimed at architects, engineers, and BIM developers who want to query building data through natural language.

Prerequisites

  • Node.js 18 or higher with npm or pnpm
  • tsx installed globally (npm install -g tsx) for running TypeScript directly
  • IFC files in a format compatible with the web-ifc library
  • Claude Desktop or another MCP-compatible client
1

Clone the repository

Clone the openbim-mcp repository which contains the Fragment MCP Server source code.

git clone https://github.com/helenkwok/openbim-mcp.git
cd openbim-mcp
2

Install dependencies

Install all required packages including the MCP SDK, ThatOpen fragments library, web-ifc, and zod for schema validation.

pnpm install
3

Install tsx globally

The server runs as a TypeScript file directly using tsx, which must be installed globally for the MCP client to launch it.

npm install -g tsx
4

Configure your MCP client

Add the server to your Claude Desktop configuration. Replace /path/to/openbim-mcp with the actual path where you cloned the repository.

{
  "mcpServers": {
    "bim": {
      "command": "npx",
      "args": ["-y", "tsx", "/path/to/openbim-mcp/main.ts"]
    }
  }
}
5

Convert and query a BIM file

After restarting Claude Desktop, you can ask it to convert an IFC file to fragment format, load it, and then query elements by category. The workflow runs as three sequential tool calls.

Fragment MCP Server Examples

Client configuration

Claude Desktop configuration to launch the Fragment MCP Server using tsx to run the TypeScript entry point directly.

{
  "mcpServers": {
    "bim": {
      "command": "npx",
      "args": ["-y", "tsx", "/path/to/openbim-mcp/main.ts"]
    }
  }
}

Prompts to try

Example prompts for converting IFC files and querying building data by category using the three available tools.

- "Convert the file /home/user/building.ifc to fragment format and save it to /home/user/building.frag"
- "Load the fragment file at /home/user/building.frag into memory"
- "Fetch all walls from the loaded BIM model with their attributes"
- "Get all doors and windows in the building with their dimensions and locations"
- "List all structural elements in the model by IFC category"

Troubleshooting Fragment MCP Server

tsx command not found when MCP client tries to start the server

Install tsx globally with npm install -g tsx and verify with tsx --version. If you are using a version manager like nvm, ensure the globally installed tsx is on the PATH used by your MCP client process.

IFC file fails to convert or throws parsing errors

The server uses the web-ifc library for parsing. Ensure your IFC file is a valid IFC2x3 or IFC4 format. Very large IFC files may require increased Node.js memory: set NODE_OPTIONS=--max-old-space-size=4096 in the server's env block.

fetch-elements-of-category returns empty results

You must call convert-ifc-to-frag first, then load-frag to load the converted file into memory before querying categories. The three tools must be called in sequence: convert, load, then fetch.

Frequently Asked Questions about Fragment MCP Server

What is Fragment MCP Server?

Fragment MCP Server is a Model Context Protocol (MCP) server that model context protocol server that enables working with building information modeling (bim) files by converting ifc files to fragment format and querying bim data by category. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Fragment MCP Server?

Follow the installation instructions on the Fragment MCP Server GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Fragment MCP Server?

Fragment MCP Server works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Fragment MCP Server free to use?

Yes, Fragment MCP Server is open source and available under the MIT License license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "fragment-mcp-server": { "command": "npx", "args": ["-y", "fragment-mcp-server"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Fragment MCP Server?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides