Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
fastmcp = "*"
ifcopenshell = "*"

[dev-packages]

[requires]
python_version = "3.10"
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# ifcMCP
An MCP server that enables LLM agents to talk with IFC (Industry Foundation Classes) files

## Requiremets
- fastmcp==2.14.1
- ifcopenshell==0.8.4

## Star History

[![Star History Chart](https://api.star-history.com/svg?repos=smartaec/ifcMCP&type=Date)](https://www.star-history.com/#smartaec/ifcMCP&Date)
Expand Down
5 changes: 3 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from ifc_util import *

mcp=FastMCP("ifcMCP")
mcp=FastMCP("ifcMCP", host="0.0.0.0", port=8000)

@mcp.tool()
def greet(name:str) -> str:
Expand Down Expand Up @@ -194,5 +194,6 @@ def get_space_boundaries(file_path:str, globalId:str):

if __name__ == '__main__':
#mcp.run(transport="stdio") # Default, so transport argument is optional
mcp.run(transport="streamable-http") # default port 8000, access streamable-http mcp server via http://127.0.01:8000/mcp
# default port 8000, access streamable-http mcp server via http://127.0.01:8000/mcp
mcp.run(transport="streamable-http")
#mcp.run(transport="sse")