---
title: "MCP Server Security and Governance | Anomity"
description: "Anomity discovers MCP servers on employee laptops across six surfaces, classifies trust and capabilities, flags static credentials and non-OAuth servers, and enforces an approved-MCP allowlist."
url: "https://anomity.ai/solutions/mcp-security/"
source: html
---

- Home

- Solutions

- MCP Security

MCP Security

# MCP security and governance

Find every MCP server on every endpoint, see what it can reach and how it authenticates, and allow only the ones you approved.

## Why MCP is a security surface

Every MCP server is software that runs with real access, chosen and invoked by a model that may be responding to adversarial input. Servers are wired in from public registries, often carry credentials in plaintext config, and are rarely reviewed. Our [MCP security explainer](https://anomity.ai/blog/model-context-protocol-mcp-security-explained/) covers the threat model in depth.

## Where Anomity finds MCP servers

Not every MCP server sits in an agent's config file, so the Endpoint Sensor looks in six places:

- Servers configured in AI agents' own config files, user-level and project-level, across Claude Code, Claude Desktop, Cursor, VS Code and many more.
- MCP packages installed globally with npm.
- MCP packages installed with pipx.
- MCP packages installed as uv tools.
- MCP configs bundled inside IDE extensions.
- Docker MCP Toolkit profiles.

## What Anomity tells you about each server

- Trust: official, community or unknown, from vendor, command and fingerprint signals.
- Capabilities: shell execution, filesystem write, outbound network and credential access, plus dangerous combinations on the same device.
- Authentication posture: OAuth, local, or a static secret in the config, so you can require OAuth for remote servers.
- Secrets: credentials in env blocks and headers, redacted on the endpoint. Only the pattern name, location and severity reach the cloud.
- Version and change history: when a server appeared, changed or was removed, on which device.

## How MCP servers are governed

An approved-MCP allowlist turns discovery into policy: anything not on it raises a finding, and the console suggests servers already seen on the fleet for one-click approval. Further policies block specific server commands, flag unknown-trust servers with high-risk capabilities, and require OAuth.

At runtime, a call to a tool on an unapproved MCP server can be denied at the agent's pre-execution hook before it runs. Remote MCP servers are also joined against identity and gateway sources where connected, such as Okta AI agents and Cloudflare MCP portals.

## What Anomity does not do

- It is not a network proxy or an AI gateway, and it does not read prompts, responses or source code. It reads configuration and metadata.
- Blocking happens at an agent's own pre-execution hook, so it applies to agents that expose one. Agents without a hook interface are discovered and evaluated against policy, but their tool calls are not intercepted.
- The Browser Sensor covers managed Chrome and Edge. AI used in an unmanaged browser is outside its view.
- It complements EDR/XDR, DLP, CASB and your AI gateway rather than replacing them.

## Related reading

[How to build an MCP server registry](https://anomity.ai/blog/how-to-build-an-mcp-server-registry/), [MCP server secrets exposure](https://anomity.ai/blog/mcp-server-secrets-exposure-enterprise-credentials/), [OAuth for MCP servers explained](https://anomity.ai/blog/oauth-for-mcp-servers-explained/) and [MCP tool poisoning](https://anomity.ai/blog/mcp-tool-poisoning-hidden-instructions-campaign/).

## Frequently asked questions

### How do I find MCP servers installed on employee laptops?

Deploy a sensor that reads AI agents' MCP config files and package installs on each device. Anomity's Endpoint Sensor checks six surfaces, including npm, pipx and uv installs, extension-bundled configs and Docker MCP Toolkit profiles, and reports them to one fleet inventory.

### Can Anomity detect hardcoded secrets in MCP configurations?

Yes. Secrets in MCP env blocks, headers and arguments are matched against a credential pattern catalog on the endpoint and redacted before anything leaves the machine. The console shows the pattern, location and severity, never the value.

### Can I allow only approved MCP servers?

Yes. The MCP allowlist raises a finding for any server not on it, and on agents with a pre-execution hook a call to an unapproved server's tool can be denied before it runs.

### Does Anomity replace an MCP gateway?

No. A gateway governs traffic routed through it. Anomity covers the servers configured on the laptop, including those that never route through a gateway, and works alongside one.

See it on your own fleet. The Endpoint Sensor deploys through the MDM you already run, and the first findings typically arrive within 30 minutes.

[Get a demo](https://anomity.ai/#early-access)

## Structured data

```json
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "name": "Home",
      "item": "https://anomity.ai/"
    },
    {
      "@type": "ListItem",
      "position": 2,
      "name": "Solutions",
      "item": "https://anomity.ai/solutions/"
    },
    {
      "@type": "ListItem",
      "position": 3,
      "name": "MCP Security",
      "item": "https://anomity.ai/solutions/mcp-security/"
    }
  ]
}
```

```json
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "How do I find MCP servers installed on employee laptops?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Deploy a sensor that reads AI agents' MCP config files and package installs on each device. Anomity's Endpoint Sensor checks six surfaces, including npm, pipx and uv installs, extension-bundled configs and Docker MCP Toolkit profiles, and reports them to one fleet inventory."
      }
    },
    {
      "@type": "Question",
      "name": "Can Anomity detect hardcoded secrets in MCP configurations?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes. Secrets in MCP env blocks, headers and arguments are matched against a credential pattern catalog on the endpoint and redacted before anything leaves the machine. The console shows the pattern, location and severity, never the value."
      }
    },
    {
      "@type": "Question",
      "name": "Can I allow only approved MCP servers?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes. The MCP allowlist raises a finding for any server not on it, and on agents with a pre-execution hook a call to an unapproved server's tool can be denied before it runs."
      }
    },
    {
      "@type": "Question",
      "name": "Does Anomity replace an MCP gateway?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "No. A gateway governs traffic routed through it. Anomity covers the servers configured on the laptop, including those that never route through a gateway, and works alongside one."
      }
    }
  ]
}
```
