# Factory Graph

> Factory Graph is an open-source MCP server for manufacturing. MCP server that traces upstream utilities so AI checks the right factory equipment after. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted, API
- **Repository:** https://github.com/prag-ai/factory-graph-mcp
- **MCP Registry name:** io.github.prag-ai/factory-graph-mcp
- **Categories:** [manufacturing](https://ai-powered.com/categories/manufacturing)
- **Listing updated:** 2026-11-27

## About

When a machine alarms, the cause often lives in the utility feeding it: a chiller, cooling tower, compressor or power panel that may not have alarmed yet. This server reads two CSV files, an equipment list and a connection table, and lets an AI walk those links upstream through as many steps as needed, ranking the closest suppliers first.

It exposes read-only tools for finding equipment by shop-floor nicknames, inspecting one machine's inputs and outputs, tracing the upstream chain with the path each supply takes, and finding supply equipment shared by several machines at once. Loops in the connection data are skipped rather than followed forever.

The server is aimed at maintenance and production engineers who use an MCP-capable AI client. Korean is the primary language for equipment names, aliases and the bundled sample plant, though data in other languages is read as well. It does not decide root causes or touch equipment; it only narrows where to look.

## Features

- **Upstream chain tracing:** Follows supply connections through several levels, listing each supplier by distance.
- **Shared supplier detection:** Finds utilities that feed several machines showing the same alarm at once.
- **Shop-floor name lookup:** Matches equipment by aliases such as informal machine numbers used on the floor.
- **Cycle-safe traversal:** Records revisited equipment and stops instead of looping on mutual connections.
- **Read-only CSV data:** Reads equipment and connection CSV files without modifying them or connecting to machines.
- **Bundled sample plant:** Includes a 13-machine CNC sample plant to try the tools before using your own data.

## Good for

- Pinpointing whether a chiller or cooling tower is behind simultaneous spindle temperature alarms
- Mapping which utilities supply a given production line before a maintenance review
- Giving an AI assistant structured plant topology when triaging equipment faults
- Checking a plant's connection data for references to missing equipment IDs

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add factory-graph-mcp -- uvx factory-graph-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "factory-graph-mcp": {
      "command": "uvx",
      "args": [
        "factory-graph-mcp"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "factory-graph-mcp": {
      "command": "uvx",
      "args": [
        "factory-graph-mcp"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "factory-graph-mcp": {
      "command": "uvx",
      "args": [
        "factory-graph-mcp"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "factory-graph-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "factory-graph-mcp"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add factory-graph-mcp -- uvx factory-graph-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.factory-graph-mcp]
command = "uvx"
args = ["factory-graph-mcp"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "factory-graph-mcp": {
      "command": "uvx",
      "args": [
        "factory-graph-mcp"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user factory-graph-mcp uvx -- factory-graph-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "factory-graph-mcp": {
      "command": "uvx",
      "args": [
        "factory-graph-mcp"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "factory-graph-mcp": {
      "command": "uvx",
      "args": [
        "factory-graph-mcp"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "factory-graph-mcp": {
      "command": "uvx",
      "args": [
        "factory-graph-mcp"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "factory-graph-mcp": {
      "command": "uvx",
      "args": [
        "factory-graph-mcp"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "factory-graph-mcp": {
      "command": "uvx",
      "args": [
        "factory-graph-mcp"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "factory-graph-mcp": {
      "command": "uvx",
      "args": [
        "factory-graph-mcp"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "factory-graph-mcp": {
      "command": "uvx",
      "args": [
        "factory-graph-mcp"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "factory-graph-mcp": {
      "command": "uvx",
      "args": [
        "factory-graph-mcp"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 5 tools read data; 2 names don't say. From the server's own tool labels and tool names; not verified by us.

- `find_equipment` (name suggests: reads): Finds equipment numbers from names used on the floor, such as "1호기" or "칠러1".
- `get_equipment` (name suggests: reads): Returns one equipment item with its directly attached inputs and outputs.
- `trace_upstream`: Follows upstream supply from one equipment item in order of distance, with the path of each supply.
- `trace_common_upstream`: Groups upstream equipment shared by several machines that are alarming together.
- `describe_plant` (name suggests: reads): Summarises the loaded plant's equipment count and connection types.

## FAQ

### Does Factory Graph read live sensor values or alarm history?

No. It works only on the connection structure from the CSV files. Live values can come from a separate MCP server such as one for OPC UA.

### Can Factory Graph control equipment or decide the root cause?

No. It does not connect to machines or PLCs, and it leaves root-cause judgment to people on the floor.

### What data format does Factory Graph need?

Two UTF-8 CSV files in one folder: an equipment list with IDs, names and types, and a connection table with from, to and kind columns.

### How do I run Factory Graph?

Install with uvx and add it to an MCP client such as Claude Desktop, Claude Code, Codex or Cursor. Set FACTORY_GRAPH_DATA or pass --data to use your own folder.

### Is Factory Graph free?

Yes. Factory Graph is open source, so you can use and self-host it for free.

### How do I add Factory Graph to Claude Code?

Run this command in your terminal: claude mcp add factory-graph-mcp -- uvx factory-graph-mcp

### What are the best alternatives to Factory Graph?

The closest alternatives to Factory Graph are Industrial-AIOps, 轻排生产排产（MRP-PMC）, IQMS / DELMIA Apriso, Madeforai Supplychain Skill and Motor Current Signature Analysis.

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Industrial-AIOps](https://ai-powered.com/mcp/industrial-aiops): Industrial-AIOps is an MCP server for manufacturing.
- [轻排生产排产（MRP-PMC）](https://ai-powered.com/mcp/mrp-pmc): 轻排生产排产（MRP-PMC） is a freemium MCP server for manufacturing.
- [IQMS / DELMIA Apriso](https://ai-powered.com/mcp/iqms-delmia-apriso-2): IQMS / DELMIA Apriso is an open-source MCP server for manufacturing.
- [Madeforai Supplychain Skill](https://ai-powered.com/mcp/madeforai-supplychain-skill): Madeforai Supplychain Skill is an open-source MCP server for manufacturing.
- [Motor Current Signature Analysis](https://ai-powered.com/mcp/motor-current-signature-analysis): Motor Current Signature Analysis is an open-source MCP server for manufacturing.
- [mcu-debug-mcp](https://ai-powered.com/mcp/mcu-debug-mcp): mcu-debug-mcp is an MCP server for developer tools.
- [Proxus Industrial MCP Server](https://ai-powered.com/mcp/proxus-industrial-mcp-server): Proxus Industrial MCP Server is an open-source MCP server for manufacturing.
- [Production Scheduling MCP](https://ai-powered.com/mcp/production-scheduling-mcp): Production Scheduling MCP is an open-source MCP server for manufacturing.

---
Source: https://ai-powered.com/mcp/factory-graph
