Logo de RevitMCP: Revit Model Content Protocol Extension

RevitMCP: Revit Model Content Protocol Extension

Communauté
oakplank

model context protocol for Autodesk Revit

Éditeuroakplank
DépôtRevitMCP
LanguePython
Forks
11
Étoiles
57
Outils disponibles
0
Type de transportstdio
Catégories
LicenceMIT
Liens
  • Connectez des outils à vos workflows IA

    RevitMCP: Revit Model Content Protocol Extension propose des fonctionnalités MCP utilisables par les clients et agents IA compatibles.

  • 0 outils disponibles

    Parcourez les actions invocables ci-dessous, avec leurs noms et descriptions lorsque le serveur les fournit.

  • Configuration prête à copier

    Utilisez les exemples de configuration pour configurer ce serveur dans votre client MCP préféré.

  • Indicateurs de popularité open source

    57 étoiles et 11 forks sur le dépôt associé.

RevitMCP

RevitMCP is a pyRevit extension plus a Python server that lets AI clients work against a live Revit session.

It supports two ways to use it:

  • Web UI at http://127.0.0.1:8000
  • Local MCP over stdio for clients such as Claude Desktop, Claude Code, and Codex

Repository layout note: this repository root is the pyRevit extension root. If you install from source manually, the checkout directory itself should be named RevitMCP.extension.

Tools

RevitMCP exposes 46 tools:

ToolDescription
get_revit_project_infoGet active project metadata, document path, and Revit version details
get_active_view_infoRead the current view's name, type, scale, and related metadata
get_active_view_elementsCapture a bounded snapshot of elements visible in the active view
export_active_view_imageExport the active Revit view to a local image artifact for model vision inspection
export_element_snapshotExport a focused snapshot from explicit IDs or the active selection by activating a target view, temporarily isolating elements, tightening a section box when exporting 3D views, exporting, and restoring the view
isolate_elements_in_viewTemporarily isolate explicit elements or the active selection in a view and optionally focus the camera for inspection
clear_temporary_isolateClear temporary hide/isolate in the active or target view
activate_viewSwitch the active Revit view by view ID or view name
duplicate_viewDuplicate a view, optionally with detailing/as dependent, template assignment, and activation
get_active_selectionRead the current Revit selection as a reusable result set
get_revit_diagnosticsReturn live pyRevit route, document, active view, selection, and write-context diagnostics
list_family_typesList loaded family types with category, family, type, and symbol IDs
get_revit_schema_contextLoad canonical Revit schema context including levels, categories, families, types, and common parameters
resolve_revit_targetsResolve user terms to exact Revit category, level, family, type, and parameter names
get_revit_memory_contextLoad persistent local user/project notes for recurring Revit conventions and workflow hints
save_revit_memory_noteSave a persistent local user/project note for future chats and tool runs
analyze_model_statisticsSummarize model composition including category, family/type, view, sheet, level, and room counts
get_elements_by_categoryRetrieve all elements for a category and store the result for follow-on actions
select_elements_by_idSelect elements by explicit IDs or a stored result handle
select_stored_elementsSelect a previously stored search or filter result inside Revit
list_stored_elementsList stored element result sets and their counts currently available on the server
filter_elementsFind elements by category, level, and parameter-based conditions
filter_stored_elements_by_parameterRefine a stored result set with batched server-side parameter filtering using one or many target values
get_element_propertiesRead parameter values for specific elements or an existing result handle
get_element_relationshipsRead host, parent, child, dependent, and adaptive point relationships for model elements
get_element_locationsRead model-space element locations using location points, curve midpoints, bounding-box centers, and host fallbacks
get_related_element_propertiesRead selected parameters from elements and their host/super-component chains
update_element_parametersUpdate one or many element parameters with typed value handling
sync_element_parameter_valuesCopy first populated source parameter values into a target parameter with missing-only or overwrite-all policy and dry-run preview
override_element_graphicsApply or reset active-view graphic overrides for explicit IDs or stored result sets
delete_elementsDelete elements with dry-run, confirmation, max-count, unpin, and batch/individual safeguards
place_view_on_sheetCreate a new sheet, auto-number it, and place a matched view on it
list_viewsList views that can be placed on sheets, including type and placement status
analyze_view_naming_patternsCluster view names by type and flag likely naming outliers
suggest_view_name_correctionsGenerate rename suggestions from a prior view naming analysis
list_schedulesList Revit schedules with IDs, categories, field counts, filters, sorting, and sheet placement status
get_schedule_infoRead a schedule definition including fields, hidden state, filters, sorting/grouping, and settings
list_schedule_available_fieldsList fields/parameters that can be added to a schedule, including stable available field indexes
get_schedule_rowsRead visible schedule table rows and column metadata
compare_schedulesCompare schedule rows across overall/release schedules by key fields and quantity fields
duplicate_scheduleDuplicate a schedule and optionally rename it
delete_scheduleDelete a schedule with dry-run and confirmation safeguards
create_scheduleCreate a schedule or material takeoff with fields, calculated percentage fields, filters, sorting, and settings
update_scheduleUpdate schedule fields, calculated percentage fields, filters, sorting/grouping, settings, or name
audit_schedule_capabilitiesRun a rollback-only probe for schedule creation, fields, filters, sorting, settings, and row reads
plan_and_execute_workflowExecute a multi-step Revit workflow from a structured tool plan

Schedule calculated field support currently maps to the public Revit 2024 API. Percentage fields can be added and wired to schedule fields through calculated_fields / add_calculated_fields. Revit exposes ScheduleFieldType.Formula, but does not expose a public formula-string setter in this API version, so formula text is rejected with an explicit unsupported error instead of silently creating a broken field.

Requirements

  • Autodesk Revit
  • pyRevit
  • Python 3.7+ available as python if you want to run the external server directly or through a local MCP client. Python 3.13 or older is recommended because some current AI-provider dependencies warn under Python 3.14+.
  • A Revit project open while using RevitMCP

Surface Modes

RevitMCP has two server surfaces:

  • web: browser UI at http://127.0.0.1:8000
  • mcp: stdio server for local MCP clients such as Claude Desktop, Claude Code, and Codex

One server.py process runs one surface at a time.

To switch manually:

powershell
python lib\RevitMCP_ExternalServer\server.py --surface web
python lib\RevitMCP_ExternalServer\server.py --surface mcp

If you use the pyRevit launcher, it reads the preferred surface from:

%USERPROFILE%\Documents\RevitMCP\user_data\revitmcp_settings.json

json
{
  "preferences": {
    "server_surface": "web"
  }
}

If you want both the Web UI and an MCP client at the same time, they need to run as separate processes.

Install RevitMCP

  1. Install pyRevit: pyRevit installer
  2. Choose one of these pyRevit extension roots:
    • %APPDATA%\pyRevit\Extensions
    • %PROGRAMDATA%\pyRevit\Extensions
  3. Clone this repository directly into a folder named RevitMCP.extension under that root:
powershell
git clone https://github.com/oakplank/RevitMCP.git "%APPDATA%\pyRevit\Extensions\RevitMCP.extension"
  1. If you download a ZIP instead, extract the repository contents into a folder named RevitMCP.extension under the same extension root.
  2. Reload pyRevit or restart Revit.

The folder name matters: pyRevit discovers extensions by folders that end with .extension.

Keep track of the exact RevitMCP.extension folder you install here. Local MCP clients must point to the server.py file inside this same folder. Do not point your client at the pyRevit install folder unless that is actually where this extension is installed.

Enable Revit Routes

  1. Open Revit.
  2. Go to pyRevit -> Settings.
  3. Enable the Routes server.
  4. Restart Revit.
  5. Allow firewall access if Windows asks.

The default Revit Routes port is usually 48884.

Quick Start: Web UI

  1. Open a Revit project.
  2. In Revit, click RevitMCP -> Server -> Launch RevitMCP.
  3. Open http://127.0.0.1:8000.
  4. Add any required model or API settings in the web UI.
  5. Try: Get Revit project info

Share the Web UI on Your LAN

By default, the Web UI listens on 127.0.0.1. That only works on the same computer, so a coworker on another machine cannot connect to http://127.0.0.1:8000.

To allow another computer on the same trusted network:

  1. On the Revit computer, edit:
powershell
%USERPROFILE%\Documents\RevitMCP\user_data\revitmcp_settings.json
  1. Under servers, set:
json
{
  "servers": {
    "external_server_host": "0.0.0.0",
    "external_server_port": 8000
  }
}

Keep the rest of the settings file intact.

  1. Restart the RevitMCP server.
  2. Find the Revit computer's LAN IP:
powershell
ipconfig

Use the IPv4 Address for the active Wi-Fi or Ethernet adapter.

  1. From the coworker's computer, open:
text
http://<REVIT_COMPUTER_IPV4>:8000

If the page still does not load, allow python.exe through Windows Defender Firewall on private networks, or add an inbound TCP rule for port 8000.

Do not expose this server on public networks or the open internet. The Web UI is intended for trusted local use.

Quick Start: Claude Desktop

Claude Desktop local MCP is local to one machine. Use this on the same computer that has Revit open, pyRevit installed, and the RevitMCP.extension files available. If a coworker on another computer needs access to your live Revit session, use Share the Web UI on Your LAN instead.

  1. Install Claude Desktop: https://claude.ai/download
  2. In Claude Desktop, go to Settings -> Developer -> Local MCP Servers -> Edit Config.
  3. Find the exact server.py path inside the same RevitMCP.extension folder that pyRevit loads.

If you installed under your user extension root:

powershell
$server = "$env:APPDATA\pyRevit\Extensions\RevitMCP.extension\lib\RevitMCP_ExternalServer\server.py"
Test-Path $server
$server

If you installed under the machine-wide extension root:

powershell
$server = "$env:PROGRAMDATA\pyRevit\Extensions\RevitMCP.extension\lib\RevitMCP_ExternalServer\server.py"
Test-Path $server
$server

Test-Path must return True. Use the printed absolute path in the Claude config. Do not paste %APPDATA% or %PROGRAMDATA% literally into JSON; use the expanded path such as C:\Users\YourName\AppData\Roaming\....

  1. Add revitmcp to your Claude config.

If your Claude config already exists, keep your current preferences and other MCP servers. Only add revitmcp under mcpServers.

If you copy the full example below, update the preferences values to match your own Claude Desktop setup.

json
{
  "mcpServers": {
    "revitmcp": {
      "command": "python",
      "args": [
        "C:\\Users\\YourName\\AppData\\Roaming\\pyRevit\\Extensions\\RevitMCP.extension\\lib\\RevitMCP_ExternalServer\\server.py",
        "--surface",
        "mcp"
      ]
    }
  },
  "preferences": {
    "chromeExtensionEnabled": true,
    "coworkScheduledTasksEnabled": true,
    "ccdScheduledTasksEnabled": true,
    "sidebarMode": "chat",
    "coworkWebSearchEnabled": true
  }
}
  1. Replace the example server.py path with the actual path from step 3.
  2. If python does not work, replace it with the full path to python.exe.
  3. Save the file and fully restart Claude Desktop.
  4. Re-open Settings -> Developer -> Local MCP Servers and confirm revitmcp shows running.
  5. Try: Get Revit project info

Expected Claude Desktop screen after revitmcp is configured:

Claude Desktop Local MCP settings showing Developer selected and the revitmcp server running

Quick Start: Codex

Codex local MCP is local to one machine. Use this on the same computer that has Revit open, pyRevit installed, and the RevitMCP.extension files available. Existing Codex sessions may not hot-load new MCP servers, so restart Codex after adding the server.

  1. Install or update Codex.
  2. Find the exact server.py path inside the same RevitMCP.extension folder that pyRevit loads.

If you installed under your user extension root:

powershell
$server = "$env:APPDATA\pyRevit\Extensions\RevitMCP.extension\lib\RevitMCP_ExternalServer\server.py"
Test-Path $server
$server

If you installed under the machine-wide extension root:

powershell
$server = "$env:PROGRAMDATA\pyRevit\Extensions\RevitMCP.extension\lib\RevitMCP_ExternalServer\server.py"
Test-Path $server
$server

Test-Path must return True.

  1. Add revitmcp to Codex:
powershell
codex mcp add revitmcp -- python $server --surface mcp

If python does not work, replace it with the full path to python.exe.

The command writes a Codex MCP entry equivalent to:

toml
[mcp_servers.revitmcp]
command = "python"
args = ['C:\Users\YourName\AppData\Roaming\pyRevit\Extensions\RevitMCP.extension\lib\RevitMCP_ExternalServer\server.py', "--surface", "mcp"]
  1. Restart Codex.
  2. Start a new Codex session and try: Get Revit project info

Troubleshooting

revitmcp does not show in Claude Desktop

  • Check that your Claude config is valid JSON.
  • Make sure the server.py path is absolute and exists.
  • If python is not found, use the full path to python.exe.
  • Fully quit Claude Desktop from the system tray and reopen it.
  • Check %APPDATA%\Claude\logs.

If the log says can't open file ... RevitMCP.extension\lib\RevitMCP_ExternalServer\server.py, Claude is pointing at a path that does not exist. On the same machine as Claude Desktop, run:

powershell
Test-Path "$env:APPDATA\pyRevit\Extensions\RevitMCP.extension\lib\RevitMCP_ExternalServer\server.py"
Test-Path "$env:PROGRAMDATA\pyRevit\Extensions\RevitMCP.extension\lib\RevitMCP_ExternalServer\server.py"
Get-ChildItem "$env:APPDATA\pyRevit\Extensions" -Directory
Get-ChildItem "$env:PROGRAMDATA\pyRevit\Extensions" -Directory

If both Test-Path commands return False, either install/copy the extension to one of those RevitMCP.extension folders or update the Claude config to the real absolute path of server.py in the extension folder pyRevit is actually loading.

revitmcp does not show in Codex

  • Run codex mcp list and confirm revitmcp is listed.
  • Make sure the server.py path is absolute and exists.
  • If python is not found, use the full path to python.exe.
  • Restart Codex after changing MCP config.

If the server was added with the wrong path, remove and re-add it:

powershell
codex mcp remove revitmcp
codex mcp add revitmcp -- python C:\Users\YourName\AppData\Roaming\pyRevit\Extensions\RevitMCP.extension\lib\RevitMCP_ExternalServer\server.py --surface mcp

Claude Desktop or Codex can see revitmcp but tools do not work

  • Make sure Revit is open with a project loaded.
  • Make sure pyRevit Routes is enabled.
  • Restart Revit after enabling Routes.
  • Open View Logs for revitmcp in Claude Desktop, or check the Codex MCP startup output.
  • Make sure the MCP client is running on the same machine as Revit. This MCP mode connects to the local Revit Routes server.

Web UI or server startup issues

  • Check %USERPROFILE%\Documents\RevitMCP\server_logs
  • Startup log: server_startup_error.log
  • App log: server_app.log

Coworker cannot open the Web UI

  • If the server prints Running on http://127.0.0.1:8000, it is only listening locally. Follow Share the Web UI on Your LAN above.
  • The coworker should use http://<Revit computer IPv4>:8000, not http://127.0.0.1:8000.
  • If Windows prompts for firewall access when the server starts, allow private networks.
  • If the terminal only shows a Python 3.14 Pydantic warning and never prints Running on ..., install Python 3.13 or older and configure RevitMCP to use that interpreter.

License

RevitMCP is licensed under the MIT License. See LICENSE.md.

See CONTRIBUTING.md before submitting patches or pull requests.

Installation

TypingMind
Prérequis :

Node.js 18+

{
  "mcpServers": {
    "oakplank-revitmcp": {
      "command": "",
      "args": []
    }
  }
}

Utilisez le serveur MCP RevitMCP: Revit Model Content Protocol Extension avec plusieurs modèles IA

TypingMind connecte les outils MCP au niveau de l’espace de travail. Une fois RevitMCP: Revit Model Content Protocol Extension connecté, vous pouvez donc l’utiliser avec différents modèles IA dans TypingMind sans avoir à le configurer séparément pour chaque modèle. Cette intégration MCP s’exécute localement sur votre appareil via le connecteur MCP de TypingMind.

Guide de configuration du connecteur local

Choisissez cette méthode si le serveur MCP doit accéder à des fichiers locaux, à des applications ou à des ressources privées sur votre ordinateur.

1

Ouvrir les paramètres MCP

Dans TypingMind, accédez à « Paramètres », puis à « Paramètres avancés » et à « Model Context Protocol », et choisissez « Configurer connecteur ».

  1. Ouvrez TypingMind dans votre navigateur.
  2. Cliquez sur l’icône Paramètres.
  3. Accédez aux paramètres avancés.
  4. Ouvrez la section Model Context Protocol.
  5. Cliquez sur « Configurer connecteur » et choisissez « Cet appareil ».
Écran de configuration du connecteur MCP de TypingMind avec l’option « Cet appareil » sélectionnée
2

Exécuter la commande du connecteur

Choisissez « Cet appareil », copiez la commande depuis TypingMind et exécutez-la dans Terminal. Laissez le processus en cours d’exécution pendant que vous utilisez MCP.

  1. Copiez la commande de configuration affichée par TypingMind.
  2. Ouvrez Terminal sur macOS ou Windows Terminal sur Windows.
  3. Collez et exécutez la commande.
  4. Autorisez l’installation du paquet si Terminal vous demande de confirmer.
  5. Gardez la fenêtre de Terminal ouverte et le processus en cours d’exécution pendant que vous utilisez les outils MCP.
3

Ajoutez RevitMCP: Revit Model Content Protocol Extension en tant que serveur

Lorsque l’état du connecteur affiche « Prêt », cliquez sur « Éditer serveurs » et collez la configuration du serveur MCP.

  1. Attendez que l’état du connecteur affiche « Prêt ».
  2. Cliquez sur « Éditer serveurs ».
  3. Collez la configuration du serveur MCP RevitMCP: Revit Model Content Protocol Extension.
  4. Enregistrez la liste des serveurs.
  5. Actualisez pour vérifier que le connecteur est toujours prêt.
Paramètres MCP de TypingMind affichant un serveur actif et le bouton « Éditer serveurs »
{
  "mcpServers": {
    "oakplank-revitmcp": {
      "command": "npx",
      "args": [
        "-y",
        "RevitMCP"
      ]
    }
  }
}
4

Utiliser la connexion avec différents modèles

Enregistrez la liste des serveurs, ouvrez « Plugins », activez les outils MCP de RevitMCP: Revit Model Content Protocol Extension, puis sélectionnez un modèle IA compatible dans TypingMind et utilisez les outils dans une discussion ou attribuez-les à un agent IA.

  1. Ouvrez la page Plugins dans TypingMind.
  2. Activez les outils MCP de RevitMCP: Revit Model Content Protocol Extension.
  3. Démarrez une discussion et choisissez le modèle IA que vous souhaitez utiliser.
  4. Utilisez les outils MCP dans le chat ou attribuez-les à un agent IA.
  5. Passez à un autre modèle IA selon vos besoins sans rétablir la connexion MCP.
Discussion TypingMind utilisant des outils MCP activés avec un modèle d’IA sélectionné
Pouvez-vous utiliser RevitMCP: Revit Model Content Protocol Extension pour m’aider dans cette tâche ?
RevitMCP: Revit Model Content Protocol Extension
Bien sûr. J’ai tout lu.
Voici ce que j’ai trouvé avec RevitMCP: Revit Model Content Protocol Extension.

Foire aux questions

À quoi sert le serveur MCP RevitMCP: Revit Model Content Protocol Extension ?

RevitMCP: Revit Model Content Protocol Extension est un serveur MCP qui permet aux applications IA compatibles d’accéder à des outils et à des informations contextuelles externes. Dans TypingMind, il vous suffit d’ajouter ce serveur MCP une seule fois pour rendre ses outils disponibles dans votre espace de travail IA.

Puis-je utiliser le serveur MCP RevitMCP: Revit Model Content Protocol Extension avec plusieurs modèles IA dans TypingMind ?

Oui. TypingMind connecte les outils MCP au niveau de l’espace de travail. Vous pouvez donc utiliser RevitMCP: Revit Model Content Protocol Extension avec différents modèles IA comme Claude, ChatGPT, Gemini ou d’autres modèles configurés dans TypingMind, sans avoir à configurer le serveur MCP séparément pour chaque modèle.

Pourquoi utiliser le connecteur MCP RevitMCP: Revit Model Content Protocol Extension avec TypingMind ?

TypingMind est l’une des meilleures interfaces de chat avec les LLM, car elle réunit plusieurs modèles IA, prompts, plugins, agents IA, clés API et outils MCP dans un seul espace de travail. Une fois RevitMCP: Revit Model Content Protocol Extension connecté, vous pouvez utiliser ses outils MCP avec vos modèles préférés tout en gardant vos discussions bien organisées dans TypingMind.

Comment connecter le serveur MCP RevitMCP: Revit Model Content Protocol Extension à TypingMind ?

RevitMCP: Revit Model Content Protocol Extension fonctionne via le connecteur MCP local de TypingMind. C’est l’option idéale lorsque le serveur MCP doit accéder à des fichiers locaux, des applications de bureau, des outils en ligne de commande ou des ressources privées sur votre ordinateur.

Quels outils le serveur MCP RevitMCP: Revit Model Content Protocol Extension propose-t-il dans TypingMind ?

RevitMCP: Revit Model Content Protocol Extension propose des fonctionnalités MCP que vous pouvez activer depuis la page Plugins de TypingMind et utiliser dans les discussions ou attribuer à des agents IA.

Dois-je partager mes clés API avec TypingMind pour utiliser le serveur MCP RevitMCP: Revit Model Content Protocol Extension ?

Non. TypingMind privilégie le fonctionnement local et vous permet de garder le contrôle de vos fournisseurs de modèles, clés API, prompts et paramètres MCP. Si RevitMCP: Revit Model Content Protocol Extension nécessite une authentification, ajoutez les en-têtes, les paramètres OAuth ou la configuration locale requis pour ce serveur MCP lors de la création de la connexion.

Serveurs MCP similaires

Tout voir

Créez votre propre espace IA dès maintenant

Abonnez-vous à notre newsletter pour être informé des nouvelles fonctionnalités et des prochains cadeaux à gagner 👇