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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ifc_mcp-0.1.5.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.5.tar.gz
Algorithm Hash digest
SHA256 819efdc68173cf483105a9e6f579ab5b94e88eaf684d4867b1bbb24348c54aea
MD5 519c26d60b037fc017ceb38e8f97b004
BLAKE2b-256 d08d23c6060c62ac765a2da230db8d366b7ede558a771d8c625a8d3337550878

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ifc_mcp-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 51.5 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b962b2901d472f1e855faf4f09e75ab075e0bffbe0355210c669b786df63da64
MD5 716e1151425d23ac76e6130d6d76ee11
BLAKE2b-256 8c777d988f49073365231fda60077d8b30e835b0ddb721e628495e652139b4b5

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