T3LAB.REVIT/Support/MCP Control

MCP Control

MCP Server

Connects AI apps (Claude Desktop, ChatGPT / Codex, Antigravity, Claude Code, Cursor …) to Revit and to other Autodesk apps through MCP. One Connect tab: pick the app — Revit, AutoCAD, Civil 3D, Navisworks, 3ds Max or Inventor — then start the Revit server or check the app's T3Lab add-in, connect your AI app in one click, or copy a manual JSON / TOML / claude mcp add entry. Advanced: auto-start, port (48884-48894), security (read-only mode, confirmations, code execution), toolsets, the file task watcher and Teaching Mode. The Data hub lets AI apps ask about saved model snapshots with Revit closed.

Ribbon:Support
Safety:Atomic Transaction
Revit:2020 – 2026

Interactive Demo

Live demo · UI from XAML
RAutodesk Revit 2025 - Snowdon Towers.rvt - Floor Plan: Level 1
FileArchitectureStructureSteelPrecastSystemsInsertAnnotateAnalyzeMassing & SiteCollaborateViewManageAdd-InsT3LabModify
Support
Standards & Families
Model & Datum
Rebar & Assembly
Annotation & Data
Views & Sheets
Properties
Floor Plan
View Scale1 : 100
Detail LevelMedium
DisciplineArchitectural
View Template<None>
Project Browser - Snowdon Towers.rvt
[-] Views (all)
[-] Floor Plans
Level 1
Level 2
Roof
[-] Ceiling Plans
Level 1
[-] 3D Views
{3D}
[-] Elevations
North
South
[+] Drafting Views
[-] Schedules/Quantities
Room Schedule
[-] Sheets (all)
A001 - Cover
[+] Families
[+] Groups
[+] Revit Links
Level 1 ×
ABCD123OFFICE101MEETING102CORRIDOR103OFFICE104LOBBY105WC106
1 : 100▣☼
Click to select, TAB for alternates, CTRL adds, SHIFT unselects.Main Model
⤢ Full screenSimulated Revit window. Click anywhere to try it yourself.

Detailed Documentation

MCP Control - User Guide & MCP Tool Catalog

The MCP Control utility provides a secure local gateway using the Model Context Protocol (MCP) developed by Anthropic. This protocol allows advanced desktop AI models (such as Claude Desktop, Cursor, Gemini CLI, Cline, Roo Code, etc.) to directly communicate and interact in real-time with Autodesk Revit running on your local machine.


1. Overview & Architecture

When you run MCP Control from the Revit Ribbon:

  • A Local HTTP/SSE Server starts on port 48884 (or subsequent ports like 48885, 48886 if the default port is already occupied).
  • Security & Authorization: On startup, a random security token (hex string) is generated and saved locally to %APPDATA%\T3LabAI\mcp_token.txt. Every request made from external AI clients must carry this token in the Authorization: Bearer <token> header. This prevents unauthorized processes or network requests from executing code inside your Revit session.
  • Document Pinning: Allows you to lock AI tool execution onto a specific Revit project document, even if you switch active tabs or work with multiple open documents concurrently.

2. Installation & Setup Guide

Below is a flowchart summarizing the setup process for the MCP Control environment:

┌─────────────────────────────────┐
│ 1. Install Python               │ <── From Microsoft Store (Auto-registers PATH)
└────────────────┬────────────────┘
                 │
                 ▼
┌─────────────────────────────────┐
│ 2. Install Claude Desktop       │ <── SECURITY NOTE: DO NOT run as Administrator
└────────────────┬────────────────┘
                 │
                 ▼
┌─────────────────────────────────┐
│ 3. Install pyRevit Extension    │ <── Installs the T3Lab Revit ribbon toolset
└────────────────┬────────────────┘
                 │
                 ▼
┌─────────────────────────────────┐
│ 4. Open MCP Control in Revit    │ <── Open Revit -> Go to T3Lab tab -> Click MCP Control
└────────────────┬────────────────┘
                 │
                 ▼
┌─────────────────────────────────┐
│ 5. Start Server & Watcher       │ <── Click "Start Server" and "Start Watcher"
└────────────────┬────────────────┘
                 │
                 ▼
┌─────────────────────────────────┐
│ 6. Configure Claude Desktop     │ <── Click "Configure" to auto-write config JSON
└─────────────────────────────────┘

Detailed Setup Steps:

Step 1: Install Python from Microsoft Store

  1. Open the Microsoft Store app on Windows.
  2. Search for "Python".
  3. Select Python 3.12 or Python 3.13 and click Get / Install to download and install.
  4. Benefit: Installing Python from the Microsoft Store automatically registers the Python executable path to the Windows Environment Variables (PATH). No manual configuration is required.

Install Python from Microsoft Store

Step 2: Install Claude Desktop (⚠️ Important Security Note)

  1. Visit the official Anthropic website and download the installer for Claude Desktop.
  2. When launching the installer (ClaudeSetup.exe), DO NOT run it as an Administrator. Install it under standard user privileges.
  3. ⚠️ SECURITY WARNING:
    • If Claude Desktop is installed with Administrator rights, it will automatically install and enable Claude Co-worker (Claude Co-work).
    • Claude Co-worker is an advanced AI agent feature that can control your mouse, keyboard, and access files to manipulate your computer directly. If not carefully monitored, this could present significant system security risks.
    • Installing and running under standard user permissions guarantees that only the standard, secure Claude Desktop application is active.

Step 3: Install the pyRevit Extension

  1. Ensure that you have pyRevit installed on your machine.
  2. Install the T3Lab.Revit extension through pyRevit to integrate the Revit Ribbon tab containing the MCP Control and T3Lab Assistant tools.

Step 4: Launch and Configure via MCP Control Console

  1. Launch Autodesk Revit and open Support › Settings › MCP Control. The window has two tabs: Connect and Advanced.
  2. On the Connect tab:
    • App — pick Revit (first in the list) or another Autodesk app: AutoCAD, Civil 3D, Navisworks, 3ds Max, Inventor. MCP Control remembers your last choice.
    • Step 1 — for Revit, click Start Server (default port 48884; the indicator turns green). For another app, Step 1 shows whether its T3Lab add-in bridge is installed.
    • Step 2 — click Connect next to Claude Desktop, ChatGPT (Codex) or Antigravity, or Connect all. MCP Control writes the server entry (and the security token for Revit) into the AI app's config file. Quit Claude Desktop from the tray icon first: it rewrites its config when it quits.
    • Manual config (folded at the bottom) — the JSON, TOML or claude mcp add entry for any other AI app (Cursor, Windsurf, Claude Code …).
  3. The Advanced tab holds auto-start, the port (48884–48894), security (read-only mode, confirmations, code execution), the toolset, the file task watcher and Teaching Mode.
  4. Restart the AI app so it loads the server.

Other Autodesk apps

Each Autodesk app is reached through its own T3Lab add-in, which puts an MCP bridge at %APPDATA%\<folder>\bridge.py. The AI app runs it with python -I; the bridge finds the app by itself (no port).

AppMCP serverBridge
Revitt3lab-revitthis extension (MCP Control starts the server)
AutoCADt3lab-autocad%APPDATA%\T3LabCAD\bridge.py — T3LabCAD add-in
Civil 3Dt3lab-civil3d%APPDATA%\T3LabCivil3D\bridge.py
Navisworkst3lab-navisworks%APPDATA%\T3LabNavisworks\bridge.py
3ds Maxt3lab-3dsmax%APPDATA%\T3LabMax\bridge.py
Inventort3lab-inventor%APPDATA%\T3LabInventor\bridge.py

Today only the AutoCAD add-in ships; for the other apps MCP Control shows "add-in not installed" with the expected path and keeps Connect off. A bridge elsewhere can be set with "<app>_bridge": "<path>" in %APPDATA%\T3LabAI\mcp_paths.json.

MCP Control Interface & Settings


3. Manual Connection Guide

A. Connecting with Claude Desktop

Open or create your Claude Desktop configuration file at: %APPDATA%\Claude\claude_desktop_config.json

Add the t3lab-revit server config under mcpServers (you can copy the exact JSON snippet directly from the MCP Control console in Revit):

{
  "mcpServers": {
    "t3lab-revit": {
      "command": "python",
      "args": [
        "C:/Users/<YourUsername>/T3LabLite/lib/core/bridge.py",
        "48884"
      ]
    }
  }
}

Note: Make sure to replace <YourUsername> with your actual Windows username, and ensure the port matches the one displayed on the console.

B. Connecting with Cursor / VS Code (Cline / Roo Code)

  • Configure an MCP server of type Command using the same command and arguments as above.
  • Alternatively, connect via SSE protocol using the endpoint http://localhost:48884/sse along with the HTTP header: Authorization: Bearer <token_from_console>.

4. Supported MCP Tool Catalog

Here is the list of tools that an AI agent can invoke once connected to the Revit MCP Server, categorized by function:

Group 1: Model Query & Statistics

Tools designed to help the AI read the current state of the Revit model, query elements, or gather project data:

Tool NameDescriptionKey Parameters
revit_get_active_viewRetrieves information about the currently active view (name, ID, scale, view template).None
revit_get_selected_elementsRetrieves details about elements currently selected by the user in Revit.None
revit_get_project_infoRetrieves general project parameters (Project Name, Number, Client, Address).None
revit_list_views / revit_list_sheetsLists all views or sheets available in the current document.view_type (Optional filter)
revit_get_element_infoRetrieves detailed information, geometry, and coordinates of an element by its ID.element_id (Required)
get_all_parametersLists all parameters (name, value, type, read-only flag) for a given element.element_id (Required)
get_elements_by_levelFinds all elements of a specified category (e.g., Walls, Beams) on a given level.level_name (Required), category
get_current_view_elementsRetrieves elements currently visible in the active view, optionally filtered by category.category, limit (Default: 100)
get_material_quantitiesCalculates material quantities (area/volume) for Walls, Floors, Roofs, or Ceilings.category, level_name
ai_element_filterPerforms search by filtering elements of a category where a parameter matches a value.category (Required), parameter_name, parameter_value
get_model_warnings / get_model_healthRetrieves active warnings, counts elements, and provides a health score of the model.limit (For warnings)
list_levels / list_worksetsLists all levels with elevations, or user worksets with their open/close status.None
get_schedule_dataReads a ViewSchedule and returns its data as a structured JSON table.schedule_name or schedule_id

Group 2: Creation & Modeling

Tools supporting the generation and placement of new Revit elements:

Tool NameDescriptionKey Parameters
create_levelCreates a new level at a specific elevation.elevation (m), name (Level name)
create_gridGenerates a grid line system using a list of spacing intervals.x_spacings (m), y_spacings (m), x_labels, y_labels
place_wallPlaces a straight wall between two coordinate points on a level.start_x, start_y, end_x, end_y (m), level_name, height
create_point_based_elementPlaces point-based elements (Doors, Windows, Furniture, Fixtures) at XYZ.family_type, x, y, z (m), level_name, host_wall_id (For hosted items)
create_line_based_elementPlaces line-based elements (Beams, Columns, Pipes, Ducts) between two points.family_type, start_x, start_y, end_x, end_y (m), level_name
create_surface_based_elementCreates a floor, ceiling, or roof from a closed boundary loop of XYZ points.element_type ("floor"/"ceiling"/"roof"), boundary_points
room_to_floorAutomatically generates a floor matching the boundary curves of one or more rooms.room_ids (or room_id), floor_type
create_roomPlaces a new Room element at a given XY location on a level.x, y (m), level_name, name, number
create_viewGenerates a floor plan, ceiling plan, or 3D isometric view.view_type, level_name, name
create_sheetCreates a new sheet with a title block family.sheet_number, sheet_name, title_block
create_text_noteAdds a text annotation to the active view at a specified location.text, x, y (m), font_size
create_dimensionCreates an aligned dimension line across a set of grid lines or references.element_ids, offset
create_worksetCreates a new workset in a workshared model.name (Workset name)

Group 3: Modification & Transforms

Tools used to modify element parameters, locations, and relationships:

Tool NameDescriptionKey Parameters
set_parameterSets a single parameter value on a specific Revit element.element_id, parameter_name, value
bulk_set_parameterSets a parameter value across multiple elements of a category with optional filters.parameter_name, value, category, filter_parameter, filter_value
move_elements / copy_elementsMoves or copies elements by a translation delta vector.element_ids, dx, dy, dz (m)
rotate_elementRotates elements around a vertical Z-axis through a given origin.element_ids, angle_degrees, origin_x, origin_y
split_curveSplits a model or detail curve into multiple segments while preserving geometry.element_id, segments, split_at_ratios
split_elementSplits a wall, beam, pipe, or duct into two elements at a point or ratio.element_id, at_ratio, x, y
join_geometryJoins or unjoins the intersecting geometry of two elements.element_id_a, element_id_b, unjoin (Boolean)
delete_elementDeletes elements. Supports dry_run=true to preview cascade deletions.element_ids, dry_run
rename_elementRenames a view, sheet, level, or other named Revit element.element_id, new_name
operate_elementSelects, hides, unhides, or isolates elements in the active view.operation ("select"/"hide"/"isolate"/"unhide"), element_ids
color_elements / revit_override_colorColor-codes elements by parameter values, or overrides element colors in a view.category, parameter_name (Or color & element_ids)

Group 4: Automation & Advanced Utilities

Tools for automation, batch publishing, and custom script execution:

Tool NameDescriptionKey Parameters
send_code_to_revitExecutes custom IronPython 2.7 code directly in the Revit API context.code (Python code string)
apply_view_templateApplies a view template to one or more views.view_ids, template_name
place_views_on_sheetsAutomates placing multiple views onto sheets as viewport elements.view_ids, title_block, sheet_id (Optional)
add_view_to_sheetPlaces a view viewport onto an existing sheet at specified XY sheet coordinates.sheet_id, view_id, x, y (in mm)
export_sheets_pdfExports sheets to PDF files in a destination directory.sheet_ids, output_folder, combined (Boolean)
export_dwg / export_imageExports sheets/views to DWG files, or saves views as high-resolution PNG images.sheet_ids / view_id, output_folder, width
purge_unusedIdentifies and purges unused family symbols and view templates.dry_run (Boolean report)
say_helloOpens a welcome dialog in Revit to verify that the MCP connection works.message (Text content)
show_assistant_paneShows or hides the built-in T3Lab Assistant dockable panel in Revit.action ("show"/"hide"), message

Data hub: t3lab_hub

Ask about a model with Revit closed, across models, and see what changed between two publishes.

ActionWhat it does
publishRevit saves a snapshot of the open model: elements, types, parameters with a value, warnings (needs Revit)
summaryEvery model in the hub, or one model: counts by category and level, top warnings, publish history
queryFilter by category, family, type, level, workset, phase, name and parameter tests (=, contains, empty, > …); group and count (group_by, sum) or list rows with chosen parameters
diffAdded, removed and changed elements between two publishes, the parameters that changed, new and resolved warnings
  • Answers are small: counting doors per level costs about a hundred tokens instead of reading every door.
  • Stored on your computer in %LOCALAPPDATA%\T3Lab\hub. snapshots\ holds the data; hub.db is a cache rebuilt with python %APPDATA%\T3LabAI\bridge.py hub rebuild. Keep hub.db off OneDrive and network folders.
  • Nothing to turn on: after an update restart Revit (it refreshes the MCP bridge files), then the AI app. A diff needs two publishes.
  • The hub never changes a model, and its data can be older than the model: AI apps re-read the live model before an edit.

5. Key Notes & Best Practices

  1. Safety Transactions: All model write operations are managed via Revit API transactions. If any tool call encounters an error mid-execution, the entire operation is rolled back to protect the model's integrity.
  2. Python Execution Permissions: The send_code_to_revit tool gives the AI agent full access to the Revit API. While the server is secured locally using Bearer tokens, users should inspect script execution to ensure it does not enter infinite dialog loops which could freeze Revit.
  3. See what the AI does: turn on Agent Cursors (Support › Settings) to watch each AI app's cursor, goal and changes over the model. AI apps can show their goal with the read-only tool t3lab_narrate.
  4. Measurement Units: All modeling coordinate inputs (X, Y, Z, spacings, lengths) are standardized in meters (m). However, sheet coordinates and titleblock spacings in viewport placement tools (such as add_view_to_sheet) are measured in millimeters (mm) to match paper size standards.
← T3Lab AssistantAgent Cursors →