MCPInstall
AEC Model Bridge logo

AEC Model Bridge

by Sam-AEC 125 stars sam-aec/aec-model-bridge

Revit MCP server: 270+ tools to read and edit BIM models, every change human-approved.

READMEHEAD

AEC Model Bridge

Python MCP server for reviewing BIM model quality and fixing Revit parameters with Claude, Codex and other MCP clients. Read-only tools inspect the model; model changes require an approved plan by default.

Get started | Example workflows | Tool reference

Live Revit automation requires Windows, Revit 2024–2027 and the native Revit add-in. The server also includes IFC inspection, Rhino and Grasshopper, and Speckle providers. Navisworks integration is in progress. See the installation guide.

Run the server

Requires Python 3.11 or newer. To explore the tools in mock mode from a repository checkout:

python -m pip install -e packages/mcp-server-revit
$env:MCP_REVIT_MODE = "mock"
$env:MCP_REVIT_WORKSPACE_DIR = (Get-Location).Path
$env:MCP_REVIT_ALLOWED_DIRECTORIES = $env:MCP_REVIT_WORKSPACE_DIR
python -m revit_mcp_server.mcp_server

MCP clients start the server over stdio. The console command is aec-model-bridge; revit-mcp-server remains available as a compatibility alias. For development without Revit, set MCP_REVIT_MODE=mock to return canned responses. The release .mcpb bundle uses the MCPB uv runtime and prompts for a permitted workspace directory.

Configuration

Environment variablePurpose
MCP_REVIT_MODEbridge for a live application or mock for development
MCP_REVIT_WORKSPACE_DIRWorkspace root for server file operations
MCP_REVIT_ALLOWED_DIRECTORIESSemicolon-separated permitted directories
MCP_REVIT_HOST_VERSIONOptional Revit year selector, such as 2026
MCP_REVIT_BRIDGE_URLOptional explicit bridge endpoint
MCP_REVIT_AUDIT_LOGAudit log location
MCP_REVIT_LOG_LEVELLogging verbosity
MCP_REVIT_TOOL_PROFILEStartup tool catalogue: full (default), daily, core, or custom
MCP_REVIT_TOOL_PROFILE_FILEOptional JSON file of provider/module ID include/exclude globs; required for custom

Static tool profiles

ProfileAvailable tools
fullAll tools, as before. Human-only approval/rejection/rollback tools remain unavailable to AI clients.
dailyKeeps Revit sparing, groups, recipes, sections/tags/views, parameters, plans/jobs and general inspection. Hides revit_mep (including native duct/pipe creation), revit_ifc, and provider/module IDs matching rhino*, speckle*, navisworks*, bcf_exchange*, clash_triage*, ifc*.
core49 named tools for the BIM-coordinator loop (context, snapshots, QA checks and audits, element reads, parameters, selection, revit_execute_python, revit_api_lookup) plus the always-visible approval tools: 54 tools, about 14k tokens against about 80k for full. Everything else is hidden and refused; switch to daily or full and restart to reach it. See token budget.
customTools whose provider or manifest module ID matches the file's include globs, minus exclusions.

The owner can add "MCP_REVIT_TOOL_PROFILE": "daily" (or "core") to this server's env in .mcp.json, then restart the MCP connection. The default stays full. Profiles and file contents are read once at startup; there is no live toggle. Hidden tools are omitted from discovery and refused when called, including plan/job targets. Panel registries retain their complete catalogue. Write approval, human review and single-use approved actions are unchanged.

Example custom file (globs match provider IDs or manifest module IDs, not tool names):

{"include": ["revit", "revit_*", "approval", "jobs", "parameter_manager", "selection_tools", "recipe_runner"], "exclude": ["revit_mep", "revit_ifc"]}

Set MCP_REVIT_TOOL_PROFILE=custom and MCP_REVIT_TOOL_PROFILE_FILE to its path. Omitted include means ["*"]; an empty include array selects nothing. Exclusions always win. A file may also narrow full, daily or core; it cannot restore daily's built-in exclusions. Invalid settings stop startup. New commands inherit their manifest module's membership. A repository audit found no calls to hidden modules in sibling dynamoscript14; its context, Python, result, plan and execution calls remain available.

Smaller read responses

Default responses retain their existing format and fields. For module_list_commands, revit_list_elements, revit_list_families, revit_get_element_parameters and revit_list_views, use optional response_options to minify JSON and/or select dotted result paths. Arrays are traversed automatically. For example:

{"response_options": {"compact": true, "fields": ["modules.id", "modules.commands.id"]}}

That example lists module/command IDs without echoing every command schema. Field selection affects only the returned payload, after redaction; provider execution and stored data are unchanged. Errors and running-result diagnostics are never field-filtered. Options require a synchronous call. plan_actions supports compact JSON and optional omission of its echoed arguments:

{"actions": [{"tool": "revit_execute_python", "arguments": {"script": "...", "mode": "write"}}], "response_options": {"compact": true, "omit_action_arguments": true}}

This returns a marked summary without actions[].arguments or identical actions[].diff.after copies. It retains plan/action IDs, state, review, before evidence and the hash of the full stored plan. A person reviews that complete plan in the Revit panel or approval CLI before approving it. Stored arguments and approval checks are unchanged; execution remains blocked until human approval. Omission defaults to false and never applies to errors or running-result diagnostics. Arbitrary field projection is unavailable for plans. The shared server instructions explain approval once; every write tool still has its plan_id schema and behavior annotations.

See measured token costs for the reproducible mock baseline, per-module costs, heaviest schemas and before/after comparison.

See the configuration reference and release notes.

License

GPL-3.0-or-later with the Revit Linking Exception, or a commercial license.

Maintained by A. Sam Mohammad.

More Design Tool MCP servers

Similar servers from the same category.

🤖 A Model Context Protocol server for generating charts using @antvis.

TextModel+1
SlideSpeak logo

SlideSpeak

slidespeak

Generate presentations using the SlideSpeak API.

APIPresentation+2

Generate images using Amazon Nova Canvas.

text

Bridges to 21st.dev's Magic API for generating UI components from descriptions, fetching existing components for inspiration, and searching for company logos in various formats.

search