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

Local serverstdioPython

What is the 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. That is what the mathcad mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

A Model Context Protocol (MCP) server that provides integration with PTC MathCAD Prime, allowing AI assistants like Claude to interact with MathCAD worksheets through a standardized interface.

  • Worksheet Management — Open, close, and save MathCAD worksheets
  • Input Control — Set numerical values, strings, and matrices with units
  • Output Access — Retrieve calculation results with proper units
  • Calculation Management — Pause, resume, and recalculate worksheets
  • Export Options — Save worksheets as PDF, RTF, and XPS files

The tools it exposes

The server publishes 14 tools. What each one is for:

  • list_mathcad_version — Get the running MathCAD version
  • open_worksheet — Open a MathCAD worksheet from a file path
  • close_worksheet — Close a specific worksheet
  • close_all_worksheets — Close all open worksheets
  • quit_mathcad — Quit the MathCAD application entirely
  • save_worksheet — Save a worksheet to a specified path and format
  • save_worksheet_inplace — Save the worksheet in place
  • activate_worksheet — Bring a worksheet to the front
  • set_real_input — Set a numerical input with optional units
  • set_string_input — Set a string input
  • set_matrix_input — Set a matrix input with optional units
  • get_input — Retrieve the current value of a designated input (real/string/matrix)

Getting it running

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client.

What it needs from you

Configuration is passed through the environment: MATHCAD_VISIBLE. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Windows operating system (required for MathCAD COM automation) - Python 3.10 or higher - PTC MathCAD Prime 3.0 or higher installed - Dependencies: MathcadPy, pywin32, and MCP Python SDK (see requirements.txt)

How it compares

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. MathCAD's toolset — list_mathcad_version, open_worksheet, close_worksheet and 11 more — is a fair guide to whether it matches your workflow. It is maintained by hvkshetry; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch MathCAD.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
list_mathcad_versionGet the running MathCAD version
open_worksheetOpen a MathCAD worksheet from a file path
close_worksheetClose a specific worksheet
close_all_worksheetsClose all open worksheets
quit_mathcadQuit the MathCAD application entirely
save_worksheetSave a worksheet to a specified path and format
save_worksheet_inplaceSave the worksheet in place
activate_worksheetBring a worksheet to the front
set_real_inputSet a numerical input with optional units
set_string_inputSet a string input
set_matrix_inputSet a matrix input with optional units
get_inputRetrieve the current value of a designated input (real/string/matrix)
get_matrix_inputRetrieve the current value of a designated matrix input
calculate_worksheetRecalculate a worksheet

Configuration

  • Windows operating system (required for MathCAD COM automation) - Python 3.10 or higher - PTC MathCAD Prime 3.0 or higher installed - Dependencies: MathcadPy, pywin32, and MCP Python SDK (see requirements.txt)
VariableDescriptionRequired
MATHCAD_VISIBLEConfiguration value read at startup.Optional

Example prompts to try

  • Use MathCAD to list mathcad version.
  • Use MathCAD to open worksheet.
  • Use MathCAD to close worksheet.

Frequently asked questions

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