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
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

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.6.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.6-py3-none-any.whl (51.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ifc_mcp-0.1.6.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.6.tar.gz
Algorithm Hash digest
SHA256 9bee8cb64f01a6eab17ab46f6dc25c4749e876f0634fc0c58876a16745cfa81b
MD5 a124352e10a7b54a6820ed5bf85b5216
BLAKE2b-256 b338ac47e166fbae3c32e2adf433518a949b95d4141fa4e9822b5651cc373164

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ifc_mcp-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 51.6 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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a79451ec274548978d86185122bb5e289189b9102807c8cae9f953eeee69141a
MD5 bdecace61bac063c3d710a91aa619698
BLAKE2b-256 6cd2c18d49641f8d2dbb44d68cd95a9908794978f50783110cd447463ce4b3b3

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