Skip to main content

MCP server for querying IFC building model files

Project description

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

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

License

MIT

Project details


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.1.2.tar.gz (19.1 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.1.2-py3-none-any.whl (49.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ifc_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 19.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for ifc_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d71530cf1ee9abed1ced8de5ef0e9b3fa6b8fe9bb8986b0c8088562709e9654a
MD5 3ba62a0882f37ea79ca0833c3b0fd1d4
BLAKE2b-256 ab2bb4422be77925b100419cc690c6b6f9e2ea9d0f991c5f390c05d4191ae066

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ifc_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 49.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for ifc_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f3b145002d1a30ee0d5cc4c811c0decb17dafa2e2d6a8cf1aabdcfca62d5a4fa
MD5 cdfe58ed9e5aeb5dfb4c0f43cd9848bc
BLAKE2b-256 87b8b03d85eb5d908f5d911fe43a123eea4fe9be068f889668fed3f84e6663db

See more details on using hashes here.

Supported by

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