EraCore Revit MCP
Connects LLM assistants to Autodesk Revit BIM models, enabling reading metadata, listing elements, creating geometry, batch parameter updates, and exporting schedules. Supports fake mode for testing without Revit and pyRevit mode for live integration.
README
EraCore Revit MCP
EraCore Revit MCP is a Model Context Protocol (MCP) server that connects LLM assistants (Cursor, Claude Desktop, and others) to Autodesk Revit BIM models. It exposes typed tools for reading model metadata, listing elements, creating geometry, batch-updating parameters, and exporting schedules.
Built with Hexagonal Architecture, Domain-Driven Design, and a Walking Skeleton delivery approach.
| Version | 1.0.0 |
| Revit | 2024–2027 (pyRevit bridge tested on 2027) |
| Python | 3.12+ |
| Platform | Windows (Revit integration); fake mode runs anywhere |
Features
| Capability | Fake mode | pyRevit mode |
|---|---|---|
| MCP tools (7) — ping, model info, list/get elements | ✅ | ✅ |
| Create walls with Revit transactions | ✅ | ✅ |
| Batch parameter updates (≤100 per batch) | ✅ | ✅ |
| Export ViewSchedule to CSV | ✅ | ✅ |
| Real Revit document read/write via HTTP bridge | — | ✅ |
| Unit tests without Revit installed | ✅ | — |
Quick Start
Prerequisites
- Python 3.12+
- Windows 10/11 (required for live Revit integration)
- Autodesk Revit 2024+ and pyRevit (optional; fake mode needs neither)
Install
git clone <repository-url> eracore
cd eracore
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e ".[dev]"
Copy-Item .env.example .env
Run the Walking Skeleton (fake mode — no Revit)
# Default: REVIT_MCP_REVIT_ADAPTER_MODE=fake in .env
python -m revit_mcp demo
Expected output ends with:
WALKING SKELETON OK — walls: 2 → 3
Report generated: reports/demo_walls.csv
Run with real Revit (pyRevit)
# 1. Install pyRevit extension and dependencies
.\scripts\install_revit_deps.ps1
# 2. Start Revit with the bridge
.\scripts\start_revit_with_bridge.ps1
# 3. Open any .rvt model, then set adapter mode
# REVIT_MCP_REVIT_ADAPTER_MODE=pyrevit in .env
python -m revit_mcp demo
python -m revit_mcp mcp
See Revit & pyRevit setup for full instructions.
MCP Tools
| Tool | Description |
|---|---|
ping() |
Health check — server version and Revit connectivity |
get_model_info(include_stats?) |
Project metadata, levels, optional category statistics |
list_elements(...) |
Filtered, paginated element list |
get_element(element_id) |
Single element with parameters |
create_wall(...) |
Create a wall between two XYZ points (mm) |
batch_update_parameters(...) |
Bulk parameter updates with per-item error reporting |
export_schedule(...) |
Export a ViewSchedule to CSV |
Full contracts: Software Design Document · MCP server source
CLI Commands
python -m revit_mcp mcp # Start MCP server (stdio transport)
python -m revit_mcp demo # Run end-to-end Walking Skeleton
python -m revit_mcp config # Print active configuration
python -m revit_mcp help # Show help
Project Structure
eracore/
├── src/revit_mcp/ # Python MCP server (hexagonal layers)
│ ├── domain/ # Entities, value objects, ports
│ ├── application/ # Use cases and DTOs
│ ├── adapters/
│ │ ├── primary/mcp/ # MCP inbound adapter
│ │ └── secondary/pyrevit_adapter/ # Revit bridge outbound adapters
│ └── config/ # Settings and DI container
├── pyrevit_extension/ # EraCoreMCP pyRevit extension (HTTP bridge)
├── scripts/ # Install and Revit launch scripts
├── tests/unit/ # Use-case tests (fake adapter)
└── docs/ # Architecture (C4) and guides
Configuration
Environment variables use the REVIT_MCP_ prefix. Copy .env.example to .env.
| Variable | Default | Description |
|---|---|---|
REVIT_MCP_REVIT_ADAPTER_MODE |
fake |
fake or pyrevit |
REVIT_MCP_REVIT_BRIDGE_HOST |
127.0.0.1 |
HTTP bridge host |
REVIT_MCP_REVIT_BRIDGE_PORT |
47200 |
HTTP bridge port |
REVIT_MCP_REVIT_API_TIMEOUT_SEC |
30 |
Bridge RPC timeout (increase for slow models) |
REVIT_MCP_LOG_LEVEL |
INFO |
Logging level |
Development
# Unit tests (≥70% coverage enforced)
pytest tests/unit -q
# Linting and types
ruff check src tests
ruff format src tests
mypy -p src.revit_mcp
# Architecture boundary checks
lint-imports
Docker (fake mode only — Revit cannot run inside Linux containers):
docker compose --profile ci run --rm tests
docker compose --profile demo run --rm demo
MCP Client Integration
Cursor
Add to MCP settings:
{
"mcpServers": {
"eracore-revit": {
"command": "python",
"args": ["-m", "revit_mcp", "mcp"],
"cwd": "F:\\Teach\\eracore",
"env": {
"REVIT_MCP_REVIT_ADAPTER_MODE": "pyrevit"
}
}
}
}
More clients: MCP client configuration guide.
Documentation
| Document | Description |
|---|---|
| Documentation index | Entry point for all docs |
| C4 Architecture | Context → Container → Component → Code |
| Getting started | Detailed setup walkthrough |
| Revit integration | pyRevit bridge and extension |
| SDD v1 | Use cases, MCP contracts, acceptance criteria |
| PRINCIPLES.md | Engineering and architecture rules |
Architecture at a Glance
LLM Client (Cursor / Claude)
│ MCP stdio JSON-RPC
▼
EraCore MCP Server (Python)
│ Use Cases → Ports
▼
Fake adapter (in-memory) OR pyRevit HTTP Bridge (:47200)
│
▼
Autodesk Revit 2027 + .rvt model
Full C4 diagrams: System Context · Containers · Components
License
MIT — see LICENSE.
EraCore Team · BIM × AI · 2026
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。