Skip to main content
Glama
kilwizac

SolidWorks API MCP Server

by kilwizac

SolidWorks API MCP Server

TypeScript MCP server that provides search and lookup access to the SolidWorks API documentation corpus in this repository.

Features

  • Full-text and keyword search over SolidWorks API docs.

  • Interface/member lookup for methods, properties, and events.

  • Enum value lookup from JSON or markdown sources.

  • Related member and example discovery helpers.

  • Stdio MCP JSON-RPC transport for local and Claude Desktop usage.

Related MCP server: solidworks-mcp

Runtime and Tooling

  • Runtime: Bun + TypeScript

  • MCP transport: stdio (stdin/stdout)

  • Test framework: Vitest

  • Type checking: TypeScript compiler (tsc)

This repository uses Bun-only JavaScript tooling:

  • Install dependencies: bun install

  • Run package scripts: bun run <script>

  • Run one-off CLIs: bunx <tool>

Quick Start

  1. Install dependencies:

bun install
  1. Start the MCP server:

bun run start

Data Root Configuration

By default the server reads from:

<repo>/solidworks-api

You can override this with SW_API_DATA_ROOT.

PowerShell:

$env:SW_API_DATA_ROOT = "C:\path\to\solidworks-api"
bun run start

Claude Desktop Configuration

Add an MCP server entry to claude_desktop_config.json.

Windows example:

{
  "mcpServers": {
    "solidworks-api": {
      "command": "bun",
      "args": [
        "run",
        "C:\\path\\to\\solidworks-api-mcp\\server\\solidworks_mcp_server.ts"
      ]
    }
  }
}

Restart Claude Desktop after updating the config.

Available Tools

The stdio MCP server exposes these tool names:

  • solidworks_lookup_method

  • solidworks_search_api

  • solidworks_get_interface_members

  • solidworks_get_enum_values

  • solidworks_find_related

  • solidworks_get_examples

Development

Run tests:

bun run test

Run type checking:

bun run typecheck

Project Structure

solidworks-api-mcp/
|- server/
|  |- solidworks_mcp_server.ts
|  |- solidworks_server_shared.ts
|  `- types.ts
|- solidworks-api/
|  |- _index.json
|  |- _search_index.json
|  `- json/
|- tests/
|  |- performance.test.ts
|  `- regression-contracts.test.ts
|- package.json
|- tsconfig.json
`- README.md

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI tools to search and explore API documentation from Apidog projects or OpenAPI/Swagger specifications, providing endpoint details, schemas, and project statistics through natural language queries.
    628 npm
    1
    ISC
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables LLMs to automate SolidWorks (open/save parts, modify dimensions, export STEP) via COM, and optionally generate geometry using build123d code-CAD with PNG previews.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    Enables natural language interaction with ServiceNow Fluent SDK commands, API specifications, and development resources for AI-assisted environments.
    17
    325 npm
    31
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI (e.g., Claude) to control SolidWorks via natural language, automating part creation, sketching, and feature operations through the Model Context Protocol.
    1
    MIT