
This is a mcp project by using c# full stack, also is a tutorial about how to use mcp in revit
概览
1. Fix The Muti-Version Build Failed : Thats The the net8.0 | net11.0-windows contains the require keyword , but cant use this keyword in <= 10.0 c# version 2. Add Setup Video - Change The Version Change The Version - Move The Addin File Or Change Target Output Path in .csproj Move Add-In File - Run Command (Better Eng) Run Command 1. Fix The Project Than Cant Run Success , Reason : the server path was not auto adaptive to other user 2. ReWrite The RevitTest Project , Also Add The .addin File To User - Addin File 3. Add The Function That can read api_key file 4. Other detail Can Read : - NET.MCP.CLinet Update - Revit Process Update 5. Change Solution To Muti-Version - NET.Mcp.Client - NET.Mcp.Server - RevitTest.csproj 6. Add New Utility File - ConvertRevitCommand.cs - FileUtility.cs - IRevitCommand.cs - RequestHandler.cs 7. In Revit 2026 , The Sturucture Was Refernce NewtonSoft 13.0.1 . So If Project Ref. Others Version , Will Throw Error : File Was Loaded ..... 8.
README
以下为原文 README 节选,完整内容请查看原文。
Update 25.10.30 Test In Revit 2021 , 2023 , 2024 , 2025 , 2026
- Fix The Muti-Version Build Failed : Thats The the net8.0 | net11.0-windows contains the
requirekeyword , but cant use this keyword in <= 10.0 c# version - Add Setup Video
- Change The Version Change The Version
- Move The Addin File Or Change Target Output Path in .csproj Move Add-In File
- Run Command (Better Eng) Run Command
Update 25.10.28
-
Fix The Project Than Cant Run Success , Reason : the server path was not auto adaptive to other user
-
ReWrite The
RevitTestProject , Also Add The.addinFile To User -
Add The Function That can read api_key file
-
Other detail Can Read :
-
Change Solution To Muti-Version
-
Add New Utility File
-
In Revit 2026 , The Sturucture Was Refernce
NewtonSoft 13.0.1. So If Project Ref. Others Version , Will Throw Error :File Was Loaded ..... -
Also , if use the Revit Add-iN Manage , use this code will cant find
location()- if use this tool to debug , you need to make FunctionUserCallWindow.xaml.cs Line 131 ~147 the
client_pathto local machine path . - if use this with addin , you can use the fileutility to get lcoation.
- if use this tool to debug , you need to make FunctionUserCallWindow.xaml.cs Line 131 ~147 the
-
Add
Transaction MethodTo Functions
Revit MCP Blog
Currently, the internet is flooded with various AI-related information. As recent development work involves AI technology, this article introduces the integration method between MCP and Revit to achieve the “one-click modeling” feature in public accounts.
This is just one of the possible implementation approaches, and other technical paths exist. However, this method allows for rapid deployment, helping teams quickly explore relevant application directions.
Function Call
Before discussing MCP, it’s essential to introduce Function Calling—a capability provided by LLM APIs. By defining Function Call specifications during interactions with the LLM, the model can autonomously select and execute the appropriate functions when needed.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →