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.

oee-mcp architecture: an AI agent calls the server's analysis and chart tools, which route to the validated oee core and return structured JSON or a PNG chart

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, OOE and TEEP, 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)
reliability MTBF, MTTR and inherent availability
rolled_throughput_yield the multi-step quality view (the product of the step yields)
capacity takt time, the required rate, and whether a cycle time keeps up
loss_value the availability, performance and quality losses as lost units and money
describe_inputs the input fields, units and the metric 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.2.0.tar.gz (10.8 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.2.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file oee_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: oee_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 10.8 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.2.0.tar.gz
Algorithm Hash digest
SHA256 0f4d68d78435347c049b94e2e0d32278a6ca437187e6899319cfadeae112abf1
MD5 9c6e5832a312e3c2eaff408dabe5447e
BLAKE2b-256 cf8bf533b94cded2c5678050d0fa525acc589ea768b634f3d34d5a477501176a

See more details on using hashes here.

Provenance

The following attestation bundles were made for oee_mcp-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: oee_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a34b57b24fece68b83e178bac937716851235422fb15b17a6421d699db666391
MD5 ee72ef53f57806db497d9793162b8adf
BLAKE2b-256 b4a71aba598e5887cb5658c8ff6d21a6219f3fd583bbe606fae18578a7c27168

See more details on using hashes here.

Provenance

The following attestation bundles were made for oee_mcp-0.2.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