Skip to main content

MCP server that connects AI models with Autodesk Navisworks via the PyNet ecosystem.

Project description

PyNet Platform Bridge

PyNet Platform Bridge is the execution layer that allows AI models to control Autodesk tools in real-time.

It connects Natural Language โ†’ Python โ†’ Autodesk desktop tools (Navisworks, Revit, AutoCAD), enabling AI to generate, execute, and refine BIM workflows autonomously.

Available integrations include Navisworks Manage, Revit, and Civil 3D.

This bridge acts as the connective tissue between AI logic and Autodesk desktop APIs, allowing for dynamic UI creation, script execution, and BIM process automation using natural language.

๐ŸŽฌ Demos & Tutorials

See PyNet Bridge in action โ€” these recordings show the full natural-language โ†’ BIM-action workflow inside live Autodesk models.

Demo Description Video
โญ Autonomous BIM Coordination (Revit + Navisworks) Claude Code drives Revit and Navisworks simultaneously to audit models, resolve clashes by tolerance rules, generate geometry, and self-correct API errors in real time. ๐ŸŽฌ Watch here
PyNET + Codex Integration How to configure PyNet Bridge with Codex and query into Navisworks. ๐ŸŽฌ Watch here

โญ Featured: Autonomous BIM Coordination

In this technical demo, Claude Code connects to Navisworks and Revit at the same time to run a full coordination workflow end-to-end:

  • Engineering criteria as a Skill โ€” the AI applies tolerance rules to decide which interferences to auto-approve.
  • Real-time data auditing โ€” validates model integrity and detects missing parameters (PYNET_Classification) before coordinating.
  • Autonomous geometry generation โ€” generates architectural sleeves (pasatubos) directly in Revit, with precise spatial rotation to match pipe angles.
  • Self-healing code โ€” hits a live Revit API data-type exception, analyzes the failure, rewrites the script on the fly, and completes the task.

๐Ÿ”„ How it works

  1. The user describes a task in natural language.
  2. The AI generates a Python script.
  3. PyNet Bridge validates and sends the script.
  4. The PyNet plugin executes it inside Autodesk.
  5. Results are returned back to the AI.

This is what turns AI from a chatbot into an execution engine for BIM.


๐Ÿš€ What makes PyNet Bridge powerful

  • AI โ†’ Action: Turns AI-generated code into real actions inside Navisworks/Revit
  • Real-time Execution: Run scripts instantly without leaving the BIM environment
  • Dynamic UI Creation: Let AI create tools, buttons and workflows on the fly
  • Reliable Communication: Fast and stable local IPC
  • Model-Aware Automation: Operates directly on live BIM models

๐Ÿ› ๏ธ Installation

โœ… Option A โ€” Automatic installer (recommended)

Open PowerShell and run:

irm https://raw.githubusercontent.com/Rafael-NunezDeArenas/PyNetBridge/main/install.ps1 | iex

This will automatically:

  1. Check Python 3.10+ is installed
  2. Install pynet-mcp-bridge from PyPI (via uv or pip)
  3. Auto-detect and configure all installed AI clients:
    • Claude Desktop (standard and Microsoft Store versions)
    • Claude Code (VS Code extension / CLI)
    • Cline (VS Code extension)
    • Roo Code (VS Code extension)
    • Codex CLI (~/.codex/config.toml)

The pynet-mcp-bridge package includes:

Package Purpose
pynet-mcp-bridge MCP server that connects AI models with Autodesk tools via PyNET
mcp[cli] Model Context Protocol SDK and CLI tools
fastmcp High-level MCP server framework
psutil System process detection (finds running Autodesk instances)

Restart your AI client(s) after installation to apply changes.

๐Ÿ“ฆ Python Libraries Starter Pack (optional)

Install the recommended Python libraries for Navisworks, Revit and Civil 3D scripting with PyNET:

irm https://raw.githubusercontent.com/Rafael-NunezDeArenas/PyNetBridge/main/install-libraries.ps1 | iex

This installs:

Library Purpose
pandas Data analysis and manipulation
plotly Interactive charts and visualizations
matplotlib Static plots and graphs
dash Web dashboards from Python

These are the third-party libraries listed under Allowed Python Imports. Standard library modules (json, sys, re, etc.) are already included with Python.

Prerequisites

  • PyNet Platform plugin installed in Navisworks/Revit.
  • Python 3.10 or higher โ†’ python.org

    โš ๏ธ Python 3.14 is not yet supported. The pythonnet runtime currently supports Python 3.7 through 3.13. If you encounter a System.NotSupportedException mentioning an unsupported ABI version, install Python 3.12 or 3.13 and configure PyNet to use it.

  • uv โ†’ docs.astral.sh/uv
  • Git โ†’ git-scm.com โ€” required for VS Code extensions (Claude Code, Cline, Roo Code) to function correctly.
  • For Cline / Roo Code: VS Code โ†’ code.visualstudio.com

๐Ÿ”ง Option B โ€” Manual installation

1. Install the package:

uv tool install pynet-mcp-bridge

Or with pip:

pip install pynet-mcp-bridge

2. Configure Claude Desktop:

Add the following to your claude_desktop_config.json:

  • Standard: %APPDATA%\Claude\claude_desktop_config.json
  • Microsoft Store: %LOCALAPPDATA%\Packages\Claude_*\LocalCache\Roaming\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "pynet-bridge": {
      "command": "pynet-bridge",
      "args": []
    }
  }
}

3. Configure Claude Code (VS Code extension):

Add to %USERPROFILE%\.claude.json:

{
  "mcpServers": {
    "pynet-bridge": {
      "type": "stdio",
      "command": "pynet-bridge",
      "args": []
    }
  }
}

4. Configure Cline:

Add to %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json:

{
  "mcpServers": {
    "pynet-bridge": {
      "type": "stdio",
      "command": "pynet-bridge",
      "args": []
    }
  }
}

5. Configure Roo Code:

Add to %APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\mcp_settings.json:

{
  "mcpServers": {
    "pynet-bridge": {
      "type": "stdio",
      "command": "pynet-bridge",
      "args": []
    }
  }
}

6. Configure Codex CLI:

Add to %USERPROFILE%\.codex\config.toml:

[mcp_servers.pynet-bridge]
command = "C:/Users/<user>/.local/bin/pynet-bridge.exe"
args = []

๐Ÿ› ๏ธ Available MCP Tools

These tools allow AI to fully control the PyNet environment, from UI creation to script execution and system monitoring. Once connected, the AI will have access to the full suite of PyNet tools:

๐Ÿง  Core capabilities exposed to AI

๐Ÿ” System & Connection

  • list_active_instances: Scans the system for running Autodesk processes with an active PyNet connection.
  • check_plugin_status: Handshake ping to verify the plugin listener is responsive.

๐Ÿ—๏ธ Module (Tab) Management

  • get_pynet_ui_layout: Fetches the full UI structure (ButtonsModules and ScriptButtons).
  • create_pynet_module: Creates a new custom Tab (ButtonsModule) in the Ribbon.
  • delete_pynet_module: Permanently deletes a module and all its contents.

๐Ÿ”˜ Button Management

  • get_buttons_data: Lists all script buttons for a specific module ID.
  • deploy_script_button: Installs a new ScriptButton into a specific module (Name, Script, Icon, Tooltip).
  • update_script_button: Updates metadata for an existing ScriptButton or moves it to another module.
  • delete_script_button: Permanently removes a ScriptButton from a module by Id.

๐Ÿ’ป Execution & Console Control

  • send_command: Direct script execution in the PyNet engine (Target PID, Script Name, Content).
  • get_output_window_status: Checks if the output window is currently available/visible.
  • configure_output_window: Toggles the visibility of the PyNet log/output window.

๐Ÿ’ก Usage Examples

These are realistic prompts you can give your AI client once PyNet Bridge is connected.

Example 1 โ€” Discover a running model and query it (read-only)

Prompt: "Connect to my open Navisworks model and tell me how many items are in the current selection."

The AI calls list_active_instances to find the running Navisworks process (e.g. Navisworks (PID 12345)), then calls send_command with a short Python script that reads the active document's selection. Expected output: a message like Current selection contains 42 items.

Example 2 โ€” Run a clash-detection summary

Prompt: "Give me a summary of clash test results in the open model and export the counts as a table."

The AI calls list_active_instances, then send_command with a script that iterates the DocumentClash results using the whitelisted Autodesk.Navisworks.Clash assembly and returns counts per test. Expected output: a table such as Test 'Structure vs MEP': 17 active, 3 resolved.

Example 3 โ€” Build a custom ribbon tool on the fly

Prompt: "Create a new ribbon tab called 'QA' and add a button that runs my hide-empty-layers script."

The AI calls create_pynet_module (returns a new module ID), then deploy_script_button with the button name, script path, icon and tooltip. Expected output: Button 'Hide Empty Layers' deployed to module QA. โ€” visible immediately in the Autodesk ribbon.

โ„น๏ธ Every script sent via send_command / send_command_by_path is first validated by the built-in static analyzer (see Safe AI Execution). Scripts that violate the import/call whitelist are rejected before reaching Autodesk.


๐Ÿ›ก๏ธ Safe AI Execution

PyNet Bridge includes a built-in validation layer that ensures all AI-generated scripts are safe and controlled before execution.

โœ” Prevents unsafe operations
โœ” Blocks unauthorized system access
โœ” Guarantees controlled interaction with BIM models

AI remains powerful, but within safe boundaries

Starting from v1.1.1, the MCP server includes a built-in static analyzer that validates every script before it reaches the Autodesk host. All scripts are parsed and inspected at the bridge level โ€” rejected scripts never leave the MCP server.

Allowed CLR Assemblies

Only these .NET references are permitted via clr.AddReference:

  • Common: System, System.Windows.Forms, System.Drawing, System.Collections.Generic
  • Navisworks: Autodesk.Navisworks.Api, .ComApi, .Interop.ComApi, .Clash
  • Revit: RevitAPI, RevitAPIUI
  • AutoCAD / Civil 3D: AcMgd, AcCoreMgd, AcDbMgd, AecBaseMgd, AecPropDataMgd, AeccDbMgd
  • PyNet plugins: Raen.Core.Pynet.*, Raen.{Product}.Pynet.* (any version โ€” e.g. Raen.Core.Pynet.Resources, Raen.Navisworks.Pynet.2024, Raen.Civil3D.Pynet.2026)

Allowed Python Imports

clr, sys, json, re, time, datetime, pathlib, typing, threading, collections, xml, math, pandas, plotly, matplotlib, dash, webbrowser, psutil, functools

Allowed Python Submodules

Some modules are allowed at the submodule level only, preventing access to dangerous siblings:

Allowed Blocked Reason
http.server http.client, http.cookiejar Allow local HTTP serving, block outbound requests

Blocked Python Imports

os, subprocess, shutil, socket, ctypes, pickle, importlib, urllib, signal, multiprocessing, tempfile, glob, inspect, code, codeop

Blocked Calls

eval, exec, compile, __import__, getattr, setattr, delattr, globals, locals, vars, breakpoint, open

Blocked Attribute Access

__builtins__, __subclasses__, __globals__, __code__

Any script that violates these rules is immediately rejected with a descriptive error message, without ever being sent to the plugin.


๐Ÿ“‚ Project Structure

  • pynet_mcp/: Core MCP server logic (FastMCP).
  • pyproject.toml: Package configuration and dependency management.

๐Ÿ“ฅ Getting Started

Start building autonomous BIM workflows in minutes.

Install the bridge, connect your AI client, and turn natural language into real actions inside your models.


โ“ FAQs

Have questions about installation, configuration, or usage? Check the full FAQ page:

๐Ÿ‘‰ PyNet FAQs


๐Ÿ”— How This MCP Fits Into the Ecosystem

This MCP is part of a modular system designed to enable AI-driven BIM automation across Autodesk tools.

This repository is designed to work alongside:

  • PyNet Platform โ†’ Executes scripts inside Navisworks, Revit & Civil 3D via Python.NET
  • PyNet Library โ†’ Gives the AI context with a Python scripts library

Together, these components enable:

Natural Language โ†’ AI โ†’ Python Script โ†’ PyNet โ†’ Autodesk โ†’ BIM Action

Component Repository Purpose
PyNet Platform PyNet Navisworks, Revit & Civil 3D plugin โ€” hosts the Python.NET engine
PyNet Bridge (MCP) This repo MCP server - connects AI models to PyNET with including secure scripts validation
PyNet Library PyNetLibrary Script reference library and AI context

๐Ÿ”’ Privacy Policy

PyNet Bridge runs entirely on your local machine. It does not collect, store, or transmit any personal data, telemetry, or analytics.

  • No data collection: The server does not send any information to RAEN Digital Tools or any third party.
  • Local-only communication: All communication happens over a local Windows named pipe (IPC) between the MCP server and the PyNet plugin running inside Autodesk. Nothing leaves your computer.
  • Your scripts and model data stay on your machine and are only processed by the AI client you have connected.

Full privacy policy: https://privacy.raendt.com/

๐Ÿ†˜ Support

๐Ÿ–ฅ๏ธ Platform Support

PyNet Bridge is Windows-only. It depends on Windows named pipes for IPC and on Autodesk desktop applications (Navisworks, Revit, Civil 3D), which are Windows products. macOS and Linux are not supported.

๐Ÿ“„ License

This project is licensed under the MIT License.


mcp-name: io.github.Rafael-NunezDeArenas/pynet-mcp-bridge

ยฉ 2026 RAEN Digital Tools. Todos los derechos reservados. Obra inscrita en el Registro de la Propiedad Intelectual de la Comunidad de Madrid.

RAEN Digital Tools

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynet_mcp_bridge-1.4.9.tar.gz (886.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pynet_mcp_bridge-1.4.9-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

Details for the file pynet_mcp_bridge-1.4.9.tar.gz.

File metadata

  • Download URL: pynet_mcp_bridge-1.4.9.tar.gz
  • Upload date:
  • Size: 886.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pynet_mcp_bridge-1.4.9.tar.gz
Algorithm Hash digest
SHA256 8c463b27bf618c93ea8698fa9f1794fb593cdf452ac170fdb3edd624adfbe64e
MD5 95185e8c2768521fd8f5f67eba77de66
BLAKE2b-256 04cf80a95ee9352bc89aead4c140a7a423d54dcffaf0b8c70de3cddefb29cc3f

See more details on using hashes here.

File details

Details for the file pynet_mcp_bridge-1.4.9-py3-none-any.whl.

File metadata

  • Download URL: pynet_mcp_bridge-1.4.9-py3-none-any.whl
  • Upload date:
  • Size: 12.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pynet_mcp_bridge-1.4.9-py3-none-any.whl
Algorithm Hash digest
SHA256 31ad7ebf22c01a90380943887198f6294cb665e23db5d23b4d61b18265c5610c
MD5 87dc0cafb7f878324a9ca327d9c711c5
BLAKE2b-256 c4f94dbfd66004cc5f1547d4d573bb9bc1710224170d31c3e1517ecae3ff7b72

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page