Revit MCP Server
A Model Context Protocol server for Revit integration, enabling seamless communication between Claude AI and Autodesk Revit.
English | 中文
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: 353554036@qq.com
WeChat Account: modian4500
Revit Integration Server
Project Details
- SamllPigYanDong/revit_mcp
- MIT License
- Last Updated: 4/17/2025
Recomended MCP Servers

这是一个基于Model Context Protocol (MCP)的服务器,用于根据用户任务需求提供预设的prompt模板,帮助Cline/Cursor/Windsurf...更高效地执行各种任务。服务器将预设的prompt作为工具(tools)返回,以便在Cursor和Windsurf等编辑器中更好地使用。
A Model Context Protocol (MCP) server that provides tools to interact with LinkedIn's Feeds and Job API.
MCP server for eSignatures (https://esignatures.com)
这个项目是一个基于 Cloudflare Workers 的 Docker 镜像代理工具。它能够中转对 Docker 官方镜像仓库的请求,解决一些访问限制和加速访问的问题。
Contiene un pequeño programa de un servidor MCP con dos tools para obtener el tiempo y traducirlo a...
MCP server providing healthcare analytics capabilities for Smartsheet, including clinical note summarization, patient feedback analysis, and research impact...
This read-only MCP Server allows you to connect to Xero data from Claude Desktop through CData JDBC Drivers....
A maneira rápida e Pythônica de construir servidores e clientes MCP.