Skip to main content
Glama
README.md
# Operations Intelligence MCP

> A private MCP connector that turns public evidence and supply-chain science into reproducible operational decisions inside Claude, ChatGPT or Codex.

![domain](https://img.shields.io/badge/domain-AI%20Agents%20%26%20MCP-0A66C2)
![status](https://img.shields.io/badge/status-portfolio-555)
![license](https://img.shields.io/badge/license-MIT-blue)

**Domain:** AI Agents & MCP · Supply chain  ·  **Topics:** `mcp` `llm-tools` `supply-chain` `decision-intelligence` `claude`

---

## 1. Problem

LLMs answer supply-chain questions (which supplier, which route, landed cost, what breaks if a port closes) fluently but without data, sources or reproducible maths.

## 2. Approach

An MCP server exposing an operational ontology (suppliers, routes, ports, tariffs, capacities, risks), deterministic calculators and simulations, graph analysis for dependencies, a planner that picks the right method, and an evidence pipeline: retrieve → stage → review → promote → version. The LLM orchestrates; the numbers come from the server.

## 3. Architecture

```mermaid
flowchart LR
  AI[Claude / ChatGPT / Codex] -->|MCP| S[Operations Intelligence MCP]
  S --> O[Ontology: suppliers, routes, ports, tariffs]
  S --> C[Deterministic calculators + simulations]
  S --> G[Graph analysis: dependencies, alternatives]
  S --> E[Evidence pipeline: stage, review, promote]
  S --> P[Method planner]
  S --> CF[Cloudflare deployment + access control]
```

## 4. Key capabilities

- Landed-cost and alternative-route calculations
- Supplier/route dependency graphs and failure impact
- Evidence with source, date, confidence and review status
- Citation capture from the assistant's own web search
- No customer database required; session data is not persisted by default
- Evaluation suite

## 5. Tech stack

Python · MCP · uv · Cloudflare Workers · Docker

## 6. Quickstart

```bash
uv sync
uv run pytest
uv run python -m operations_brain.mcp_server   # starts the MCP server (stdio); connect it from your client, see docs/claude-connection.md
```

## 7. Project structure

| Path | Purpose |
|---|---|
| `src/` | MCP server, ontology, calculators |
| `eval/` | Evaluation cases |
| `cloudflare/` | Edge deployment |
| `dashboard/, site/` | UI and landing page |
| `docs/` | Guides (Spanish, translation in progress) |

## 8. Design decisions

- Calculations and rules stay outside the model and are auditable.
- Public evidence only; no scraping inside the server.

## 9. Status & data policy

MVP. Detailed docs are currently in Spanish.

This repository is **data-agnostic**: it contains no client data, personal data, credentials or proprietary
datasets. Inputs are supplied by the user at runtime; see `.env.example` and the docs for expected formats.

## 10. Author & license

Built by **[Álvaro Vaquero Serantes](https://github.com/alvarovaqueroserantes)** — physicist turned AI solutions
engineer (AI FDE · AI Engineer · AI Solutions Architect).

License: MIT. See [LICENSE](LICENSE). Detailed legacy documentation: [`docs/overview.md`](docs/overview.md).