Skip to main content

MCP server for oee: Overall Equipment Effectiveness, the six big losses and charts for AI agents.

Project description

oee-mcp

CI PyPI License: MIT

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oee_mcp-0.1.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oee_mcp-0.1.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

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

Hashes for oee_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9003ecac98feb746b8a5c758052726c6f1e6d4dcb6a2d78604baa728bc693a70
MD5 f29e9ee312a6b73f3e33abb1dcfa2ee5
BLAKE2b-256 2848211ec8c68d34fe9fe4d07908e7705b35202c334dc0bc561e2929f01001b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for oee_mcp-0.1.0.tar.gz:

Publisher: release.yml on arikanatakan/oee-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for oee_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9bd3ce9650ce38453f26eed336e5f9cfa725601113e94f2ee4db36018a523cb
MD5 82361fcfcc3adbce9db795844a229fd7
BLAKE2b-256 c99b0922b9625b11ad1f639c3c2679bc033ada2ec6bb22377de003bfa299a2db

See more details on using hashes here.

Provenance

The following attestation bundles were made for oee_mcp-0.1.0-py3-none-any.whl:

Publisher: release.yml on arikanatakan/oee-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page