revit-ai-native
Autodesk Native Agent Runtime for Revit 2024
一个生产级桥接层,用于连接 AI 智能体(Antigravity、Claude 等)与 Autodesk Revit 2024,基于 Model Context Protocol(MCP)构建。
架构
Antigravity / AI Agent
↓ (MCP over stdio)
MCP Server (TypeScript, Node.js)
↓ (Named Pipe, JSON envelopes)
Revit 2024 Add-in (.NET Framework 4.8)
↓ (ExternalEvent)
Main-thread Dispatcher → PlanExecutor
↓ (TransactionGroup)
Revit API (Document, Wall, FamilyInstance, ...)
↓ (Verification + Assertions)
Structured Result → MCP ResponseRelated MCP server: Revit MCP Server
快速开始
1. 先决条件
已安装 Revit 2024(构建附加模块所需)
. NET SDK(用于构建 C# 项目)
Node.js 18+(用于 MCP TypeScript 服务器)
PowerShell(用于构建/安装脚本)
2. 设置 REVIT_2024_PATH
如果 Revit 未安装在默认位置(C:Program Files\Autodesk\Revit 2024),请设置环境变量:
$env:REVIT_2024_PATH = "D:\REVIT\2024\Revit 2024"3. 构建
.\scripts\build-all.ps14. 安装附加模块
.\scripts\install-revit2024.ps15. 打开 Revit 2024
打开或创建一个 Revit 项目。附加模块会自动启动命名管道服务器。
6. 启动 MCP 服务器
.\scripts\start-mcp.ps17. 配置 Antigravity
将 MCP 服务器添加到您的 Antigravity 配置中:
{
"mcpServers": {
"revit": {
"command": "node",
"args": ["e:\\revit-A.I Native\\apps\\agent-mcp\\dist\\index.js"]
}
}
}8. 获取状态
从您的智能体调用 revit_get_status。您应该会看到:
{
"connected": true,
"activeDocumentTitle": "YourProject.rvt",
"busy": false
}9. 预览计划
将计划发送到 revit_preview_plan:
{
"schemaVersion": "1.0",
"requestId": "test-001",
"description": "Create a 5000mm wall",
"document": { "strategy": "active_document" },
"units": "mm",
"coordinateSystem": "project",
"executionMode": "preview",
"operations": [...],
"safety": { "requireUserConfirmation": true }
}10. 批准并提交
使用同一计划调用 revit_commit_plan。如果需要确认,请在 Revit 中批准。
11. 查看审计日志
审计日志位于 %LOCALAPPDATA%\AutodeskNativeAgent\logs,以 JSONL 文件格式保存。
支持的操作
操作 | 状态 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
| ✅ 已支持 |
MCP 工具
工具 | 描述 |
| 连接状态与文档信息 |
| 协议版本、方法与操作 |
| 当前活动文档标识 |
| 当前选择集 |
| 结构化元素查询 |
| 验证但不执行 |
| 预演解析结果 |
| 在事务中执行 |
| 任务状态与结果 |
| 取消已排队/正在运行的任务 |
| 回滚已完成的任务 |
| 脱敏后的审计条目 |
关键设计决策
禁止从后台线程调用 Revit API — 所有 Revit API 调用均通过 ExternalEvent 调度器进行
原子执行 — 计划在单个 TransactionGroup 内运行;失败时自动回滚
结构化错误 — 每次失败都携带稳定的错误码
单位安全 — 所有长度均显式携带单位;不硬编码
/ 304.8类型安全 — 类型/标高解析是确定性的;不使用随机的
FirstElement()路径安全 — Export/SaveAs 路径经过规范化处理,并检查目录穿越
确认令牌 — 破坏性操作需要人工批准
文档
许可证
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityFmaintenanceAllows AI to interact with Autodesk Revit via the MCP protocol, enabling retrieval of project data and automation of tasks like creating, modifying, and deleting elements.1340452MIT
- AlicenseBqualityNot gradedmaintenanceAllows AI assistants to interact with Autodesk Revit through the MCP protocol, enabling the AI to create, modify, and delete elements in Revit projects.15401
- AlicenseAqualityDmaintenanceEnables 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.1340MIT
- AlicenseNot gradedqualityAmaintenanceMCP server for Autodesk Revit (BIM) with 705+ API endpoints. Enables AI agents to create walls, place doors/windows, generate sheets, manage views, and produce construction documents via the Model Context Protocol. Uses named pipes for zero-crash Revit integration.22MIT
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Shared, governed long-term memory for AI agents across tools and sessions via MCP and REST.
MCP server for secureFlows: token-free URL builders and integration-linting tools for AI agents.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/tuanank2112-crypto/revit-ai-native'
If you have feedback or need assistance with the MCP directory API, please join our Discord server