You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Start PostgreSQL with Docker
docker-compose up -d db
# Run migrations
alembic upgrade head
Running the Server
# Run MCP server
python -m ifc_mcp
# Or use the CLI
ifc-mcp
MCP Tools
Project Management
Tool
Description
ifc_import_file
Import an IFC file into the database
ifc_list_projects
List all imported projects
ifc_get_project
Get project details with storeys
ifc_delete_project
Delete a project
Schedules
Tool
Description
ifc_window_schedule
Generate window list
ifc_door_schedule
Generate door list
ifc_wall_schedule
Generate wall list
ifc_drywall_schedule
Generate drywall list
ifc_room_schedule
Generate room book
Fire Safety
Tool
Description
ifc_fire_escape_plan
DIN ISO 23601 escape plan (SVG)
ifc_fire_compartment_map
Fire compartment visualization
ifc_floor_plan_svg
General floor plan (SVG)
Analysis
Tool
Description
ifc_material_takeoff
DIN 276 material takeoff
ifc_model_check
Model quality checks
ifc_accessibility_check
DIN 18040 accessibility
Explosion Protection
Tool
Description
ifc_ex_zone_analysis
Analyze Ex-Zones (ATEX)
ifc_fire_rating_report
Fire rating report
ifc_room_volume_analysis
Room volumes
ifc_hazardous_areas
Safety check
Export
Tool
Description
ifc_export_all_excel
Export all schedules to Excel
ifc_export_window_excel
Export window schedule
ifc_export_door_excel
Export door schedule
ifc_export_room_excel
Export room schedule
ifc_export_ex_protection_excel
Export Ex-Protection report
Development
Running Tests
# Run all tests
pytest
# With coverage
pytest --cov=ifc_mcp
# Only unit tests
pytest -m unit
# Only integration tests (requires database)
pytest -m integration
Code Quality
# Format code
ruff format src tests
# Lint
ruff check src tests
# Type checking
mypy src
Database Migrations
# Create new migration
alembic revision --autogenerate -m "description"# Apply migrations
alembic upgrade head
# Rollback
alembic downgrade -1