Skip to main content
A single REST API often needs to serve more than one kind of agent, each with a different level of trust. A fraud-review agent might only need to read transaction history; a treasury agent might need to initiate a wire transfer or freeze an account. Rather than exposing every operation to every agent through one proxy and relying on per-consumer policy to restrict access, you can generate more than one MCP proxy from the same REST API, each with its own tool catalog, credential, and policy. This guide slices a payments API into two proxies: a read-only Payments Reporting proxy exposing only lookup operations, and a write-enabled Payments Operations proxy exposing wire transfers and account freezes.

Before You Begin

  • A Tyk-managed REST API (Tyk OAS format) already onboarded to Tyk, with its API ID to hand.
  • Tyk Gateway v5.15 or later, Enterprise Edition. See Requirements.

The Pattern

Every proxy generated this way is its own Tyk OAS API definition, so nothing stops you from creating several proxies that all point at the same source API. Each one has its own upstream.url adapter target (identical across every proxy sliced from the same source, since they all reference the same source API ID) and its own x-tyk-mcp-server extension, listing only the operations that proxy should expose. The two proxies below both target the same source API (ID 4d5e6f7a8b9c4d1e8f0a1b2c3d4e5f6a), but each has its own allow-list: Payments Reporting, read-only lookups only:
Payments Operations, the write operations, none of the read-only ones:
Neither definition needs to know about the other. Each is a complete, independent MCP proxy: the only thing they share is which source API they derive tools from.

Creating Both Proxies

Create each definition through whichever interface you use to manage MCP proxies. The Tyk Dashboard, Tyk Operator, or the Gateway/Dashboard API all work the same way here, since both proxies are ordinary Tyk OAS API definitions. See Creating and managing a proxy for the specifics of each. In the Dashboard wizard specifically, this means running through Tyk API proxy creation twice against the same source API, deselecting different operations each time in the Map endpoints to tools step.

Governing Each Proxy Independently

Because they’re separate proxies, Payments Reporting and Payments Operations each get their own credential and security policy: issue keys scoped to whichever proxy an agent should reach, rather than relying on per-tool RBAC within a single shared proxy. A fraud-review agent’s key never needs to be trusted with write access at all, because the write tools don’t exist on the proxy it connects to.
Tool names only need to be unique within the proxy that exposes them, with one exception: if two proxies sliced from the same source API both expose a tool with the same name, that name must refer to the same source operation in both. Giving the same tool name to two different operations across proxies on the same source API is a configuration error, not a runtime ambiguity: creating or reloading the second proxy fails outright. See How to resolve tool and parameter collisions for the full collision rules.