Bridges Claude AI with Revit via WebSocket to access model data, elements, and views in real time.
Configuration
View docs{
"mcpServers": {
"revit_mcp": {
"command": "D:/path/to/revit-mcp-server/build/index.js",
"args": [],
"env": {
"REVIT_HOST": "127.0.0.1",
"REVIT_PORT": "8080"
}
}
}
}You run a TypeScript MCP server that connects Claude AI to Autodesk Revit via a WebSocket, enabling real-time access to model data, element queries, and view/level control with robust error handling and mock fallbacks when needed.
To use this MCP server, start it locally and connect your MCP client to its standard input/output interface. Your client can request model information, query and operate on elements, and navigate views and levels in real time. If the Revit connection is unavailable, the server automatically falls back to mock data so you can continue development and testing without blocking workflows.
Prerequisites you need before installing the MCP server are listed here:
• Node.js v14 or higher
• npm
• Autodesk Revit (2023 or later)
• Revit WebSocket Plugin (companion plugin)
Step-by-step installation commands
# Install dependencies
npm install
# Build the MCP server
npm run build
# For development with auto-rebuild
npm run watchConfigure the server to connect to the Revit WebSocket plugin using environment variables. Set the host and port where the Revit plugin is listening.
REVIT_HOST=127.0.0.1 # Revit plugin WebSocket host
REVIT_PORT=8080 # Revit plugin WebSocket portThe MCP server is exposed as a local stdio process. Use the following configuration to run and expose the server to your MCP client.
{
"mcpServers": {
"revit_mcp": {
"type": "stdio",
"name": "revit_mcp",
"command": "D:/path/to/revit-mcp-server/build/index.js",
"args": []
}
}
}The MCP server exposes a set of practical tools that you can use through your MCP client:
Fetches basic model metadata such as name, path, version, and real-time state.
Queries elements with flexible filters and returns element data including properties and geometry.
Retrieves detailed properties for given elements, enabling batch retrieval and inspection.
Lists available views and provides information about levels and model hierarchy to support navigation.