RevitMCP
Provides tools for controlling Autodesk Revit through natural language commands, enabling creation of walls, rooms, floor plans, dimensions, and more.
Uses Google Gemini as a cloud fallback AI provider for processing natural language commands to control Revit.
Uses Hugging Face Inference API as the primary AI provider for processing natural language commands to control Revit.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@RevitMCPcreate a 20x30 floor plan"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
RevitMCP
Natural language control of Autodesk Revit through an AI-powered MCP (Model Context Protocol) server. Create walls, rooms, floor plans, dimensions, and more using conversational commands.
Architecture
Revit 2024/2025/2026
|
C# Add-in (RevitMCP_core) <-- Revit API bridge on port 48884
|
Python MCP Server (FastAPI) <-- AI orchestrator on port 8001
|
AI Provider (Hugging Face / Claude / Gemini / LM Studio)
↑
Auto-fallback chain:
1. Hugging Face Inference API (primary)
2. LM Studio (local fallback)
3. Claude/Gemini (cloud fallback)RevitMCP_core is a Revit add-in that exposes the Revit API over HTTP. The Python server receives natural language queries, detects intent via templates and workflow chains, builds execution plans, and sends commands to Revit through the add-in.
The new Adaptive Orchestrator supports multiple LLM providers with automatic fallback:
Hugging Face (primary): Fast inference, 500k+ models, native tool calling
LM Studio (fallback): Local models, privacy, offline capable
Claude/Gemini (fallback): Cloud providers, high capability
RevitMCP_core is a Revit add-in that exposes the Revit API over HTTP. The Python server receives natural language queries, detects intent via templates and workflow chains, builds execution plans, and sends commands to Revit through the add-in.
Related MCP server: Revit MCP Server
Prerequisites
Windows 10/11
Autodesk Revit 2024, 2025, or 2026
Python 3.10 - 3.12 (PyTorch compatibility)
.NET SDK 8.0+ (to build the C# add-in)
One of: Hugging Face token (recommended), Claude API key, Google Gemini API key, or LM Studio running locally
Quick Install
Option A: Automated (Recommended)
Run PowerShell as Administrator:
powershell -ExecutionPolicy Bypass -File scripts\install.ps1Flags:
-SkipEnhancer— Skip AI rendering setup (core + brain only)-CPUOnly— No GPU acceleration-AMD— Use DirectML instead of CUDA
Option B: Manual
Build the C# add-in:
dotnet build RevitMCP_core\RevitMCP_core.csproj -c ReleaseCreate the Revit manifest at
%APPDATA%\Autodesk\Revit\Addins\2026\RevitMCP.addin:<?xml version="1.0" encoding="utf-8"?> <RevitAddIns> <AddIn Type="Application"> <Name>RevitMCP</Name> <Assembly>C:\RevitMCP\RevitMCP_core.dll</Assembly> <FullClassName>RevitMCP_core.App</FullClassName> <ClientId>a1b2c3d4-e5f6-7890-abcd-ef1234567890</ClientId> <VendorId>RevitMCP</VendorId> </AddIn> </RevitAddIns>Set up Python environment:
cd server python -m venv .venv .venv\Scripts\activate pip install -r requirements.txtConfigure your AI provider — edit
%APPDATA%\RevitMCP\llm_config.json:Option A: Hugging Face (Recommended - fast, reliable, cost-effective)
{ "llm_provider": "huggingface", "huggingface": { "api_key_env": "HF_TOKEN", "model": "Qwen/Qwen2.5-72B-Instruct", "provider": "nebius" } }Set the environment variable:
set HF_TOKEN=hf_your_tokenGet your token at huggingface.co/settings/tokensOption B: Claude
{ "llm_provider": "claude", "claude": { "api_key_env": "ANTHROPIC_API_KEY" } }Set the environment variable:
set ANTHROPIC_API_KEY=sk-ant-...Option C: LM Studio (Local)
{ "llm_provider": "lmstudio" }Start LM Studio with a model loaded on port 1234.
Start the server:
cd server python server.pyOpen Revit — the add-in loads automatically. Click "Start Server" in the RevitMCP settings panel.
Usage
Once running, send natural language commands through the chat UI in Revit:
Command | What it does |
| Creates a building shell with exterior walls |
| Generates a full room layout with partitions |
| Creates foundation walls and footings below grade |
| Adds professional 3-tier architectural dimensions |
| Starts an interactive QBD (Question-Based Design) session |
See REFERENCE.md for the full list of 280+ tools and templates.
Configuration
All configuration is via environment variables (with sensible defaults):
Variable | Default | Description |
|
| Port for the Revit C# add-in HTTP server |
|
| Port for the Python FastAPI server |
|
| Port for LM Studio (if using local models) |
|
| Port for the AI rendering server |
|
| Host for all services |
| (empty) | Shared secret for server authentication (recommended) |
| (empty) | Additional CORS origins (comma-separated) |
| — | Hugging Face API token (recommended) |
| — | Claude API key |
| — | Google Gemini API key |
Project Structure
RevitMCP/
RevitMCP_core/ C# Revit add-in
App.cs Plugin entry point
McpServer.cs HTTP listener (port 48884)
RequestHandler.cs Route dispatcher (150+ routes)
UI/ Settings window (XAML)
server/ Python MCP server
server.py FastAPI entry point (port 8001)
config.py Centralized configuration
client_orchestrator.py Intent detection and plan execution
adaptive_orchestrator.py Multi-provider orchestrator (HF/LM/Cloud)
hf_orchestrator.py Hugging Face Inference integration
templates.py Pre-built workflow templates
workflow_chains.py Multi-phase compound workflows
qbd_session.py Question-Based Design sessions
tools/ 280+ Revit API tool implementations
geometry_tools.py Walls, floors, roofs
annotation_tools.py Dimensions, grids, sheets
auto_dimensions.py Professional dimensioning
physics_tools.py Structural/thermal analysis
family_editor_tools.py Parametric family creation
...
examples/ Usage examples
hf_example.py Hugging Face integration demo
tests/ Integration test suite
scripts/ Installation scripts
install.ps1 Automated installer
uninstall.ps1 Clean uninstaller
docs/ DocumentationHealth Check
GET http://localhost:8001/healthReturns server status and Revit connectivity.
Troubleshooting
See TROUBLESHOOTING.md for common issues.
Quick checks:
Is Revit running with the add-in loaded?
Is the server running? (
python server.py)Can you reach
http://localhost:8001/health?Is your AI provider configured? Check
%APPDATA%\RevitMCP\llm_config.json
License
Proprietary. All rights reserved.
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.
Latest Blog Posts
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/AchyErrorJ/RevitMCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server