Skip to main content
Glama

Revit MCP Server

🏗️ 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:

  1. Use the built-in MCP Inspector:
npm run inspector
  1. Monitor WebSocket communication with Revit plugin
  2. 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:

Install Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

local-only server

The server can only run on the client's local machine because it depends on local resources.

Enables seamless communication between Claude AI and Autodesk Revit, allowing users to access and interact with Revit model information through natural language.

  1. 🎯 Overview
    1. ✨ Features
      1. 🔌 Revit Integration
      2. 🚀 Core Functionalities
    2. 💻 Development
      1. 📋 Prerequisites
      2. 🔧 Installation
      3. ⚙️ Configuration
    3. 🔗 Integration with Claude Desktop
      1. 🐛 Debugging
    4. ⚠️ Error Handling
      1. 📄 License
        1. 🤝 Contributing
          1. 📬 Contact

            Related MCP Servers

            • -
              security
              F
              license
              -
              quality
              Connects Claude AI to QGIS through the Model Context Protocol, allowing Claude to directly interact with and control QGIS for tasks like project creation, layer manipulation, and code execution.
              Last updated -
              573
              Python
              • Apple
            • A
              security
              A
              license
              A
              quality
              Integration that connects Sketchup to Claude AI through the Model Context Protocol, allowing Claude to directly interact with and control Sketchup for prompt-assisted 3D modeling, scene creation, and manipulation.
              Last updated -
              10
              10
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              Connects Rhino3D to Claude AI via the Model Context Protocol, enabling AI-assisted 3D modeling and design workflows through direct control of Rhino's functionality.
              Last updated -
              9
              Python
            • -
              security
              F
              license
              -
              quality
              Connects QGIS to Claude AI through the Model Context Protocol, enabling AI-assisted project creation, layer manipulation, processing algorithm execution, and Python code running within QGIS.
              Last updated -
              5
              Python
              • Apple

            View all related MCP servers

            MCP directory API

            We provide all the information about MCP servers via our MCP API.

            curl -X GET 'https://glama.ai/api/mcp/v1/servers/SamllPigYanDong/revit_mcp'

            If you have feedback or need assistance with the MCP directory API, please join our Discord server