lcf-strain-life-mcp
Enables conversational low cycle fatigue analysis with standardized reduction, material constants fitting, and life predictions from strain-controlled test data.
README
lcf-strain-life
An AI-agent-native toolkit for fatigue analysis of materials. It is a Python library plus an MCP server, so AI agents can run the whole analysis by calling tools.
Provide your own strain-controlled fatigue test data and get the standardized reduction, fitted material constants, life predictions, and plots. Results are reproducible and are saved for recall.
Why this exists: plenty of fatigue software exists, but none is built for AI agents to drive directly. The agent-native design over MCP is the point. Every capability is reachable through tools an agent can call.
Convention: all analysis uses true stress and true strain. Engineering input is converted at ingestion. The fatigue exponents
bandcare negative throughout.
What it does
| Stage | What happens |
|---|---|
| Ingest and normalize | raw time, strain, force plus parameters become true stress-strain |
| Cycle reduction | peak and valley per cycle, half-life cycle, cycles-to-failure N_f |
| Per-cycle metrics | stress amplitude, plastic strain amplitude, mean stress, T/C ratio, hysteresis energy |
| Strain-life fits | Basquin, Coffin-Manson, Ramberg-Osgood, transition life |
| Mean stress | Morrow, modified Morrow, SWT, Walker corrections |
| Save and recall | results persisted per test or material, recalled without recomputation |
The toolkit is general purpose and material agnostic. It focuses on strain-life and per-cycle evolution, which the established stress-based high-cycle libraries such as pyLife, py-fatigue, and fatpack do not cover. It is input compatible with their pandas data shapes.
Install
python -m venv .venv
.venv\Scripts\activate # Windows
pip install -e ".[mcp,dev]"
Requires Python 3.11 or newer.
Quick start, library
import lcf
# fit strain-life constants from per-test reduced data, here SAE 1137
fit = lcf.fit_strain_life(
total_strain_amp=[0.009, 0.007, 0.005, 0.003, 0.002, 0.00175],
stress_amp=[553, 522, 464, 405, 350, 319], # MPa, half-life
reversals=[4234, 7398, 14768, 77104, 437498, 3327958],
E=208000, # MPa
min_plastic_strain=5e-4, # exclude near-runout points from the plastic branch
)
print(fit.coffin_manson.eps_f, fit.coffin_manson.c) # about 1.11, -0.62
print(fit.basquin.sigma_f, fit.basquin.b) # about 1073 MPa, -0.084
print(fit.transition_reversals) # about 22,000 reversals
Quick start, MCP server
lcf-mcp # runs the stdio MCP server
# or
python -m lcf
Register with Claude Code or Claude Desktop over stdio:
{ "mcpServers": {
"lcf": { "command": "lcf-mcp" } } }
Documentation
- docs/reference holds the equations, symbols, and physics.
- docs/design/WORKFLOW.md describes the data flow and the compute, save, recall model.
- docs/decisions holds the Architecture Decision Records, one per major design choice.
- CHANGELOG.md is the chronological log of changes.
- CLAUDE.md holds the rules and positioning for AI agents working on the repo.
Project layout
src/lcf/ core library and MCP server
tests/ unit tests including golden-value validation, SAE 1137
docs/reference/ equations, physics, symbol tables
docs/design/ workflow and research-derived implementation reference
docs/decisions/ ADRs, the decision log
License
MIT. See LICENSE.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.