SolidWorks MCP Server logo

SolidWorks MCP Server

Community
alisamsam

MCP server to automate SolidWorks using Claude AI — 22 tools for parts, sketches & features

Publisheralisamsam
RepositorySolidworks-MCP
LanguagePython
Forks
34
Stars
180
Available tools
0
Transport typestdio
Categories
LicenseMIT
Links
  • Connect tools to AI workflows

    SolidWorks MCP Server exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    180 stars and 34 forks from the linked repository.

SolidWorks MCP Server 🔧

Automate SolidWorks using natural language through Claude AI and the Model Context Protocol (MCP)

License: MIT Python 3.10+ SolidWorks 2025 MCP


🎯 What is This?

SolidWorks MCP Server is a production-ready Model Context Protocol server that lets Claude AI control SolidWorks through natural language. Instead of manually clicking through menus, you simply tell Claude what to design — and it builds it for you.

Example prompts you can use:

  • "Create a new part, draw a circle with radius 30mm and extrude it 15mm"
  • "Add a fillet of 2mm to all edges"
  • "Draw a hexagon and cut extrude it 10mm"
  • "List all features in the current part"

✨ Features

  • ✅ 22 Tools covering parts, sketches, features, and utilities
  • ✅ SolidWorks 2023–2025 Compatible with version-aware API fallbacks
  • ✅ Auto-detects SolidWorks installation via Windows registry
  • ✅ Multi-unit support — mm, cm, inch, meter, foot
  • ✅ Modular architecture — clean, extensible Python package
  • ✅ Robust error handling — cascading fallback chains for COM API
  • ✅ JSON configuration — easy to customize without touching code
  • ✅ Comprehensive logging — full debug output for troubleshooting

🛠️ Available Tools

CategoryToolDescription
Connectionconnect_solidworksConnect to running SolidWorks instance
Connectionget_solidworks_infoGet version and installation info
Documentscreate_new_partCreate a new part document
Documentscreate_new_assemblyCreate a new assembly document
Documentsopen_documentOpen an existing SolidWorks file
Documentsclose_documentClose the active document
Documentssave_documentSave the active document
Documentslist_open_documentsList all open documents
Sketchescreate_sketchCreate a sketch on a plane (Front/Top/Right)
Sketchesclose_sketchExit the active sketch
Sketchesdraw_circleDraw a circle by center and radius
Sketchesdraw_rectangleDraw a rectangle by two corners
Sketchesdraw_lineDraw a line between two points
Sketchesdraw_arcDraw an arc by center and angles
Sketchesdraw_polygonDraw a regular polygon (triangle, hex, etc.)
Featuresextrude_sketchBoss-extrude the active sketch
Featurescut_extrudeCut-extrude to remove material
Featuresfillet_edgesAdd fillets to selected edges
Featureschamfer_edgesAdd chamfers to selected edges
Featureslist_featuresList all features in the model
Utilitiesset_unitsChange default unit (mm/inch/cm/m/ft)
Utilitiesexecute_pythonExecute custom Python code in SW context

📋 Requirements

  • OS: Windows 10 or Windows 11
  • SolidWorks: 2023, 2024, or 2025 (must be installed and licensed)
  • Python: 3.10 or higher
  • Claude: Claude Desktop app or Claude Code

⚡ Quick Start

1. Clone the Repository

bash
git clone https://github.com/alisamsam/solidworks-mcp.git
cd solidworks-mcp

2. Install Dependencies

bash
pip install -r requirements.txt

3. Configure Claude Desktop

Add the following to your claude_desktop_config.json:

Location: C:\Users\YOUR_NAME\AppData\Roaming\Claude\claude_desktop_config.json

json
{
  "mcpServers": {
    "solidworks": {
      "command": "python",
      "args": ["C:\\path\\to\\solidworks-mcp\\solidworks_mcp_server.py"]
    }
  }
}

4. Launch

  1. Open SolidWorks first
  2. Restart Claude Desktop
  3. In Claude, type: "Connect to SolidWorks"
  4. Start designing! 🎉

📁 Project Structure

solidworks-mcp/
├── solidworks_mcp_server.py      # Entry point
├── solidworks_mcp/               # Main package
│   ├── __init__.py              # Package exports (v3.0.0)
│   ├── server.py                # MCP server & tool definitions
│   ├── config.py                # Configuration management
│   ├── config.json              # Default settings
│   ├── constants.py             # SolidWorks constants & enums
│   ├── automation/              # Core automation modules
│   │   ├── base.py             # Connection management
│   │   ├── documents.py        # Document operations
│   │   ├── sketches.py         # Sketch operations
│   │   └── features.py         # Feature operations (SW 2025 fixed)
│   └── utils/                   # Utility modules
│       ├── units.py            # Unit conversion system
│       └── sw_finder.py        # Auto-detect SolidWorks
├── requirements.txt
├── .gitignore
└── DEVELOPMENT_ROADMAP.md       # Future development plan

⚙️ Configuration

Edit solidworks_mcp/config.json to customize behavior:

json
{
  "exe_path": "auto",
  "default_unit": "mm",
  "startup_timeout": 120,
  "log_level": "INFO",
  "default_extrude_depth": 10.0,
  "default_fillet_radius": 2.0
}
SettingDefaultDescription
exe_path"auto"Path to SLDWORKS.exe or auto-detect
default_unit"mm"Default unit for all dimensions
startup_timeout120Seconds to wait for SW startup
log_level"INFO"Logging verbosity

🔧 SolidWorks 2025 Compatibility

This server includes special handling for SolidWorks 2025 API changes:

  • Extrusion fallback chain: FeatureExtrusion3 → FeatureExtrusion2 → FeatureBossSimple
  • Safe property access for feat.Name, feat.GetTypeName2(), IsSuppressed2()
  • stdout capture fix for execute_python tool
  • Registry-based SolidWorks auto-detection

🤝 Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/my-feature
  3. Commit your changes: git commit -m "Add my feature"
  4. Push to the branch: git push origin feature/my-feature
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License — see the LICENSE file for details.


👤 Author

Samsaam Ali Baig


🙏 Acknowledgements


⭐ If this project helps you, please give it a star!

Installation

TypingMind
{
  "mcpServers": {
    "solidworks-mcp": {
      "command": "python",
      "args": [
        "C:\\path\\to\\solidworks_mcp_server.py"
      ]
    }
  }
}

Use SolidWorks MCP Server MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once SolidWorks MCP Server is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add SolidWorks MCP Server as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the SolidWorks MCP Server MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "solidworks-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "mcp"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the SolidWorks MCP Server MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the SolidWorks MCP Server MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use SolidWorks MCP Server to help me with this task?
SolidWorks MCP Server
Sure. I read it.
Here is what I found using SolidWorks MCP Server.

Frequently asked questions

What is the SolidWorks MCP Server MCP server used for?

SolidWorks MCP Server is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use SolidWorks MCP Server MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use SolidWorks MCP Server with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use SolidWorks MCP Server MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With SolidWorks MCP Server connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect SolidWorks MCP Server MCP to TypingMind?

SolidWorks MCP Server runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does SolidWorks MCP Server MCP provide in TypingMind?

SolidWorks MCP Server exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use SolidWorks MCP Server MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If SolidWorks MCP Server requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇