MetorialDocs

How to control shadow MCP servers in your company

Route approved MCP through one Metorial URL behind SSO, lock AI clients to it with their admin settings, and block other MCP endpoints on your network.

Shadow MCP means MCP servers people set up on their own machines, usually with personal API tokens and no record of what they call. You control it in three moves: give everyone one approved path that is easier than the alternative (a Metorial portal and Magic MCP URL behind company SSO), use each AI client's admin settings to allow only that URL, and block other MCP endpoints with egress rules on your own network. Metorial then records every call that goes through it. Metorial does not scan laptops or detect servers that never connect to it, so the client and network controls are what close the gap.

What you'll learn

  • What Metorial controls and what stays on your side
  • How to replace local MCP setups with one approved URL
  • How to lock each AI client to that URL

Who controls what

ControlWhere it lives
Which integrations and tools each team can useMetorial: groups, portals, tool filters
Sign-in and offboardingYour identity provider, connected to Metorial with SAML and SCIM
Which clients can complete the Metorial sign-inMetorial: the portal's Client Settings
Which MCP servers a client may loadThe client's own admin settings
Which hosts laptops can reachYour network: proxy, firewall, or secure web gateway
Finding servers already configured on laptopsYour device management tooling; Metorial does not scan devices

1. Find out what people already use

Ask teams which MCP servers they run, and check common config files through your device management tooling: ~/.cursor/mcp.json, project .mcp.json files, ~/.codex/config.toml, and Claude Code's user settings. The list tells you which integrations the approved path must cover on day one. If it misses tools people rely on, they will keep their local servers.

2. Bring those tools into Metorial

  • Use a catalog integration when one exists. Metorial has more than 1,000.
  • Link a remote MCP server when the vendor already hosts one, such as Linear or Sentry.
  • Deploy internal or community servers as custom providers.

Each one then gets the same sign-in, tool filters, and logging, and people connect with their own accounts through per-user OAuth.

3. Publish by team behind SSO

Create a portal, connect your identity provider (SSO and SCIM), and grant each integration to the groups that need it. People open the portal, connect their accounts once, and copy one Magic MCP URL that works in every client.

4. Lock each client to the approved URL

ClientAdmin control
Claude CodeProvide Metorial with managedMcpServers, then set allowedMcpServers with a serverUrl pattern for your Metorial host and allowManagedMcpServersOnly: true. Or deploy an exclusive managed-mcp.json.
CursorOn Enterprise, approve only the Metorial URL in Team Settings, MCP Configuration.
ClaudeOn Team and Enterprise, only Owners add custom connectors, in Organization settings, Connectors.
ChatGPTOn Enterprise and Edu, grant the permission to create plugins with MCPs only to admins, and publish the Metorial plugin for the workspace.
CodexShare a config.toml with the Metorial server; on Business and Enterprise, review OpenAI's managed configuration.

A Claude Code policy that admits only Metorial looks like this in managed settings:

{
  "allowedMcpServers": [{ "serverUrl": "https://<your-metorial-host>/*" }],
  "allowManagedMcpServersOnly": true
}

Client-specific steps are in the client guides.

5. Limit which clients can sign in

In the portal's Settings, open Client Settings. Allowed OAuth Redirects decides which clients can complete a sign-in to your portal. Keep only the patterns your approved clients need: Localhost apps for CLIs, Secure web apps for web clients, and Native app deeplinks for desktop apps such as Cursor. A client whose redirect is not allowed cannot connect to the Magic MCP URL.

6. Block other MCP endpoints on your network

This part runs on your infrastructure. Allow your Metorial host through your proxy or firewall and block or alert on traffic to known MCP hosts that should go through Metorial instead. Local stdio servers that call SaaS APIs directly need the same egress rules for those APIs.

To keep all MCP traffic on a host you control, run an Outpost and set it as your organization's custom origin for Magic MCP URLs. The connection path stays the same, and your network rules only need to allow your own host.

7. Watch usage

Check the dashboard's Usage page and each person's Operations in Workforce to see who connects and which tools they call. A team with no calls after rollout is a sign they are still using something else. Protoguard can alert on activity outside your policies.

FAQ

Can Metorial detect MCP servers running on employee laptops?

No. Metorial sees the connections and calls that go through it. Use device management tooling to inventory local configs, and client admin settings to block servers that bypass Metorial.

Will blocking local MCP servers break people's workflows?

It will if the approved path is missing tools. Move the servers people use into Metorial first, publish them to the right groups, and announce the Magic MCP URL before you turn on client allowlists.

Can we let people add their own servers but still see them?

Yes. Admins can link a remote MCP server on request, and it then gets the same sign-in, filters, and logging as catalog integrations.

Does this stop people from pasting company data into a chat?

No. These controls cover which tools agents can call. Data people paste into an AI client directly is governed by that client's own settings and your data loss prevention tools.