MCP.so
ログイン

MathCAD MCP Server

@hvkshetry

MathCAD MCP Server について

MCP server for PTC MathCAD Prime control: AI agents manage worksheet operations (open/close/save), set/retrieve values with unit support (scalars, strings, matrices), control calculation states (pause/resume/recalculate), and export to PDF/RTF/XPS formats via Windows COM automati

基本情報

カテゴリ

その他

ランタイム

python

トランスポート

stdio

公開者

hvkshetry

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mathcad": {
      "command": "python",
      "args": [
        "path/to/mathcad-mcp/standalone.py"
      ],
      "env": {
        "MATHCAD_VISIBLE": "true"
      }
    }
  }
}

ツール

28

Get the running MathCAD version

Open a MathCAD worksheet from a file path

Close a specific worksheet

Close all open worksheets

Quit the MathCAD application entirely

Save a worksheet to a specified path and format

Save the worksheet in place

Bring a worksheet to the front

Set a numerical input with optional units

Set a string input

Set a matrix input with optional units

Retrieve the current value of a designated input (real/string/matrix)

Retrieve the current value of a designated matrix input

Recalculate a worksheet

Alias for calculating the worksheet

Pause worksheet calculation

Resume worksheet calculation

Get a designated output value (real, string, or matrix)

Get a numerical output value from a worksheet

Get a numerical output value with conversion to specified units

Get a matrix output from a worksheet

Get a matrix output with unit conversion

Save the worksheet as a PDF file (Mathcad Prime 5+ only)

Save the worksheet as an RTF file

Save the worksheet as an XPS file

Check if a worksheet is read-only

Check if a worksheet has unsaved changes

Force-set the 'modified' status of a worksheet

概要

What is MathCAD MCP Server?

MathCAD MCP Server is a Model Context Protocol (MCP) server that integrates with PTC MathCAD Prime, enabling AI assistants like Claude to open, edit, calculate, and export MathCAD worksheets. It is built for engineers and users who want to automate MathCAD workflows through a standardized interface.

How to use MathCAD MCP Server?

Install Python dependencies with pip install -r requirements.txt, then run python install_standalone.py (optionally with --hide to hide the MathCAD window). This configures Claude Desktop automatically. Alternatively, manually edit Claude Desktop’s configuration file to point to standalone.py with the MATHCAD_VISIBLE environment variable. Once running, the server exposes tools, resources, and prompt templates for worksheet management and calculation tasks.

Key features of MathCAD MCP Server

  • Open, close, and save MathCAD worksheets
  • Set numerical, string, and matrix inputs with units
  • Retrieve calculation results with proper units
  • Pause, resume, and recalculate worksheets
  • Export worksheets as PDF, RTF, and XPS files
  • Query worksheet status, inputs, and outputs via MCP resources

Use cases of MathCAD MCP Server

  • Solve physics problems by setting parameters and extracting outputs
  • Perform engineering analysis (e.g., beam deflection) with automated recalculation
  • Generate reports by exporting worksheets to PDF after calculations
  • Create and manage worksheet templates for standardized workflows
  • Integrate MathCAD with AI assistants for natural language control of calculations

FAQ from MathCAD MCP Server

What are the system requirements for MathCAD MCP Server?

Windows operating system, Python 3.10 or higher, and PTC MathCAD Prime 3.0 or higher installed. COM automation requires Windows.

How do I show or hide the MathCAD application window?

Set the MATHCAD_VISIBLE environment variable to "true" (default) to show the window, or "false" to hide it when starting the server.

What file formats can MathCAD MCP Server export?

PDF (Mathcad Prime 5+ only), RTF, and XPS. Worksheets can also be saved in-place or to a specified path.

How do I resolve unit conversion errors?

Ensure units are compatible (e.g., length cannot convert to mass) and use standard unit symbols like 'm' for meters or 'm/s' for velocity.

Can MathCAD MCP Server run on macOS or Linux?

No. Windows is required because the server uses COM automation to control the MathCAD application.

コメント

「その他」の他のコンテンツ