mcp-server-for-revit

v1.0.0
mcp-server-for-revit Checked 2 days ago Published 9 months ago

MCP server for interacting with Autodesk Revit through AI assistants like Claude

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

ai_element_filter

An intelligent Revit element querying tool designed specifically for AI assistants to retrieve detailed element information from Revit projects. This tool allows the AI to request elements matching specific criteria (such as category, type, visibility, or spatial location) and then perform further analysis on the returned data to answer complex user queries about Revit model elements. Example: When a user asks 'Find all walls taller than 5m in the project', the AI would: 1) Call this tool with parameters: {"filterCategory": "OST_Walls", "includeInstances": true}, 2) Receive detailed informatio…

ParameterTypeDescription
data *objectConfiguration parameters for the Revit element filter tool. These settings determine which elements will be selected from the Revit project based on various filtering criteria. Multiple filters can be…

analyze_model_statistics

Analyze model complexity with element counts. Returns detailed statistics about the Revit model including total element counts, total types, total families, views, sheets, counts by category (with type/family breakdown), and level-by-level element distribution. Useful for model auditing, performance analysis, and understanding model composition.

ParameterTypeDescription
includeDetailedTypesbooleanWhether to include detailed breakdown by family and type within each category. Defaults to true.

color_elements

Color elements in the current view based on a category and parameter value. Each unique parameter value gets assigned a distinct color.

ParameterTypeDescription
categoryName *stringThe name of the Revit category to color (e.g., 'Walls', 'Doors', 'Rooms')
parameterName *stringThe name of the parameter to use for grouping and coloring elements
customColorsarrayOptional array of custom RGB colors to use for specific parameter values
useGradientbooleanWhether to use a gradient color scheme instead of random colors

create_dimensions

Create dimension annotations in the current Revit view. Supports dimensioning between elements (walls, doors, windows) by element IDs, or between two points with automatic reference detection. All coordinates are in millimeters (mm).

ParameterTypeDescription
dimensions *arrayArray of dimensions to create

create_grid

Create a grid system in Revit with smart spacing generation. Supports both X-axis (vertical) and Y-axis (horizontal) grids with customizable naming styles (alphabetic A,B,C or numeric 1,2,3). All units are in millimeters (mm).

ParameterTypeDescription
xCount *integerNumber of grid lines along X-axis (vertical grids)
xSpacing *numberSpacing between X-axis grid lines in millimeters
yCount *integerNumber of grid lines along Y-axis (horizontal grids)
ySpacing *numberSpacing between Y-axis grid lines in millimeters
elevationnumberElevation for grid lines in mm (Z-coordinate)
xExtentMaxnumberMaximum extent along X-axis in mm (where Y-axis grids end)
xExtentMinnumberMinimum extent along X-axis in mm (where Y-axis grids start)
xNamingStylestringNaming style for X-axis: 'alphabetic' (A,B,C...) or 'numeric' (1,2,3...)
xStartLabelstringStarting label for X-axis grids (e.g., 'A' or '1')
xStartPositionnumberStarting position for first X-axis grid in mm
yExtentMaxnumberMaximum extent along Y-axis in mm (where X-axis grids end)
yExtentMinnumberMinimum extent along Y-axis in mm (where X-axis grids start)
yNamingStylestringNaming style for Y-axis: 'alphabetic' (A,B,C...) or 'numeric' (1,2,3...)
yStartLabelstringStarting label for Y-axis grids (e.g., '1' or 'A')
yStartPositionnumberStarting position for first Y-axis grid in mm

create_level

Create one or more levels in Revit at specified elevations. Levels define horizontal planes in the building and are used to host floor plans, ceilings, and other level-based elements. All elevation units are in millimeters (mm).

ParameterTypeDescription
data *arrayArray of levels to create

create_line_based_element

Create one or more line-based elements in Revit such as walls, beams, or pipes. Supports batch creation with detailed parameters including family type ID, start and end points, thickness, height, and level information. All units are in millimeters (mm).

ParameterTypeDescription
data *arrayArray of line-based elements to create

create_point_based_element

Create one or more point-based elements in Revit such as doors, windows, or furniture. Supports batch creation with detailed parameters including family type ID, position, dimensions, and level information. All units are in millimeters (mm).

ParameterTypeDescription
data *arrayArray of point-based elements to create

create_room

Create and place rooms in Revit at specified locations. Rooms are placed within enclosed wall boundaries and can be named and numbered. The location point should be inside an enclosed area bounded by walls. All coordinates are in millimeters (mm).

ParameterTypeDescription
data *arrayArray of rooms to create

create_structural_framing_system

Create a structural beam framing system in Revit. Generates beams within a rectangular boundary at fixed spacing intervals. The system uses Revit's BeamSystem API to create properly connected beam layouts. All units are in millimeters (mm).

ParameterTypeDescription
levelName *stringName of the level to place the beam system on (e.g., 'Level 1', 'Level 2'). If the level doesn't exist but follows 'Level N' pattern, it will be auto-created at 4000mm floor-to-floor height.
spacing *numberSpacing between beams in millimeters
xMax *numberMaximum X coordinate of the rectangular boundary in millimeters
xMin *numberMinimum X coordinate of the rectangular boundary in millimeters
yMax *numberMaximum Y coordinate of the rectangular boundary in millimeters
yMin *numberMinimum Y coordinate of the rectangular boundary in millimeters
beamTypeNamestringName of the beam family type to use (e.g., 'W10x12', 'W-Wide Flange'). If not provided, the first available structural framing type will be used.
directionEdgestringWhich edge defines the beam direction. Beams run perpendicular to this edge. 'bottom'/'top' = beams run in Y direction, 'left'/'right' = beams run in X direction.
elevationnumberElevation offset from the level in millimeters. Use this to adjust the vertical position of the beam system.
is3dbooleanWhether to create a 3D beam system. Set to true for sloped or non-planar systems.
justifystringBeam justification within the layout. 'center' places beams symmetrically, 'beginning'/'end' align to boundary edges.
layoutRulestringLayout rule type. Currently only 'fixed_distance' is supported.

create_surface_based_element

Create one or more surface-based elements in Revit such as floors, ceilings, or roofs. Supports batch creation with detailed parameters including family type ID, boundary lines, thickness, and level information. All units are in millimeters (mm).

ParameterTypeDescription
data *arrayArray of surface-based elements to create

delete_element

Delete one or more elements from the Revit model by their element IDs.

ParameterTypeDescription
elementIds *arrayThe IDs of the elements to delete

export_room_data

Export all room data from the current Revit project. Returns detailed information about each room including name, number, level, area, volume, perimeter, department, and more. Useful for generating room schedules, space analysis, and facility management data.

ParameterTypeDescription
includeNotEnclosedRoomsbooleanWhether to include rooms that are not fully enclosed. Defaults to false.
includeUnplacedRoomsbooleanWhether to include unplaced rooms (rooms not yet placed in the model). Defaults to false.

get_available_family_types

Get available family types in the current Revit project. You can filter by category and family name, and limit the number of returned types.

ParameterTypeDescription
categoryListarrayList of Revit category names to filter by (e.g., 'OST_Walls', 'OST_Doors', 'OST_Furniture')
familyNameFilterstringFilter family types by family name (partial match)
limitnumberMaximum number of family types to return

get_current_view_elements

Get elements from the current active view in Revit. You can filter by model categories (like Walls, Floors) or annotation categories (like Dimensions, Text). Use includeHidden to show/hide invisible elements and limit to control the number of returned elements.

ParameterTypeDescription
annotationCategoryListarrayList of Revit annotation category names (e.g., 'OST_Dimensions', 'OST_WallTags', 'OST_TextNotes')
includeHiddenbooleanWhether to include hidden elements in the results
limitnumberMaximum number of elements to return
modelCategoryListarrayList of Revit model category names (e.g., 'OST_Walls', 'OST_Doors', 'OST_Floors')

get_current_view_info

获取 Revit 当前活动视图的详细信息,包括视图类型、名称、比例等属性。

get_material_quantities

Calculate material quantities and takeoffs from the current Revit project. Returns detailed information about each material including name, class, area, volume, and element counts. Useful for cost estimation, material ordering, and sustainability analysis.

ParameterTypeDescription
categoryFiltersarrayOptional list of Revit category names to filter by (e.g., ['OST_Walls', 'OST_Floors', 'OST_Roofs']). If not specified, all categories are included.
selectedElementsOnlybooleanWhether to only analyze currently selected elements. Defaults to false (analyze entire project).

get_selected_elements

Get elements currently selected in Revit. You can limit the number of returned elements.

ParameterTypeDescription
limitnumberMaximum number of elements to return

operate_element

Operate on Revit elements by performing actions such as select, selectionBox, setColor, setTransparency, delete, hide, etc.

ParameterTypeDescription
data *objectParameters for operating on Revit elements with specific actions

say_hello

Display a greeting dialog in Revit. Useful for testing the connection between Claude and Revit.

ParameterTypeDescription
messagestringOptional custom message to display in the dialog. Defaults to 'Hello MCP!'

send_code_to_revit

Send C# code to Revit for execution. The code will be inserted into a template with access to the Revit Document and parameters. Your code should be written to work within the Execute method of the template.

ParameterTypeDescription
code *stringThe C# code to execute in Revit. This code will be inserted into the Execute method of a template with access to Document and parameters.
parametersarrayOptional execution parameters that will be passed to your code

tag_all_rooms

Create tags for all rooms in the current active view. Tags will be placed at the center point of each room, displaying the room name and number.

ParameterTypeDescription
roomIdsarrayOptional array of specific room element IDs to tag. If not provided, all rooms in the current view will be tagged
tagTypeIdstringThe ID of the specific room tag family type to use. If not provided, the default room tag type will be used
useLeaderbooleanWhether to use a leader line when creating the tags

tag_all_walls

Create tags for all walls in the current active view. Tags will be placed at the middle point of each wall.

ParameterTypeDescription
tagTypeIdstringThe ID of the specific wall tag family type to use. If not provided, the default wall tag type will be used
useLeaderbooleanWhether to use a leader line when creating the tags