How to Find MCP Servers on Employee Laptops
Find local MCP servers and unauthorized connections on employee laptops. Compare endpoint discovery tools, detection methods and enterprise controls.
How to Find MCP Servers on Employee Laptops and Detect Unauthorized Connections
An employee installs a coding assistant, opens a repository and connects an MCP server. Minutes later, that assistant can reach source code, local files, a ticketing system or a database. The connection may be perfectly legitimate, but it may never have appeared in the enterprise software inventory. A security team checking only installed applications or open network ports may miss it entirely.
To find MCP servers on employee laptops, combine client configuration inventory, endpoint process telemetry and network connection evidence. Then compare the discovered server, client, identity and accessible tools against an approved inventory. Local stdio servers can run without a listening port, while remote MCP servers can be accessed over HTTPS without running a server process on the laptop
Quick answer: what tools discover MCP servers and unauthorized connections?
Aegis Security and Noma Security offer specialist endpoint AI discovery that includes local MCP servers. Obsidian Security offers MCP connection discovery and governance across supported agent environments. Microsoft Defender for Endpoint can provide process and connection evidence for custom hunting, while managed client controls in VS Code help restrict MCP server access. These approaches complement each other: endpoint telemetry establishes what ran, configuration identifies intended connections, and an approval registry determines what is authorized. See Aegis Security platform, Noma endpoint agent security, Obsidian MCP discovery and VS Code enterprise policies.
A server is not automatically unauthorized because it is newly discovered. Conversely, an approved server is not automatically safe for every employee, account or tool. The objective is to identify the actual execution and access path, not merely to count MCP packages.
Why MCP servers escape conventional endpoint inventories
Model Context Protocol (MCP) provides a standard interface through which AI applications can use external capabilities. A host such as an IDE or coding assistant establishes connections through MCP clients. A server exposes tools and potentially resources or prompts. The server may execute locally or run elsewhere; downstream actions may use a different network route and credential from the client connection itself.
The two principal transport patterns are stdio and Streamable HTTP. Older deployments can still use legacy HTTP/SSE. In a stdio setup, a host can launch a child process and exchange messages through pipes. The child may be a script, a package runner, a compiled executable or a container entry point. In HTTP deployments the client connects to an endpoint, which may be on loopback or a remote host. These are distinct from the server’s downstream calls to external systems. See MCP transport guidance.

Four discovery states that security teams must distinguish
State | Evidence | What it does not establish |
Configured | Client settings or plugin metadata declares a server | That it has ever started or connected |
Running locally | Process creation and correlated client/child activity | That a tool was called or approved |
Connected | Client session evidence or correlated HTTP activity | That a specific tool action was permitted |
Tool activity observed | Supported client, gateway or server audit event | That the action meets business authorization policy |
Keep authorization as a separate field, not as a fifth lifecycle state. A dormant configuration can be unapproved, a running server can be approved, and an approved endpoint can expose an unapproved write tool. An evidence-backed inventory avoids interpreting each of these as the same incident.
How to find MCP servers on employee laptops: a practical discovery workflow
Inventory the clients and their configuration scopes
Start with company-managed macOS and Windows devices and the AI clients your organization permits. Include IDEs, standalone desktop assistants, command-line coding agents and their plugins. An application may support user, workspace, organization or plugin-provided configurations, and settings can change by version. Inventory those scopes independently. Do not assume one file captures every connection.
Client | Examples of configuration evidence | Review approach |
VS Code | Workspace .vscode/mcp.json and user/profile MCP configuration | Inspect effective MCP settings, server list, managed rules and discovery settings. VS Code MCP configuration reference |
Cursor | ~/.cursor/mcp.json and project .cursor/mcp.json | Review user and project entries plus managed configuration. Cursor MCP documentation |
Codex | ~/.codex/config.toml and plugin-declared servers | Review MCP entries and effective client settings. OpenAI Codex MCP setup example |
Other desktop or CLI clients | Client-specific settings, plugins and managed policies | Use the vendor’s current documentation and approved collection method. |
Extract server identifiers, transport type, package or executable identity, version where available, normalized destination hostname, configuration scope and modification time. Do not export entire config files: command arguments, environment entries, URLs and headers can contain credentials. Redact values before forwarding metadata. Mark unresolved environment substitutions as unknown, not as empty or harmless.
Correlate local process activity with configuration
A configured stdio server may be launched only when a user opens an agent session. It can disappear between periodic scans. Use endpoint process-creation events to establish which executable started, the initiating client or ancestor, the device, user and timestamp. Correlate the launch with a known MCP configuration entry or client log. Package names and process ancestry are evidence, not proof on their own.
Microsoft Defender for Endpoint exposes process creation telemetry through DeviceProcessEvents. Use the initiating-process fields and process identifiers to correlate client activity with candidate child processes. A generic node, python, uv or package-runner process is not an MCP detection by itself. Establish the expected command or package from reviewed configuration and compare it with observed metadata. See Microsoft Defender DeviceProcessEvents.
On a single managed laptop, an authorized analyst can review the OS process tree in Activity Monitor or Task Manager and inspect the client’s own MCP status. This is useful for investigation, not reliable fleet-wide inventory. Short-lived subprocesses, wrappers, containers and remote development sessions can hide relevant activity from a snapshot. Use supported EDR history rather than repeatedly collecting raw command lines containing secrets.
Identify remote connections and downstream destinations
Look for outbound activity associated with the AI client or the identified server process. Microsoft Defender’s DeviceNetworkEvents provides connection-related records; correlate these with process telemetry and approved destinations. A corporate secure web gateway, DNS service or network monitor can add context when traffic passes through it. See Microsoft Defender DeviceNetworkEvents.
Maintain a distinction between the endpoint the MCP client connects to and the systems the MCP server reaches. A laptop may connect to an approved hosted MCP server that subsequently calls a cloud service using its own credential. The laptop’s network logs may never show that second connection. Conversely, a stdio server might access only local files and produce no external traffic at all.
Do not equate an HTTPS hostname with MCP usage. Shared hosting, proxies, encrypted sessions and generic API clients complicate attribution. Prefer corroborating evidence from the client or managed gateway. Normalize URLs for comparison without retaining query strings, authentication headers or tokens. Where a server runs on a remote SSH host, WSL distribution, container or cloud development environment, deploy appropriate visibility in that environment too.
Build an approval-aware inventory
A discovered server must be matched against an approved record that includes scope, not just a friendly name. Server names can be duplicated or changed; package versions, executable signatures, publisher and destination can drift. Record which business team owns the integration and whether the approval covers personal or corporate accounts, read-only or write tools, and production or non-production data.

What should an MCP inventory record contain?
Field group | Minimum useful metadata |
Attribution | Device ID, managed user, client application, configuration scope, owner |
Server identity | Normalized identifier, transport, approved package/publisher/version or remote destination |
Evidence | First/last seen, configuration timestamp, process or session evidence, collection source |
Access | Known authentication type, account class, exposed tool categories, known downstream systems; mark unknowns |
Authorization | Approval reference, allowed users/groups, environments, permitted tools, expiry |
Response | Risk tier, confidence, analyst decision, remediation status, last review |
An MCP inventory is a relationship map: one user can operate several clients, each client can connect to multiple servers, and each server can expose tools with different privileges. Where possible, represent these relationships rather than flattening them into one server name. The same server can be legitimate in one project and prohibited in another.
How to identify unauthorized MCP connections
Define authorization before alerting. A connection is unauthorized when it violates an applicable policy: an unapproved server, prohibited account, disallowed destination, unauthorized tool or deployment outside its approved scope. When evidence is incomplete, classify the finding as needing review. OWASP identifies shadow MCP deployments as an asset-visibility and governance risk; see OWASP Shadow MCP Servers.
Finding | Why it matters | Recommended response |
Unregistered server | No verified owner or approval | Validate purpose and publisher; restrict if required |
Approved server, personal account | Company access may be tied to an unmanaged identity | Verify account scope; migrate or revoke according to policy |
New package/version or destination | Previously reviewed identity may have changed | Reassess provenance and scope before allowing changes |
Write or delete capability outside approval | Potential unauthorized modification | Validate actual access; restrict the tool or credential |
Unknown identity or overly broad access | Weak accountability or excessive blast radius | Review scopes, replace broad credentials, assign owner |
Unapproved outbound destination | Possible unintended data transfer | Correlate evidence and apply approved network controls |
A high-confidence finding needs evidence of what was observed and which policy it violates. A package name containing “mcp” is a weak indicator. A configuration entry for an unapproved destination combined with a verified client session is stronger. A supported tool-call audit event showing a prohibited action is stronger still. Treat lack of telemetry as uncertainty, not proof that a device is safe.
Which tools can find MCP servers on employee laptops?
A practical shortlist includes specialized agent security platforms, existing endpoint security telemetry and client-native governance. The comparison below describes documented roles rather than an independent benchmark or universal compatibility claim. Verify the exact client, operating system and enforcement path in your own environment.
Tool | Documented role | What to verify in a pilot |
Managed endpoint AI discovery on macOS and Windows; local coding agents and MCP servers, access context, employee AI controls. | Exact supported MCP clients, remote connection attribution, tool-level evidence and endpoint rule scope. | |
Endpoint agent and MCP discovery through existing EDR/MDM integrations; MCP governance and runtime protection described. | Supported EDR/MDM, telemetry requirements, offline visibility and enforcement coverage. | |
Continuous MCP connection discovery and governance in supported agent environments. | Which endpoint clients and transports are directly observed; distinguish supported blocking from discovery. | |
Microsoft Defender for Endpoint | Process and network telemetry for analyst-built hunting. | Configuration ingestion, correlation logic, retention and client coverage; not a turnkey MCP catalog. |
VS Code enterprise management | Managed MCP access policies for supported VS Code environments. | Policy deployment, allowed registry behavior and coverage of non-VS Code clients. |
Noma describes MCP lifecycle discovery and governance in Noma MCP security. Obsidian’s Obsidian MCP audit guide and Obsidian unsanctioned MCP guidance discuss server configuration, authentication, access and runtime scope. A security team should request a demonstration using both a stdio server and a remote HTTP connection, rather than assuming a vendor’s general MCP feature covers both.
Where Aegis fits in endpoint MCP discovery
Aegis addresses the employee AI visibility problem as part of its broader agent discovery platform. Its public documentation describes a managed endpoint agent for macOS and Windows, together with a managed Chrome and Edge browser extension. The endpoint capability identifies coding agents and local MCP servers, including access context. The employee AI controls can warn or block unapproved AI tools and detect or mask sensitive content in supported employee AI interactions. See Aegis Security platform.
For teams concerned about surveillance and collection of sensitive data, Aegis states that endpoint detection and masking run locally and prompt and file content remain on the laptop. The service receives event metadata rather than raw content, as described in Aegis security and trust. This is a useful design consideration when inventorying developer endpoints where source code and credentials may be present.
Distinguish endpoint discovery from the separate Aegis runtime policy SDK for customer-built Python agents. The latter can evaluate wrapped tool calls before execution. That does not establish that every third-party desktop client or every remote MCP connection has universal inline enforcement. Ask Aegis to demonstrate support for the exact client, transport and rule you need, including remote endpoints and tool-level connection attribution. Do not treat an endpoint discovery finding as a proven blocked tool call.
Aegis can be evaluated alongside existing EDR, identity and network controls rather than as a replacement for them. Existing endpoint agents help investigate processes, identity systems control credentials, and network controls address allowed destinations. An AI-specific inventory can make these findings intelligible in terms of agents and tools. For related architecture, see AI agent discovery across the enterprise and Shadow AI agents.
An illustrative investigation: an unreviewed MCP server on a developer laptop
Imagine a managed engineering laptop where an approved IDE gains a new project-level server entry. The entry declares a local command. Endpoint telemetry later shows a related child process, and the process contacts a domain not associated with the project’s approved integrations. No evidence yet establishes a data leak or a malicious package. The SOC has a reason to investigate, not a reason to declare a breach.
First, preserve a redacted record of configuration scope, package identity, process lineage and destination metadata. Compare the package and destination to the approved registry. Ask the project owner to confirm intended use. Review the permissions of the associated account through the authoritative identity or service console. If the connection is prohibited, use the organization’s approved response process to disable the integration, revoke relevant credentials and assess downstream access. If it is legitimate, document the review and scope before allowing continued use.

How to prevent unauthorized connections without breaking developer workflows
Discovery is the beginning of governance. If every unrecognized process is immediately terminated, security teams may interrupt development without establishing risk. Start with visibility and owner review, then enforce narrowly defined policies for high-confidence violations. Use a managed registry with approved package identifiers, publishers, version constraints, remote destinations and eligible users. For supported VS Code deployments, the enterprise-managed MCP allowlist can restrict which servers run; see VS Code enterprise policies. Other clients need their own validated enforcement mechanism.
At the downstream service, grant narrowly scoped credentials and restrict write operations independently of the agent. Use explicit authorization checks for sensitive tools, because an allowlisted server can expose capabilities that exceed a particular project’s needs. An employee should not be able to acquire broader access simply by changing clients. See MCP permissions and How to secure MCP servers without breaking AI agents for related control design.
When rolling out restrictions, provide an exception workflow with an accountable owner, expiry, business justification and review. Maintain an emergency revocation process for compromised credentials or prohibited integrations. Test whether restrictions apply to workspace-level entries, plugins and alternate clients, and whether network outages or policy refresh failures change the result.
Enterprise proof of concept: eight tests to run before buying
Test | Evidence required |
Configured but never started | Inventory marks configuration, without claiming execution. |
Local stdio server without listener | Discovery identifies the launch or configuration without depending on a network port. |
Short-lived local process | Historical events remain attributable after the process exits. |
Remote HTTPS MCP | Connection is linked to the correct client/server when supported; uncertainty is explicit. |
Workspace and plugin changes | New or modified entries appear with scope and timestamp. |
Approved server with prohibited tool | Product distinguishes server approval from tool-level authorization, if supported. |
Unapproved connection | Policy violation can be traced to a specific rule; supported prevention is demonstrated. |
Privacy and offline behavior | No raw secrets in exported evidence; missing/offline telemetry and retention are visible. |
Measure coverage using a known test inventory rather than the number of alerts: detected test servers divided by expected test servers, separately for configured, running and connected states. Track time to discovery, attribution accuracy, false positives, review completion and the percentage of findings with known owners. Compare like-for-like across operating systems and clients. An offline device belongs in an unknown coverage bucket rather than a successful detection count.
Frequently asked questions
How do I find MCP servers running on employee laptops?
Inventory AI client settings and correlate declared MCP servers with endpoint process activity and connection evidence. Use EDR or a dedicated endpoint AI discovery platform to cover managed devices continuously. A configured server is not necessarily running; confirm process or session evidence.
What tools can identify unauthorized MCP connections?
Aegis and Noma offer endpoint MCP discovery, Obsidian provides MCP connection governance in supported environments, and Defender for Endpoint supplies hunting telemetry. Use an approved registry and scope rules to determine whether a connection is unauthorized. Verify each platform’s exact support.
Can network scanning find every MCP server?
No. A local stdio server exchanges messages over process pipes and need not open a listening port. A remote server may be accessed through HTTPS without running a local server process. Combine configuration, process and network evidence.
Can EDR detect MCP servers?
EDR can capture process and network signals that support detection. Generic processes or HTTPS destinations alone do not identify MCP reliably. Correlate them with known client settings and supported session logs, or use a specialist discovery platform.
Is a configured MCP server the same as an active connection?
No. Configuration shows intended availability. A process launch or session event shows activity; a tool-call record provides stronger evidence of actual use.
How can I find MCP servers on macOS and Windows at scale?
Use authorized endpoint management or EDR collection alongside client-specific settings and specialist AI inventory. Verify support for user profiles, workspace configurations and remote development environments.
How can I tell whether an MCP server is unauthorized?
Compare its identity, version, destination, user or group, account and accessible tools to the approved policy. If no approval exists or evidence is incomplete, route it for review; a confirmed violation requires an applicable rule and supporting evidence.
Does Aegis discover local MCP servers?
Yes. Aegis documents local MCP and coding-agent discovery through its managed macOS and Windows endpoint capability. Confirm specific client support, remote-connection visibility and enforcement behavior in a technical walkthrough.
Should a company block all unknown MCP servers?
Apply the company’s risk policy. Restrict clearly prohibited connections, investigate uncertain findings, and maintain a time-limited approval path for legitimate development needs. Preserve downstream least-privilege controls regardless of server approval.
Conclusion: make MCP connections visible before expanding agent access
MCP discovery is not a one-time port scan. It is the ongoing process of understanding which clients are configured to use which servers, which processes and connections actually occur, and whether the resulting access matches enterprise policy. A reliable inventory distinguishes observed facts from inference, and a reliable control program checks the specific tool and identity rather than trusting a server name.
Start with your managed laptop fleet, establish an approved inventory, and validate both stdio and remote HTTP paths. Add enforcement where the organization can demonstrate coverage, and retain evidence for every exception and policy decision. Explore the Aegis Security platform to evaluate employee AI and MCP discovery alongside your existing security stack. Bring a representative laptop, one local MCP server and one remote connection to the technical walkthrough.