🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

oee-mcp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oee-mcp

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

pipPyPI
Version
0.2.0
Weekly downloads
27
-28.95%
Maintainers
1
Weekly downloads
 

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.

ToolPurpose
compute_oeeOEE, OOE and TEEP, the waterfall and the six big losses from times and counts
oee_from_logOEE from an event log of production runs and downtime events
oee_from_factorsOEE from availability, performance and quality directly
aggregate_oeeroll OEE up across machines or shifts correctly (sums the buckets, never averages)
reliabilityMTBF, MTTR and inherent availability
rolled_throughput_yieldthe multi-step quality view (the product of the step yields)
capacitytakt time, the required rate, and whether a cycle time keeps up
loss_valuethe availability, performance and quality losses as lost units and money
describe_inputsthe input fields, units and the metric definitions

Chart tools return a PNG image.

ToolPurpose
waterfall_chartthe OEE time waterfall
loss_pareto_charta Pareto of the six big losses
trend_chartOEE 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.

  • oee: the library this server wraps.

License

MIT. Written and maintained by Atakan Arikan, MSc Student at Tsinghua University and Politecnico di Milano.

Keywords

mcp

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts