Skip to content
Naditu
Get started

MCP gateway vs enterprise AI ontology for ERP data

An MCP gateway routes tokens, rate limits, and tool lists, whereas an enterprise AI ontology resolves ERP joins, status codes, row RBAC, and write gates.

Naditu4 min read

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.

An MCP gateway governs transport envelopes and tool lists at the edge, whereas the ontology governs table joins, status codes, and caller row policies over live systems.

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:

  1. 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.
  2. Undeclared cross-table and cross-system joins: physical ERP schemas split reality across fiscal-period prefixes (LG_001_01_ORFLINE), header-status tables (VBAK and VBUK), 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.
  3. Cryptic numeric status codes and local business terms: no proxy header tells a model that STAT = 4 in your order header means shipped and awaiting invoice rather than cancelled, or that CONTRACT in IFS Cloud names a plant site rather than a customer agreement.
  4. 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, or WorkOrder rather 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_cost are 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.
The production pattern pairs your existing MCP gateway at the perimeter with an on-premises business ontology enforcing data permissions and ERP write approvals.

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:

  1. 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.
  2. 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.

Sources

  1. Model Context Protocol Specification (2026-07-28): Architecture and Security Best Practices, Model Context Protocol Project
  2. NSA Artificial Intelligence Security Center: Model Context Protocol Security Guidance, National Security Agency
  3. Enterprise Ontology Architecture vs. Raw MCP Gateways, Open Enterprise Ontology Handbook (Ontoloji.org)

More on AI agent governance: Permissions, approval, audit and security for AI agents that read and act on company systems, including agents that work through MCP.

Keep reading

Follow what we ship.

New connectors, product updates and what we learn rolling AI out in enterprises, sent to your inbox.

Book a demo

Tell us where to reach you and we will reply with times.