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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ifc_mcp-0.1.4.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.4.tar.gz
Algorithm Hash digest
SHA256 f0495f60ba5c084bd4c2702c1bb14e19ff3b5d6e57a95a437850cccdc21ceaa7
MD5 d1db0a5ed9f1096c32fc6b4175763835
BLAKE2b-256 6674968a9755b84ba94c14002e22cfa86bb00615684ce9b62a97f7e2b68e70bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ifc_mcp-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 51.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 53e9f31f4ffa4d08868cfe71b574912976ab720d8868a58096ae2510940c4fef
MD5 35c19c4805469dcb83e5fb5d3d9108b3
BLAKE2b-256 bb6cf971292ff9da98daeea5430aeacae269168a5dce30377ffef9ce24424647

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