engineer-mcp
Engineer MCP is a Model Context Protocol server that provides verified mechanical-engineering calculations to AI coding agents, with full provenance on every result — formulas, methods, cited sources, and explicit warnings.
Available tools:
beam_bending— Bending stress, deflection, and safety factor for simply supported or cantilever beams under point/uniform loads. Supports rectangle, circle, hollow circle, I-beam, and box cross-sections (Euler-Bernoulli theory, cited to Roark's and Mechanics of Materials).section_properties— Area, moments of inertia, section moduli, and radius of gyration for standard cross-sections (rectangle, circle, hollow circle, I-beam, box).bolt_strength— Tensile stress area, proof strength, recommended preload, and safety factor for metric bolts (M5–M36 coarse threads, ISO 898 classes like 8.8 and 10.9).spring_design— Spring rate, shear stress, solid height, deflection, working length, Wahl factor, and safety factor for helical compression springs (round wire, squared and ground ends, per Shigley's and Machinery's Handbook).shaft_analysis— Torsion stress, angle of twist, and first lateral critical speed for solid or hollow shafts.bearing_life— ISO 281 basic rating life L10 in revolutions and hours for ball and roller bearings.von_mises— Equivalent stress, maximum shear stress, and yield safety factor from principal (σ1–σ3) or Cartesian stress components (2D/3D).unit_convert— Dimension-safe conversion between compatible units (e.g., MPa↔psi, mm↔in), with rejection of incompatible conversions (e.g., N·m to J).material_lookup— Curated database of common engineering materials, searchable by name with case-insensitive matching.
Key guarantees: Pure-function calculation engines (deterministic, offline, ~98 tests), unit-dimension checking throughout, provenance with every output (method, formula, references), and no hidden assumptions — safety factors appear only when yield strength is provided.
Click on "Install 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., "@engineer-mcpWhat's the bending stress on a 3m steel beam with a 20kN center load?"
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.
Engineer MCP
Engineer MCP is a Model Context Protocol server for mechanical-engineering calculations. It gives coding agents verified answers for beams, bolts, springs, shafts, bearings, stress, sections, fits, and units. Every result shows the formula, the method, and the source.
What it provides
Use Engineer MCP inside an AI coding agent. The agent calls a tool and receives a complete engineering answer. The answer includes numbers, units, assumptions, and citations.
The release covers these domains:
Beam bending stress and deflection.
Bolt tensile design to ISO 898.
Helical compression spring design.
Shaft torsion and first critical speed.
Bearing rating life to ISO 281.
von Mises equivalent stress.
Cross-section properties.
Press and shrink fit analysis by Lamé theory.
Dimension-safe unit conversion.
Material property lookup.
Related MCP server: eq-reference-mcp
How results stay trustworthy
Each result carries its provenance. The envelope lists the method, the formula, and the notes. It also lists the cited standards and texts.
Units are checked at every step. The unit layer knows the dimension of every unit. It rejects a conversion between incompatible quantities. For example, it rejects a torque-to-energy conversion.
Safety factors appear only when you provide the data they need. The tool never hides an assumption. Warnings surface when a method uses an approximation.
Tools
Tool | What it does |
| Bending stress, deflection, and safety factor. |
| Area, inertia, and section modulus of a shape. |
| Stress area, preload, and capacity of a bolt. |
| Interface pressure, hoop stresses, and friction capacity of a press or shrink fit. |
| Spring rate, shear stress, and safety factor of a compression spring. |
| Torsion stress, twist, and critical speed. |
| ISO 281 rating life in revolutions and hours. |
| Equivalent stress and yield safety factor. |
| Conversion between compatible units. |
| Curated mechanical properties of materials. |
See docs/mcp-tools.md for the full reference.
Architecture
Engineer MCP keeps the math separate from the server. Pure engine functions take SI numbers and return plain objects. The server layer adds unit conversion, material lookup, and provenance. The database seeds from JSON files on first start.
flowchart LR
Agent[AI coding agent] -->|MCP over stdio| Server[MCP server]
Server --> Tools[Tools layer]
Tools --> Engines[Calculation engines]
Tools --> Units[Unit layer]
Tools --> Db[SQLite data]
Engines --> Provenance[Method and references]Key directories:
Path | Role |
| Pure calculation functions. |
| Dimension-safe unit conversion. |
| SQLite schema and seeding. |
| Tool orchestration and result envelopes. |
| Material, fastener, and reference data. |
Quick start
Install Node.js 22.13 or newer.
Clone or copy this repository to your machine.
Run
npm installto install dependencies.Run
npm run buildto compile the server.Run
npm run demoto see the demo output.
The demo prints results for every tool. It runs against an in-memory database. It needs no API keys and no network access.
Run as an MCP server
Run the server over standard input and output.
node dist/index.jsAdd it to your MCP client configuration.
See examples/mcp-config.example.json for a template.
Set ENGINEER_MCP_DB or pass --db <path> to choose the database file.
The default database file is engineer-mcp.sqlite in the working directory.
Sample output
A call to beam_bending with a 20 kN point load on a 3 m S355 I-beam:
Maximum bending moment 15 kN·m
Maximum bending stress 25.36 MPa
Maximum deflection 0.6039 mm
Bending safety factor 14
Method: Euler-Bernoulli beam theory
Formula: simply supported, point: M = FL/4, delta = FL^3/(48EI)
References:
- Roark's Formulas for Stress and Strain (Eighth edition, 2011)
- Mechanics of Materials (Euler-Bernoulli beam theory)A call to spring_design for a steel spring under 2 kN with squared and ground ends:
Spring index 5
Wahl factor 1.31
Total coils 6
Solid height 48 mm
Spring rate 158.6 N/mm
Deflection at load 12.61 mm
Working length 77.39 mm
Maximum shear stress 521.4 MPa
Spring safety factor 1.342
Method: Helical compression spring design
Formula: C = D/d, K_w = (4C-1)/(4C-4) + 0.615/C, tau = K_w 8FD/(pi d^3), k = G d^4/(8 D^3 Na), delta = F/k, Ls = d Nt
References:
- Shigley's Mechanical Engineering Design (Tenth edition, 2015)
- Machinery's Handbook (Thirty-first edition)A call to interference_fit for a steel hub on a solid steel shaft with 50 µm of diametral interference:
Interface pressure 77.62 MPa
Hub tangential stress 129.4 MPa
Shaft tangential stress 77.62 MPa
Axial force capacity 73.16 kN
Torque capacity 1.829 kN·m
Shaft safety factor 3.865
Hub safety factor 1.656
Torque safety factor 1.829
Method: Interference fit by Lamé thick-cylinder theory
Formula: p = delta / (d K); K = (1/Eh)((Ro^2+r^2)/(Ro^2-r^2)+nu_h) + (1/Ei)((r^2+ri^2)/(r^2-ri^2)-nu_i); F = 2 pi r L p mu; T = F r
References:
- Shigley's Mechanical Engineering Design (Tenth edition, 2015)
- Machinery's Handbook (Thirty-first edition)
- Theory of Elasticity (Lamé solution for thick-walled cylinders)A call to unit_convert with a torque-to-energy request fails safely:
Error: Category mismatch: N·m is torque, J is energy.
Use a unit of the same quantity.Development
Command | Purpose |
| Run the TypeScript compiler. |
| Run the deterministic test suite. |
| Emit |
| Run the end-to-end demo. |
| Start the server from source. |
Test status
The test suite is deterministic and offline. It covers the engines, the unit layer, the database, and the tools.
109 tests across 11 files.
All tests pass on Node 22 and Node 24.
The CI workflow runs typecheck, tests, build, demo, and a package check.
The CI workflow verifies that the CLI tool list pipes to standard output.
Run npm test to reproduce the results.
Limitations
The beam theory applies to small elastic deflections.
The material table covers common engineering grades only.
The bolt tables cover coarse metric threads from M5 to M36.
The bearing factors are typical values for deep-groove ball bearings.
The critical speed is a first-mode approximation.
The spring design covers static round-wire springs only. It does not estimate fatigue life for cyclic loads.
The press-fit theory assumes elastic material behavior and uniform friction. It does not model residual stress after yield.
The built-in SQLite module of Node.js is still experimental.
Check the cited sources for exact values.
Roadmap
The server grows in independent releases. Each release stays useful on its own.
Complete
Helical compression spring design. The
spring_designtool reports the spring rate, the shear stress, and the safety factor.Press and shrink fit analysis. The
interference_fittool reports the interface pressure, the hoop stresses, and the friction capacity.
Remaining
Add fatigue analysis for cyclic loads.
Add more unit categories, including viscosity and thermal conductivity.
Add HTTP transport.
Add a catalog of ISO and DIN standard sections.
See docs/integration.md for the EngineerKit plan.
EngineerKit
Engineer MCP is part of the EngineerKit family.
The family shares conventions for calculations, units, and provenance.
Other EngineerKit servers can import @engineerkit/engineer-mcp/engine and @engineerkit/engineer-mcp/units.
Read the boundary rules in docs/integration.md.
License
MIT. See LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseCqualityCmaintenanceA comprehensive MCP server that turns any AI assistant into a powerful mathematical computation engine, providing 52 advanced functions, 158 unit conversions, financial calculations, and secure AST-based evaluation.Last updated1810MIT
- Alicense-qualityDmaintenanceMCP server for searching, browsing, solving, and interpolating engineering equations and reference tables. Provides access to 3,388 engineering equations across 10 subjects and 94 reference tables.Last updatedMIT
- AlicenseAqualityBmaintenanceAn MCP server that gives an AI assistant a set of real mechanical-engineering tools. Provides deterministic tools like material properties, beam analysis, unit conversion, and curve fitting for engineering calculations.Last updated5MIT
- AlicenseAqualityCmaintenanceAn MCP server that provides structural load and stability math (tipping, support reactions, beam checks) that language models often get wrong, enabling AI assistants to compute accurate engineering estimates.Last updated3MIT
Related MCP Connectors
MCP server for AI agent profiles and smart notes. 60+ coding prompt packs with expert personas.
This MCP server enables users to perform scientific computations regarding linear algebra and vect…
ArcAgent MCP server for bounty discovery, workspace execution, and verified coding submissions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/DanielCuevas1208/engineer-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server