The Model Context Protocol standardizes how AI agents connect to external tools, data sources, and servers using a client-server architecture with distinct host, client, and server roles. Because the specification defines the protocol but leaves implementation details, such as authentication enforcement and logging, to individual deployments, the actual security posture of any given MCP server depends on how it was built and configured rather than on the protocol alone. This creates a governance gap. An agent host may be configured to connect to servers whose tool exposure, permission scope, and authentication strength vary widely, and without a structured audit process, security teams have no reliable way to detect unauthorized connections, excessive permission grants, or manifest changes introduced after initial approval. An MCP audit exists to close that gap by treating each server connection as a discrete, inspectable unit with defined artifacts to review.
Defining the Audit Scope
An effective audit begins by separating the three MCP roles: the host application running the agent, the client component that manages server connections, and the servers themselves that expose tools, resources, and prompts. Trust boundaries differ at each layer, so the audit scope should explicitly state which layer is being examined.
Scope should also distinguish between transport types. Locally spawned stdio servers inherit the permissions of the host process and typically rely on OS-level trust rather than network authentication, while remote HTTP-based servers depend on network-level authorization controls, including the optional OAuth 2.1-based framework defined in the MCP specification. Because this authorization flow is permitted but not mandated by the protocol, auditors must verify whether it is actually implemented and enforced for each HTTP server, rather than assuming compliance based on protocol support alone.
Technical Artifacts Required for Reconstruction
Two categories of technical artifacts are necessary to conduct a meaningful audit. The first is the capability negotiation record produced at session initialization, which discloses the full set of tools and resources a server offers before any tool call occurs. This record should be captured and retained at each audit interval, since it is the definitive statement of what an agent could invoke during that session, independent of what it actually did invoke.
The second artifact category is session-level message logs covering tool call requests, their parameters, and the responses returned. Connection metadata alone, such as when a session opened or closed, is insufficient for forensic reconstruction because it does not reveal what data or actions were exchanged. Because the MCP specification does not mandate a standard audit log format, enterprises typically need to design a structured logging layer at the host or gateway level to normalize records across servers that may otherwise produce inconsistent output.
Common Misconfigurations to Check For
Independent security research over the past year has documented recurring issues in MCP deployments that auditors should specifically test for. Some server implementations fail to enforce authentication at all, or ship with overly permissive default configurations that expose tool access without proper authorization checks.
Separately, researchers have identified that tool descriptions and manifests can be manipulated to contain hidden instructions that influence agent behavior, a risk sometimes referred to as tool poisoning. This makes manifest inspection a security control, not merely a documentation exercise, since the text within a tool's description field is part of the attack surface an agent processes. For any third-party or open-source MCP server under consideration, provenance should be verified and known reports reviewed before granting production access, since the protocol itself provides no built-in vetting mechanism for server trustworthiness.
Least-Privilege Validation Practices
- Treat every new MCP server as requiring documented approval and registration before production connection, since MCP has no built-in central authorization control.
- Scope authentication tokens narrowly to the specific tools a server needs to expose, avoiding broad or default access grants.
- Re-validate permission scopes on a recurring cycle rather than at initial approval only, since server updates can change tool manifests outside enterprise control.
- Apply OWASP guidance on excessive agency when evaluating whether an agent's tool access exceeds what its task actually requires.
- Log tool invocation parameters and results in addition to connection events to support later forensic review.
Where Runtime Enforcement Fits
Audit findings identify where MCP connections deviate from least-privilege and governance requirements, but a periodic review alone does not prevent an unauthorized connection or an over-permissioned tool call from occurring between audit cycles. Enterprises that complete this audit methodology typically find that the same inspection points, server registration, permission scopes, and tool call logging, map directly to controls that can be enforced continuously at runtime rather than checked retrospectively. Trussed AI provides runtime governance and security for enterprise AI agents, including MCP security, agent permissions review, tool approval workflows, and audit logging, applying the same principles used in a manual audit as ongoing runtime controls.