Skip to main content
Glama
Axus Revit

Axus Revit

Axus Revit — conector MCP

Conector do Estúdio Axus que liga o Claude ao Autodesk Revit (via pyRevit Routes). Usado na produção de projetos legais (Habite-se de regularização e Alvará) para a CAP/SEDUH-DF.

Baseado no Demolinator/revit-mcp-server (licença MIT), que por sua vez deriva do trabalho de Juan D. Rodriguez e Jean-Marc Couffin. A licença original e os créditos estão preservados em LICENSE e CONTRIBUTORS.md.

Diferenças em relação ao original

  • Nome do servidor MCP: Axus Revit; extensão pyRevit: axus-revit.

  • Rotas no endereço http://localhost:48884/axus/ (o original usa /revit_mcp/), para poder conviver com outros conectores instalados no mesmo Revit.

  • Pacote interno axus_revit/ (o original usa revit_mcp/), pelo mesmo motivo: com dois pacotes de mesmo nome, o pyRevit carregava o do outro conector.

Related MCP server: revit-mcp

Roteiro

Fase 1 — robustez

  • Abrir/manipular vistas por ElementId (nomes com acento falhavam)

  • Acentos corretos (UTF-8) em textos, nomes de vista e parâmetros

  • Tempo limite maior para comandos longos

  • Exportar pranchas em PDF (e DWG) para protocolo na CAP

Fase 2 — comandos da Axus

  • Puxar dados do lote pelo CIPU (GeoPortal: lote, confrontantes, LUOS, cota de soleira, curvas de nível)

  • Cotar o lote (incluindo frentes em arco)

  • Muros por tipo de divisa (logradouro público: muro + grade, ≤ 2,70 m, 70% transparência)

  • Checklist anti-exigência da CAP rodando no modelo


Documentação original (em inglês)

MCP server for Autodesk Revit 2024/2025/2026/2027 via pyRevit — 48 tools for building design, editing, analysis, clash detection, MEP, interop, documentation, and model persistence.

Works with any MCP client: Claude Desktop, Claude Code, Cursor, Windsurf, Copilot, or any other MCP-compatible application.

How It Works

AI Client ──stdio/SSE/HTTP──> MCP Server (Python/FastMCP) ──HTTP :48884──> pyRevit Routes ──> Revit API

The MCP server runs on your machine and communicates with Revit through pyRevit's Routes API. Any MCP-compatible AI client can connect to it.

Prerequisites

Requirement

Details

Windows 10/11

Revit is Windows-only

Autodesk Revit

2024, 2025, 2026, or 2027

pyRevit

Installed and loaded in Revit

uv

Python package manager (install)

A project open in Revit

Tools require an active document

Install pyRevit (if not already installed)

pyRevit is a free add-in that lets scripts run inside Revit. This MCP server needs it to communicate with Revit.

  1. Go to https://github.com/pyrevitlabs/pyRevit/releases

  2. Download the latest .exe installer (e.g. pyRevit_CLI_x.x.x.x_admin_signed.exe)

  3. Run the installer — accept all defaults, click Next through each screen

  4. Open (or restart) Revit — you should see a pyRevit tab in the ribbon at the top

  5. In the pyRevit tab, click Settings (gear icon)

  6. In the Settings window, go to the Routes section on the left

  7. Check the box to Enable Routes Server

  8. Click Save Settings and let pyRevit reload

To verify: open a browser and go to http://localhost:48884/ — you should see a response (not a "connection refused" error).

Quick Start

1. Get the code

git clone https://github.com/arqdavialves2025-boop/MCP-AXUS.git
cd axus-revit-mcp
uv sync

2. Load the extension into pyRevit

startup.py and axus_revit/ run inside Revit, so pyRevit has to load this folder as an extension.

Don't install "MCP Server for Revit Python" from the pyRevit Extensions manager. That entry installs the original upstream project, which lacks most of the 48 routes this server calls.

  1. Pick a folder for your pyRevit extensions, e.g. C:\pyRevitExtensions.

  2. Link this repo into it under a name ending in .extension (a junction keeps it updated whenever you git pull):

    New-Item -ItemType Junction -Path C:\pyRevitExtensions\axus-revit.extension -Target C:\path\to\revit-mcp-server

    (Copying the folder there with that name works too; you'll just need to copy it again after updates.)

  3. In Revit: pyRevit tab → Settings → Custom Extension Directories → add C:\pyRevitExtensions.

  4. In the same Settings window, under Routes, turn on Routes Server (port 48884).

  5. Save Settings and Reload.

3. Check Revit is answering

With a project open, browse to http://localhost:48884/axus/status/. A working setup answers with "status": "active" and your project's title. A 404 means the extension isn't loaded; "can't reach this page" means Routes is off or Revit is closed.

4. Connect your AI client

Most desktop clients start the server themselves over stdio. Add this to the client's MCP configuration (for Claude Desktop: claude_desktop_config.json):

{
  "mcpServers": {
    "revit": {
      "command": "uv",
      "args": ["run", "--directory", "C:\path\to\revit-mcp-server", "main.py"]
    }
  }
}

For Claude Code: claude mcp add axus-revit -- uv run --directory C:\path\to\revit-mcp-server main.py

Clients that connect over HTTP instead (some Cursor/Windsurf setups, remote clients) need the server started separately:

uv run main.py --http        # then point the client at http://127.0.0.1:8000/mcp

Start with

Protocol

Served at

uv run main.py

stdio (default)

the client's stdin/stdout

--http (alias --streamable-http)

Streamable HTTP

/mcp

--sse

Server-Sent Events (older clients)

/sse and /messages/

--combined

Streamable HTTP + SSE together

all of the above

Configuration

Set these environment variables (or the env block of your MCP client config) to change the defaults:

Variable

Default

Purpose

REVIT_HOST

localhost

Machine running Revit + pyRevit Routes

REVIT_PORT

48884

pyRevit Routes port

MCP_HOST

127.0.0.1

Bind address for --http / --sse / --combined

MCP_PORT

8000

Port for --http / --sse / --combined

Keep MCP_HOST on 127.0.0.1 unless you understand the risks in SECURITY.md.

Try tools without an AI client

uv run mcp dev main.py       # opens the MCP Inspector at http://127.0.0.1:6274

Supported Tools (48)

Create (15)

Tool

Description

create_level

Create new levels with elevations

create_line_based_element

Create walls, beams, and other line-based elements

create_surface_based_element

Create floors, roofs, and surface elements

place_family

Place a family instance at specified location

create_grid

Create column grid lines

create_structural_framing

Create structural beams and framing

create_sheet

Create new drawing sheets

create_schedule

Create schedules with custom fields

create_room

Create rooms at specified levels

create_room_separation

Create room separation boundary lines

create_duct

Create ducts between two points (MEP)

create_pipe

Create pipes between two points (MEP)

create_mep_system

Create mechanical or piping systems

create_detail_line

Create view-specific detail lines

create_view

Create floor plans, sections, elevations, 3D views

Query (12)

Tool

Description

get_revit_status

Check if the API is active and responding

get_revit_model_info

Get model information

list_levels

Get all levels with elevations

list_families

Get available family types

list_family_categories

Get all family categories

get_revit_view

Export a view as an image

list_revit_views

List all exportable views

get_current_view_info

Get active view details

get_current_view_elements

Get elements in current view

get_selected_elements

Get currently selected elements

list_category_parameters

List parameters for a category

get_element_properties

Get all parameters and properties of an element

Modify (9)

Tool

Description

delete_elements

Delete elements from the model

modify_element

Modify element parameter values

color_splash

Color elements by parameter values

clear_colors

Reset element colors

tag_walls

Tag all walls in current view

set_parameter

Set a single parameter value on an element

tag_elements

Tag specific elements with annotation symbols

transform_elements

Move, copy, rotate, or mirror elements

set_active_view

Switch the active view in Revit

Analyze (5)

Tool

Description

ai_element_filter

Filter elements by category and parameters

export_room_data

Export room areas, volumes, boundaries

get_material_quantities

Material takeoff data

check_clashes

Detect hard clashes (interferences) between disciplines, e.g. structure vs MEP

analyze_model_statistics

Element counts and model stats

Document (2)

Tool

Description

create_dimensions

Create dimension annotations

export_document

Export views to PDF or image

Interop & Persistence (4)

Tool

Description

export_ifc

Export model to IFC format (IFC2x3/IFC4)

link_file

Link or import DWG, DXF, DGN, SAT, SKP, 3DM, or RVT files

load_family

Load a Revit family (.rfa) from disk so its types can be placed

save_document

Save / Save-As the model to disk (persistence across sessions)

Advanced (1)

Tool

Description

execute_revit_code

Execute IronPython code in Revit context

Architecture

Two runtimes communicate over HTTP:

Component

Runtime

Location

Purpose

main.py + tools/

Python 3.11+ (CPython)

Your machine

MCP protocol, tool definitions

startup.py + axus_revit/

IronPython 2.7 (inside Revit)

Revit process

pyRevit route handlers, Revit API

Multi-Version Revit Support

This server supports Revit 2024, 2025, 2026, and 2027 through centralized helper functions that handle the ElementId API differences across versions:

  • get_element_id_value() — Extracts integer IDs using .Value (2024+) with .IntegerValue fallback

  • make_element_id() — Creates ElementIds using System.Int64 (2024+) with int fallback

No configuration needed — version detection is automatic via try/except at runtime.

Revit 2027 note: Revit 2027 runs on .NET 10 (vs .NET 8 in 2025/2026). This MCP server is pyRevit-based, so .NET compatibility is handled by pyRevit itself — ensure you run a pyRevit build with Revit 2027 support. None of the 48 tools use APIs removed in 2027 (AXM/FormIt import, Mechanical.Zone members, legacy rebar creation, or the dropped EnergyDataSettings properties).

Unit Handling

All tools accept millimeters (mm). The server converts to Revit's internal feet.

From

To mm

meters

x 1000

feet

x 304.8

inches

x 25.4

Creating Your Own Tools

Adding a new tool requires 2 files + 2 registration lines:

  1. Route handler in axus_revit/new_module.py (IronPython 2.7)

  2. Tool definition in tools/new_tools.py (Python 3.11+)

  3. Register routes in startup.py

  4. Register tools in tools/__init__.py

See CONTRIBUTING.md for a complete worked example, and LLM.txt for context that helps AI assistants understand the codebase.

Contributing

Contributions are welcome — from typo fixes to new tools! Read CONTRIBUTING.md for the dev setup, the edit–reload loop, a step-by-step "add a tool" walkthrough, and coding conventions.

Contributors

Thanks to everyone who has built, fixed, tested, and reported issues in this repository. See CONTRIBUTORS.md for who did what.

Built on mcp-server-for-revit-python by Juan Rodriguez and its contributors.

Author

Talal Ahmed

License

MIT

Available Tools

48 tools
ai_element_filterA

Filter and find Revit elements by category, type, visibility, and spatial bounds.

A powerful query tool for finding specific elements in the model. Combine filters for precise results — e.g., find all exterior walls on Level 1 visible in the current view.

Args: category: BuiltInCategory name, e.g. "OST_Walls", "OST_Doors" (optional) type_name: Filter by family type name or partial match (optional) visible_in_view: Only include elements visible in the active view (optional) bounding_box_min: Spatial filter min corner {"x", "y", "z"} in mm (optional) bounding_box_max: Spatial filter max corner {"x", "y", "z"} in mm (optional) max_elements: Maximum results to return (defaults to 50) ctx: MCP context for logging

Inputs: category, type_name, max_elements, visible_in_view, +2 more.

analyze_model_statisticsB

Analyze the Revit model and return element counts grouped by category.

Provides a high-level overview of what's in the model — how many walls, doors, windows, floors, etc. Useful for progress tracking and model health checks.

Args: ctx: MCP context for logging

Inputs: no named parameters.

check_clashesA

Detect hard clashes (geometric interferences) between model elements.

Runs Revit's native interference logic to find elements whose solids physically overlap — the core of BIM coordination (e.g. ducts running through beams, pipes through walls).

Scope rules:

  • No categories given: a default physical scope (architectural + structural + MEP) is checked against itself.

  • Only set_a given: set_a is checked against itself.

  • Both given: set_a is checked against set_b (cross-discipline), e.g. structure vs MEP.

Categories accept BuiltInCategory ids ("OST_DuctCurves") or friendly aliases ("ducts", "pipes", "beams", "walls", "structural framing").

Returns clashing element pairs with ids, names, categories, and the approximate clash location in mm. Note: auto-joined concrete and geometry-less elements (e.g. rebar) are not reported by Revit.

Args: set_a_categories: First element set, e.g. ["beams", "OST_StructuralColumns"] set_b_categories: Second element set to check against, e.g. ["ducts", "pipes"] max_clashes: Maximum clashes to return (defaults to 200) ctx: MCP context for logging

Inputs: max_clashes, set_a_categories, set_b_categories.

clear_colorsB

Remove color overrides from a category in the active view.

Args: category_name: Revit category previously colored, e.g. "Walls".

Inputs: category_name (required).

color_splashA

Color elements of a category in the active view by a parameter's value.

Every distinct value gets its own color, which makes patterns (fire ratings, departments, levels, types…) visible at a glance.

Args: category_name: Revit category, e.g. "Walls", "Rooms", "Doors". parameter_name: Parameter to color by; list_category_parameters shows the options. use_gradient: Blend colors along a gradient instead of using distinct colors (best for numeric parameters). custom_colors: Optional hex colors to use in order, e.g. ["#FF0000", "#00AA00"].

Inputs: category_name (required), parameter_name (required), use_gradient, custom_colors.

create_detail_lineA

Create a detail line in a Revit view for annotation purposes.

Detail lines are view-specific 2D annotation elements. They only appear in the view where they are created (unlike model lines). Must be created in a plan, section, or detail view.

Args: start_point: Start point {"x", "y", "z"} in mm end_point: End point {"x", "y", "z"} in mm view_name: Target view name (defaults to active view) line_style: Line style name (e.g., "Medium Lines"). Uses default if omitted ctx: MCP context for logging

Inputs: end_point (required), start_point (required), view_name, line_style.

create_dimensionsA

Create dimension annotations for elements in the current view.

Automatically dimensions the specified elements. Works in plan, section, and elevation views. The dimension line is placed at an offset from the elements for readability.

Args: element_ids: List of element IDs to dimension dimension_type: Type of dimension — "linear", "aligned", or "angular" (defaults to "linear") ctx: MCP context for logging

Inputs: element_ids (required), dimension_type.

create_ductA

Create a duct in the Revit model between two points.

Requires a project with mechanical families loaded (MEP template). Specify diameter for round ducts, or width+height for rectangular. All dimensions in millimeters.

Args: start_point: Start point {"x", "y", "z"} in mm end_point: End point {"x", "y", "z"} in mm system_type: System type name (e.g., "Supply Air"). Auto-detects if omitted duct_type: Duct type name (e.g., "Round Duct"). Auto-detects if omitted level_name: Level name. Defaults to nearest level diameter: Round duct diameter in mm width: Rectangular duct width in mm height: Rectangular duct height in mm ctx: MCP context for logging

Inputs: end_point (required), start_point (required), width, height, +4 more.

create_gridA

Create grid lines for the structural layout of a building.

Grids define the column grid system. Each grid is a line from start to end point (in millimeters). Names auto-assign (A, B, C... or 1, 2, 3...) if not provided. Supports batch creation.

Args: grids: List of grid definitions, each with: - start_point (dict): {"x": float, "y": float, "z": float} in mm (required) - end_point (dict): {"x": float, "y": float, "z": float} in mm (required) - name (str): Grid line name (optional, auto-assigned) ctx: MCP context for logging

Inputs: grids (required).

create_levelA

Create building levels (floor elevations) in Revit.

Levels define the floor-to-floor heights of a building and must be created before placing walls, floors, or other level-dependent elements.

Args: levels: List of level definitions, each with: - elevation (float): Elevation in mm from project origin (required) - name (str): Level name, e.g. "Ground Floor" (optional, auto-assigned) ctx: MCP context for logging

Inputs: levels (required).

create_line_based_elementA

Create walls, beams, and other line-based building elements in Revit.

Each element needs start and end points (in millimeters), element type (wall/beam), and optionally a level name, height, and family type name. Supports batch creation — pass multiple elements in one call.

Args: elements: List of element definitions, each with: - element_type (str): "wall" or "beam" (required) - start_point (dict): {"x": float, "y": float, "z": float} in mm (required) - end_point (dict): {"x": float, "y": float, "z": float} in mm (required) - type_name (str): Family type name, e.g. "Generic - 200mm" (optional) - level_name (str): Target level name (optional, defaults to first level) - height (float): Element height in mm (optional, defaults to 3000) - offset (float): Offset from base level in mm (optional, defaults to 0) - structural (bool): Mark as structural (optional, defaults to false) - name (str): Description for reference (optional) ctx: MCP context for logging

Inputs: elements (required).

create_mep_systemB

Create a mechanical or piping system and optionally add elements to it.

Groups ducts or pipes into a named system for organization and analysis.

Args: system_type: "mechanical" or "piping" system_name: Display name for the system (e.g., "Level 1 Supply Air") element_ids: Optional list of duct/pipe element IDs to add to the system ctx: MCP context for logging

Inputs: system_name (required), system_type (required), element_ids.

create_pipeA

Create a pipe in the Revit model between two points.

Requires a project with plumbing families loaded (MEP template). All dimensions in millimeters.

Args: start_point: Start point {"x", "y", "z"} in mm end_point: End point {"x", "y", "z"} in mm system_type: System type name (e.g., "Domestic Hot Water"). Auto-detects if omitted pipe_type: Pipe type name (e.g., "Copper"). Auto-detects if omitted level_name: Level name. Defaults to nearest level diameter: Pipe diameter in mm ctx: MCP context for logging

Inputs: end_point (required), start_point (required), diameter, pipe_type, +2 more.

create_roomA

Create a room in the Revit model at a specified level.

Rooms must be placed inside enclosed areas (bounded by walls or room separation lines). If no location is given, Revit auto-places the room.

Args: level_name: Target level name (e.g., "Level 1") location: Optional placement point {"x": float, "y": float} in mm name: Room name (e.g., "Living Room") number: Room number (e.g., "101") ctx: MCP context for logging

Inputs: level_name (required), name, number, location.

create_room_separationA

Create room separation lines to define room boundaries.

Room separation lines act as invisible walls for room calculation. Use these when physical walls don't fully enclose a space (e.g., open-plan areas, corridors). All coordinates in millimeters.

Args: lines: List of line segments, each with: - start_point (dict): {"x": float, "y": float, "z": float} in mm - end_point (dict): {"x": float, "y": float, "z": float} in mm level_name: Target level name (defaults to active view's level) view_name: Plan view name (defaults to active view) ctx: MCP context for logging

Inputs: lines (required), view_name, level_name.

create_scheduleA

Create a schedule (quantity takeoff view) for a specific element category.

Schedules tabulate element data — e.g., a wall schedule showing all walls with their types, lengths, and areas. The schedule appears as a new view in the Revit project browser.

Args: category: BuiltInCategory name, e.g. "OST_Walls", "OST_Rooms" (required) fields: Parameter names to include as columns (optional, uses default set) e.g., ["Family and Type", "Length", "Area", "Mark"] schedule_name: Name for the schedule view (optional, auto-generated) ctx: MCP context for logging

Inputs: category (required), fields, schedule_name.

create_sheetA

Create a drawing sheet in Revit for construction documentation.

Sheets are the printable output of a Revit project. Each sheet has a title block, sheet number, and name. Views can be placed on sheets after creation.

Args: sheet_number: Sheet number, e.g. "A101" (optional, auto-assigned) sheet_name: Sheet title, e.g. "Ground Floor Plan" (defaults to "Unnamed Sheet") title_block_name: Title block family name (optional, uses first available) ctx: MCP context for logging

Inputs: sheet_name, sheet_number, title_block_name.

create_structural_framingA

Create structural beams and framing elements in Revit.

Beams are placed along a line between two points, positioned at the given level's elevation (like walls/floors). The point z is an offset from that level — so pass z=0 to put the beam on the level, or a small z for a drop/raise relative to it. All dimensions in millimeters. Supports batch creation.

Args: elements: List of beam definitions, each with: - start_point (dict): {"x": float, "y": float, "z": float} in mm (required; z is offset from level) - end_point (dict): {"x": float, "y": float, "z": float} in mm (required; z is offset from level) - type_name (str): Beam family type name (optional) - level_name (str): Target level name — sets the beam elevation (optional) - name (str): Description for reference (optional) ctx: MCP context for logging

Inputs: elements (required).

create_surface_based_elementA

Create floors, roofs, ceilings, and other surface-based building elements.

Each element needs a closed boundary polygon (list of line segments) where the last point connects back to the first. All dimensions in millimeters. Supports batch creation.

Args: elements: List of element definitions, each with: - element_type (str): "floor", "roof", or "ceiling" (required) - boundary (list[dict]): Array of {"p0": Point, "p1": Point} segments forming a closed polygon (required, minimum 3 segments) - type_name (str): Family type name (optional) - level_name (str): Target level name (optional) - offset (float): Offset from level in mm (optional, defaults to 0) - name (str): Description for reference (optional) ctx: MCP context for logging

Inputs: elements (required).

create_viewA

Create a new view in the Revit model.

Supports floor plans, ceiling plans, sections, elevations, and 3D views. Floor plans and ceiling plans require a level name. Sections require a section box definition with origin, direction, and dimensions.

Args: view_type: Type of view — "floor_plan", "ceiling_plan", "section", "elevation", or "3d" name: Display name for the new view level_name: Required for floor_plan and ceiling_plan — the level to show section_box: Required for section — defines the cut plane: - origin (dict): {"x", "y", "z"} center point in mm - direction (dict): {"x", "y", "z"} view direction vector - up (dict): {"x", "y", "z"} up direction vector - width (float): Section width in mm - height (float): Section height in mm - depth (float): Section depth in mm ctx: MCP context for logging

Inputs: name (required), view_type (required), level_name, section_box.

delete_elementsA

Delete one or more elements from the Revit model.

Removes elements by their IDs. If a deleted element hosts other elements (e.g., a wall with doors), the hosted elements are also deleted (cascade). All deletions happen in a single transaction — if any fails, none are deleted.

Args: element_ids: List of Revit element IDs to delete ctx: MCP context for logging

Inputs: element_ids (required).

execute_revit_codeA

Run IronPython 2.7 code inside Revit and return what it prints.

Only use this when no dedicated tool can do the job. The code runs inside a single transaction that is committed on success and rolled back on error, so do not start your own Transaction.

Available names: doc (active Document), DB (Autodesk.Revit.DB), revit (pyRevit helpers), System, clr, and print (its output is returned to you).

IronPython 2.7 rules:

  • no f-strings; use "{}".format(...)

  • Revit stores lengths in feet; divide millimeters by 304.8

  • build element IDs as DB.ElementId(System.Int64(n)); a bare int is ambiguous in Revit 2027

  • some elements lack .Name; read it defensively, e.g. getattr(el, "Name", None) or the ALL_MODEL_TYPE_NAME parameter

  • check doc.GetElement(...) for None before using the result

Example: walls = DB.FilteredElementCollector(doc)
.OfCategory(DB.BuiltInCategory.OST_Walls)
.WhereElementIsNotElementType().ToElements() print("walls: {}".format(len(walls)))

Args: code: IronPython source to execute. description: Short label; it becomes the transaction name shown in Revit's Undo menu.

Inputs: code (required), description.

export_documentA

Export a Revit view or sheet to PDF or image format.

Exports the specified view (or the active view if none specified) to a file on disk. Supported formats: PDF, PNG, JPG, DWG.

Args: view_name: Name of the view or sheet to export (optional, uses active view) format: Output format — "pdf", "png", "jpg", or "dwg" (defaults to "pdf") resolution: DPI for image formats (defaults to 300, ignored for PDF/DWG) ctx: MCP context for logging

Inputs: format, view_name, resolution.

export_ifcA

Export the Revit model to IFC format.

Creates an IFC file at the specified path. Optionally filter by view to export only visible elements. Supports IFC2x3 and IFC4.

Args: file_path: Output file path (must end in .ifc) ifc_version: "IFC2x3" (default) or "IFC4" export_base_quantities: Include IFC base quantities (default: true) view_name: Export only elements visible in this view (optional) ctx: MCP context for logging

Inputs: file_path (required), view_name, ifc_version, export_base_quantities.

export_room_dataA

Export data for all rooms defined in the Revit model.

Returns room names, numbers, levels, areas, perimeters, and departments in a structured format suitable for analysis and reporting.

Args: ctx: MCP context for logging

Inputs: no named parameters.

get_current_view_elementsA

List the elements visible in the current view, with IDs and categories.

Use the returned element IDs with editing, tagging, or property tools.

Inputs: no named parameters.

get_current_view_infoA

Describe the view currently open in Revit.

Returns its name, type, ID, and whether it is a template. Check this before view-specific tools such as tagging or detail lines.

Inputs: no named parameters.

get_element_propertiesA

Get all properties and parameters of a Revit element.

Returns the element's category, family, type, and a complete list of both instance and type parameters with their values, storage types, and read-only status.

Args: element_id: Revit element ID to inspect include_type_params: Include type parameters in addition to instance parameters (default: true) ctx: MCP context for logging

Inputs: element_id (required), include_type_params.

get_material_quantitiesA

Get material quantities (areas and volumes) from the Revit model.

Returns aggregated material data across all elements, optionally filtered by category. Useful for quantity takeoffs and cost estimation.

Args: categories: List of categories to include, e.g. ["OST_Walls", "OST_Floors"] (optional, defaults to all categories) ctx: MCP context for logging

Inputs: categories.

get_revit_model_infoA

Summarize the open Revit model.

Returns project information, levels, element counts by category, rooms, view and sheet counts, linked models, and warnings. Useful for orienting yourself before creating or editing elements.

Inputs: no named parameters.

get_revit_statusA

Check that Revit is reachable and has a project open.

Call this first when starting a session or when other tools fail, to tell connection problems apart from modelling problems.

Inputs: no named parameters.

get_revit_viewA

Render a Revit view to a PNG image so you can see it.

Args: view_name: Exact view name as returned by list_revit_views, e.g. "Level 1" or "{3D}".

Inputs: view_name (required).

get_selected_elementsA

Get details of elements currently selected in the Revit UI.

Returns IDs, categories, types, and key parameters of all elements the user has selected in Revit. Returns an empty list if nothing is selected (not an error).

Args: ctx: MCP context for logging

Inputs: no named parameters.

list_category_parametersA

List the parameters available on elements of a category.

Use this before color_splash, ai_element_filter, or set_parameter to find the exact parameter name.

Args: category_name: Revit category, e.g. "Walls", "Doors", "Rooms".

Inputs: category_name (required).

list_familiesB

List loaded family types as family name, type name, and category.

Args: contains: Only return families or types whose name contains this text. limit: Maximum number of results (default 50).

Inputs: limit, contains.

list_family_categoriesA

List the categories that have loadable families in this model, with counts.

Inputs: no named parameters.

list_levelsA

List every level in the model with its name, ID, and elevation (mm and feet).

Use the returned level names wherever another tool asks for a level_name.

Inputs: no named parameters.

list_revit_viewsA

List the views that can be exported as images, grouped by view type.

Inputs: no named parameters.

load_familyA

Load a Revit family (.rfa file) from disk into the active document.

Use this when a needed family (furniture, doors, windows, equipment) is not already loaded in the project — load it first, then place_family can place its types. The file_path must be a full path to a .rfa file accessible to the machine running Revit.

Args: file_path: Full path to the .rfa family file, e.g. "C:\ProgramData\Autodesk\RVT 2027\Libraries\English\Furniture\Chair.rfa" ctx: MCP context for logging

Inputs: file_path (required).

modify_elementA

Modify parameter values on a Revit element.

Changes one or more instance parameters on the specified element. Returns old and new values for confirmation.

Args: element_id: Revit element ID to modify parameters: Dictionary of parameter name to new value pairs e.g., {"Mark": "EW-01", "Comments": "Updated via MCP"} ctx: MCP context for logging

Inputs: element_id (required), parameters (required).

place_familyA

Place one instance of a loaded family (furniture, equipment, doors, windows...).

Coordinates are in millimeters. Doors and windows are hosted on the wall nearest the point, so create walls first. Use list_families to find valid names, or load_family to bring in a new .rfa.

Args: family_name: Family name, e.g. "Desk". type_name: Type within the family, e.g. "1525 x 762mm". Uses the first type when omitted. x: X coordinate in mm. y: Y coordinate in mm. z: Z offset in mm. rotation: Rotation about the vertical axis, in degrees. level_name: Level to place on, e.g. "Level 1". properties: Instance parameters to set afterwards, e.g. {"Comments": "AI placed"}.

Inputs: family_name (required), x, y, z, +4 more.

save_documentA

Save the active Revit document to disk so work persists.

If file_path is given (or the document was started from a template and has never been saved), performs Save As to that path. Otherwise saves the document in place. Use this to persist a model before closing or restarting Revit.

Args: file_path: Full .rvt path to save to, e.g. "C:\Models\ESB.rvt" (required the first time a template-based model is saved) overwrite: Overwrite an existing file at that path (defaults to True) ctx: MCP context for logging

Inputs: file_path, overwrite.

set_active_viewA

Switch the active view in Revit to the specified view.

Changes which view is displayed in the Revit UI. Use list_revit_views first to find available view names.

Args: view_name: Name of the view to activate ctx: MCP context for logging

Inputs: view_name (required).

set_parameterA

Set a single parameter value on a Revit element.

Automatically detects the parameter's storage type (String, Integer, Double, ElementId) and converts the value accordingly. Returns old and new values for confirmation.

Args: element_id: Target element ID parameter_name: Name of the parameter to set (e.g., "Comments", "Mark") value: New value as a string — automatically converted to the correct type ctx: MCP context for logging

Inputs: value (required), element_id (required), parameter_name (required).

tag_elementsA

Tag elements with annotation symbols in a view.

Places tags on the specified elements. Tags display element properties like type name, mark, or room name/number. Works with walls, doors, windows, rooms, and other taggable categories.

Args: element_ids: List of element IDs to tag view_name: View to place tags in (defaults to active view) tag_type_name: Tag family type name (auto-detects appropriate tag if omitted) add_leader: Show leader line from tag to element (default: false) orientation: Tag orientation — "horizontal" or "vertical" (default: "horizontal") offset: Tag offset from element center {"x": float, "y": float} in mm ctx: MCP context for logging

Inputs: element_ids (required), offset, view_name, add_leader, +2 more.

tag_wallsA

Tag all untagged walls in the current Revit view.

Places wall tags on every wall visible in the active view that doesn't already have a tag. Tags are centered on each wall segment.

Args: use_leader: Whether to show leader lines (defaults to False) tag_type_name: Specific wall tag family type name (optional, uses first available) ctx: MCP context for logging

Inputs: use_leader, tag_type_name.

transform_elementsA

Move, copy, rotate, or mirror elements in the Revit model.

Performs geometric transformations on one or more elements. All coordinates and distances are in millimeters, angles in degrees.

Args: element_ids: List of element IDs to transform operation: Transform type — "move", "copy", "rotate", or "mirror" vector: Translation vector {"x", "y", "z"} in mm (required for move/copy) axis_point: Rotation center {"x", "y", "z"} in mm (required for rotate) angle: Rotation angle in degrees (required for rotate) mirror_plane: Mirror definition (required for mirror): - origin (dict): {"x", "y", "z"} point on the mirror plane in mm - normal (dict): {"x", "y", "z"} plane normal direction ctx: MCP context for logging

Inputs: operation (required), element_ids (required), angle, vector, +2 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 48 tools

    Disambiguation3/5

    Several tools genuinely overlap: tag_walls vs tag_elements (the former is a special case of the latter), modify_element vs set_parameter (multi-param vs single-param on the same target), and create_line_based_element (which accepts element_type 'beam') vs create_structural_framing (also beams). get_current_view_elements, ai_element_filter, and analyze_model_statistics/get_revit_model_info also partially duplicate query/summary roles. Descriptions mitigate most cases, but an agent could plausibly misselect on the overlapping pairs.

    Naming Consistency4/5

    The surface is uniformly snake_case with a verb_noun convention (create_level, tag_walls, export_ifc, set_parameter, save_document). The only real deviation is ai_element_filter, which is noun-oriented rather than verb-first and breaks the otherwise predictable pattern. Minor and still readable.

    Tool Count2/5

    48 tools is well past the 25-tool threshold and includes redundant pairs that could be consolidated (tag_walls/tag_elements, modify_element/set_parameter, beam creation in two places). While Revit is a large domain, the count is heavy enough that tool selection becomes a real cognitive burden.

    Completeness4/5

    Coverage is broad: modelling (walls, floors, levels, grids, rooms, MEP), annotation/tagging, views/sheets/schedules, query/analysis, clash detection, exports (PDF, IFC, DWG), and save. A few dead ends remain — create_sheet states views can be placed on sheets but no place_view tool exists, and there is no open/create-document or list_sheets operation. These are workaroundable via execute_revit_code.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to interact with Autodesk Revit to query project data, manage elements, and execute generated code via the Model Context Protocol. It provides full compatibility with GitHub Copilot and Claude to automate BIM modeling workflows.
      13
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      A pyRevit extension and Python server that enables AI clients to interact with a live Autodesk Revit session through tools for project info, view management, element operations, and schedule management.
      72
      MIT
    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Connects MCP clients like Claude, Codex, and Cursor to a running Autodesk Revit session for typed BIM queries, verified model edits, family authoring, exports, and Power BI workflows. It is open-source, Apache-2.0, and designed for reliable, verified outcomes.
      -