mcp-engineering-tools
This server provides deterministic mechanical engineering calculation and lookup tools for AI assistants, ensuring accurate, checkable answers.
Material Properties Lookup (
material_properties): Retrieve typical room-temperature mechanical and thermal properties (density, Young's modulus, yield/ultimate strength, thermal conductivity, CTE) for common engineering materials using names or shorthand (e.g.,6061,Ti-6Al-4V,304,aluminum).Beam Analysis (
beam_analysis): Calculate maximum deflection, bending moment, and bending stress for four standard loading cases (cantilever with end or uniform load, simply supported with center or uniform load), with optional factor of safety against yield for circular or rectangular cross-sections.Unit Conversion (
convert_units): Perform dimension-aware conversions across length, mass, force, pressure/stress, energy, power, area, volume, and temperature — refusing invalid cross-dimension conversions (e.g., force to length) instead of returning a wrong number.List Supported Units (
list_units): Display all supported unit symbols grouped by physical dimension, useful for discovering valid inputs for unit conversion.Curve Fitting (
fit_correlation): Perform least-squares curve fitting on paired (x, y) data using a linear model (y = m*x + c) or power-law model (y = C * x^n, fit in log-log space), returning coefficients, R², and a formula string — ideal for dimensionless correlations likeNu = C * Re^n.
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., "@mcp-engineering-toolsWhat's the factor of safety on a 1 m 6061 cantilever, 50 by 100 mm, carrying 1 kN at the tip?"
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.
mcp-engineering-tools
An MCP server that gives an AI assistant a set of real mechanical-engineering tools. Instead of asking a model to recall a material property or do a beam calculation in its head (where it can quietly be wrong), the model calls a tool that returns a deterministic, checkable answer.
I'm a mechanical engineering student, and I built this to sit at the boundary I actually work at: hardware analysis on one side, AI tooling on the other. The Model Context Protocol is Anthropic's open standard for connecting models to external tools, so this is a small, complete example of exposing engineering domain logic through it.
Tools
Tool | What it does |
| Typical properties (density, modulus, yield/ultimate strength, thermal conductivity, CTE) for common materials. Accepts shorthand like |
| Max deflection, moment, and bending stress for four standard beam cases, with an optional factor of safety against yield. |
| Dimension-aware unit conversion. Refuses nonsense like force-to-length instead of returning a wrong number. |
| Lists every supported unit, grouped by dimension. |
| Least-squares curve fit (linear or power law) of experimental data, returning coefficients, R^2, and a formula. |
The fit_correlation power-law mode is the form used to build dimensionless heat-transfer correlations like Nu = C * Re^n: it fits a straight line in log-log space and reads the exponent off the slope.
Related MCP server: MCP Mathematics
See it work
bun run demo runs the server and calls each tool with a realistic question. A few of the answers:
A loaded steel rod that actually fails. The tool returns a factor of safety below 1, so it flags the failure with numbers instead of a guess:
beam_analysis cantilever, 0.8 m, 20 mm dia, 500 N at the tip, steel
-> max_bending_stress_MPa: 509.3 (yield is 370 MPa)
factor_of_safety: 0.73 // < 1: this rod yields
max_deflection_m: 0.053Building a heat-transfer correlation from data. Five (Re, Nu) points fit straight to the standard form:
fit_correlation power-law on (Re, Nu) data
-> formula: "y = 0.1459 * x^0.6609"
rSquaredLogSpace: 0.99999Refusing a meaningless request instead of returning a wrong number:
convert_units 100 N -> m
-> Dimension mismatch: "N" is force, "m" is length. These are not convertible.Every value above is computed by the server, which is the point: the model calls a tool and gets a checkable answer rather than recalling one that might be subtly wrong.
Design notes
A few deliberate choices, since the point of this repo is the engineering, not the line count:
The curve fit is implemented from scratch (
src/regression.ts), not pulled from a numerics library. Ordinary least squares is short, and writing it keeps the behavior fully known and testable.Units carry their dimension. Conversion is only allowed within a dimension, and temperature is handled as an affine transform (offset, not just a scale) rather than being forced into the factor model.
Material values state their condition (temper, processing). A strength number without a condition is not a real number, so each entry says what it corresponds to. These are first-pass handbook values, not certification data.
Every input is validated with zod at the tool boundary, so bad calls fail with a clear message instead of a
NaN.
Running it
Requires Bun (dev) or Node 18+ (built output).
bun install
bun test # 26 tests across the four modules
bun run typecheck
bun run build # compiles to dist/
bun run demo # starts the server and calls each tool with a real question
node scripts/smoke.mjs # minimal end-to-end smoke checkUsing it with Claude
Add the built server to an MCP client. For Claude Desktop, edit its config file (claude_desktop_config.json):
{
"mcpServers": {
"engineering-tools": {
"command": "node",
"args": ["/absolute/path/to/mcp-engineering-tools/dist/server.js"]
}
}
}For Claude Code:
claude mcp add engineering-tools -- node /absolute/path/to/mcp-engineering-tools/dist/server.jsThen ask, for example: "What's the factor of safety on a 1 m 6061 cantilever, 50 by 100 mm, carrying 1 kN at the tip?" and the model will call material_properties and beam_analysis and answer from the returned numbers.
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.
Latest Blog Posts
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/shahradzomorrodi/mcp-engineering-tools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server