cd /news/ai-agents/mcp-gateway-vs-enterprise-ai-ontolog… · home › topics › ai-agents › article
[ARTICLE · art-181907] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=· neutral

MCP Gateway vs. Enterprise AI Ontology: Why Transport Proxies Still Hallucinate on Live ERP Data

A developer argues that MCP gateways and LLM proxies such as LiteLLM, Kong AI Gateway, and Cloudflare AI Gateway only inspect JSON-RPC envelopes and tool names, leaving downstream SQL and OData servers executing raw queries against unmapped ERP tables under shared service accounts. The post contends that a separate enterprise AI ontology layer is needed to resolve cross-system joins, row- and column-level permissions, status-code semantics, and PII masking, and that the two layers are complementary rather than replacements.

recommendation

Keep your MCP gateway for auth, rate limits and token budgets, but add an ontology layer that evaluates row/column permissions and maps ERP status codes before agents query live tables.

more in playbook: Designing agent systems
by read2 min views8 publishedDec 4, 2026

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.)

── more in #ai-agents 4 stories · sorted by recency
── more on @model context protocol 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/mcp-gateway-vs-enter…] indexed:0 read:2min 2026-12-04 · —