If you've encountered the Revit API exception "Cannot execute Revit API outside of Revit API context"—often when running code from a modeless window—this library may help. A typical solution is to ...
revit-mcp is a framework that implements the mcp protocol based on Autodesk Revit software. It allows AI conversation clients compatible with the mcp protocol to drive Revit. revit-mcp: Connects with ...