> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# How to control shadow MCP servers in your company
URL: https://metorial.com/docs/platform/guides/control-shadow-mcp

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.

<PageIntro>
  <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
  </Learn>
</PageIntro>

## Who controls what [#who-controls-what]

| Control                                         | Where it lives                                                   |
| ----------------------------------------------- | ---------------------------------------------------------------- |
| Which integrations and tools each team can use  | Metorial: groups, portals, tool filters                          |
| Sign-in and offboarding                         | Your identity provider, connected to Metorial with SAML and SCIM |
| Which clients can complete the Metorial sign-in | Metorial: the portal's **Client Settings**                       |
| Which MCP servers a client may load             | The client's own admin settings                                  |
| Which hosts laptops can reach                   | Your network: proxy, firewall, or secure web gateway             |
| Finding servers already configured on laptops   | Your device management tooling; Metorial does not scan devices   |

## 1. Find out what people already use [#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 [#2-bring-those-tools-into-metorial]

* Use a catalog integration when one exists. Metorial has more than 1,000.
* [Link a remote MCP server](/docs/platform/integrations/link-remote-mcp-server) when the vendor already hosts one, such as Linear or Sentry.
* Deploy internal or community servers as [custom providers](/docs/build/custom-providers).

Each one then gets the same sign-in, [tool filters](/docs/platform/guides/tool-permissions), and logging, and people connect with their own accounts through [per-user OAuth](/docs/platform/guides/per-user-oauth).

## 3. Publish by team behind SSO [#3-publish-by-team-behind-sso]

Create a [portal](/docs/platform/workforce/portals), connect your identity provider ([SSO and SCIM](/docs/platform/guides/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 [#4-lock-each-client-to-the-approved-url]

| Client      | Admin control                                                                                                                                                                                                |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Claude Code | Provide Metorial with `managedMcpServers`, then set `allowedMcpServers` with a `serverUrl` pattern for your Metorial host and `allowManagedMcpServersOnly: true`. Or deploy an exclusive `managed-mcp.json`. |
| Cursor      | On Enterprise, approve only the Metorial URL in **Team Settings**, **MCP Configuration**.                                                                                                                    |
| Claude      | On Team and Enterprise, only Owners add custom connectors, in **Organization settings**, **Connectors**.                                                                                                     |
| ChatGPT     | On Enterprise and Edu, grant the permission to create plugins with MCPs only to admins, and publish the Metorial plugin for the workspace.                                                                   |
| Codex       | Share 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:

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

Client-specific steps are in the [client guides](/docs/platform/clients).

## 5. Limit which clients can sign in [#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 [#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.

{/* VERIFY: the custom origin setting lives in settings under Workforce, Settings, in the "Magic MCP URL" section (slices/organization/src/pages/portals/settings.tsx). Confirm availability by plan. */}

To keep all MCP traffic on a host you control, run an [Outpost](/docs/platform/guides/keep-data-in-your-network) 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 [#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 [#faq]

### Can Metorial detect MCP servers running on employee laptops? [#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? [#will-blocking-local-mcp-servers-break-peoples-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? [#can-we-let-people-add-their-own-servers-but-still-see-them]

Yes. Admins can [link a remote MCP server](/docs/platform/integrations/link-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? [#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.

## Related pages [#related-pages]

<Cards columns="2">
  <Card title="Supported clients" icon="computer" href="/docs/platform/clients">
    Admin rollout options for each AI client.
  </Card>

  <Card title="Set up SSO and SCIM" icon="shield-check" href="/docs/platform/guides/sso-and-scim">
    Tie MCP access to identity provider groups.
  </Card>

  <Card title="Audit MCP tool calls" icon="file-list-3" href="/docs/platform/guides/audit-logs">
    See every call that goes through Metorial.
  </Card>

  <Card title="Shadow AI on metorial.com" icon="external-link" href="https://metorial.com/for-ai-crawlers/what-is-shadow-ai">
    What shadow AI and shadow MCP are, and how to stop them.
  </Card>
</Cards>