Skip to main content
Glama
inventor-mcp

inventor-mcp

inventor-mcp

An MCP server that connects Claude, ChatGPT, Codex or any other MCP client to a running Autodesk Inventor session on Windows. It can open and inspect parts and assemblies, screenshot the viewport, edit parameters and iProperties, move, place and constrain components, check interference, and export STEP/STL/PDF.

It talks to Inventor through its COM API from an ordinary Python process, so there is no add-in to install and a crash in the server can't take Inventor down with it.

Requirements

  • Windows with Autodesk Inventor installed (developed against the 2024–2027 API; nothing version-specific is used)

  • uv on your PATH for the extension and plugin installs (winget install astral-sh.uv); it fetches Python 3.10+ and the dependencies on first launch. A manual install needs Python 3.10+ instead.

Related MCP server: autodesk-inventor-mcp

Install

Start Inventor first. If it isn't running, the server launches it (you can turn that off).

Each release has three files: inventor-mcp-<version>.mcpb (Claude Desktop extension), inventor-mcp-<version>.plugin (Claude plugin, with the server and an inventor-modeling skill that teaches good modeling habits: design-intent dimensions, goBILDA/FRC hole patterns, checking each step) and inventor-mcp-<version>-chatgpt.zip (ChatGPT desktop / Codex plugin with the same skill). python scripts/package.py builds them locally into dist/.

Claude Desktop

Download inventor-mcp-<version>.mcpb from Releases and open it with Claude Desktop. Or install the .plugin file instead to get the modeling skill too: drop it into a Claude chat and accept the preview card. It asks for the same two options. The extension's settings page has two checkboxes: Allow code execution (off by default) and Start Inventor if it isn't running.

Claude Code

/plugin marketplace add Writerfrighter/TRC-Inventor-MCP
/plugin install inventor-mcp@inventor-mcp

Claude Code asks for the same two options when the plugin is enabled; change them later in /config or under /plugin → Configure options. Requires uv on your PATH.

ChatGPT desktop app and Codex

The ChatGPT desktop app runs plugins with local MCP servers (not ChatGPT on the web or mobile, which can't reach a server on your PC). Add this repo as a plugin marketplace, restart the ChatGPT desktop app, then install Autodesk Inventor from the Plugins Directory:

codex plugin marketplace add Writerfrighter/TRC-Inventor-MCP

Codex in the same app uses it too. A workspace admin can instead upload inventor-mcp-<version>-chatgpt.zip under Admin → Plugins; it's marked desktop only because the server runs on the user's PC. Requires uv on your PATH. There's no settings form for plugin options here, so code execution stays off unless you turn it on in settings.json (see Settings).

Manual (any MCP client)

git clone https://github.com/Writerfrighter/TRC-Inventor-MCP inventor-mcp
cd inventor-mcp
python -m venv .venv
.venv\Scripts\pip install -e .

Then point your client at C:\path\to\inventor-mcp\.venv\Scripts\inventor-mcp.exe, for example in claude_desktop_config.json:

{
  "mcpServers": {
    "inventor": {
      "command": "C:\\path\\to\\inventor-mcp\\.venv\\Scripts\\inventor-mcp.exe"
    }
  }
}

or claude mcp add inventor -- C:\path\to\inventor-mcp\.venv\Scripts\inventor-mcp.exe.

Works with the MCP Python SDK 1.x or 2.x. If pip hangs retrying an unreachable extra index (an NVIDIA pip.ini is a common culprit), use pip --isolated install -e ..

Over HTTP (other MCP clients on this PC): inventor-mcp --http --port 27184, then point the client at http://127.0.0.1:27184/mcp. It binds to localhost only and has no authentication, so don't forward or tunnel the port: anything that can reach it can drive Inventor, and run code if scripting is on.

Settings

Setting

Environment variable

settings.json key

Default

Code execution tools (run_inventor_script, Autodesk's Python/iLogic tools, iLogic rules and event triggers)

INVENTOR_MCP_ENABLE_SCRIPTING

enable_scripting

off

Start Inventor if it isn't running

INVENTOR_MCP_LAUNCH

launch_inventor

on

Re-export Autodesk's own Inventor MCP tools (2027.2+)

INVENTOR_MCP_ADSK

adsk

on

Each is read from the environment variable first (that's how the Claude Desktop and Claude Code options arrive), then from %LOCALAPPDATA%\inventor-mcp\settings.json, for example:

{ "enable_scripting": true }

Values accept true/false, 1/0, yes/no and on/off. Restart the client after changing them. inventor_status reports scripting_enabled, so you can check which way it took.

You can also turn individual tools off in your client: in Claude Code with a permission deny rule (mcp__plugin_inventor-mcp_inventor__run_inventor_script), in Codex with enabled_tools under the plugin's MCP server in ~/.codex/config.toml.

Conventions

  • Units: millimetres, degrees and kilograms everywhere. Inventor's API works in centimetres and radians internally; the server converts at the boundary so you never get a silent 10× error.

  • Documents: refer to them by full path, file name (Turret.iam), or name without extension. Leave it out to use the active document.

  • Occurrences: by browser name (Shooter Plate:1), with / to reach into sub-assemblies (Turret:1/Flywheel:1/Shaft:2).

  • Parameter expressions are Inventor expressions: "120 mm", "Width / 2", "30 deg".

  • Sketches end fully dimensioned. Any sketch Claude creates or edits should report fully constrained before the part is saved, so a teammate can change a size by editing a number instead of dragging geometry. sketch_and_extrude does this itself and returns sketch_status. Dimensions follow design intent rather than defaulting to the origin:

    • Holes that mate to another part: the spacing between them, plus one location from the feature they line up with (a grid hole, an axle hole, a plate edge).

    • goBILDA grid holes: from one anchor hole in multiples of the 8 / 24 mm pitch.

    • Geometry driven by motion or other parts (funnels, axle positions): from axle or wheel centres, or from parameters such as ball diameter and clearance.

    • The origin only where it means something, e.g. the part is modelled around it. Prefer the base sketch or origin planes over late model edges, which can be replaced when an earlier feature rebuilds.

    • Exception: lightening pockets stay undimensioned. They're regenerated with apply_lightening_pockets, not edited by hand.

Tools

Area

Tools

Session & documents

inventor_status, list_documents, open_document, new_document, activate_document, save_document, close_document, get_document_info, rebuild_document

Viewing

capture_view (returns a PNG; can snap to front/top/iso and fit), get_selection (what you have selected in Inventor)

Parameters & properties

list_parameters, set_parameters, add_user_parameter, get_iproperties, set_iproperties, set_material

Parts

list_features, set_features_suppressed, get_physical_properties, sketch_and_extrude, fillet_all_edges

Sketches & features

create_sketch, constrain_sketch, describe_sketch, create_sketch_3d, extrude, revolve, loft, sweep, add_holes, rectangular_pattern, circular_pattern, mirror_features, fillet_edges, chamfer_edges (see Modeling without scripts)

Assemblies

get_assembly_tree, get_bill_of_materials, place_component, transform_component, set_component_state (visible / suppressed / grounded), delete_component, replace_component, list_constraints, add_origin_constraint, add_joint, find_geometry, edit_constraint (constraints and joints), add_face_constraint, check_interference, measure

Lightening pockets

plan_lightening_pockets (preview image + mass estimate; changes nothing), apply_lightening_pockets, remove_lightening_pockets

Export & drawings

export_document (.stp, .igs, .sat, .stl, .obj, .pdf, .dwg, .dxf, .png), export_parts (every part in an assembly, or sheet-metal flat patterns to DXF), create_drawing

Long calls

job_result: collects the result of any call that answered still_running

Escape hatch

run_inventor_script: only when code execution is on (see Settings)

Autodesk official (2027.2+)

iLogic rules and event triggers, Model States / iPart / iAssembly tables, representations, edit_parameter, edit_properties, export_document_as_pdf, export_document_as_image, set_view, get_project_info, find_materials, … (see below)

Joints

add_joint makes rigid, rotational, slider, cylindrical, planar and ball joints the way Inventor's Joint dialog does: the first component moves onto the second, and each origin snaps to a circle's center or a flat face's center.

  • From your selection: select an edge or face on each part in Inventor (Ctrl-click), then ask for the joint. The first pick moves.

  • From hints: give each part's occurrence path and a rough point in assembly mm. pick: "circle" snaps to the nearest hole or shaft edge, "plane" to the nearest flat face, "origin" to the part's origin. find_geometry previews what a hint would snap to without changing anything, and get_selection reports the center and axis of whatever you've picked, so its coordinates can be reused as hints.

  • Options: angle_deg, angle_limits_deg, linear_limits_mm, gap_mm, flip, flip_alignment, name.

Hints point at a part, not a sub-assembly: use Drivetrain:1/Motor:1, not Drivetrain:1. Geometry is found with Inventor's own point lookup (SurfaceBody.LocateUsingPoint), not by walking edges, because reading a goBILDA channel's 5,000 edges over COM takes about two minutes. A pick takes about a second.

Modeling without scripts

These tools cover what scripts were mostly used for, with plain data in and no code, so they work with code execution off. Each one is a single undo step: if any part fails, Inventor rolls the whole call back.

  • Sketches: create_sketch draws lines, circles, arcs, rectangles, closed polygons, slots and points on an origin plane, a work plane, an offset plane or a flat face picked by a point ({"face_near_mm": [x, y, z]}). Points can be sketch coordinates [x, y] or model coordinates [x, y, z], which is easier on faces. Endpoints that meet are joined, and dimensions and constraints refer to geometry as e0.bottom, line3, circle1.center or origin. A dimension that would over-constrain the sketch is added as driven, the way Inventor's own dialog offers. Geometry computed from data (a simulated ball path, many loft sections) can be marked data_driven and left undimensioned; hand-designed geometry should end fully constrained. The result reports whether the sketch is fully constrained. Use constrain_sketch to finish dimensioning and describe_sketch to list every entity with its reference.

  • Features: extrude and revolve work on a named sketch (all of its profiles or chosen ones). loft goes through two or more section sketches, and sweep runs a profile along a path, optionally scaled by a guide rail. create_sketch_3d draws a spline or polyline through model points, for paths that come from a calculation. add_holes makes plain, counterbored, countersunk and tapped holes (M4x0.7, 10-32 UNF), at points or on a hole grid: goBILDA's 8 mm ("pitch": 8) or FRC's 0.5 in and 1 in ("pitch": "0.5 in"). Sizes take a unit ("0.201 in", "1/4 in") or plain millimetres, and the feature keeps the unit you gave. Its placement sketch is dimensioned for you, grid spacing as 3 * 0.5 in-style expressions, and the drill direction is worked out automatically. rectangular_pattern, circular_pattern and mirror_features repeat features by name, and fillet_edges and chamfer_edges act on edges picked by a point.

  • Assemblies: add_face_constraint makes mate, flush and angle constraints between faces, axis mates between cylinders, and inserts between circular edges. It picks geometry by occurrence and approximate point, or from your selection.

  • Checking and output: measure gives the distance (and angle) between faces, edges, points or origin geometry. export_parts writes every part in an assembly to STEP/STL/IGES/SAT, or sheet-metal flat patterns to DXF. create_drawing makes a base view plus top, right and iso views of a saved part or assembly, scaled to the sheet, with an optional PDF.

Autodesk's official Inventor MCP tools

Inventor 2027.2 Professional ships its own local MCP server (Bin\AutodeskAssistant\InvMcpStdio.exe, the same tools the Autodesk Assistant uses). When it's installed, this server starts it at launch and re-exports its tools, so one connection gives you both sets. Their descriptions start with [Autodesk official tool …]; they use Inventor's document units and full file paths rather than this server's mm convention.

  • Duplicates are hidden. Where both servers do the same job (save_document, place_component, set_component_state, get_document_info, open/close/list documents, selection, parameter listing and creation), this server's version is kept.

  • Code tools follow the same switch. Autodesk's execute_python_script, execute_ilogic_code and the iLogic rule/trigger tools (create_ilogic_rule, edit_ilogic_rule, run_ilogic_rule, edit_event_triggers, manage_external_rule_directories) only appear when code execution is on. Event triggers save code into the file, where it runs for anyone who opens it. The tools that run code share run_inventor_script's circuit breaker: after a failure the next one needs acknowledge_error=true.

  • Never held open. Autodesk's server allows one agent per Inventor instance, so each forwarded call starts it, makes the call and lets it exit (about 1–2 s extra). Several clients running this server can share it; if another agent is mid-call, the call waits and retries. The tool list is cached in %LOCALAPPDATA%\inventor-mcp so the tools still appear if it's busy at startup.

  • One call at a time. Forwarded calls take the same COM queue as this server's own tools, so the two never drive Inventor at once, and long calls get a job_result id like everything else.

  • Optional. Without Inventor 2027.2 Professional (or if it doesn't answer within 30 s) the server starts with its own tools; inventor_status reports why under autodesk_mcp.

Variable

Effect

INVENTOR_MCP_ADSK=0

Don't load Autodesk's tools

INVENTOR_MCP_ADSK_EXE

Path to a specific InvMcpStdio.exe

INVENTOR_MCP_ADSK_SKIP

Comma-separated Autodesk tool names to hide

INVENTOR_MCP_ADSK_TIMEOUT

Seconds before a forwarded call is abandoned (default 600)

INVENTOR_MCP_ADSK_ENCODING

Text encoding for the link (default: the Windows ANSI code page; Autodesk's exe doesn't write UTF-8)

Needs MCP Python SDK 2.x; on 1.x this part is skipped.

Lightening pockets

plan_lightening_pockets lays a triangular truss over a flat plate and returns a preview plus the estimated mass saved. apply_lightening_pockets then cuts it as one Lightening Pockets through-cut, with the corners rounded by a real Inventor Pocket Fillets feature, so they stay editable. remove_lightening_pockets takes them back out. The pocket sketch is deliberately left without dimensions: to change the pockets, re-plan and re-apply.

  • Web and edge material: 6 mm webs between pockets and 6 mm along the outer edge.

  • Hole keep-outs: 8 mm of material around holes, and 15 mm around large openings such as a turret bearing track.

  • Hole support (default uniform style): webs stay one width everywhere. A pocket that would run into a hole's keep-out is trimmed with a single straight edge along one of the truss's three directions, so each hole sits in a solid pad that is part of the truss.

  • Rows of bolt holes: three or more equal, closely spaced holes in a line (like a mounting column) are treated as one band, and pockets next to them are cut parallel to the row. That leaves clean partial triangles beside the column instead of slivers.

  • Truss angle: truss_angle_deg pins the orientation: 0 gives triangles with a horizontal edge, 30 points them sideways. By default both are tried.

  • spokes style: pockets wrap around holes and each hole gets up to 3 spokes into the truss. It removes a little less, and looks more organic.

  • No slivers: pockets narrower than 12 mm are dropped, and corners are cutter-safe at 3.2 mm, which suits a ¼" bit (pass corner_radius_mm=1.6 for ⅛").

  • Symmetric plates: if the plate is mirror-symmetric, the layout search prefers a symmetric pattern.

  • Very acute corners: corners narrower than about 37° keep their rounding in the sketch, because a 3D fillet there tends to fail and leave a sharp corner.

  • Safe re-runs: applying again replaces earlier pockets, but only after the new ones succeed. On any failure the part is left exactly as it was.

  • Mass check: the result reports mass before and after, compared against the plan.

Pocketing only keeps clear of holes. Anything that sits flat on the plate without bolting through it (pads, belt paths, wire runs) is your call: check the preview.

Long-running calls

Some links between Claude and your computer give up after about 60 s while Inventor keeps working. Any call that takes longer than INVENTOR_MCP_CALL_BUDGET seconds (default 45) answers {"status": "still_running", "job_id": ...}, and job_result(job_id) picks up the outcome. Re-running the original call would repeat the change.

Things to try

  • "What's in the open assembly, and which parts are suppressed?"

  • "Show me the turret from the iso view."

  • "Set ShooterAngle to 35 deg and tell me if anything breaks."

  • "Check the drivetrain for interference."

  • "Give me a BOM with part numbers, then fill in missing descriptions."

  • "Place C:\TRC\Parts\Bearing.ipt and make it coaxial with the shaft's Z axis."

  • "Export every part in this assembly to STEP for the laser cutter vendor."

  • "Add four M4 tapped holes on the 8 mm goBILDA grid in the top face of this plate."

  • "Put #10 clearance holes on a 1 in grid along this 2x1 tube, starting 0.5 in from the end."

  • "Make a drawing of the turret plate with top, right and iso views and save it as a PDF."

About run_inventor_script

The structured tools cover most modeling, but Inventor's API is huge (sheet metal, drawings, iLogic, frame generator...). With scripting on, Claude can write a short Python snippet against the full COM API for anything else, with app, doc, items(collection), to_cm, to_mm and math in scope. Code runs in the server process with your user's permissions, which is why it's off by default. Your MCP client asks before each tool call unless you've allowed it to run automatically, so read scripts before approving them, especially if Claude has been reading content you didn't write.

Design notes

These come from reading existing Inventor MCP servers (see Credits) and Inventor API forum experience:

  • One COM thread. COM objects belong to the thread that created them, while MCP requests arrive on an async loop. Every call is queued onto a single dedicated thread, which also stops two requests from editing the model at once.

  • Late binding. Early-bound win32com wrappers type objects by their declared return type (e.g. Document) and hide members like ComponentDefinition. They also break when the gen_py cache goes stale after an Inventor upgrade. The server uses dynamic dispatch, and builds a typed wrapper only for methods with [out] parameters (CreateGeometryProxy).

  • Busy retries, only where safe. If Inventor rejects a call because it's recomputing or has a modal dialog open, read-only and repeat-safe tools retry with backoff. Tools that add or delete things don't, because part of the change may already be applied; they report the busy error so you can check the model first.

  • Constraints by origin geometry. Picking faces by name isn't reliable through the API. add_origin_constraint uses each component's origin planes and axes, which every part has and which don't change when the geometry does. For face-level constraints, select the faces in Inventor and use the scripting tool with doc.SelectSet.

  • Readable errors. Failures come back with the real reason, e.g. No occurrence 'Shaft:3' under Turret:1. Available: Shaft:1, Shaft:2, so Claude can correct itself.

  • Sketch geometry from coordinates. Chaining sketch entities through existing SketchPoints let Inventor's solver pull arcs off by millimetres. Entities are created from plain coordinates and their endpoints merged afterwards. Identical coordinates alone don't close a profile.

  • Enum traps. kPlaneSurface is 5890 (5891 is a cylinder), and Plane.Normal doesn't tell you which side of the plate a face is on, so faces are matched by being parallel and offset.

  • Script output stays local. run_inventor_script gets its own print rather than redirecting the process's stdout, and returns real JSON.

Troubleshooting

  • "Inventor is not running": start Inventor, or turn Start Inventor if it isn't running back on.

  • Plugin won't start (Claude Code, ChatGPT): check that uv --version works in a new terminal. The first launch downloads Python packages, so it can take a minute.

  • Calls hang: a dialog is probably open in Inventor. Close it.

  • capture_view gives a BMP or fails: install Pillow (pip install pillow; it's in the default dependencies).

  • STEP/PDF export writes nothing: the matching translator add-in is disabled in Inventor (Tools → Add-In Manager).

  • Odd errors after an Inventor upgrade: delete %LOCALAPPDATA%\Temp\gen_py.

Credits

Approach informed by these open-source Inventor MCP servers: hsavas/inventor-mcp, NeonGlay/inventor-mcp, xtylerai2026-oss/autodesk-inventor-mcp, effectustasi/autodesk-inventor-mcp.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to control Autodesk Inventor via COM automation for part modeling, assembly constraints, drawing views, and more.
      10
      -
    • A
      license
      A
      quality
      C
      maintenance
      Connects AI assistants to a live Autodesk Inventor session over COM to inspect and diagnose models: list bodies and features, find sliver faces in imported geometry, check face neighbors, and dry-run Unwrap with automatic rollback. Zero dependencies, Windows only.
      6
      1
      MIT
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI assistants like Claude for Desktop or Cursor to control supported CAD applications through MCP, supporting drawing, layer and entity management, block operations, data export, and file/session control via natural language or unified tool calls.
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables an MCP-capable AI client to drive a locally installed, licensed Autodesk Inventor through its COM API for local modeling tasks. It supports creating and updating a rectangular plate and a parametric quickchanger concept assembly, opening and inspecting parts and assemblies, and returning viewport previews.
      1
      MIT