Choose an MCP gateway URL
Pick the gateway URL an agent connects to, from every tool down to one service, chosen servers or a policy tag set.
An agent that connects to every MCP server at once can hit its tool-count cap, and every tool in its list costs context on each request. The gateway gives every agent the URL that matches the tools it needs, from all of them down to a handful.
Scoped gateways
A scoped gateway is a gateway URL narrowed to part of your MCP servers and tools. You don't deploy or configure anything to get one: you change the URL the agent connects to, and the gateway serves the narrower tool list.
The gateway /gateway/mcp every server and tool
Scoped gateways
├ Per service /gateway/mcp/{service} one service
├ Per server /gateway/mcp/{service}?upstreams=a,b chosen servers within one service
└ Virtual MCP gateway /gateway/mcp?tags=a,b a set chosen by policy tag, across servicesScoped gateways help when:
- An agent caps its tools. Some agents refuse to connect, or drop tools, past a fixed number.
- Context is tight. An agent reads every tool definition in its list on each request, so a shorter list leaves more room for the work.
- Different agents do different jobs. A support agent and a coding agent can share one gateway and each see only the tools for its job.
Every scoped gateway is the same gateway behind a different URL. The same rules, data protection, usage limits and Agent Trail apply, whichever URL an agent uses.
Each URL starts with https://<your-gateway-url>.
The gateway
/gateway/mcp puts every tool your rules allow the person into one list, from every MCP server your organization added.
It isn't a scoped gateway.
Add a server later and the agent picks up its tools with no change to the agent.
Start here unless the agent caps how many tools it accepts.
Per service
A per-service gateway is one service on its own: /gateway/mcp/{service}, such as /gateway/mcp/github.
The agent sees only that service's servers and tools, as if it had connected to the service directly, but every call still goes through your rules.
The service is the catalog name for a catalog entry, or the slug you set when you add a custom server.
An unknown service returns 404.
Use it for an agent that works in one service, such as a coding agent that only needs GitHub.
Per server
A per-server gateway is part of one service.
Some catalog entries bundle several servers behind one service, such as Microsoft 365 Work IQ (Mail, Calendar, Teams, SharePoint) or Google Workspace (Gmail, Drive and more).
Add ?upstreams= to a per-service URL and pick one or more of its servers, such as /gateway/mcp/googleworkspace?upstreams=gmail,drive.
The servers always belong to the one service in the URL, so ?upstreams= can't reach across services, and the gateway rejects it without a service.
An unknown server returns 404.
The MCP Gateway page lists a service's servers in its Upstreams picker once you pick a service with several.
Use it for an agent that needs one or two servers of a large bundle, such as a scheduling agent that only needs Calendar.
Virtual MCP gateway
A virtual MCP gateway is a server that doesn't exist on its own:
the gateway assembles it from the policy tags you choose, across every service.
Add ?tags=, such as /gateway/mcp?tags=dev,read-only.
- A tool is included when its service carries a listed policy tag, or when the tool itself does.
- Several policy tags combine: a tool needs only one of them.
- Built-in policy tags work too:
?tags=read-onlygives the agent only read-only tools, across every service. - A policy tag that doesn't exist returns
404, and one that tags nothing gives an empty tool list.
To connect an agent to several services, tag them and use a virtual MCP gateway.
Tag GitHub, Linear and Sentry dev, and /gateway/mcp?tags=dev gives the agent all three.
Tag a fourth service dev later, and every agent on that URL gets its tools with no change to the agent.
Narrow with policy tags
Policy tags are an optional filter on every type, not a fourth type.
/gateway/mcp/github?tags=read-only gives an agent only GitHub's read-only tools, and &tags= works the same on a per-server URL.
Combine them
An agent that needs several separate sets configures one connection for each:
{
"mcpServers": {
"github": { "url": "https://your-gateway-url/gateway/mcp/github" },
"dev": { "url": "https://your-gateway-url/gateway/mcp?tags=dev" },
},
}You don't have to write these by hand. The Scoped gateways tab of the MCP Gateway page builds the URL with the Resource, Upstreams and Policy tags pickers under Connect to, and most agents' pages under Add agent have the same pickers under Tools. See Scope a connection.
What a scoped gateway doesn't change
A scoped gateway narrows what the agent asks for. It doesn't grant or remove access, so it isn't a substitute for a rule.
- Your rules still decide. Every URL is filtered for the person calling it, so a tool your rules deny never appears in the list, and two people on the same URL can see different tools.
- Sign-in works the same. Each URL serves its own OAuth discovery metadata, so agents sign in the same way on any of them. See Authenticate agents to the MCP gateway.
- A failing server drops out. Tools from a server whose discovery is failing are missing until it recovers.
Next steps
You can now give each agent the scoped gateway that matches the tools it needs. Next, connect the agent with that URL.
- Connect an agent – connect an agent, with the scope picker
- Tool search – keep a long tool list out of the agent's context instead