No description available
English | ็ฎไฝไธญๆ
revit-mcp-plugin is a Revit plugin based on the MCP protocol, enabling AI to interact with Revit.
This project is part of the revit-mcp project (receives messages, loads command sets, operates Revit), and needs to be used in conjunction with revit-mcp (provides tools to AI) and revit-mcp-commandset (specific feature implementations).
Register the plugin and restart Revit:
<?xml version="1.0" encoding="utf-8"?>
<RevitAddIns>
<AddIn Type="Application">
<Name>revit-mcp</Name>
<Assembly>%your_path%\revit-mcp-plugin.dll</Assembly>
<FullClassName>revit_mcp_plugin.Core.Application</FullClassName>
<ClientId>090A4C8C-61DC-426D-87DF-E4BAE0F80EC1</ClientId>
<VendorId>revit-mcp</VendorId>
<VendorDescription>https://github.com/revit-mcp/revit-mcp-plugin</VendorDescription>
</AddIn>
</RevitAddIns>
%your_path%
needs to be replaced with the actual path after compilation.
Add-in Modules -> Revit MCP Plugin -> Settings
This interface is used to configure the commands to be loaded into Revit. Click OpenCommandSetFolder to open the folder storing command sets. A typical command set folder structure looks like this:
CommandSetName/
โโโ 2019/ # Compatible executable files for different versions
โโโ 2020/
โโโ 2021/
โโโ 2022/
โโโ 2023/
โโโ 2024/
โโโ command.json # Configuration file
Successfully identified commands need to be checked to be loaded and used.
Add-in -> Revit MCP Plugin -> Revit MCP Switch
Open the service to allow AI to discover your Revit program. Now AI can control your Revit!
Note: If you modify the configured commands after enabling the service, you may need to restart REVIT for the configuration to take effect. This is related to whether the command has already been registered.
You can refer to the revit-mcp-commandset project to develop custom commands.
revit-mcp-plugin/
โโโ Configuration/ # Configuration management related classes
โ โโโ CommandConfig.cs # Command configuration
โ โโโ ConfigurationManager.cs # Configuration manager
โ โโโ DeveloperInfo.cs # Developer information
โ โโโ FrameworkConfig.cs # Framework configuration
โ โโโ ServiceSettings.cs # Service settings
โ
โโโ Core/ # Program entry and core functionality
โ โโโ Application.cs # Application entry point
โ โโโ CommandExecutor.cs # Command executor
โ โโโ CommandManager.cs # Command manager
โ โโโ ExternalEventManager.cs # External event manager
โ โโโ MCPServiceConnection.cs # MCP service connection
โ โโโ RevitCommandRegistry.cs # Revit command registration
โ โโโ Settings.cs # Application settings
โ โโโ SocketService.cs # Socket service implementation
โ
โโโ Models/ # Data models
โ โโโ ... # Various data model classes
โ
โโโ UI/ # WPF form interfaces
โ โโโ ... # Interface related classes
โ
โโโ Utils/ # Utility classes
โโโ Logger.cs # Logging utility
โโโ PathManager.cs # Path management utility
Responsible for managing various configuration information for the plugin:
Contains the core functionality and entry point of the plugin:
Contains data model classes used to pass data between different parts of the system.
Contains user interface related components of the plugin, implemented using the WPF framework.
Provides various auxiliary tools:
No configuration available
Related projects feature coming soon
Will recommend related projects based on sub-categories