Skip to main content

ifc-mcp

MCP server for exploring and querying IFC (Industry Foundation Classes) building models.

Install

pip install ifc-mcp

ifc-mcp must be on your PATH for MCP clients that use command: "ifc-mcp".

which ifc-mcp
ifc-mcp --help
ifc-mcp --version

Run

Start once and load models dynamically during chat:

ifc-mcp serve

Optional preload:

ifc-mcp serve /absolute/path/to/model.ifc

HTTP transport:

ifc-mcp serve --transport http --port 8000

MCP client config

{
  "mcpServers": {
    "ifc_mcp": {
      "command": "ifc-mcp",
      "args": ["serve"]
    }
  }
}

Typical workflow in chat

  1. load_model(file_path="/absolute/path/to/model.ifc") (fast default)
  2. get_model_summary()
  3. Query with tools by element, space, material, property, or type.

Most tools also accept optional file_path for one-shot queries.

Geometry is loaded lazily by default for speed. Use eager mode only when needed:

  • MCP tool: load_model(file_path="...", with_geometry=true)
  • CLI preload: ifc-mcp serve /absolute/path/to/model.ifc --with-geometry
  • Session status: get_loaded_model() includes geometry_loaded

Relationship tools

ifc-mcp includes element relationship tools based on IfcRelContainedInSpatialStructure and IfcRelAggregates:

  • classify_elements_by_relation(file_path="/absolute/path/to/model.ifc") returns parent, child, and investigate buckets for IfcElement records.
  • get_aggregate_relationships(file_path="/absolute/path/to/model.ifc") returns aggregate parents, their children, and a flat child_to_parent map.
  • find_orphans(file_path="/absolute/path/to/model.ifc", exclude_classes=["IfcOpeningElement"]) returns elements with neither spatial containment nor aggregate parent links.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ifc_mcp-0.2.4.tar.gz (19.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ifc_mcp-0.2.4-py3-none-any.whl (67.7 kB view details)

Uploaded Python 3

File details

Details for the file ifc_mcp-0.2.4.tar.gz.

File metadata

  • Download URL: ifc_mcp-0.2.4.tar.gz
  • Upload date:
  • Size: 19.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.5

File hashes

Hashes for ifc_mcp-0.2.4.tar.gz
Algorithm Hash digest
SHA256 0a6f73009f2f90f26cd5fc49024150cb61d8382d0d4fa04c11f5e1e5778ddd8d
MD5 1363d93d3a9d0d628ce34a2f60d87dc9
BLAKE2b-256 7a139297f48d3f9a4797e2a8d4ce82b40a7962622eb30c7d7f5a6f331f4336d0

See more details on using hashes here.

File details

Details for the file ifc_mcp-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: ifc_mcp-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 67.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.5

File hashes

Hashes for ifc_mcp-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 960abcb924e60b58155696d9c2e763a90e2ed2027445cdf12e43d5c3209e405f
MD5 95dd75af582dd5c980d78326af9e2c84
BLAKE2b-256 634a98d0f8f0543eab9fd66b01c8e292192a177f52922d89a87db808537a9c59

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.4 This release

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page