Revit MCP Server
An MCP server for integrating AI with Autodesk Revit, enabling seamless communication via WebSocket.
🏗️ 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
✨ 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:
npm install
Build the server:
npm run build
For development with auto-rebuild:
npm run watch
⚙️ Configuration
The server can be configured using environment variables:
REVIT_HOST=127.0.0.1 # Revit plugin WebSocket host
REVIT_PORT=8080 # Revit plugin WebSocket port
🔗 Integration with Claude Desktop
Add the server configuration to Claude Desktop:
Windows:
%APPDATA%/Claude/claude_desktop_config.json
Configuration format:
{
"mcpServers": {
"revit-mcp-server": {
"command": "D:/path/to/revit-mcp-server/build/index.js"
}
}
}
🐛 Debugging
For debugging the MCP communication:
- Use the built-in MCP Inspector:
npm run 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: [email protected]
- 💬 WeChat Account: modian4500
Verwandte Server
Scout Monitoring MCP
SponsorPut performance and error data directly in the hands of your AI assistant.
Alpha Vantage MCP Server
SponsorAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Serencp
VM serial console viewer
Ant Design
Access comprehensive documentation for Ant Design components, including examples, API references, and best practices.
CursorRules MCP
An intelligent system for managing programming rules, supporting search, versioning, code validation, and prompt enhancement.
Contract Inspector
Retrieve on-chain information for EVM contracts locally using an Ethereum RPC node and Etherscan API.
Angreal
An MCP server providing AI assistants with discovery capabilities for angreal projects.
Uniswap PoolSpy
Tracks newly created Uniswap liquidity pools across nine blockchain networks, providing real-time data for DeFi analysts, traders, and developers.
Kubernetes Port Forward – MCP Server
MCP server that provides tools for managing Kubernetes port-forwarding sessions.
OpenMM MCP
AI-native crypto trading server with 13 tools for market data, order execution, grid strategies, and Cardano DeFi across multiple exchanges.
xcodebuild
🍎 Build iOS Xcode workspace/project and feed back errors to llm.
Terminal MCP Server
Execute commands on local or remote hosts via SSH. Supports session persistence and environment variables.