Revit MCP

Revit MCP

允许人工智能通过 MCP 协议与 Autodesk Revit 交互,从而能够检索项目数据并自动化诸如创建、修改和删除元素等任务。

Category
访问服务器

Tools

color_elements

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

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.

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).

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).

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).

delete_element

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

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.

get_current_view_info

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

get_selected_elements

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

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.

tag_all_walls

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

README

revit-mcp

English | 简体中文

描述

revit-mcp 允许您通过 MCP 协议与支持 MCP 的客户端(例如 Claude、Cline 等)交互来使用 Revit。

本项目是服务端(向 AI 提供工具),您需要与 revit-mcp-plugin(驱动 Revit)结合使用。

加入 Discord | QQ 群

功能

  • 允许 AI 从 Revit 项目中获取数据
  • 允许 AI 驱动 Revit 创建、修改和删除图元
  • 将 AI 生成的代码发送到 Revit 执行(可能不成功,在一些需求明确的简单场景中成功率较高)

要求

  • nodejs 18+

完整的安装环境仍然需要考虑 revit-mcp-plugin 的需求,请参考 revit-mcp-plugin

安装

1. 构建本地 MCP 服务

安装依赖

npm install

构建

npm run build

2. 客户端配置

Claude 客户端

Claude client -> Settings > Developer > Edit Config > claude_desktop_config.json

{
    "mcpServers": {
        "revit-mcp": {
            "command": "node",
            "args": ["<path to the built file>\\build\\index.js"]
        }
    }
}

重启 Claude 客户端。当您看到锤子图标时,表示与 MCP 服务的连接正常。

claude

框架

flowchart LR
	CladueDesktop --> revit-mcp --> SocketService--commandName-->CommandlSet--command-->CommandExecute
	CommandManager --> CommandlSet
	CommandExecute --executeResult--> SocketService
	CommandProject1 --> CommandManager
	CommandProject2 --> CommandManager
	CommandProject... --> CommandManager
	subgraph ide1 [MCPClient]
	CladueDesktop
	end
	subgraph ide2 [MCPServer]
	revit-mcp
	end
	subgraph ide3 [Revit]
			subgraph ide3.1 [revit-mcp-plugin]
				SocketService
				CommandlSet
				CommandManager
				CommandExecute
			end
	end

支持的工具

名称 描述
get_current_view_info 获取当前视图信息
get_current_view_elements 获取当前视图图元
get_available_family_types 获取当前项目中可用的族类型
get_selected_elements 获取选定的图元
create_point_based_element 创建基于点的图元(门、窗、家具)
create_line_based_element 创建基于线的图元(墙、梁、管道)
create_surface_based_element 创建基于面的图元(楼板、天花板)
delete_elements 删除图元
reset_model 重置模型(在执行连续对话时删除过程模型)
modify_element 修改图元的属性(实例参数)
search_modules 搜索可用的模块
use_module 使用模块
send_code_to_revit 将代码发送到 Revit 执行
color_splash 基于参数值对图元进行着色
tag_walls 标记视图中的所有墙

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选