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.1.tar.gz (19.2 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.1-py3-none-any.whl (60.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ifc_mcp-0.2.1.tar.gz
  • Upload date:
  • Size: 19.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ifc_mcp-0.2.1.tar.gz
Algorithm Hash digest
SHA256 8ce0f6f9eb596b602c53cd00f8d458200fd40250ac1bdfd182edeb2f22897f21
MD5 dfbd088e88af33e7c5f955b7cbf1ed2d
BLAKE2b-256 7b455f3b13155270e1ee7d81f216a705fcc54467ef74295c97b80b2403244f8b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ifc_mcp-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 60.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for ifc_mcp-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 361ec24f257eef6d0bd74b3a487d5cef6a926f96ac5a05cea4e4d0761d71cdc1
MD5 7e46a610d075483c53d59bee4d07f1f2
BLAKE2b-256 79fa188cbd03b54de81f1efca425beb1810f95b6d12945870dac5b3f7e4e1326

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

This release

0.2.1 This release

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page