The Revit MCP Server serves as a bridge enabling Claude AI to interact with Autodesk Revit models in real-time via WebSocket connections.
Key capabilities:
π Real-time Communication: WebSocket-based connection for live model interactions
π Model Information: Access metadata, element counts, and model state
ποΈ Element Management: Query, filter, and manage elements with their properties and geometry
πͺ View & Level Control: Navigate through and list views and levels
π Schema Operations: Retrieve categories, families, elements, and detailed information
βοΈ Customizable: Configure connection settings via environment variables
π‘ Error Handling: Fall back to mock data when Revit connection is unavailable
Provides real-time access to Revit model information, element querying and filtering, view and level management, and model metadata access through a WebSocket connection with the Revit plugin.
ποΈ Revit MCP Server
A Model Context Protocol server for Revit integration, enabling seamless communication between Claude AI and Autodesk Revit.
π― Overview
This TypeScript-based MCP server provides a bridge between Claude AI and Revit, allowing direct interaction with Revit models through a WebSocket connection. It implements the Model Context Protocol to enable:
β‘ Real-time access to Revit model information
π Element querying and filtering
π View and level management
π‘οΈ Robust error handling with fallback mock data
Related MCP server: QGISMCP
β¨ Features
π Revit Integration
π‘ WebSocket-based communication with Revit plugin
π Real-time model data access
π Graceful fallback to mock data when connection fails
βοΈ Configurable connection settings via environment variables
π Core Functionalities
π Model Information
Access basic model metadata (name, path, version)
Get element counts and last modification date
Real-time model state synchronization
ποΈ Element Management
Query elements with flexible filtering
Access element properties and geometry
Batch element operations
πͺ View & Level Control
List all available views
Access level information
Navigate through model hierarchy
π» Development
π Prerequisites
Node.js (v14 or higher)
npm
Autodesk Revit (2023 or later)
Revit WebSocket Plugin (companion plugin)
π§ Installation
Install dependencies:
Build the server:
For development with auto-rebuild:
βοΈ Configuration
The server can be configured using environment variables:
π Integration with Claude Desktop
Add the server configuration to Claude Desktop:
Windows:
Configuration format:
π Debugging
For debugging the MCP communication:
Use the built-in MCP Inspector:
Monitor WebSocket communication with Revit plugin
Check server logs for connection and operation status
β οΈ Error Handling
The server implements robust error handling:
Automatic fallback to mock data when Revit connection fails
Detailed error logging
Graceful connection recovery
π License
MIT License
π€ Contributing
Contributions are welcome! Please feel free to submit pull requests.
π¬ Contact
If you have any questions or suggestions, feel free to reach out:
π§ Email: 353554036@qq.com
π¬ WeChat Account: modian4500
Appeared in Searches
- Information about Autodesk software and products
- A tool or application for reading CAD files
- A tool for finding Genshin Impact character videos and creating 3D models with OBJ files
- MCP to Control CAD Tools for Building Models and Automating Manufacturing
- Understanding ASP.NET Framework and Its Applications