MCP server for oee: Overall Equipment Effectiveness, the six big losses and charts for AI agents.
Project description
oee-mcp
An MCP server that exposes oee, the Overall Equipment Effectiveness library for Python, as tools for AI agents: give it machine times and piece counts and it returns OEE, the time waterfall, the six big losses, TEEP, and ready-to-show charts.
Agents asked to compute or report OEE tend to do the arithmetic themselves: a performance figure inverted, schedule loss left out, or - the usual mistake - OEE figures averaged across machines, which is wrong. Generated OEE fails silently. The calculation belongs in a deterministic, versioned, validated library that the agent calls, which leaves the agent to choose the analysis and explain the result.
Tools
Analysis tools return the library's payload: the factors, the time waterfall, the six big losses, TEEP, alerts and provenance.
| Tool | Purpose |
|---|---|
compute_oee |
OEE, the waterfall and the six big losses from times and counts |
oee_from_log |
OEE from an event log of production runs and downtime events |
oee_from_factors |
OEE from availability, performance and quality directly |
aggregate_oee |
roll OEE up across machines or shifts correctly (sums the buckets, never averages) |
describe_inputs |
the input fields, units and OEE definitions |
Chart tools return a PNG image.
| Tool | Purpose |
|---|---|
waterfall_chart |
the OEE time waterfall |
loss_pareto_chart |
a Pareto of the six big losses |
trend_chart |
OEE and the factors over a sequence of shifts |
All tools are read-only.
Installation
Run it with uv (no install needed):
uvx oee-mcp
or install from PyPI:
pip install oee-mcp
Configuration
Add it to your MCP client. For example:
{
"mcpServers": {
"oee": {
"command": "uvx",
"args": ["oee-mcp"]
}
}
}
If you installed with pip, use "command": "oee-mcp" with no args.
Example
compute_oee(machine={
"planned_production_time": 420, "downtime": 47, "ideal_rate": 60,
"total_count": 19271, "reject_count": 423, "all_time": 480
})
-> { "factors": { "availability": 0.888, "performance": 0.861,
"quality": 0.978, "oee": 0.748, "teep": 0.654 },
"summary": "oee - ...\n OEE 74.8% ..." }
Design
The server is a thin, stateless wrapper. All of the arithmetic lives in the oee library, which computes OEE from the standard definitions and is validated against published worked examples (Vorne, TeepTrak) and the Nakajima world-class benchmark. The server adds the tool schema, read-only annotations and an input-schema helper so an agent can format the input and act on the result.
Related
- oee: the library this server wraps.
License
MIT. Written and maintained by Atakan Arikan, MSc Student at Tsinghua University and Politecnico di Milano.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oee_mcp-0.1.0.tar.gz.
File metadata
- Download URL: oee_mcp-0.1.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9003ecac98feb746b8a5c758052726c6f1e6d4dcb6a2d78604baa728bc693a70
|
|
| MD5 |
f29e9ee312a6b73f3e33abb1dcfa2ee5
|
|
| BLAKE2b-256 |
2848211ec8c68d34fe9fe4d07908e7705b35202c334dc0bc561e2929f01001b2
|
Provenance
The following attestation bundles were made for oee_mcp-0.1.0.tar.gz:
Publisher:
release.yml on arikanatakan/oee-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oee_mcp-0.1.0.tar.gz -
Subject digest:
9003ecac98feb746b8a5c758052726c6f1e6d4dcb6a2d78604baa728bc693a70 - Sigstore transparency entry: 1836398726
- Sigstore integration time:
-
Permalink:
arikanatakan/oee-mcp@c1bbabaa78698483be128b81c12a714ce5886646 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/arikanatakan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c1bbabaa78698483be128b81c12a714ce5886646 -
Trigger Event:
push
-
Statement type:
File details
Details for the file oee_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oee_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9bd3ce9650ce38453f26eed336e5f9cfa725601113e94f2ee4db36018a523cb
|
|
| MD5 |
82361fcfcc3adbce9db795844a229fd7
|
|
| BLAKE2b-256 |
c99b0922b9625b11ad1f639c3c2679bc033ada2ec6bb22377de003bfa299a2db
|
Provenance
The following attestation bundles were made for oee_mcp-0.1.0-py3-none-any.whl:
Publisher:
release.yml on arikanatakan/oee-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oee_mcp-0.1.0-py3-none-any.whl -
Subject digest:
e9bd3ce9650ce38453f26eed336e5f9cfa725601113e94f2ee4db36018a523cb - Sigstore transparency entry: 1836398817
- Sigstore integration time:
-
Permalink:
arikanatakan/oee-mcp@c1bbabaa78698483be128b81c12a714ce5886646 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/arikanatakan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c1bbabaa78698483be128b81c12a714ce5886646 -
Trigger Event:
push
-
Statement type: