For Revit Python
MCP server for for revit python
What is For Revit Python?
For Revit Python is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp server for for revit python
MCP server for for revit python
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- MCP server for for revit python
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx for-revit-pythonConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use For Revit Python
The MCP Server for Revit Python bridges AI assistants with Autodesk Revit by running an HTTP middleware inside Revit via pyRevit Routes. It exposes tools for reading model metadata, listing levels and views, placing families, coloring elements, and executing arbitrary IronPython code directly inside the Revit environment. BIM professionals and AEC developers can use natural language to interrogate and modify live Revit models without switching context to the Revit UI or writing standalone scripts.
Prerequisites
- Autodesk Revit installed (any version supported by pyRevit)
- pyRevit installed and the Routes extension enabled inside Revit
- Python 3.10+ with uv or pip, and the mcp[cli] package
- An MCP-compatible client such as Claude Desktop or Claude Code
- The mcp-server-for-revit-python repository cloned locally
Clone the repository
Clone the mcp-server-for-revit-python repository to your local machine.
git clone https://github.com/mcp-servers-for-revit/mcp-server-for-revit-python.git
cd mcp-server-for-revit-pythonStart Revit and enable pyRevit Routes
Launch Revit and ensure pyRevit Routes is active. The Routes API will listen on http://localhost:48884/. Verify with a browser or curl.
curl http://localhost:48884/revit_mcp/status/Install the MCP Python dependencies
Install the mcp CLI package required to run the server.
pip install "mcp[cli]"
# or with uv:
uv pip install "mcp[cli]"Register the MCP server
Use the mcp CLI to install the server so it is available to Claude Desktop.
mcp install main.pyAdd manual config entry (alternative)
If you prefer manual configuration, add the following block to claude_desktop_config.json using the absolute path to main.py.
Restart Claude Desktop and verify
Restart your MCP client. Ask the AI to check Revit status — it should return active and healthy if pyRevit Routes is running.
For Revit Python Examples
Client configuration
Manual claude_desktop_config.json entry using uv to run main.py. Replace /absolute/path/to with the actual path to your cloned repo.
{
"mcpServers": {
"Revit Connector": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"/absolute/path/to/mcp-server-for-revit-python/main.py"
]
}
}
}Prompts to try
These prompts exercise the available Revit tools once the server is connected and Revit is open.
- "What is the status of the Revit connection?"
- "Give me information about the currently open Revit model"
- "List all levels in the current Revit model"
- "List all available Revit views"
- "Show me the families loaded in this model"
- "Export the floor plan view as an image"
- "Color all walls on level 1 red using color_splash"Troubleshooting For Revit Python
Connection refused on http://localhost:48884/
pyRevit Routes must be running inside Revit. Open Revit, ensure pyRevit is loaded, and confirm the Routes extension is active. Check the pyRevit log inside Revit for errors.
mcp install main.py fails with module not found errors
Ensure you are running the command from inside the cloned repository directory and that 'mcp[cli]' is installed in the same Python environment you are using.
execute_revit_code returns errors for IronPython scripts
IronPython inside pyRevit has different library availability than CPython. Avoid using packages not bundled with pyRevit and test scripts in the pyRevit editor first.
Frequently Asked Questions about For Revit Python
What is For Revit Python?
For Revit Python is a Model Context Protocol (MCP) server that mcp server for for revit python It connects AI assistants to external tools and data sources through a standardized interface.
How do I install For Revit Python?
Follow the installation instructions on the For Revit Python GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with For Revit Python?
For Revit Python works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is For Revit Python free to use?
Yes, For Revit Python is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
For Revit Python Alternatives — Similar Developer Tools Servers
Looking for alternatives to For Revit Python? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up For Revit Python in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use For Revit Python?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.