An engineer can wire a new MCP server into a coding agent in a minute, and from then on the agent sends it tool calls with whatever context it holds. Nobody files a ticket. Shadow AI detection has to start where that traffic leaves the laptop.
What is shadow AI detection?
Shadow AI is any AI tool, model, MCP server or skill that people use without a security review. Shadow AI detection means finding those items in what actually runs, then deciding what happens to each one. On engineering teams, most unsanctioned AI now lives inside coding agents: unapproved MCP servers, skills loaded into context, models picked per request.
We detect shadow AI on the device, in the traffic path. Formal Endpoint intercepts the LLM and MCP traffic of known AI agents and the processes they start. Discovery then reflects what shadow AI tools actually do on the wire, not what people remember to declare.
Why do coding agents make shadow AI harder to see?
Three things change once agents do the work:
- MCP servers act on the agent’s behalf. The MCP specification says tools “represent arbitrary code execution and must be treated with appropriate caution”. An unreviewed server gets tool calls carrying whatever the agent has in context.
- Skills are instructions nobody reviews. In Claude Code, a skill is a folder holding a
SKILL.mdfile that the agent can load into a conversation. It changes what the agent does without going through code review or a package registry. A skill can also bundle scripts that run with the agent’s permissions, one of the ways skills differ from MCP servers. - Agents spawn processes. A coding agent starts shells, git and package managers. Their connections only look like agent traffic if you follow the process tree.
A destination allowlist, the usual form of egress filtering, can’t tell an engineer’s request from an agent’s tool call to the same host, so shadow AI security needs the process identity and the protocol. The other controls coding agents need, from keys held at the proxy to blocked merges in cloud agents, are covered on AI coding agent security.
How does Formal detect shadow AI on laptops?
Formal finds shadow AI in four moves, all on the Endpoint:
- A network rule selects the traffic. In Transparent Mode, a network rule matches known agents and their child processes, then keeps flows classified as
mcporllm. - The Endpoint reads the protocol. It terminates TLS with a local Formal CA, so it can parse MCP JSON-RPC and LLM requests, log them and evaluate policy.
- Unknown MCP servers enter the queue. MCP requests to a server that has no Formal Resource show up on the Shadow AI MCP Servers tab, with the server endpoint and Last Used. The tab refreshes every 15 minutes. Servers reached through Claude’s connector proxy carry a Claude Connector badge.
- Skills come from Claude Code requests. Claude Code requests list the skills available to the agent and the ones loaded into the conversation. The Skills tab marks each one Loaded or On device, and refreshes every 24 hours.
The Claude Code and Cursor pages cover each agent, and the Shadow AI docs walk through the review flow.
Shadow MCP servers and skills: what does Formal find?
When you compare shadow AI detection tools, check where each one sits. Formal sits on the device, in the traffic path, and finds:
- MCP servers with no Formal Resource, from every MCP request the Endpoint intercepts on macOS and Linux devices.
- Skills in Claude Code, marked as loaded in a conversation or present on the device.
- AI client applications, models and providers, listed on the usage pages as an inventory next to the review queue.
- Claude Code traffic with no extra setup, because the Endpoint points Claude Code at a CA bundle that includes the Formal CA by default.
How do you govern shadow AI without blocking developers?
Shadow AI governance works when the approved path is easier than the workaround: one default per item type, a Catalog that records each decision, and a request flow for exceptions.
Pick the default. Guardrails has one setting for unknown MCP servers and one for unknown skills. Allow lets the traffic through, logs it and queues the item for review. Block stops it with a generated policy. We suggest starting with allow and monitor to build the inventory, then switching to block once the Catalog covers what teams need.
Make the block useful. A blocked MCP tool call returns an advisory written for the agent. It lists the approved MCP servers and asks the user to switch to one, request the blocked server through a Formal form (once you create one), or do nothing for now. Blocked skills show Formal’s standard block message.
Handle exceptions. Employees request MCP servers, or exceptions to a blocking policy, from the employee Catalog, and admins grant access once, for 30 minutes to 7 days, or for good. For urgent requests, pair Access Requests with a Slack flow in Workflows. Approved MCP servers can then run through a central MCP gateway.
AI usage monitoring and spend
AI usage monitoring in Formal is a set of read-only pages built from proxied traffic: Usage, Models, MCPs, Skills, Applications (such as Claude Code) and Providers (such as Anthropic). Each inventory covers the last 30 days with users, requests, policy hits, first seen and last used, linked to the matching logs. See the AI usage docs.
Spend follows from the same traffic. You set token prices, Formal estimates the cost of each LLM request, and a policy can cap what each user spends per day, week or month. For controls on LLM traffic itself, see AI gateway.
Two features go beyond counting. Insights runs every 15 minutes on new LLM traffic, maps findings to the OWASP Top 10 for LLM Applications (2025) and sends them to your log integrations, so they reach your SIEM. Assessments score each tool call for risk and for alignment with the user’s intent, and response policies can block on those scores.
Detection in the traffic path
An inventory collected by survey is out of date the day an agent loads a new skill. A control point in the traffic path sees what agents call and enforces a decision on the next request. At Cursor, agents reach sensitive data through Formal’s Connector, which inspects every request and enforces scoped policies:
“Without Formal, we couldn’t have agents with access to sensitive data. With Formal, because we are able to inspect all traffic and enforce controls, we are able to provide a safe environment for the agents to get the job done.”
— Travis McPeak, Head of Security @ Cursor
Read how Cursor gives engineers and AI agents secure access, or see how Formal handles agent egress beyond AI traffic.
