Skip to main content

revit integration through the Model Context Protocol

Project description

xml.Revit.MCP Tools Overview

English | 中文文档

xml.Revit.MCP provides a comprehensive set of tools for integrating with Autodesk Revit through the Model Context Protocol (MCP). This library serves as a bridge between AI assistants and Revit, enabling powerful automation capabilities and programmatic interaction with building models.

xml.Revit.png

Key Features

The tool library includes numerous functions for Revit automation and interaction:

Basic Operations:

  • Get available commands from Revit plugin
  • Execute specified commands in Revit
  • Call specific Revit functions with parameters
  • Retrieve view data and selected elements

Element Management:

  • 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 Tools:

  • Create levels/floors
  • Create floor plan views
  • Create grid lines
  • Create walls and floors
  • Create rooms and room tags
  • Create doors and windows
  • Create MEP elements (ducts, pipes, cable trays)
  • Create family instances
  • Link DWG files
  • Create sheets

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

Integration with AI Assistants

Claude for Desktop

Edit claude_desktop_config.json to include:

{
    "mcpServers": {
        "RevitMCPServer": {
            "command": "uvx",
            "args": [
                "revit-mcp"
            ]
        }
    }
}

Cursor

Edit mcp.json to include:

{
    "mcpServers": {
        "RevitMCPServer": {
            "command": "uvx",
            "args": [
                "revit-mcp"
            ]
        }
    }
}

Cline

Edit cline_mcp_setting.json to include:

{
    "mcpServers": {
        "RevitMCPServer": {
            "command": "uvx",
            "args": [
                "revit-mcp"
            ]
        }
    }
}

Extending Functionality

You can create custom MCP服务功能 files to implement additional functionality by:

  1. Implementing the xml.Revit.MCP.Public.IMCPMethod interface
  2. Following JSON-RPC 2.0 specification for communication
  3. Compiling to a DLL and placing it in the designated MCP folder

Plugin Configuration

When using the xml.Revit.MCPServer:

  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 MCP服务, AI assistants can discover and control your Revit program, executing the various commands provided by the xml.Revit.MCP tools library.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

revit_mcp-0.5.15.tar.gz (33.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

revit_mcp-0.5.15-py3-none-any.whl (36.3 kB view details)

Uploaded Python 3

File details

Details for the file revit_mcp-0.5.15.tar.gz.

File metadata

  • Download URL: revit_mcp-0.5.15.tar.gz
  • Upload date:
  • Size: 33.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for revit_mcp-0.5.15.tar.gz
Algorithm Hash digest
SHA256 e1af264cafb01bd6696fa75a7f1df18e82cc1252e8eab5af3f592065723b7c6c
MD5 f23f7a1be62e06e84c55cc7447fbee7e
BLAKE2b-256 8bc431900c4f813016301eae734a909c191505589690dd62bd179af5fcc0618f

See more details on using hashes here.

File details

Details for the file revit_mcp-0.5.15-py3-none-any.whl.

File metadata

  • Download URL: revit_mcp-0.5.15-py3-none-any.whl
  • Upload date:
  • Size: 36.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for revit_mcp-0.5.15-py3-none-any.whl
Algorithm Hash digest
SHA256 62e6ddc333abe88c1ff7af553929adae486205ff7c44f85dff3ce5540c354af2
MD5 0c67ac8ee2de0dca0c514cbf59c32965
BLAKE2b-256 fe6fb9c8746e6e4b686a10505a82764813c75ca3573aef538b49beaa72afe099

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page