revit_mcp

πŸ—οΈ 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:

✨ Features

πŸ”Œ Revit Integration

πŸš€ Core Functionalities

πŸ’» Development

πŸ“‹ Prerequisites

πŸ”§ 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
    
  2. Monitor WebSocket communication with Revit plugin
  3. Check server logs for connection and operation status

    ⚠️ Error Handling

    The server implements robust error handling:

🀝 Contributing

Contributions are welcome! Please feel free to submit pull requests.

πŸ“¬ Contact

If you have any questions or suggestions, feel free to reach out: