B

Best Cad MCP

by LokmenoWer · io.github.LokmenoWer/best-cad-mcp

Enables agent-driven CAD automation by inspecting, editing, and validating DWG drawings through a handle-first workflow, with support for visual grounding, CADPlan execution, and local SQLite workspace management.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-lokmenower-best-cad-mcp": {
      "command": "uvx",
      "args": [
        "best-cad-mcp"
      ],
      "env": {
        "CAD_MCP_WORKSPACE_ROOT": "<VALUE>",
        "CAD_MCP_LOG_PATH": "<VALUE>",
        "CAD_MCP_LOG_LEVEL": "<VALUE>",
        "CAD_MCP_SQL_MAX_ROWS": "<VALUE>",
        "CAD_MCP_TOOL_PROFILE": "<VALUE>",
        "CAD_MCP_TOOLS_EXCLUDE": "<VALUE>",
        "CAD_MCP_TOOLS_INCLUDE": "<VALUE>",
        "CAD_MCP_SQL_TIMEOUT_MS": "<VALUE>",
        "CAD_MCP_STRICT_PREFLIGHT": "<VALUE>",
        "CAD_MCP_SQL_MAX_RESULT_BYTES": "<VALUE>",
        "CAD_MCP_PREFLIGHT_CHECK_AUTOCAD": "<VALUE>",
        "CAD_MCP_PREFLIGHT_REQUIRE_VISUAL": "<VALUE>"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-lokmenower-best-cad-mcp": {
      "command": "uvx",
      "args": [
        "best-cad-mcp"
      ],
      "env": {
        "CAD_MCP_WORKSPACE_ROOT": "<VALUE>",
        "CAD_MCP_LOG_PATH": "<VALUE>",
        "CAD_MCP_LOG_LEVEL": "<VALUE>",
        "CAD_MCP_SQL_MAX_ROWS": "<VALUE>",
        "CAD_MCP_TOOL_PROFILE": "<VALUE>",
        "CAD_MCP_TOOLS_EXCLUDE": "<VALUE>",
        "CAD_MCP_TOOLS_INCLUDE": "<VALUE>",
        "CAD_MCP_SQL_TIMEOUT_MS": "<VALUE>",
        "CAD_MCP_STRICT_PREFLIGHT": "<VALUE>",
        "CAD_MCP_SQL_MAX_RESULT_BYTES": "<VALUE>",
        "CAD_MCP_PREFLIGHT_CHECK_AUTOCAD": "<VALUE>",
        "CAD_MCP_PREFLIGHT_REQUIRE_VISUAL": "<VALUE>"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-lokmenower-best-cad-mcp": {
      "command": "uvx",
      "args": [
        "best-cad-mcp"
      ],
      "env": {
        "CAD_MCP_WORKSPACE_ROOT": "<VALUE>",
        "CAD_MCP_LOG_PATH": "<VALUE>",
        "CAD_MCP_LOG_LEVEL": "<VALUE>",
        "CAD_MCP_SQL_MAX_ROWS": "<VALUE>",
        "CAD_MCP_TOOL_PROFILE": "<VALUE>",
        "CAD_MCP_TOOLS_EXCLUDE": "<VALUE>",
        "CAD_MCP_TOOLS_INCLUDE": "<VALUE>",
        "CAD_MCP_SQL_TIMEOUT_MS": "<VALUE>",
        "CAD_MCP_STRICT_PREFLIGHT": "<VALUE>",
        "CAD_MCP_SQL_MAX_RESULT_BYTES": "<VALUE>",
        "CAD_MCP_PREFLIGHT_CHECK_AUTOCAD": "<VALUE>",
        "CAD_MCP_PREFLIGHT_REQUIRE_VISUAL": "<VALUE>"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-lokmenower-best-cad-mcp": {
      "command": "uvx",
      "args": [
        "best-cad-mcp"
      ],
      "env": {
        "CAD_MCP_WORKSPACE_ROOT": "<VALUE>",
        "CAD_MCP_LOG_PATH": "<VALUE>",
        "CAD_MCP_LOG_LEVEL": "<VALUE>",
        "CAD_MCP_SQL_MAX_ROWS": "<VALUE>",
        "CAD_MCP_TOOL_PROFILE": "<VALUE>",
        "CAD_MCP_TOOLS_EXCLUDE": "<VALUE>",
        "CAD_MCP_TOOLS_INCLUDE": "<VALUE>",
        "CAD_MCP_SQL_TIMEOUT_MS": "<VALUE>",
        "CAD_MCP_STRICT_PREFLIGHT": "<VALUE>",
        "CAD_MCP_SQL_MAX_RESULT_BYTES": "<VALUE>",
        "CAD_MCP_PREFLIGHT_CHECK_AUTOCAD": "<VALUE>",
        "CAD_MCP_PREFLIGHT_REQUIRE_VISUAL": "<VALUE>"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-lokmenower-best-cad-mcp": {
      "command": "uvx",
      "args": [
        "best-cad-mcp"
      ],
      "env": {
        "CAD_MCP_WORKSPACE_ROOT": "<VALUE>",
        "CAD_MCP_LOG_PATH": "<VALUE>",
        "CAD_MCP_LOG_LEVEL": "<VALUE>",
        "CAD_MCP_SQL_MAX_ROWS": "<VALUE>",
        "CAD_MCP_TOOL_PROFILE": "<VALUE>",
        "CAD_MCP_TOOLS_EXCLUDE": "<VALUE>",
        "CAD_MCP_TOOLS_INCLUDE": "<VALUE>",
        "CAD_MCP_SQL_TIMEOUT_MS": "<VALUE>",
        "CAD_MCP_STRICT_PREFLIGHT": "<VALUE>",
        "CAD_MCP_SQL_MAX_RESULT_BYTES": "<VALUE>",
        "CAD_MCP_PREFLIGHT_CHECK_AUTOCAD": "<VALUE>",
        "CAD_MCP_PREFLIGHT_REQUIRE_VISUAL": "<VALUE>"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-lokmenower-best-cad-mcp": {
      "command": "uvx",
      "args": [
        "best-cad-mcp"
      ],
      "env": {
        "CAD_MCP_WORKSPACE_ROOT": "<VALUE>",
        "CAD_MCP_LOG_PATH": "<VALUE>",
        "CAD_MCP_LOG_LEVEL": "<VALUE>",
        "CAD_MCP_SQL_MAX_ROWS": "<VALUE>",
        "CAD_MCP_TOOL_PROFILE": "<VALUE>",
        "CAD_MCP_TOOLS_EXCLUDE": "<VALUE>",
        "CAD_MCP_TOOLS_INCLUDE": "<VALUE>",
        "CAD_MCP_SQL_TIMEOUT_MS": "<VALUE>",
        "CAD_MCP_STRICT_PREFLIGHT": "<VALUE>",
        "CAD_MCP_SQL_MAX_RESULT_BYTES": "<VALUE>",
        "CAD_MCP_PREFLIGHT_CHECK_AUTOCAD": "<VALUE>",
        "CAD_MCP_PREFLIGHT_REQUIRE_VISUAL": "<VALUE>"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
CAD_MCP_WORKSPACE_ROOT No Override the workspace root directory. Default is the current working directory.
CAD_MCP_LOG_PATH No Path to the log file. Default is 'cad_mcp.log' in the workspace.
CAD_MCP_LOG_LEVEL No Logging level (e.g., DEBUG, INFO, WARNING, ERROR). Default is INFO.
CAD_MCP_SQL_MAX_ROWS No Maximum rows returned by execute_query. Default is 1000.
CAD_MCP_TOOL_PROFILE No Select tool profile: 'core', 'lean', or 'full'. Default is 'full' (or 'core' in shipped configs).
CAD_MCP_TOOLS_EXCLUDE No Comma-separated list of tool names to force-hide in the current profile.
CAD_MCP_TOOLS_INCLUDE No Comma-separated list of tool names to force-expose in the current profile.
CAD_MCP_SQL_TIMEOUT_MS No Query timeout in milliseconds. Default is 5000.
CAD_MCP_STRICT_PREFLIGHT No Set to '1' to refuse startup if preflight checks fail.
CAD_MCP_SQL_MAX_RESULT_BYTES No Maximum result size in bytes for execute_query. Default is 1 MB.
CAD_MCP_PREFLIGHT_CHECK_AUTOCAD No Set to '1' to require AutoCAD COM connectivity at startup.
CAD_MCP_PREFLIGHT_REQUIRE_VISUAL No Set to '1' to require visual export support at startup.

Similar servers