pointwise-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@pointwise-mcp Import wing.step, run a T-Rex volume mesh, then export to OpenFOAM"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
pointwise-mcp
An MCP server that lets Claude drive Cadence Fidelity Pointwise through Glyph. It covers CAD import, automatic surface meshing, T-Rex boundary layers, the volume mesh, quality checks and OpenFOAM export.
You need your own licensed installation of Fidelity Pointwise. This is an independent project, not affiliated with or endorsed by Cadence; Fidelity Pointwise and Glyph are Cadence trademarks.
It has two backends:
batch (default): each tool call writes a Glyph script into its own run folder, runs Pointwise's headless
tclsh.exeon it with a timeout, and parses the structured result. State passes between steps through.pwproject files.live: the same scripts go to a running Pointwise GUI through its Glyph Server (TCP, port 2807), so you can watch each step happen.
Tested on Windows 11 with Fidelity Pointwise 2023.2.2 (Glyph package 8.23.2, Tcl 8.5.7) and Python 3.13.15. Other Pointwise versions have not been tested.
Install
cd pointwise-mcp
py -3.13 -m venv .venv
.venv\Scripts\python -m pip install -e ".[dev]"
.venv\Scripts\python -m pointwise_mcp --health--health finds tclsh.exe, shows which CDS_LIC_FILE value it will pass and where that
value came from, and runs a small Glyph probe. It exits 1 if the probe fails.
Finding Pointwise
The server looks for tclsh.exe in this order:
POINTWISE_MCP_TCLSH. This can also be a.cmd/.batwrapper.The registry key
HKLM\Software\Pointwise\<CurrentVersion>\tclsh, which the installer writes.C:\Program Files\Cadence\FidelityPointwise2023.2.2\win64\bin\tclsh.exe.
Licence: CDS_LIC_FILE
Pointwise checks out its licence from your licence server, which it finds through CDS_LIC_FILE
(port@host, for example set as a machine-level Windows variable). A process only inherits the
variables that existed when it started. A Claude Desktop that was already running when the
variable was defined has no CDS_LIC_FILE, and neither does anything it launches. The server
therefore sets CDS_LIC_FILE on every tclsh it starts. It takes the value from the first of
these that is set:
POINTWISE_MCP_CDS_LIC_FILE, an explicit override.CDS_LIC_FILEin the server's own environment, for example from theenvblock of the MCP config.The user environment in the registry (
HKCU\Environment).The machine environment in the registry (
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment).
pw_health reports the value and its source (cds_lic_file, cds_lic_file_source). If the
checkout fails, Pointwise prints an LMC-xxxxx error and exits with code 127. Tools then fail
with kind = "license" and a message like this:
Pointwise licence check-out failed: ERROR (LMC-01902): License call failed. The license server
search path is defined as <none>. Can't find license file. ...
CDS_LIC_FILE passed to tclsh: <none> (source: not set). Check that lmgrd is running ...Claude Desktop entry
Open the config file from Claude Desktop (Settings → Developer → Edit Config), add this inside
"mcpServers" with your own paths and licence server, then quit Claude Desktop fully and reopen it:
"pointwise": {
"command": "C:\\path\\to\\pointwise-mcp\\.venv\\Scripts\\python.exe",
"args": ["-m", "pointwise_mcp"],
"env": {
"CDS_LIC_FILE": "port@your-licence-server",
"POINTWISE_MCP_WORKDIR": "C:\\path\\to\\pointwise_mcp_runs"
}
}Settings (environment variables)
Variable | Default | Meaning |
| from the registry | Licence server passed to tclsh |
| from the registry | Path to Pointwise's |
|
| Where run folders are created ( |
|
| Default per-call timeout in seconds of awake time (see Timeouts); tools also take |
|
| Default backend ( |
|
| Concurrent tclsh runs; each one checks out a licence seat |
|
| Live Glyph Server |
|
| WSL distro for |
|
| OpenFOAM environment inside WSL |
Related MCP server: openfoam-mcp
Tools
Tool | What it does |
| Finds tclsh, reports the licence value and its source, runs a probe (version, Glyph package, CAE solvers incl. OpenFOAM). |
| Imports STEP/IGES (or any format Pointwise reads) into a new |
| Automatic Surface Mesh ( |
| Sets up the boundary layer. If there is no block yet, it creates one: |
| Sets interior options (Delaunay or Voxel, decay, edge lengths, voxel sizes) and runs the unstructured solver's Initialize, which also grows the T-Rex layers. Returns cell counts by type and the number of T-Rex layers reached. |
| Runs Pointwise examine functions and reports min/max/average and the count outside limits. Defaults: max included angle >175°, equiangle skew >0.9, non-orthogonality >70°, volume ratio >20, aspect ratio, Jacobian <0, volume <0. Also reports per-block T-Rex counts. Does not change the project. |
| Sets the CAE solver to OpenFOAM, maps boundary domains to patches by pattern (first match wins) and exports to |
| Batch: re-saves a project under a new name. Live: saves the GUI session. |
| Reports what a project contains: models and quilts, domains, blocks with T-Rex stats and solver attributes, BCs, T-Rex conditions and the CAE solver. Live: loads the project into the GUI. |
| Guarded escape hatch: runs Glyph/Tcl and returns what it |
How the tools behave
Projects. Batch tools read
projectand writesave_as. Ifsave_asis omitted, the result replacesprojectin place. Pointwise first saves into the run folder, and the file is moved overprojectonly after the step succeeds, so a failed step leaves the input unchanged. Usesave_aswhenever you want to keep the previous stage.Live backend.
projectis optional and the tools act on the open session. A tool that would replace that session (load or import) refuses if it has unsaved changes, unless you passdiscard_unsaved=true.Names and patterns. Entity selection uses Tcl glob patterns on Pointwise names, e.g.
["wing*", "*-dom"]. Naming after each step:quilts keep the names of the CAD faces;
domains are
<quilt>-dom;Automatic Volume Mesh adds
farfield-xmin…farfield-zmaxandsymmetry-<side>.
Run folders. Every call keeps
script.glf,stdout.log,stderr.log,tclsh.pidandresult.jsonin its run folder (orresponse.txtfor live calls). The response'srun_dirpoints to it.stdout.logis written while Pointwise runs, so you can watch T-Rex layer progress there.result.jsonrecords theoutcome(okor the error kind),elapsed_sandsuspended_s(time the computer was asleep).Errors. A failed call is an MCP tool error whose text starts with
kind=<kind>:. The kinds arelicense,timeout,cancelled,args,import,topology,init,export,unsaved,glyph,live,launchandcrash. The message includes Pointwise's last warnings or output and the run folder.
Timeouts, sleep and leftover processes
timeout_secondslimits one Pointwise run and counts only time the computer is awake. When it expires, Pointwise and everything it started are stopped, and the call fails withkind=timeout, the last lines Pointwise printed, and the run folder.Sleep. Nothing runs while the computer sleeps or hibernates, and that includes this server's timer. Closing a laptop lid suspends the run. When the machine wakes, the run carries on with the timeout budget it had left. The response (
suspended_sand a warning) or the error says how long it slept. To have a long run progress unattended, keep the machine awake. Your MCP client may still have its own wall-clock limit.A call that is queued behind another run gives up after
timeout_secondstoo, saying it never started. Cancelling a call stops Pointwise.No orphans. Each batch
tclshis in a Windows Job Object with kill-on-close. If the server process is terminated or the client app restarts, Windows endstclshtoo, so it cannot keep holding a licence.Live backend. A timeout or cancel only stops the server waiting. The command keeps running in the Pointwise GUI until it finishes or you cancel it there.
pw_run_glyph guard
The code runs in a Tcl safe interpreter. That means core Tcl only, with no exec, open,
file, socket, load, source, cd, glob, exit or interp invokehidden. Calls to
pw::…/pwu::… and Glyph object commands are forwarded to Pointwise, except pw::Script and
pw::Application exit, which are refused. In batch mode your puts lines are also echoed to
stdout.log as they happen (prefixed | ), so a hung script shows how far it got. There is
no shell access. Pointwise's own file
commands still work, for example pw::Database export. Glyph options that write a caller
variable, such as -reject var, write into the Glyph interpreter, not your code.
Example: half model with a y=0 symmetry plane, through OpenFOAM
Example input: a half aircraft STEP in mm, cut at y=0, with the body in +y. The settings below aim at y+≈1 with a 25 µm first layer. They are a starting point, not a validated recipe: check the quality for your own geometry. The same chain passes on the smoke-test half box (see Tests).
Import in metres:
pw_import_cad {"cad_file": "C:/cases/model/half.stp", "save_as": "C:/cases/model/stage_01_cad.pw", "units": "Meters"}Read
data.summary.models[].quiltsto get the quilt names used by the filters in step 2.Surface mesh, with finer edges along the wing and tail edges:
pw_surface_mesh {"project": "C:/cases/model/stage_01_cad.pw", "save_as": "C:/cases/model/stage_02_surf.pw", "max_edge_spacing": 0.05, "min_edge_spacing": 0.0005, "curvature_resolution_angle": 10, "boundary_hard_angle": 30, "edge_refinement": [{"name": "lifting_edges", "quilts": ["*wing*", "*tail*"], "spacing_factor": 0.5}]}Farfield plus symmetry plane plus T-Rex settings.
symmetry: "auto"detects the open loop on y=0 and createssymmetry-ymin.["ymin"]forces it.pw_trex {"project": "C:/cases/model/stage_02_surf.pw", "save_as": "C:/cases/model/stage_03_trex.pw", "first_layer_height": 2.5e-5, "growth_rate": 1.2, "max_layers": 40, "full_layers": 0, "collision_buffer": 2.0, "max_included_angle": 170, "cell_type": "TetPyramidPrismHex", "farfield": {"shape": "Box", "symmetry": "auto", "length": [40, 20], "width": [20, 20], "height": [20, 20]}}By default,
symmetry-*domains become T-Rex Match,farfield-*become Off, and every other domain becomes Wall. Checkdata.boundaries.Volume:
pw_volume {"project": "C:/cases/model/stage_03_trex.pw", "save_as": "C:/cases/model/stage_04_vol.pw", "timeout_seconds": 14400}data.block.trex_layers,trex_prismsand the other counts show what T-Rex reached.Quality:
pw_examine {"project": "C:/cases/model/stage_04_vol.pw"}. Look atdata.flagged.OpenFOAM:
pw_export_openfoam {"project": "C:/cases/model/stage_04_vol.pw", "case_dir": "C:/cases/model/of_case", "run_checkmesh": true}The default patches are
symmetry(symmetryPlane),farfield(patch) andwall(wall). To split the walls into named patches, pass your own ordered list, e.g.[{"name":"wing","type":"wall","domains":["*wing*"]}, {"name":"symmetry","type":"symmetryPlane","domains":["symmetry-*"]}, {"name":"farfield","type":"patch","domains":["farfield-*"]}, {"name":"fuselage","type":"wall","domains":["*"]}].data.checkmeshholds the verdict (mesh_ok,failed_checks), cell counts, the maximum non-orthogonality and skewness, and the path tolog.checkMesh.
Live backend (Glyph Server)
In the Pointwise GUI, open Script → Glyph Server…, choose Active and note the port (default 2807). Pointwise picks a random port if 2807 is busy. Set an authentication string if you like.
If those differ from the defaults, set
PWI_GLYPH_SERVER_PORTandPWI_GLYPH_SERVER_AUTHin the MCPenvblock.Call tools with
"backend": "live", or setPOINTWISE_MCP_BACKEND=live.pw_healthwithcheck_live: truetests the connection.
Pointwise lets only one client connect at a time, and it runs commands only when no GUI task panel is open. If a live call times out, the command may still be running in the GUI.
The wire protocol follows Cadence's GlyphClientPython (glyph_client.py): a 4-byte big-endian
length, an 8-byte space-padded message type, then the payload. The exchange is AUTH → READY,
EVAL → OK/ERROR, and PING. The automated tests drive a headless tclsh Glyph Server
(pw::Script processServerMessages). Against the 2023.2.2 GUI the live backend has been used by
hand for a full T-Rex mesh of a half aircraft model.
Pointwise behaviour found while building this (2023.2.2)
Import units.
FileUnitsis the unit the data ends up in. A mm STEP imported withMeterscomes in with 0–1 m coordinates;FromFilekeeps the file's numbers.Symmetry plane names. In Manual mode,
setSymmetryPlane1 -Yput the plane on the body's y-max face.+Yput it at y=0 (the body's y-min side). Automatic mode reports that same correct plane as-Y. To avoid confusion, this server takes side names (ymin, …), which match thesymmetry-ymindomain Pointwise creates.Automatic Volume Mesh defaults. It sets
TRexMaximumLayers=1000(grow until isotropic),TRexFullLayers=1and cell typeAllAndReducePyramids.pw_trexsetsfull_layers=0by default, which is Pointwise's own advice for symmetry planes and sharp edges.Examine limits.
pw::Examinecounts cells outside the range limits only if the limits are set beforeexamine.OpenFOAM in WSL.
etc/bashrcreads the caller's"$@"as config overrides, so the checkMesh wrapper clears the positional arguments before sourcing it. Otherwise bash crashes with exit code 139.Smoke-test mesh quality. The half box has sharp 90° edges. After 12 T-Rex layers, max non-orthogonality is 88° and about 7–8k faces are above 70°. checkMesh still reports "Mesh OK" because severe non-orthogonality is only a warning.
Automatic Surface Mesh crash. On one aircraft model,
pw_surface_mesh(pw::DatabaseMesher) ended in an access violation. Building the domains withpw::DomainUnstructured createOnDatabasethroughpw_run_glyphworked.Refinement sources on the symmetry plane. With T-Rex push attributes on (the default), initialising the volume re-meshes the Match domain without sources, so a wake box is lost there. What worked:
pw_trexwithpush_attributes: false; set the symmetry domain'sTRexMaximumLayersto the block's value; re-initialise just that domain (pw::Application begin UnstructuredSolver); then runpw_volume. Check the spacing afterpw_volume, not before it.
Tests
.venv\Scripts\python -m pytestThe unit tests need no Pointwise. They use Python's own Tcl (tkinter) and a fake tclsh
(tests/fake_tclsh.py), and they cover:
parameter quoting, round-tripped through a real Tcl parser with injection strings;
the Glyph library run against
pw::stubs, including the safe-interpreter guard;output parsing and licence-error detection;
timeouts and cancellation: partial output, the whole process tree killed, no orphan when the server is terminated, sleep not counted, queued calls, and the live backend with a server that stalls or trickles;
in-place saves that leave the input unchanged on failure;
the Glyph Server protocol against an in-process fake server;
checkMesh and boundary parsing;
an end-to-end MCP stdio session.
The real smoke test needs licensed Pointwise. It also runs checkMesh when WSL OpenFOAM is present:
$env:POINTWISE_MCP_REAL = "1"
$env:POINTWISE_MCP_SMOKE_DIR = "$PWD\smoke_outputs" # optional: keep files
.venv\Scripts\python -m pytest tests\test_smoke_real.py -vIt writes a 1 m × 0.25 m × 0.2 m box as STEP in mm, open at y=0
(python -m pointwise_mcp.testgeom writes such boxes), then:
imports it in metres;
surface-meshes it with an edge filter;
creates the farfield and the automatic y=0 symmetry plane;
grows 12 T-Rex layers from a 0.1 mm first layer;
builds the volume, examines it and exports to OpenFOAM;
runs checkMesh, which must report Mesh OK. Last run: about 507k cells, 186k prisms.
tests\test_timeouts_real.py checks, with real Pointwise, that a busy-loop through the stdio
server and a timeout inside a volume step both return kind=timeout and leave no tclsh, that
the project file is unchanged, and that terminating the server mid-run leaves nothing behind.
The smoke test also covers:
IGES import;
bad inputs;
the live backend on a headless Glyph Server;
the stdio server running against real Pointwise.
Layout
src/pointwise_mcp/
__main__.py CLI: stdio server, --health, --describe
tools.py MCP tool definitions and parameter docs
service.py Tool logic: paths, saves, OpenFOAM post-steps
backends.py Batch (tclsh subprocess) and live (Glyph Server) runners, error mapping
procs.py Awake-time clock and the kill-on-close process group
glyph/pwmcp.tcl Glyph library: every tool's Tcl, JSON output, run_glyph sandbox
tcl.py Parameter quoting and script assembly
output.py Parses tagged output, Pointwise messages and LMC errors
glyph_server.py Glyph Server wire-protocol client
openfoam.py Case skeleton, boundary parser, checkMesh in WSL
config.py tclsh, licence and settings discovery
testgeom.py STEP box writer used by the smoke test
tests/ Unit tests, fake tclsh, real smoke testAcknowledgements
Project structure modelled on openvsp-mcp (MIT). The Glyph Server client follows the wire format of Cadence's GlyphClientPython.
Available Tools
10 toolspw_examineARead-onlyIdempotent
Measure mesh quality with Pointwise's examine functions (min/max/average and counts outside limits). Default set: BlockMaximumAngle>175, BlockSkewEquiangle>0.9, BlockCellNonOrthogonality>70, BlockVolumeRatio>20, BlockAspectRatio, BlockJacobian<0, BlockVolume<0, plus T-Rex layer and cell-type counts per block. Does not change the project (writes only a run log folder).
Inputs: blocks, backend, domains, metrics, +3 more. Returns: object
pw_export_openfoamADestructive
Export the volume mesh with CAE solver OpenFOAM to <case_dir>/constant/polyMesh. Boundary domains map to OpenFOAM patches by name pattern (first match wins). Default patches: symmetry-* -> 'symmetry' (symmetryPlane), farfield-* -> 'farfield' (patch), everything else -> 'wall' (wall). Unmatched domains fail the export unless unassigned='allow'. Optionally writes minimal system/ files and runs checkMesh in WSL.
Inputs: case_dir (required), blocks, backend, patches, +10 more. Returns: object
pw_healthARead-onlyIdempotent
Check that Pointwise can run: finds tclsh.exe, shows which CDS_LIC_FILE value is passed to it and where it came from, then runs a tiny Glyph probe (version, Glyph package, CAE solvers incl. OpenFOAM). A licence failure shows up as license_ok=false with the LMC error. check_live also pings the GUI's Glyph Server.
Inputs: check_live. Returns: object
pw_import_cadADestructive
Import a CAD file (STEP or IGES; other formats Pointwise reads also work) into a new Pointwise project and save it as .pw. Converts units on import, can scale, and assembles quilts into models when the file has none. Returns models, quilt names, extents and import warnings. Quilt names are what pw_surface_mesh filters match.
Inputs: cad_file (required), scale, units, append, +8 more. Returns: object
pw_loadARead-onlyIdempotent
Load a .pw project and report what is in it: database models and quilts, domains with cell counts, blocks with T-Rex stats and solver attributes, boundary and T-Rex conditions, CAE solver. Batch: read-only inspection. Live: loads it into the GUI (or, without project, reports the open session).
Inputs: limit, backend, project, discard_unsaved, +1 more. Returns: object
pw_run_glyphADestructive
Escape hatch: run Glyph/Tcl code for things the other tools do not cover. The code runs in a Tcl safe interpreter: Tcl core plus pw::/pwu:: commands and Glyph objects; no exec, open, file, socket, load, source, cd or exit, and pw::Script is blocked, so there is no shell access. Returns everything the code puts and its last result. Optionally loads project first and saves to save_as after.
Inputs: code (required), backend, project, save_as, +2 more. Returns: object
pw_saveADestructive
Save a project to a .pw file. Batch: re-saves project under save_as (a copy written by Pointwise). Live: saves the session open in the GUI.
Inputs: save_as (required), backend, project, discard_unsaved, +1 more. Returns: object
pw_surface_meshADestructive
Mesh the CAD surfaces with Pointwise's Automatic Surface Mesh (pw::DatabaseMesher). Controls global min/max edge length, curvature resolution, growth from edges, feature (hard) angle, per-quilt max spacing and edge refinement filters. Domains are named -dom. By default it first deletes existing grid entities so it can be rerun.
Inputs: models, backend, project, save_as, +14 more. Returns: object
pw_trexADestructive
Set up T-Rex boundary layers on the unstructured volume block. If the project has no block yet, builds one first: farfield.mode 'auto' runs Automatic Volume Mesh (farfield box/sphere/cylinder plus symmetry planes, e.g. ['ymin'] or 'auto' for a half model cut at y=0); 'existing' uses domains that already enclose the volume. Then assigns T-Rex boundary types by domain-name pattern (first match: symmetry->Match, off->Off, adjacent_grid->AdjacentGrid, wall->Wall), sets the first-layer height on every Wall condition and the block's T-Rex attributes. Does not generate cells: run pw_volume next.
Inputs: first_layer_height (required), off, wall, block, +20 more. Returns: object
pw_volumeADestructive
Generate the volume cells: set interior options (Delaunay tets or Voxel hexes, decay, edge lengths) and run the unstructured solver's Initialize on the block, which grows the T-Rex layers set by pw_trex. Creates a block without layers if none exists. Returns cell counts by type and T-Rex layers reached. Can take minutes on big meshes.
Inputs: block, backend, project, save_as, +15 more. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool maps to a distinct stage or concern in the Pointwise workflow: health check, CAD import, surface meshing, T-Rex setup, volume generation, quality examination, export, save/load, and an explicitly scoped escape hatch. The closest pair, pw_trex and pw_volume, is clearly separated as setup versus cell generation, and pw_save versus pw_load is unambiguous. There is no realistic misselection risk.
All tools use a consistent pw_ prefix and snake_case, making the family immediately recognizable. Most names are action-oriented, though a few (pw_health, pw_trex, pw_volume) are noun/domain labels rather than strict verb_noun forms. The overall convention is still highly predictable.
Ten tools is well-scoped for an end-to-end meshing workflow, with one tool per major stage and no redundant variants. Each tool earns its place, and the escape hatch avoids needing many narrow one-off tools.
The surface covers the core lifecycle: health/license check, import, surface mesh, boundary layers, volume generation, quality examination, OpenFOAM export, save, and load. Gaps such as project deletion/cleanup, broader solver exporters, or richer boundary-condition editing are minor and can be worked around via pw_run_glyph.
Related MCP Connectors
Run FDS, OpenFOAM, CalculiX and other engineering simulations on cloudHPC from your AI assistant.
CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
- platform7nDeprecatedtech.p7n
Connect Claude to your Platform7n workspaces: chat, links, work and decks. One-click OAuth.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude Code to control Ansys engineering simulations (CFD, FEA, meshing, post-processing) through natural language commands via PyAnsys.15MIT
- AlicenseNot gradedqualityCmaintenanceTurns an AI assistant into an OpenFOAM setup and debugging co-pilot, enabling case scaffolding, dictionary edits, mesh sizing, turbulence calculations, and solver log analysis through natural language.MIT
- AlicenseBqualityBmaintenanceEnables AI agents to drive OpenFOAM end to end: cloning tutorials or custom cases, editing dictionaries, meshing and running solvers in the background, tracking convergence and job status, and analyzing results. It also renders flow images — slices, patches, streamlines, iso-surfaces and residual or force plots — back to the agent.251MIT
- AlicenseBqualityCmaintenanceEnables MCP clients like Claude to build and edit CAD parts in Ansys SpaceClaim or Discovery through PyAnsys Geometry — sketching, extruding, boolean operations, fillets, measuring, and shaded renders. Results can be inspected and exported to formats such as STEP, Parasolid, IGES, STL, and SCDOCX, with before/after geometry checks that catch silent failures.28MIT