Skip to content
VS Code

revit model mcp for VS Code

io.github.sharafutdinovdi/revit-model-mcp

The Python package exposes Revit tools over MCP stdio, read-only by default.

client:VS Code transport:stdio runtime:pypi

Install revit model mcp in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "revit-mcp-host",
      "description": "REVIT_MCP_HOST",
      "password": true
    },
    {
      "type": "promptString",
      "id": "revit-mcp-redact-paths",
      "description": "REVIT_MCP_REDACT_PATHS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "revit-mcp-allow-write",
      "description": "REVIT_MCP_ALLOW_WRITE",
      "password": true
    }
  ],
  "servers": {
    "revit-model-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "revit-model-mcp"
      ],
      "env": {
        "REVIT_MCP_HOST": "${input:revit-mcp-host}",
        "REVIT_MCP_REDACT_PATHS": "${input:revit-mcp-redact-paths}",
        "REVIT_MCP_ALLOW_WRITE": "${input:revit-mcp-allow-write}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

revit model mcp in other clients