Revit MCP server

Bridges Autodesk Revit with external tools for finding, creating, updating, and deleting model elements including walls, floors, levels, grids, and family instances via TCP socket connection.
Back to servers
Provider
zedmoster
Release date
Mar 19, 2025
Language
Python
Package
Stats
26.7K downloads
12 stars

This server acts as a bridge between AI assistants and Autodesk Revit, enabling powerful automation capabilities through the Model Context Protocol (MCP). The server allows programmatic interaction with Revit building models, facilitating operations like element management, creation of various building components, and retrieval of model information.

Installation Requirements

  • xml.Revit: Version 1.3.4.3 or newer
  • Python: 3.10 or newer
  • UV Package Manager: Required for installation
  • Revit: Compatible with versions 2019-2024 (with plugin)

Installation Process

  1. First, install the UV package manager:

    pip install uv
    
  2. Install the revit-mcp package:

    pip install revit-mcp
    
  3. Test the installation:

    uvx revit-mcp
    

    You should see: RevitMCPServer - INFO - Successfully connected to Revit on startup

Integrating with AI Assistants

Cline Integration

Edit cline_mcp_setting.json to include:

{
  "mcpServers": {
    "RevitMCPServer": {
      "disabled": false,
      "timeout": 30,
      "command": "uvx",
      "args": ["revit-mcp"],
      "transportType": "stdio",
      "autoApprove": [
        "active_view",
        "call_func",
        "create_cable_trays",
        "create_door_windows",
        "create_ducts",
        "create_family_instances",
        "create_floors",
        "create_floor_plan_views",
        "create_grids",
        "create_levels",
        "create_pipes",
        "create_room_separation_lines",
        "create_room_tags",
        "create_rooms",
        "create_sheets",
        "create_walls",
        "delete_elements",
        "execute_commands",
        "find_elements",
        "get_commands",
        "get_locations",
        "get_selected_elements",
        "get_view_data",
        "link_dwg_and_activate_view",
        "move_elements",
        "parameter_elements",
        "show_elements",
        "update_elements"
      ]
    }
  }
}

Using the Revit MCP Server

Basic Operations

The server enables various operations including:

  • Getting available commands from the Revit plugin
  • Executing specified commands in Revit
  • Calling specific Revit functions with parameters
  • Retrieving view data and selected elements

Element Management

You can manage Revit elements through these functions:

  • Find elements by category
  • Get element parameters and locations
  • Update element parameters
  • Delete elements
  • Show/highlight elements in current view
  • Move elements to new positions

Creation Capabilities

The server allows creation of various Revit elements:

  • Levels and floors
  • Floor plan views
  • Grid lines
  • Walls and floors
  • Rooms and room tags
  • Doors and windows
  • MEP elements (ducts, pipes, cable trays)
  • Family instances
  • DWG file links
  • Sheets

Plugin Configuration

When using the revit-mcp-plugin:

  1. Register the plugin with Revit
  2. Configure commands through: Add-in Modules → Revit MCP Plugin → Settings
  3. Enable the service: Add-in → Revit MCP Plugin → Revit MCP Switch

Once enabled, AI assistants can discover and control your Revit program, executing the various commands provided by the MCP tools library.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later