Originally published at naditu.com/blog/mcp-gateway-vs-enterprise-ai-ontology-for-erp-data. Platform and security teams rolling out Model Context Protocol (MCP) infrastructure routinely deploy LLM proxies and MCP gateways—such as LiteLLM, Kong AI Gateway, Cloudflare AI Gateway, or container-based MCP routers—expecting them to govern operational database access end to end.
Six weeks later, the security review stalls. Why? Because an MCP gateway only sees JSON-RPC envelopes and tool names, while the downstream SQL or OData server still executes raw queries against unmapped ERP tables under a single shared technical service account.
Just as Envoy or Kong never replaced your database schema or application domain model, an MCP gateway does not teach an AI agent how your ERP, CRM, and plant MES tables fit together.
| Layer & Responsibility | MCP Gateway / LLM Proxy | Enterprise AI Ontology |
|---|---|---|
| TLS, OAuth 2.1 / CIMD & SSRF edge checks | Yes (terminates auth & rate-limits clients) | Receives verified caller identity from gateway or IdP |
| Token spend caps & model routing | Yes (per-key budgets & provider failover) | Model-agnostic (serves Claude, ChatGPT, Cursor, custom agents) |
| Coarse tool-list filtering | Hides/exposes whole MCP tools ( search_orders ) |
Evaluates row & column permissions inside each query |
| Cross-system joins without foreign keys | Blind to table schemas | Resolves confirmed joins across ERP, CRM, and MES ( account.erp_code = CUST.CODE ) |
| 1:N chasm-trap & status-code semantics | Blind to SQL semantics | Isolates header/line grain & maps local codes ( ORD_HDR.STAT = 4 →shipped, not invoiced ) |
| Field-level cost & PII masking | Cannot rewrite SQL join projections | Masks restricted fields ( unit_cost: "masked" ) per Okta / Entra ID group |
| Operational ERP write safety | Sees a valid HTTP POST |
Blocks raw SQL writes; routes approved mutations via official ERP APIs |
LG_001_01_ORFLINE), header/status tables ( VBAK/ VBUK), variant matrices, and separate CRM or MES databases with zero declared foreign keys.STAT = 4 means CONTRACT in IFS Cloud denotes a plant site rather than a customer contract.
You do not need to rip out LiteLLM, Kong, or a Kubernetes MCP gateway to adopt an ontology—the two layers are complementary:
(For a vendor-neutral 9-row capability matrix and reference topology, see the open CC BY 4.0 handbook guide at ontoloji.org/en/guides/mcp-gateway-vs-enterprise-ai-ontology-architecture—also queryable directly from Claude Code or Cursor via the public MCP endpoint https://ontoloji.org/mcp.)