How to Use Revit with Claude MCP Computer Use
In this article
Yes, you can use Revit with Claude MCP computer use, but not through direct integration—instead, you leverage Claude for task automation, documentation, and workflow guidance while using Revit manually or through scripts. This approach enhances productivity by offloading planning, note-taking, and code generation for Revit add-ons to Claude, which processes requests via the MCP (Model Context Protocol) server setup. Before beginning, ensure you have access to Autodesk Revit, a working Claude API key with MCP support, and a local or cloud-based MCP server configured to handle tool calls.
What You'll Need
- Autodesk Revit installed and licensed
- Access to Claude (via API or supported platform with tool use)
- MCP server configured (local or hosted)
- Python or JavaScript runtime (for script execution)
- Basic understanding of Revit API and scripting
- Internet connection for API calls and data exchange
Step-by-Step
- Set up your MCP server to accept tool requests from Claude. This typically involves running a lightweight server (Node.js or Python-based) that listens for incoming tool calls and routes them to local applications or scripts.
- Configure Claude to recognize and use your MCP tools. In your Claude interface (such as a custom web app or CLI tool), register the MCP server URL and define the available functions, such as "generate_revit_script" or "extract_wall_data".
- Create a simple JSON schema for each tool that describes inputs (e.g., wall type, level, parameters) and expected outputs (e.g., element IDs, material lists). This allows Claude to format requests correctly.
- Write a local script (in Python using pyRevit or RevitPythonShell, or in C# using Revit API) that can receive parameters from the MCP server and perform actions in Revit, such as placing walls, modifying families, or exporting data.
- Ensure Revit is running and accessible to the script. Scripts must connect to an active Revit session via the Revit API; they cannot run in the background without Revit open.
- Use Claude to generate a command, such as "Create a 10m long concrete wall at Level 1 with 200mm thickness." Claude parses this and sends a structured JSON request to your MCP server.
- The MCP server receives the request, validates it, and passes it to the local script. The script then uses the Revit API to execute the command within the open Revit model.
- After execution, the script returns confirmation or error data back through the MCP server to Claude, which summarizes the result for the user.
- For data extraction tasks, set up bidirectional communication: Claude requests "List all doors on Level 2 with fire rating," the script queries Revit, returns the data, and Claude formats it into a report.
- Automate repetitive documentation tasks by having Claude generate schedules, material takeoffs, or room data sheets based on extracted Revit model information.
Common Mistakes
- Assuming Claude can directly control Revit—Claude only sends structured requests; actual execution requires a local script and Revit session.
- Running scripts without Revit open—Revit API scripts fail silently or throw errors if no session is available.
- Using incorrect parameter names in MCP tool definitions—mismatched JSON keys cause failed requests.
- Overlooking firewall or CORS settings on the MCP server—blocks communication between Claude and local tools.
- Not handling Revit transaction requirements—changes must be wrapped in transactions or they won’t apply.
Tips
- Start with read-only tasks (e.g., data extraction) before attempting model modifications.
- Use pyRevit for faster script development and built-in debugging tools.
- Log all MCP requests and responses to troubleshoot failed commands.
- Define clear, specific prompts in Claude to reduce ambiguity in generated requests.
- Use environment variables to store API keys and server URLs securely.
Troubleshooting
If the system does not work as expected, first verify that the MCP server is running and accessible. Use a tool like curl or Postman to send a test request and confirm it reaches the local script. Next, ensure Revit is open and the script has permission to attach to the session—some security settings block external API access. If Claude returns "tool not available," check the MCP server registration and schema definitions. For failed script execution, review the script logs and confirm all required parameters are passed correctly. If transactions fail, ensure each Revit operation is enclosed in a proper transaction block. Restart both Revit and the MCP server if issues persist. Update all components (Revit, API tools, MCP server) to the latest stable versions to avoid compatibility issues.
Frequently Asked Questions
Can Claude directly edit a Revit model?
No, Claude cannot directly edit Revit. It sends structured requests to a local script that uses the Revit API to make changes when Revit is open.
Do I need to code everything from scratch?
You need custom scripts for your specific tasks, but templates and libraries like pyRevit reduce development time significantly.
Is this possible on Mac or only Windows?
Revit runs only on Windows, so the entire setup—including the MCP server and scripts—must operate on a Windows machine.
Can multiple users share the same MCP server?
Yes, if the server is hosted centrally and each user’s Claude instance is configured to access it securely.
Does this work offline?
The MCP server and scripts can run offline, but Claude access requires internet unless you run a local LLM instance.
Are there security risks?
Yes—exposing a local server to external requests can be risky. Always use authentication, limit access, and avoid exposing the server to the public internet.