Логотип Onshape MCP

Onshape MCP

Спільнота
altendky

AI-assisted access to your Onshape CAD documents

Видавецьaltendky
Репозиторійonshape-mcp
МоваRust
Форки
4
Зірки
18
Доступні інструменти
7
Тип транспортуstdio
Категорії
ЛіцензіяApache-2.0
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    Onshape MCP надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 7

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 18, форки: 4 — у пов’язаному репозиторії.

Onshape MCP

AI-assisted access to your Onshape CAD documents.

What This Is

Onshape MCP connects your AI assistant to Onshape. You describe what you want in Onshape terms — create a sketch, extrude a part, export an STL — and the AI handles the API calls. This is a helper for people who already know Onshape, not a replacement for CAD skills.

Status

Early development. This is offered for people to try if they're interested — things may not always work as expected, and feedback is appreciated.

This project does not provide a public hosted MCP server or a public OAuth proxy. Run it locally, self-host it, or connect to a server operated by someone you independently trust.

Getting Started

Local Setup (Claude Desktop, OpenCode, or any MCP client)

This is the recommended path. A local server can read and write files on your machine directly — screenshots, exports, and FeatureScript — instead of passing content through the conversation.

Step 1: Create an Onshape OAuth application

Create your own OAuth application in Onshape with http://localhost:18338/callback as a redirect URL. Keep its client ID and client secret available for onshape-mcp auth login. Direct OAuth with these user-owned credentials is the default. API access and secret keys are also supported as an alternative; see Authentication.

Step 2: Get the server binary

Pick whichever is easier for you:

  • npx (requires Node.js): No separate install needed — your MCP client runs npx --yes onshape-mcp and it downloads automatically.
  • Pre-built binary: Download from GitHub Releases and save it somewhere convenient.

Step 3: Configure your MCP client

Tell your MCP client how to launch the server.

Claude Desktop

Add to your Claude Desktop config (claude_desktop_config.json):

Using npx:

json
{
  "mcpServers": {
    "onshape": {
      "command": "npx",
      "args": ["--yes", "onshape-mcp"]
    }
  }
}

Using the downloaded binary:

json
{
  "mcpServers": {
    "onshape": {
      "command": "/path/to/onshape-mcp"
    }
  }
}

OpenCode

Add to your opencode.json:

Using npx:

json
{
  "mcp": {
    "onshape": {
      "type": "local",
      "command": ["npx", "--yes", "onshape-mcp"]
    }
  }
}

Using the downloaded binary:

json
{
  "mcp": {
    "onshape": {
      "type": "local",
      "command": ["/path/to/onshape-mcp"]
    }
  }
}

Other MCP clients

Any MCP client that supports stdio transport can launch this server. The command is either npx --yes onshape-mcp or the path to the downloaded binary.

Step 4: Authenticate and try it

Configure your OAuth client ID and secret, then run npx --yes onshape-mcp auth login when using the npm package, or onshape-mcp auth login when using the downloaded binary. Prefer configuration or ONSHAPE_MCP_AUTH__CLIENT_ID and ONSHAPE_MCP_AUTH__CLIENT_SECRET environment variables. The supported --client-id and --client-secret flags may expose secrets in shell history or process listings. Restart or start your MCP client, then ask your AI assistant to create a new Onshape document with a simple shape.

Experimental Remote Setup

Streamable HTTP remains available for self-hosting, but it is experimental and has not been broadly verified. This project offers no publicly operated endpoint. If an independent operator gives you access, add a placeholder URL such as https://mcp.example.com/mcp to your web MCP client and confirm the operator's trust, access, and retention policies first. ChatGPT connectivity is currently known to fail; see #546.

HTTP transport deliberately disables MCP file reads and writes. File-reference arguments and local output paths therefore cannot access your computer; provide supported request content inline and retrieve remote results through the tool response instead.

Tips

  • Share document URLs. Paste an Onshape document URL into the conversation to give the AI context about what you're working with.
  • Use Onshape vocabulary. Say "extrude," "fillet," "sketch on the top face," etc. The AI has built-in knowledge about Onshape operations.
  • Multiple steps are normal. The AI discovers API endpoints dynamically, so a single request may involve several steps behind the scenes.
  • Be specific when things go wrong. If the AI takes a wrong turn, try describing the Onshape operation more precisely.

What You Can Do

  • Browse and explore your Onshape documents
  • Create new documents and parts
  • Build features: sketches, extrudes, revolves, sweeps, fillets, construction planes
  • Take screenshots of Part Studios from different angles
  • Export parts (STL, STEP, and other formats)
  • Work with FeatureScript — write custom features and debug existing ones

The AI has access to the full Onshape REST API, so anything available through the API is potentially reachable. Results will vary — some operations work more reliably than others at this stage.

Supported Platforms

PlatformArchitecture
Linuxx86_64, aarch64
macOSx86_64, aarch64 (Apple Silicon)
Windowsx86_64

Project Documentation

For development, architecture, and contribution details, see docs/src/project/.

License

Licensed under either of:

at your option.

Встановлення

TypingMind
{
  "mcpServers": {
    "onshape-mcp": {
      "command": "npx",
      "args": [
        "--yes",
        "onshape-mcp"
      ]
    }
  }
}

Доступні інструменти

  • onshape_mcp_auth_status

    Returns authentication status (valid/invalid/expired/not_configured), last check time, and a human-readable message

  • onshape_mcp_auth_login

    Start an OAuth authorization flow. Returns a URL to open in your browser. After authorizing, the server automatically detects the new tokens.

  • onshape_api_search

    Find Onshape API endpoints by keyword or filter. Returns brief summaries (endpoint ID, method, path template, one-line description). Use this to discover available endpoints before calling onshape_api_explain for details.

  • onshape_api_explain

    Get full details for a specific Onshape API endpoint. Returns parameter schemas, types, required/optional flags, request/response schemas. Use the endpoint's operationId from onshape_api_search results.

  • onshape_api_call

    Invoke an Onshape API endpoint. Provide the operationId and structured parameters (path_params, query_params, body). Path parameters are named fields (e.g., {"did": "abc123"}), not baked into a URL string. Returns the API response.

  • onshape_list_resources

    List available resource documents with practical Onshape API guidance. Returns URIs, titles, and descriptions. Use onshape_read_resource to read a specific resource by URI.

  • onshape_read_resource

    Read a specific resource document by URI. Returns the full markdown content with practical guidance for Onshape API usage. Use onshape_list_resources to discover available URIs.

Використовуйте MCP Onshape MCP з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення Onshape MCP ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте Onshape MCP як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP Onshape MCP.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "onshape-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "onshape-mcp"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для Onshape MCP, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для Onshape MCP.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через Onshape MCP?
Onshape MCP
Звісно. Я це прочитав.
Ось що я знайшов за допомогою Onshape MCP.

Поширені запитання

Для чого використовується сервер MCP Onshape MCP?

Onshape MCP — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP Onshape MCP з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати Onshape MCP з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP Onshape MCP із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши Onshape MCP, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP Onshape MCP до TypingMind?

Onshape MCP працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP Onshape MCP у TypingMind?

Onshape MCP надає інструменти MCP (7), які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP Onshape MCP?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо Onshape MCP потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

shaded-views

Rendering Part Studio images via the API, critical `pixelSize` parameter

sketch-constraints

How constraints reference entities, correct JSON format

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇