Platform and security teams planning agent rollouts inevitably hit the architectural question of an MCP gateway vs enterprise AI ontology when connecting operational systems. Corporate infrastructure teams deploy LLM proxies and MCP gateways such as LiteLLM, Kong AI Gateway, Cloudflare AI Gateway, or container tool routers expecting them to govern database access end to end. Six weeks later, the security review stalls because the gateway only sees HTTP envelopes and tool names while the underlying database tool still executes raw SQL against unmapped ERP tables.
The confusion comes from treating transport governance and domain data governance as the same layer. Just as an API gateway like Envoy or Kong never replaced your application business logic or database schema design, an MCP gateway does not teach an AI agent how your ERP, CRM, and plant MES tables fit together. Understanding where the gateway stops and where the ontology begins keeps enterprise teams from building fragile, unreviewable glue code.
What an MCP gateway or LLM proxy actually governs
An MCP gateway sits at the network and protocol edge between AI clients (Claude Desktop, Cursor, ChatGPT, or internal agent harnesses) and the fleet of MCP servers those clients call. At that transport boundary, a gateway solves real infrastructure problems that every enterprise IT team cares about:
- Centralized authentication and client registration hygiene: terminating TLS, validating OAuth 2.1 tokens, and enforcing domain allowlists and SSRF protections on metadata fetches (the exact edge hazards we analyzed in CIMD vs DCR in MCP registration and outbound fetch flood risks).
- Tool catalog routing and coarse tool allowlists: aggregating multiple developer MCP endpoints behind one URL, hiding destructive administrative tools from non-engineering groups, and capping requests per minute per API key.
- Token spend budgets and provider failover: tracking prompt and completion token consumption across OpenAI, Anthropic, and self-hosted models while logging envelope-level latency and status codes.
Every one of those capabilities operates on the JSON-RPC envelope. Once the gateway decides that a signed-in user is allowed to invoke a tool named query_erp or search_orders, the gateway forwards the payload and steps out of the way. Everything that happens inside the database or ERP remains invisible to the proxy.
Four ERP failures an MCP gateway cannot see or stop
When teams place a generic SQL MCP server, an OData passthrough container, or a CData-style table wrapper behind an MCP gateway, four operational failures surface immediately on real company data:
- Service-account privilege flattening across rows and columns: gateways authenticate who called the tool, yet the downstream SQL or SAP connector almost always authenticates to the database with one static technical service account. Without row-level policy evaluation tied to identity-provider groups, a regional sales representative and a finance director hit the same underlying connection pool, exposing global territories, supplier rebates, and unit manufacturing costs.
- Undeclared cross-table and cross-system joins: physical ERP schemas split reality across fiscal-period prefixes (
LG_001_01_ORFLINE), header-status tables (VBAKandVBUK), multi-dimensional variant keys, and separate CRM or MES databases with zero declared foreign keys. A gateway passes the tool call cleanly, and the LLM still invents broken joins or double-counts invoice tax lines. - Cryptic numeric status codes and local business terms: no proxy header tells a model that
STAT = 4in your order header means shipped and awaiting invoice rather than cancelled, or thatCONTRACTin IFS Cloud names a plant site rather than a customer agreement. - Unsafe operational mutations disguised as valid tool calls: an HTTP gateway sees a syntactically valid JSON request to an update endpoint. It cannot verify whether an invoice already received a statutory tax envelope, whether warehouse stock is reserved for another shipment, or whether a human purchasing lead approved the quantity change.
What an enterprise AI ontology governs behind the gateway
As we outlined when comparing an AI agent harness versus a business ontology, reliable enterprise AI separates loop execution, network routing, and domain truth into distinct responsibilities. An enterprise AI ontology sits directly in front of your ERP read replicas, CRM APIs, and MES historians as a governed MCP server of its own:
- Canonical business objects instead of raw tables: assistants ask for
Customer,Order,Item, orWorkOrderrather than guessing table 47. Confirmed cross-system links and local status dictionaries are versioned in one place. - Caller-scoped row filters and column masking in the data layer: groups from Okta, Microsoft Entra ID, or Google Workspace determine which legal entities and plants return rows and whether fields like
unit_costare masked before any record crosses back through the gateway to the model. - Deterministic pre-query refusal and human write gates: closed tables such as payroll and personnel files are refused before any source database is touched, and operational writes execute exclusively through official ERP business APIs (such as SAP RAP OData V4, Logo Objects REST, or Nebim Integrator) after named human approval.
How to pair both layers in one reference architecture
You do not have to rip out LiteLLM, Kong, or an internal MCP registry to adopt an ontology. In practice, the cleanest enterprise rollouts run both layers together, ticking every item on our MCP security checklist for enterprise IT:
- Keep transport controls at the MCP gateway: let your gateway handle TLS termination, OAuth 2.1 / CIMD validation, rate limits, model token budgets, and W3C OpenTelemetry trace propagation, forwarding the verified caller identity assertion.
- Register the ontology as the single governed operational endpoint: instead of wiring twenty raw database and ERP containers to the gateway, register Naditu inside your on-premises security and data boundary so every assistant and scheduled agent inherits the exact same verified joins, business definitions, field masks, and queryable audit logs.