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
Server Terkait
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
MCP่ฟญไปฃ็ฎก็ๅทฅๅ ท
An iteration management tool to automate the collection and submission of iteration information to a CodeReview system.
Authless MCP Server Example
An example of a remote MCP server deployable on Cloudflare Workers without authentication.
Second Opinion
Review commits and codebases using external LLMs like OpenAI, Google Gemini, and Mistral.
Bedrock Server Manager
Manage your Bedrock server with natural language commands using the Bedrock Server Manager API.
Binalyze AIR MCP Server
Interact with Binalyze AIR's digital forensics and incident response capabilities using natural language.
Replicate Minimax Image-01
Generate images using the minimax/image-01 model on Replicate.
MCP My Mac
Exposes local Mac system information through a simple API for AI assistants.
Projet MCP Server-Client
An implementation of the Model Context Protocol (MCP) for communication between AI models and external tools, featuring server and client examples in Python and Spring Boot.
Authless Remote MCP Server
A remote MCP server without authentication, designed for easy deployment on Cloudflare Workers.
Figma Copilot
Enables AI assistants to interact with and automate Figma designs programmatically.