Connecting AI to Revit Without the Bloat: pyRevit vs revit-mcp-server

If you want to connect Claude Desktop, Claude Code, or Cline to Autodesk Revit using the Model Context Protocol (MCP), your first instinct might be to reach for pyRevit.

It makes sense why. pyRevit has been the backbone of Revit automation for years. But if your goal is simply giving an AI assistant a clean, fast bridge to inspect and modify your BIM models, installing a full Python runtime and UI framework can feel like hauling a toolbox full of power tools just to hang a single picture frame.

Enter LuDattilo/revit-mcp-server—an open-source, MIT-licensed project built specifically to expose Autodesk Revit (versions 2023 through 2027) to AI agents over MCP, with zero Python overhead.

The Case for a Lightweight MCP Bridge

pyRevit is a Rapid Application Development (RAD) powerhouse. It bundles IronPython and CPython engines, custom ribbon builders, telemetry, CLI utilities, and an extensive ecosystem of pre-built drafting and management scripts. When a BIM team wants to build and deploy custom toolbar buttons across dozens of workstations, pyRevit is hard to beat.

However, an AI agent doesn’t click ribbon buttons.

When an LLM interacts with Revit via MCP, it needs structured JSON schemas, low-latency access to the Revit API, and predictable execution. Running an MCP server on top of pyRevit often means maintaining extra runtime layers you never actually use.

revit-mcp-server strips the stack down to the bare essentials:

Feature / AspectLuDattilo/revit-mcp-serverpyRevit + MCP Extensions
Primary PurposeDedicated MCP bridge for AI agentsFull RAD framework, UI builder & script runner
Core Tech StackNative C# (.NET) + TypeScript MCP serverIronPython / CPython + C# + custom ribbon engine
Footprint & StartupLightweight native add-in; fast Revit load timesHeavier startup due to Python engine initialization
Out-of-the-Box AI Tools120–138+ dedicated MCP tools ready on installRequires wiring scripts or third-party MCP wrappers
Best Used When…You want fast, direct AI-to-Revit automationYou manage firm-wide toolbars and Python scripts

How revit-mcp-server Works Under the Hood

Rather than embedding a scripting engine inside Revit, the project uses a clean, three-tier architecture that keeps Revit responsive while translating AI tool calls in real time:

  1. MCP Server (server/): A lightweight TypeScript process that communicates with your AI client (Claude Desktop, Claude Code, Cline, etc.) over stdio and translates tool calls into JSON-RPC 2.0 messages.
  2. Revit Plugin (plugin/): A native C# add-in running inside Revit that listens on localhost:8080 and dispatches incoming requests to the active document.
  3. Command Set (commandset/): A modular C# library that executes operations directly against the Revit API and returns structured JSON results. Because commands are decoupled from the plugin core, developers can extend the toolset without rebuilding the bridge itself.

What Comes Out of the Box?

Despite its small footprint, the server packs over 120 specialized tools tailored for BIM workflows:

  • Model Auditing & Queries: Filter elements by category, type, visibility, or bounding box (ai_element_filter), pull model statistics, and run health checks (check_model_health).
  • Spatial & Clash Checks: Detect geometric intersections and measure distances between elements.
  • Creation & Batch Edits: Modify element parameters, generate schedules and sheet revisions, or batch-export views to PDF, DWG, IFC, and Excel.
  • Dynamic C# Execution: For edge cases not covered by built-in tools, send_code_to_revit lets the AI compile and run scoped C# snippets directly against the active Document.
  • Optional In-Revit Chat Panel: If you don’t want to alt-tab to an external client, the add-in even includes a dockable panel that connects directly to the Anthropic API inside Revit.

Getting Started in Under Two Minutes

One of the biggest friction points with Revit add-ins is setup. revit-mcp-server includes a one-line PowerShell installer that detects your installed Revit versions, downloads the matching release, unblocks the DLLs, and auto-configures Claude Desktop:

powershell -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/LuDattilo/revit-mcp-server/main/scripts/install.ps1 | iex"

(Prefer manual control? You can also download the version-specific ZIP from the repository’s Releases page and extract it straight into %AppData%\Autodesk\Revit\Addins\<Year>.)

Once installed:

  1. Launch Revit and open a project.
  2. Navigate to the Add-Ins ribbon tab and locate the Revit MCP Plugin panel.
  3. Click Revit MCP Switch—once the indicator turns green, your local TCP bridge is live and ready for your MCP client.

A Quick Word on Safety Before You Connect

Because revit-mcp-server executes Revit API transactions directly on your active model—including element deletion, purging unused families, and arbitrary C# execution—a few sensible guardrails go a long way:

  • Test on detached copies first: Multi-step AI requests create standard Revit transactions that aren’t always grouped into a single Ctrl+Z undo step. Always experiment on a local copy before touching a live central or cloud-workshared model.
  • Keep tool approval turned on: In Claude Desktop or Claude Code, leave human-in-the-loop confirmation enabled for write, delete, or code-execution tools so you can review changes before they hit your model.
  • Mind project NDAs: While the bridge runs locally on 127.0.0.1, any element data or schedules returned by the tools are sent to your configured LLM provider.

Which One Should You Choose?

Stick with pyRevit if you already rely on its custom ribbon ecosystem, maintain internal Python scripts across a BIM department, or want a full UI development framework inside Revit.

Switch to LuDattilo/revit-mcp-server if you want the cleanest, fastest path from an AI prompt to native Revit API execution—no Python environments to debug, no bloated toolbars, just a direct MCP socket into your BIM model.

Leave a Reply

Your email address will not be published. Required fields are marked *