AO

altendky/onshape-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

20 stars 5 forks 品質 82 トレンド 30Apache-2.0

Onshape CAD文書へのAI支援アクセス

概要

Onshape CAD文書へのAI支援アクセス Onshape MCPは、AIアシスタントをOnshapeに接続します。 Onshape 用語で望むものを記述 — スケッチを作成し、部分を突き出し、STL をエクスポートし、AI は API 呼び出しを処理する。 これは、すでにOnshapeを知っている人のための助けです, CADスキルの交換ではありません. 初期開発。 興味を抱いている人のために提供されている — 期待どおりに動作しないもの、フィードバックは高く評価されています。 このプロジェクトでは、公開ホストされている MCP サーバーやパブリック OAuth プロキシを提供していません。 ローカルで実行したり、自発的にホストしたり、自分が独自に信頼しているサーバーに接続したりします。 おすすめのパスです。 ローカルサーバーは、会話を介したコンテンツを渡す代わりに、スクリーンショット、エクスポート、および機能スクリプト - マシンに直接ファイルを読み書きできます。 Onshape で独自の OAuth アプリケーションを http://localhost:18338/callback] でリダイレクト URL として作成します.

概要(AI 翻訳)

Onshape CAD文書へのAI支援アクセス

これこそが

Onshape MCPは、AIアシスタントをOnshapeに接続します。 あなたが望むものを記述する Onshape 用語で — スケッチを作成し、部分を突き出し、STL をエクスポートし、AI API 呼び出しを処理する。 これは、すでにOnshapeを知っている人のための助けです, CADスキルの交換はできません。

ステータス

初期開発。 興味ある人のために試してみるのは、 常に期待どおりに機能しない、フィードバックが認められている。

このプロジェクトでは、公開ホストされているMCPサーバーやパブリックOAuthを提供していません。 プロキシ。 ローカルで実行したり、自発的にホストしたり、誰かが操作するサーバーに接続したり あなたは独立して信頼しています。

はじめる

ローカルセットアップ(デスクトップ、OpenCode、またはMCPクライアント)

おすすめのパスです。 ローカルサーバーは、ファイルを読み書きできます。 マシンを直接 — スクリーンショット、エクスポート、および機能スクリプト — ではなく、 会話を通してコンテンツ。

ステップ1: Onshape OAuthアプリケーションを作成する

Onshapeで独自のOAuthアプリケーションを作成する [http://localhost:18338/callback]をリダイレクトURLとして表示します。 クライアント ID を保持し、 [onshape-mcp auth login] でクライアントシークレットが利用できます.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

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:

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

Using the downloaded binary:

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

OpenCode

Add to your opencode.json:

Using npx:

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

Using the downloaded binary:

{
  "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

GitHub で README 全文を見る

インストール

npx --yes onshape-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

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