Claude Code MCP Setup¶
This guide shows complete beginners how to connect Claude Code to the SolidWorks MCP server.
What This Means¶
If you have never used Claude Code before, here is the simple version:
- Claude Code is a coding tool that runs in the terminal.
- MCP lets Claude Code connect to external tool servers.
- The SolidWorks MCP server gives Claude Code access to SolidWorks-related tools.
Once this is configured, Claude Code can discover and use the SolidWorks tools exposed by this project.
Before You Start¶
Make sure these items are already done:
- You installed Claude Code.
- You can run the
claudecommand in a terminal. - You installed this project and its dependencies.
- If you want real SolidWorks automation, SolidWorks is installed on Windows.
If you have not done that yet, start with the Installation Guide.
Choose the Setup That Matches You¶
| Your setup | What it is for | Recommended MCP type |
|---|---|---|
| Windows only | Real SolidWorks automation on one machine | stdio |
| Linux / WSL only | Mock-mode development and testing | stdio |
| Linux / WSL client + Windows host | Real SolidWorks on Windows, Claude Code on Linux/WSL | http |
Step 1: Open a Terminal in This Project¶
Claude Code project-scoped MCP servers are easiest for beginners because the configuration can live in the project itself.
- Open a terminal.
- Change into this repository folder.
- Confirm the
claudecommand works.
Screenshot to add
Capture the terminal showing the repository path and a successful claude --version command.
Include:
- The current working directory
- The command that was run
- The version output
Step 2: Add the SolidWorks MCP Server¶
Option A: Windows only (recommended)¶
Use this when Claude Code, the MCP server, and SolidWorks all run on the same Windows machine.
With uv installed:
Setup runs claude mcp add --scope user solidworks, with uvx by its full path. If claude isn't on your PATH, it prints that command for you to run. By hand, it is:
Open SolidWorks before starting a Claude Code session, then run /mcp to check that solidworks is connected.
Option B: Linux / WSL only¶
Use this for mock-mode development, docs, and tests.
This path does not control the real SolidWorks desktop app.
Option C: Linux / WSL client + Windows host¶
- Start the MCP server on the Windows host:
- On the Linux / WSL side, add the remote server:
Replace YOUR-WINDOWS-IP with the actual IP address of the Windows machine.
Screenshot to add
Capture the terminal right after claude mcp add ... succeeds.
Include:
- The exact add command that was used
- The server name solidworks
- The success message from Claude Code
Step 3: Verify the Server Was Added¶
Run:
You should see solidworks in the list.
You can also inspect the server details:
If you used --scope project, Claude Code may also create or update a .mcp.json file in the project root.
Screenshot to add
Capture the output of claude mcp list.
Include:
- The server name
- The transport type (stdio or http)
- Any status information shown by Claude Code
Step 4: Check the Server Inside Claude Code¶
Start Claude Code in the project:
Then type:
This opens the MCP server list inside Claude Code.
Look for solidworks and confirm it is available.
Screenshot to add
Capture the /mcp screen in Claude Code.
Include:
- The solidworks server name
- Its status
- Any available actions such as authenticate, refresh, or remove
Step 5: Try a Safe Beginner Prompt¶
Start with a simple prompt that does not change anything:
List the SolidWorks tools currently available from MCP.Explain what the SolidWorks MCP server can do for a beginner.Show me the drawing-related tools from the SolidWorks server.
If you are on a real Windows SolidWorks setup, you can then try:
Create a new part and explain each step before using any tool.Create a simple hole tutorial workflow and describe what happened.
Step 6: Understand Where Claude Code Saves MCP Config¶
Claude Code can save MCP servers in different places:
--scope local: private to you for this project--scope project: shared in the repository through.mcp.json--scope user: available across projects for your user account
For beginners, --scope project is the easiest to understand because the config stays with the project.
Troubleshooting¶
claude command is not found¶
Claude Code is not installed correctly or is not on your PATH yet.
Tools return blank images or simulated data¶
The server is running in mock mode — --real is missing from the args.
Remove and re-add the server with the corrected command from Option A above,
or edit .mcp.json directly to add "--real", "--year", "2026" after the
.ps1 path, then restart Claude Code.
The MCP server was added, but it does not start¶
Common causes:
- The
.venvenvironment is missing or incomplete. - The project dependencies are not installed.
- SolidWorks is not open (required when
--realis set). makeis not installed on Linux / WSL.- The Windows host server is not actually running for the HTTP setup.
Claude Code cannot reach the Windows host¶
Check these items:
- The Windows machine is running the remote MCP server.
- The Windows firewall allows the chosen port.
- You used the correct Windows IP address.
- You did not leave
localhostin the command when Claude Code is running on a different machine.
I want to remove the server and try again¶
Use:
Or let setup do it: uvx solidworks-mcp-python setup --client claude-code --remove. Then re-run the correct claude mcp add ... command, or setup.
Optional: What the Project .mcp.json File Looks Like¶
If you use --scope project, Claude Code creates a .mcp.json file in the
repository root. Setup uses user scope instead, so the server is available
in every folder. Don't keep both: the tools would load twice. A stdio
example for real SolidWorks automation:
{
"mcpServers": {
"solidworks": {
"command": "C:\\path\\to\\SolidworksMCP-python\\.venv\\Scripts\\solidworks-mcp.exe",
"args": []
}
}
}
Add "--mock" to args for simulated data without SolidWorks.
A typical remote HTTP example looks like this:
Good Next Steps¶
- If you have not already done it, set up VS Code MCP too.
- Use the Quick Start guide for beginner-friendly examples.
- Use Platform and Connectivity if your editor and SolidWorks are on different machines.