01Tutorials
Connect Claude to Revit with the pyRevit MCP guide
Hand the guide to your AI, answer five questions, and go step by step to your first prompt inside Revit.
About this video
1. Hand over the guide
Download pyrevit-mcp-setup.md from the product page. Open your AI client — Claude Desktop, Claude Code, Cursor or Codex — attach or paste the file and say: “Follow this file and help me set up the pyRevit MCP server.” If the assistant can run commands on your PC (Claude Code, Cursor), it will offer to do the steps itself and tell you what it runs first.
2. Answer the intake questions
It asks five things in one message: your Revit year, which AI client will connect, whether pyRevit is installed and which version, which steps are already done, and whether this is a company machine with restricted installs. Answer them all; it skips what you already have.
3. Follow the seven steps, one at a time
- pyRevit — install it; a pyRevit tab appears in Revit.
- MCP extension — from pyRevit › Extensions (or a git clone); an MCP tab appears.
- Routes server — tick Activate Routes Server in pyRevit settings.
- Localhost only — two
pyrevit configscommands lock the port to this machine. - Revit-side test — with a model open,
http://localhost:48884/revit_mcp/status/returns healthy JSON (or 401, which means: pair it from Revit › MCP › Bridge › Connect). - The client — install
uv, find the real path ofmain.py, add thepyRevit-MCPserver to the client config (merged, never overwritten), quit the client from the tray and reopen. - First contact — ask “List all levels in this model with their elevations.”
Each step ends with a check. Do not move on until it passes — the guide will not either.
4. When something fails
Paste the exact error into the chat. The guide carries a symptom → cause → fix table: the status page not loading (Routes off or Revit not restarted), uv is not recognized (reopen the terminal), no Revit tools in the client (wrong path, backslashes not doubled, client not fully restarted), connection refused (no model open), 401 (pairing).
5. Work safely
Tools such as execute_revit_code change the model. Try your first prompts on a copy or a detached model, and keep the Routes server on localhost — never expose the port through a tunnel or the network.