{
  "markdown": "# mcp-stl\n\n[![PyPI](https://img.shields.io/pypi/v/mcp-stl.svg)](https://pypi.org/project/mcp-stl/)\n[![Python](https://img.shields.io/pypi/pyversions/mcp-stl.svg)](https://pypi.org/project/mcp-stl/)\n[![Coverage](https://codecov.io/gh/daedalus/mcp-stl/branch/main/graph/badge.svg)](https://codecov.io/gh/daedalus/mcp-stl)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n\nMCP server for editing STL 3D model files. Provides tools for parsing, viewing, and manipulating STL files through the Model Context Protocol.\n\n## Install\n\n```bash\npip install mcp-stl\n```\n\n## MCP Server\n\nmcp-name: io.github.daedalus/mcp-stl\n\n## Tools\n\n### Reading & Writing\n\n- **read_stl_file**: Read an STL file and return mesh data (vertices, normals, bounding box)\n- **get_mesh_info**: Get summary information about an STL file without loading full geometry\n- **write_stl**: Write mesh data to an STL file (ASCII or binary format)\n\n### Transformations\n\n- **translate_stl**: Translate (move) the mesh by specified X, Y, Z offsets\n- **rotate_stl**: Rotate the mesh around X, Y, or Z axis by a given angle in degrees\n- **scale_stl**: Scale the mesh by specified X, Y, Z factors\n- **shear_stl**: Apply a shear transformation (shift one axis per unit along another)\n- **mirror_stl**: Mirror (reflect) the mesh across the plane perpendicular to a given axis\n- **rotate_stl_axis**: Rotate the mesh around an arbitrary axis vector (Rodrigues' formula)\n- **combine_stl**: Merge multiple STL files into one\n- **array_linear**: Create N copies of the mesh spaced by a fixed X/Y/Z offset\n- **array_circular**: Create N copies of the mesh at equal angular intervals around an axis\n\n### Primitives\n\n- **create_cube**: Create a cube mesh\n- **create_box**: Create a rectangular box (cuboid) with independent width/height/depth\n- **create_sphere**: Create a sphere mesh\n- **create_cylinder**: Create a cylinder mesh\n- **create_cone**: Create a cone mesh\n- **create_torus**: Create a torus (donut) mesh\n- **create_plane**: Create a flat plane mesh\n- **create_capsule**: Create a capsule (cylinder with hemispherical end caps)\n- **create_ellipsoid**: Create an ellipsoid with independent radii on each axis\n- **create_frustum**: Create a frustum (truncated cone)\n- **create_tube**: Create a hollow cylinder (tube/pipe)\n- **create_pyramid**: Create a regular n-sided pyramid\n- **create_prism**: Create a regular n-sided prism (e.g. hexagonal prism)\n- **create_hemisphere**: Create a hemisphere (dome with flat circular base)\n- **create_wedge**: Create a right-triangular wedge (triangular prism)\n\n### Engine-Design Shapes\n\n- **create_gear**: Create a spur gear mesh (configurable module, teeth, pressure angle)\n- **create_spring**: Create a helical coil spring\n- **create_connecting_rod**: Create a connecting rod with big/small-end bores\n- **create_crankshaft**: Create an N-throw crankshaft\n- **create_valve**: Create a poppet valve (stem + head disc)\n- **create_camshaft_lobe**: Create an eccentric cam lobe with cosine nose profile\n\n## Usage\n\n### Python API\n\n```python\nfrom mcp_stl import read_stl_file, create_cube, translate_stl\n\n# Read an existing STL file\nmesh = read_stl_file(\"model.stl\")\nprint(f\"Faces: {mesh.face_count}\")\n\n# Create a primitive\ncreate_cube(\"cube.stl\", size=2.0)\n\n# Transform a mesh\ntranslate_stl(\"input.stl\", \"output.stl\", x=10.0, y=0.0, z=5.0)\n```\n\n### MCP Server\n\nConfigure in your MCP client:\n\n```json\n{\n  \"mcpServers\": {\n    \"mcp-stl\": {\n      \"command\": \"mcp-stl\"\n    }\n  }\n}\n```\n\n## Development\n\n```bash\ngit clone https://github.com/daedalus/mcp-stl.git\ncd mcp-stl\npip install -e \".[test]\"\n\n# run tests\npytest\n\n# format\nruff format src/ tests/\n\n# lint\nruff check src/ tests/\n\n# type check\nmypy src/\n```\n",
  "bytes": 3797,
  "sha": "52e1430adeaa3863b6b128d41cd18b4b61449d8138bdffe6b64542eb8c2ca4e0",
  "repo_slug": "daedalus/mcp-stl",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_daedalus_mcp_stl_f576f9b2/readme"
}