A shadow MCP audit is a repeatable pass over every place an MCP server can run (the network, developer machines and repos, and vendor-hosted connectors), checked against a registry of servers you approved, plus a control check that unapproved servers cannot be reached. The checklist below fits on one printed page. Each line gets a pass, a fail, or “cannot see,” and “cannot see” is a real answer, not a gap to hide.
The reasons this is hard in the first place are on the hub: why shadow MCP servers are hard to track across teams. If you need the term itself, start with what is shadow MCP. This page skips the why and is the list you run next.
What is a shadow MCP audit?
It is an inventory plus a control check. The inventory answers “what MCP servers are in use, and who owns each one.” The control check answers “if a server is not on the approved list, can an agent still reach it.” You need both. A list without the control check goes stale the next time someone edits a config file. A control check without the list has nothing to compare against.
OWASP names the risk MCP09:2025 Shadow MCP Servers in its MCP Top 10. The audit is how a security team shows where it stands on that item at a given date.
It is not the MCP audit tap. The tap records traffic to one third-party server you already know about. The audit looks for the servers you do not know about.
Where does an MCP server run, and where do you look?
Three places. A pass that covers one of them and calls itself complete is the most common way an audit misleads.
- On the network. Remote servers listen on a port and answer a protocol probe. Send
server/discoverfirst, theninitializefor older servers, then the GET for the deprecated HTTP+SSE transport. The replies are on how to fingerprint an MCP server, and the full walk is how to find shadow MCP servers. - On laptops and in repos. The MCP spec defines stdio as messages over the standard streams of a subprocess the client launches. There is no listener. The evidence is the client config file, so read the files, not the process list. The method is MCP servers on employee machines, and the path table is where each client keeps its MCP config. Project files such as
.mcp.jsonarrive withgit clone, so include repos. - In vendor clouds. Anthropic’s custom connector docs say Claude connects to a remote MCP server from Anthropic’s cloud, not from your device, in every Claude client. That connector leaves no local file and sends no packet across your network. On Team and Enterprise plans, owners add custom connectors under Organization settings, then Connectors, so there is a list to read. A personal grant on an individual plan does not show up anywhere you control.
How do you check if an MCP server is running?
The check depends on where it runs.
- Remote listener: the fingerprint probe is the check. Something that answers
server/discoverorinitializewith an MCP reply is an MCP server, whatever its hostname says. - Local stdio server: the config entry plus the launch by the client is the check. There is often no port to probe, so a clean network scan says nothing about it.
- Vendor-hosted connector: the vendor admin view you actually have is the check. If you have no admin view, the honest result is “cannot see.”
Do not let a network scan stand in for all three.
What is the one-page checklist?
Print this, or paste it into a ticket. Fill the result column with Pass, Fail, or Cannot see, and add the date and who ran it at the top.
| # | Check | Result | How |
|---|---|---|---|
| 1 | Write down what “approved” means, and name the registry that holds the approved list. | MCP registry of record | |
| 2 | Run the network fingerprint pass against the ranges and ports you deploy. Record every server that answers. | How to fingerprint an MCP server | |
| 3 | Sweep laptop and repo MCP config files read-only. Record client, scope, transport, and URL or command. Never copy env or headers values. | MCP servers on employee machines | |
| 4 | List vendor-hosted connectors and OAuth grants in every admin view you have. | How to find shadow MCP servers | |
| 5 | Reconcile every finding to the registry by owner, transport, and URL or command. Flag any match made on a name alone. | MCP registry of record | |
| 6 | Confirm agents cannot skip the gateway: default-deny egress, with only the gateway allowed out to MCP servers. | Default-deny egress for MCP on Kubernetes | |
| 7 | Confirm client allowlists match on URL or command, never on server name. | Why you can’t allowlist MCP servers by name | |
| 8 | Confirm approved remote servers are bound to workload identities, not labels. | Bind MCP servers to workload identities | |
| 9 | Confirm denied calls, denied egress, and unexpected server labels are logged and alerted on. Send one call you expect to fail and find its log line. | How to stop shadow MCP servers; agent audit log integrity | |
| 10 | Record what this pass could not see, such as unmanaged laptops and vendor accounts with no admin view. | How to find shadow MCP servers |
Lines 1 to 5 are the inventory. Lines 6 to 9 are the control check. Line 10 is the line that keeps the report honest.
A few notes on running it:
- Line 3: a sweep that prints secrets has made the inventory worse. Redact before anything leaves the machine.
- Line 5: a server name is a label the server or the user chose. Claude Code’s managed MCP docs say a
serverNameentry is not a security control, for the same reason. - Line 6: on Kubernetes this is a NetworkPolicy. On hosts and VMs it is the same rule at the firewall. This checklist stops at “is it in place.” The policy set itself lives on the egress page.
- Line 7: for each coding agent’s keys, see allowlisting MCP servers in coding agents.
- Line 9: a deny you never see in a log is a deny you cannot prove. One refused call with a log line is the evidence.
What does the audit not prove?
An audit with a date on it is not a chokepoint. It shows what was in use and whether the controls held when you looked. The next server someone starts is not on it.
If a line in 6 to 9 failed, the work is how to stop shadow MCP servers: put open-source agentgateway in the only MCP path, authorize each tool call with CEL, and default-deny egress so agents cannot go around it. If a gateway is already in place and shadow traffic still gets through, read why your MCP gateway is not blocking shadow servers before you change anything.
It also cannot see past line 10. A vendor cloud with no admin view and an unmanaged laptop with a personal OAuth grant stay outside what you control, whatever the other nine lines say.
How often should you rerun it?
Often enough that the result is still true when someone reads it. A list goes stale the next time someone edits a config file, so the useful move is to make lines 2, 3, and 9 run on their own. How to find shadow MCP servers describes three loops for that: a scanner gate in CI, a scheduled config sweep through device management, and gateway alerts on new server labels. Then the printed checklist becomes the review of what those loops found, not the only time anyone looks.