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
Related Servers
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 Inspector
A developer tool for testing and debugging MCP servers with a web-based UI.
Panther
Interact with the Panther security platform to write detections, query logs with natural language, and manage alerts.
BrainBox
Hebbian memory for AI agents β learns file access patterns, builds neural pathways, predicts next tools/files, saves tokens
OpenAPI2MCP
Converts OpenAPI specifications into MCP tools, enabling AI clients to interact with external APIs seamlessly.
Pica MCP Server
Integrates with the Pica API platform to interact with various third-party services through a standardized interface.
Claude Memory MCP Server
A persistent memory server for Large Language Models, designed to integrate with the Claude desktop application. It supports tiered memory, semantic search, and automatic memory management.
MemGPT MCP Server
A server that provides a memory system for LLMs, enabling persistent conversations with various providers like OpenAI, Anthropic, and OpenRouter.
Tuteliq
AI-powered safety tools for detecting grooming, bullying, threats, and harmful interactions in conversations. The server integrates Tuteliqβs behavioral risk detection API via the Model Context Protocol (MCP), enabling AI assistants to analyze interaction patterns rather than relying on keyword moderation. Use cases include platform safety, chat moderation, child protection, and compliance with regulations such as the EU Digital Services Act (DSA), COPPA, and KOSA.
Code Summarizer
A command-line tool that summarizes code files in a directory using Gemini Flash 2.0.
MCP Pyrefly
A server for real-time Python code validation using Pyrefly, designed to prevent common coding errors from LLMs.