For Revit Python

v1.0.0Developer Toolsstable

MCP server for for revit python

for-revit-pythonmcpai-integration
Share:
120
Stars
0
Downloads
0
Weekly
0/5

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

Integrate Revit functionality via Python.
LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 18, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx for-revit-python

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-python
2

Start 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/
3

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]"
4

Register the MCP server

Use the mcp CLI to install the server so it is available to Claude Desktop.

mcp install main.py
5

Add 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.

6

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.

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.

Quick Config Preview

{ "mcpServers": { "for-revit-python": { "command": "npx", "args": ["-y", "for-revit-python"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides