Open-source Revit MCP server: let Claude and other AI assistants read and edit BIM models, with human approval on every change.
Python aecai-agentsautodeskautomationbimclaudeifcmcpmcp-servermodel-context-protocolnavisworksrevitrevit-addinrevit-apirhino
Prepare Revit MCP for official registry publishing
sammohammad578729ad4137cb7
diff --git a/.github/workflows/publish-mcp.yml b/.github/workflows/publish-mcp.ymlnew file mode 100644index 0000000..b6002dd--- /dev/null+++ b/.github/workflows/publish-mcp.yml@@ -0,0 +1,50 @@+name: Publish MCP Server++on:+ push:+ tags:+ - "v*"+ workflow_dispatch:++jobs:+ publish:+ runs-on: ubuntu-latest+ permissions:+ id-token: write+ contents: read++ steps:+ - name: Checkout code+ uses: actions/checkout@v5++ - name: Set up Python+ uses: actions/setup-python@v6+ with:+ python-version: "3.11"++ - name: Install build tooling+ run: |+ python -m pip install --upgrade pip+ python -m pip install build++ - name: Build Python package+ working-directory: packages/mcp-server-revit+ run: python -m build++ - name: Publish package to PyPI+ uses: pypa/gh-action-pypi-publish@release/v1+ with:+ packages-dir: packages/mcp-server-revit/dist++ - name: Install mcp-publisher+ run: |+ curl -L "https://github.com/modelcontextprotocol/registry/releases/latest/download/mcp-publisher_$(uname -s | tr '[:upper:]' '[:lower:]')_$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/').tar.gz" | tar xz mcp-publisher++ - name: Validate server.json+ run: ./mcp-publisher validate++ - name: Authenticate to MCP Registry+ run: ./mcp-publisher login github-oidc++ - name: Publish to MCP Registry+ run: ./mcp-publisher publishdiff --git a/packages/mcp-server-revit/README.md b/packages/mcp-server-revit/README.mdnew file mode 100644index 0000000..97f46ff--- /dev/null+++ b/packages/mcp-server-revit/README.md@@ -0,0 +1,19 @@+# Revit MCP Server (Python Package)++Python package for the Autodesk Revit MCP server used by AI clients over stdio.++- Repository: https://github.com/Sam-AEC/Autodesk-Revit-MCP-Server+- MCP entrypoint: `python -m revit_mcp_server.mcp_server`+- Requires Python 3.11+++Environment variables (prefix `MCP_REVIT_`) include:++- `WORKSPACE_DIR`+- `ALLOWED_DIRECTORIES`+- `MODE` (`mock` or `bridge`)+- `BRIDGE_URL` (required for `bridge` mode)+- `AUDIT_LOG`+- `LOG_LEVEL`++<!-- mcp-name: io.github.sam-aec/autodesk-revit-mcp-server -->+diff --git a/packages/mcp-server-revit/pyproject.toml b/packages/mcp-server-revit/pyproject.tomlindex cf529bd..1098e13 100644--- a/packages/mcp-server-revit/pyproject.toml+++ b/packages/mcp-server-revit/pyproject.toml@@ -1,24 +1,34 @@[project]name = "revit-mcp-server"-version = "0.1.0"-description = "Mockable MCP server exporting 25 Revit tools"+version = "0.1.1"+description = "Model Context Protocol server for Autodesk Revit via a local bridge"readme = "README.md"requires-python = ">=3.11"+license = "MIT"+authors = [+ { name = "Sam-AEC" },+]+keywords = ["mcp", "revit", "autodesk", "bim", "ai"]dependencies = ["pydantic>=2.5","pydantic-settings>=1.3","httpx>=0.24","python-dotenv>=1.0",- "pytest>=8.0","mcp>=0.9.0",][project.optional-dependencies]dev = [+ "pytest>=8.0","ruff>=0.0","mypy>=1.8",]+[project.urls]+Homepage = "https://github.com/Sam-AEC/Autodesk-Revit-MCP-Server"+Repository = "https://github.com/Sam-AEC/Autodesk-Revit-MCP-Server"+Issues = "https://github.com/Sam-AEC/Autodesk-Revit-MCP-Server/issues"+[build-system]requires = ["setuptools>=68", "wheel"]build-backend = "setuptools.build_meta"diff --git a/server.json b/server.jsonnew file mode 100644index 0000000..e3e55d6--- /dev/null+++ b/server.json@@ -0,0 +1,66 @@+{+ "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",+ "name": "io.github.sam-aec/autodesk-revit-mcp-server",+ "title": "Autodesk Revit MCP Server",+ "description": "MCP server connecting AI assistants to Autodesk Revit through a local bridge.",+ "repository": {+ "url": "https://github.com/Sam-AEC/Autodesk-Revit-MCP-Server",+ "source": "github",+ "subfolder": "packages/mcp-server-revit"+ },+ "version": "0.1.1",+ "packages": [+ {+ "registryType": "pypi",+ "identifier": "revit-mcp-server",+ "version": "0.1.1",+ "transport": {+ "type": "stdio"+ },+ "environmentVariables": [+ {+ "name": "MCP_REVIT_WORKSPACE_DIR",+ "description": "Workspace root directory for server file operations.",+ "isSecret": false,+ "isRequired": true,+ "format": "string"+ },+ {+ "name": "MCP_REVIT_ALLOWED_DIRECTORIES",+ "description": "Semicolon-delimited allow-list of directories the server can access.",+ "isSecret": false,+ "isRequired": true,+ "format": "string"+ },+ {+ "name": "MCP_REVIT_MODE",+ "description": "Server mode: mock or bridge.",+ "isSecret": false,+ "isRequired": false,+ "format": "string"+ },+ {+ "name": "MCP_REVIT_BRIDGE_URL",+ "description": "Bridge URL, for example http://127.0.0.1:3000 (required when MCP_REVIT_MODE=bridge).",+ "isSecret": false,+ "isRequired": false,+ "format": "string"+ },+ {+ "name": "MCP_REVIT_AUDIT_LOG",+ "description": "Path to the audit log file.",+ "isSecret": false,+ "isRequired": false,+ "format": "string"+ },+ {+ "name": "MCP_REVIT_LOG_LEVEL",+ "description": "Python log level, for example INFO or DEBUG.",+ "isSecret": false,+ "isRequired": false,+ "format": "string"+ }+ ]+ }+ ]+}