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

Metadata

Release files for ifc-mcp 0.2.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ifc-mcp 0.2.8
File Size Uploaded Provenance Actions
ifc_mcp-0.2.8.tar.gz 19.4 MB Without provenance Details for ifc_mcp-0.2.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ifc-mcp 0.2.8
File Interpreter ABI Platform Actions
ifc_mcp-0.2.8-py3-none-any.whl Python 3 none any Details for ifc_mcp-0.2.8-py3-none-any.whl

Total release size: 19.4 MB

Release files / ifc_mcp-0.2.8.tar.gz

Download URL ifc_mcp-0.2.8.tar.gz
Size 19.4 MB
Tags Source
SHA-256 checksum
How to use checksums
936b3a8b4ed91dee32f5d484599a6c203a7ff48cad068369c08a3de6f99172a7
BLAKE2b-256 checksum
How to use checksums
a212b7071826f101d76ff7db858a74baa7c7f5c76f8b4a33d1703455a9a4acf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / ifc_mcp-0.2.8-py3-none-any.whl

Download URL ifc_mcp-0.2.8-py3-none-any.whl
Size 70.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
713ad100c3ae3b0a0de5721a442380e88eb7faae41bc3ec06c0b23e6e0b3beb4
BLAKE2b-256 checksum
How to use checksums
20bdf2c44ffc6ef3beec7e9c804452d6493d9a4785ec5900ded554a41a66c141
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for ifc-mcp 0.2.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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