
ludattilo/revit-mcp-server 是从 https://github.com/ludattilo/revit-mcp-server. 导入的 MCP 服务器候选
概览
ludattilo/revit-mcp-server 是从 https://github.com/ludattilo/revit-mcp-server. 导入的 MCP 服务器候选
概述(AI 翻译)
通过模型上下文协议将AI助手连接到Autodesk Revit。
mcp-servers-for-revit 使 Claude、Cline 及其他兼容 MCP 的工具等 AI 客户端能够实时读取、创建、修改和删除 Revit 项目中的元素。它展示了 138 个工具,涵盖项目信息、模型分析、元素创建、批处理操作、数据导出等。
[!注] 这是原始 revit-mcp 项目的一个分支,增加了更多工具和功能改进。
主要特色
- 124 个 MCP 工具 — 项目信息、模型健康、冲突检测、元素 CRUD、批处理操作、数据导出(PDF/DWG/IFC/CSV)
- Revit 2023、2024、2025、2026、2027 — 在所有五个版本上均进行了全面测试
- 语言无关 — 支持任何 Revit UI 语言(英语、意大利语、法语、德语等),使用 BuiltInCategory 分辨率
- 内置Claude聊天面板 — Revit内部可插坞面板,支持直接AI访问(Anthropic API,支持扩展思维)
- 实时执行 — AI 请求通过 TCP/JSON-RPC 2.0 立即在激活模型上执行
- 可扩展命令集 — 添加新命令而不修改插件核心
建筑
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
mcp-servers-for-revit
Connect AI assistants to Autodesk Revit via the Model Context Protocol.
mcp-servers-for-revit enables AI clients like Claude, Cline, and other MCP-compatible tools to read, create, modify, and delete elements in Revit projects in real time. It exposes 138 tools covering project info, model analysis, element creation, batch operations, data export, and more.
[!NOTE] This is a fork of the original revit-mcp project with additional tools and functionality improvements.
Key Features
- 124 MCP tools — project info, model health, clash detection, element CRUD, batch operations, data export (PDF/DWG/IFC/CSV)
- Revit 2023, 2024, 2025, 2026, 2027 — fully tested on all five versions
- Language-independent — works with any Revit UI language (English, Italian, French, German, etc.) using BuiltInCategory resolution
- Built-in Claude chat panel — dockable panel inside Revit with direct AI access (Anthropic API, extended thinking enabled)
- Real-time execution — AI requests are executed immediately on the active model via TCP/JSON-RPC 2.0
- Extensible command set — add new commands without modifying the plugin core
Architecture
flowchart LR
Client["MCP Client(Claude, Cline, etc.)"]
Server["MCP Serverserver/"]
Plugin["Revit Pluginplugin/"]
CommandSet["Command Setcommandset/"]
Revit["Revit API"]
Client |stdio| Server
Server |TCP :8080| Plugin
Plugin -->|loads| CommandSet
CommandSet -->|executes| Revit
| Component | Language | Role |
|---|---|---|
MCP Server (server/) |
TypeScript | Translates AI tool calls into JSON-RPC messages over TCP |
Revit Plugin (plugin/) |
C# | Runs inside Revit, listens on localhost:8080, dispatches commands |
Command Set (commandset/) |
C# | Implements Revit API operations, returns structured results |
Requirements
To use
| Requirement | Details |
|---|---|
| Node.js | 18+ (for the MCP server) |
| Autodesk Revit | 2023, 2024, 2025, 2026, or 2027 |
| OS | Windows 10/11 (Revit is Windows-only) |
| Anthropic API key (optional) | Required only for the built-in chat panel. Set via %USERPROFILE%\.claude\api_key.txt or env ANTHROPIC_API_KEY |
To build from source
| Requirement | Details |
|---|---|
| Visual Studio 2022 | With .NET desktop development workload |
| .NET Framework 4.8 SDK | For Revit 2023-2024 builds |
| .NET 8 SDK | For Revit 2025-2026 builds |
| .NET 10 SDK (preview) | For Revit 2027 builds |
| Node.js 18+ | For the MCP server |
| Revit API assemblies | Installed with Revit (referenced automatically via NuGet) |
Quick Start
1. Install the Revit plugin
安装
npx -y mcp-server-for-revit配置
{
"mcpServers": {
"mcp-server-for-revit": {
"command": "npx",
"args": ["-y", "mcp-server-for-revit"]
}
}
}