Skip to main content
Glama
FreeShip MCP

FreeShip MCP

by jiangshirong

FreeShip MCP

简体中文

A Windows MCP server for FreeShip model inspection, control-net editing, hull transformation, geometry diagnostics and engineering exports. Powered by the native FreeShip Plus engine.

Features

  • Read and write FBM/FTM models, including fv335 and fv462.

  • Edit control points, edges and faces; scale geometry and apply Lackenby transformations.

  • Generate stations, waterlines and buttocks at specified positions.

  • Inspect topology, sampled curve quality and coordinate constraints.

  • Calculate hydrostatics at individual drafts or across a draft range.

  • Export three-view DXF linesplans and CSV/XLSX reports with source manifests.

Related MCP server: SolidworksMCP

Installation

Platform: Windows 10/11 x64. Transport: stdio.

Install from source with Python 3.11 or later:

git clone https://github.com/jiangshirong/FreeShip-MCP.git
cd FreeShip-MCP
py -3.11 -m venv .venv
.venv\Scripts\python -m pip install -r requirements-dev.lock
.venv\Scripts\python -m pip install --no-deps --no-build-isolation -e .
scripts\bootstrap-toolchain.ps1
scripts\build-engine.ps1

Configuration

Create a workspace directory and add the server to your MCP client configuration:

{
  "mcpServers": {
    "freeship": {
      "command": "C:\\MCP\\FreeShip-MCP\\.venv\\Scripts\\freeship-mcp.exe",
      "args": ["--workspace", "C:\\HullWork", "--timeout", "120"]
    }
  }
}

Set command to the absolute path of .venv\Scripts\freeship-mcp.exe in your checkout.

Option

Description

--workspace

Required existing directory containing input models and outputs

--timeout

Native operation timeout in seconds; default 120

--engine

Optional path to a compatible native engine

--check

Check engine compatibility and exit

Paths are restricted to the configured workspace. Outputs use new filenames. Logs are written to stderr.

Tools

Tool

Description

engine_info

Engine version, upstream revision and capabilities

inspect_model

Project settings, geometry bounds, layers, units and control-net indices

validate_model

Topology, adjacent face orientation and open-boundary diagnostics

edit_control_net

Move, align or relax points; split edges/faces; add or delete faces; set creases

analyze_hull_quality

Sampled curve diagnostics and explicit coordinate checks

verify_model_targets

Compare model measurements with specified targets and tolerances

check_export_source

Verify export and source-model hashes

save_model

Save or convert FBM/FTM models

scale_model

Scale geometry and project dimensions

rebuild_hull

Apply a Lackenby transformation to selected layers

generate_sections

Generate stations, waterlines and buttocks

calculate_hydrostatics

Calculate at a specified draft, trim and heel

calculate_hydrostatics_series

Calculate for a draft list or range

export_linesplan_dxf

Export profile, plan and body views with outlines, grids and labels

export_hydrostatics

Export CSV or XLSX data and charts

API physical units are metres, metric tonnes and degrees; areas and volumes use m² and m³. Legacy FBM text encoding supports cp1252, cp1251 and utf8.

Local edits require the model SHA-256 returned by inspection. Target values and tolerances are explicit inputs. Version 0.3.2 uses native protocol 3; update the server and engine together.

Model-writing tools default to output_version: 335. Use 0 to preserve the input version or 462 to select fv462. output_path is used exactly as specified, without version suffixes.

Documentation

Development

py -3.11 -m venv .venv
.venv\Scripts\python -m pip install -r requirements-dev.lock
.venv\Scripts\python -m pip install --no-deps --no-build-isolation -e .
scripts\bootstrap-toolchain.ps1
scripts\build-engine.ps1
.venv\Scripts\python -m pytest -q

The build uses Free Pascal 3.2.2 and Lazarus 3.2. Pinned upstream sources and build instructions are included in the repository; see UPSTREAM.json and upstream changes.

License

GPL-3.0-or-later. Original FreeShip and dependency notices are retained in NOTICE. This project is an independent FreeShip adapter.

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

    • A
      license
      A
      quality
      C
      maintenance
      MCP server for full AutoCAD automation, AutoCAD LT automation, and headless DXF generation. It provides 8 consolidated tools for drawing, entity, layer, block, annotation, P&ID, view, and system operations via MCP stdio transport.
      12
      45
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP server for controlling a live SOLIDWORKS session through the Windows COM API, enabling native CAD operations like sketches, features, bodies, views, and exports, plus transactional plans and vectorization.
      11
      MIT
    • A
      license
      C
      quality
      C
      maintenance
      Enables MCP clients to create and edit technical drawings, manage layers and geometry, process GIS/research mapping data, generate previews and layouts, and automate AutoCAD documents on Windows through COM.
      225
      212 npm
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables MCP clients to open optical lens files, read and modify parameters, run first-order, spot, MTF, and wavefront analyses, export native plots, and save results through a local headless Windows COM session.
      11
      MIT