Founding-customer offer: Subscribe before January 1, 2027 and get 50% off your first year of MCP Tower. Lock in 50% →

Subscribe before January 1, 2027 and get 50% off your first year of MCP Tower →

Monitoring and auditing enterprise MCP connections for compliance

Agents connected to internal systems over the Model Context Protocol are, from a compliance point of view, users. They sign in, they read data, they change data. An auditor who asks “who accessed customer records last quarter and what did they do” expects the agents in that answer, with a person behind each one.

MCP has grown the pieces that make that answer possible. This article explains what each piece is, what it tells you, and what it doesn’t, and then how the resulting records map to the frameworks auditors work from.

Key takeaways

  • Since the 2026-07-28 revision, every MCP request over HTTP names its method and its tool in two headers, so an access log can record a tool call without parsing the request body.
  • clientInfo and serverInfo travel with every request and result. They say which software called and which answered; they are context, not proof of identity.
  • MCP’s own logging feature, roots and sampling are deprecated. Older clients still use them, so a monitoring setup should still recognize them.
  • OAuth 2.1 with resource indicators ties every remote call to a person. Local servers run outside that model, which is why discovery matters as much as logging.
  • SOC 2 and ISO 27001 treat agent tool access as logical access plus monitoring. The EU AI Act’s logging duties for high-risk systems start in December 2027.
  • Tool poisoning, shadow servers and over-privileged tokens are all caught by the same routine: inventory, scan, compare, repeat.

Mcp-Method and Mcp-Name

MCP messages are JSON-RPC. Before July 2026, the only place the name of a tool being called appeared was inside the body of the HTTP POST. A proxy, a firewall or an access log that didn’t parse JSON-RPC couldn’t tell export_customers from list_plans.

The 2026-07-28 revision of the specification requires two headers on every POST a client sends over Streamable HTTP:

  • Mcp-Method: the JSON-RPC method, for example tools/call, tools/list or resources/read.
  • Mcp-Name: the name of the tool, prompt or resource the request is about.

The stated purpose is to let infrastructure route and authorize a request without reading its body. The consequence for auditing is that an ordinary HTTP access log, extended with these two headers, becomes a per-tool record: which method, which tool, what status, how long. It is the cheapest audit trail MCP offers, and the first one to switch on.

clientInfo and serverInfo

A tool name without an actor is half an audit event. The same revision made MCP stateless by default: the Mcp-Session-Id header was removed, and instead clients should send clientInfo (name and version of the client software) with every request, and servers should return serverInfo in every result. Trace context, the W3C traceparent, tracestate and baggage fields, is carried in _meta, so one trace ID can follow a call from the agent through a gateway to the server and on to whatever API the server used.

Two things are worth understanding about these fields.

clientInfo is a self-description. A client can call itself anything. It belongs in the log as context, so you can see which assistant or coding agent was used, but the identity an audit rests on is the subject of the OAuth token, described below.

serverInfo says which server, and which version of it, produced a result. That matters because a server is not a fixed object: its tool list and tool descriptions can change between the day it was approved and the day it was used. A record of what a server advertised on each day, kept independently of the server itself, is what lets you answer “what did this server look like on August 14th”. MCP Tower’s MCP server audit keeps that record for the servers you publish: a daily scan of the tools, their arguments and their descriptions, with an alert when any of it changes. Its account audit log records the other side: who in your organization changed servers, tools, billing or members, and when.

Protocol logging

MCP has had a logging capability for a long time. A server declares it, and can then send notifications/message events to the connected client at levels from debug to emergency.

This is often mistaken for an audit log. It isn’t one. The messages go to whichever client is connected at the time, not to a system of record, the server decides what to send, and nothing keeps them. The 2026-07-28 revision deprecated the feature and points implementers to stderr for local servers and to OpenTelemetry for everything else.

OpenTelemetry is the right destination for audit data anyway. Its semantic conventions for MCP, still marked as in development, give the fields stable names: mcp.method.name is required, gen_ai.tool.name carries the tool, and tool arguments and results are opt-in attributes. A sensible default is to log argument keys and hashes, plus the size and hash of results, and to turn on full payload capture only for the few tools that touch regulated data. Pin the version of the conventions you build against, and do redaction in the collector before anything reaches the SIEM.

Roots

Roots are how a client tells a server where it may work. A coding assistant can expose one project directory as a root, and a well-behaved server stays inside it. From an audit perspective, roots answer part of the question “what could this server reach”.

Roots are deprecated in the 2026-07-28 revision, but clients that are a few versions behind still answer roots/list. The practical rule is: when a session declares roots, record them. A server that was given one folder and later shows up reading somewhere else is exactly the kind of anomaly monitoring exists to catch.

Sampling

Sampling runs in the opposite direction from a tool call. Instead of the agent calling the server’s tools, the server asks the client to run a model completion on its behalf, with a prompt the server wrote.

It is useful, and from a compliance standpoint it is sharp: a third-party server you connected can initiate model calls, with data you didn’t choose, billed to your account and visible to your model provider. Sampling was deprecated in the same revision. Any sampling/createMessage request from an older client deserves its own log event and, in most organizations, its own alert, because “an external server generated text through our model provider” is something a security owner should know before anyone else does.

Authentication and authorization

Everything above produces records. Authorization is what puts a human name on them.

Since the 2025-11-25 revision, an MCP server is an OAuth 2.1 resource server. The rules that matter for auditing:

  • Clients must send RFC 8707 resource indicators, so a token issued for one server is useless against another, and audience validation failures are a meaningful signal.
  • PKCE is mandatory.
  • Token passthrough is forbidden: a server may not forward the client’s token to a downstream API as if it were its own. This keeps the downstream system’s logs honest about who acted.
  • The 2026-07-28 revision added issuer validation and replaced dynamic client registration with client ID metadata documents, so a client’s identity is a stable URL you can allowlist.
  • Enterprise-Managed Authorization became a stable extension in June 2026. The organization’s identity provider decides which servers each user may reach, and revokes access in one place.

With this in place, an audit event can carry the user, the client ID, the scopes, the token’s audience and the policy decision. Log denials as carefully as successes; a spike of denials for one user or one client is one of the most useful detections available.

The limit to understand is that authorization is optional in the specification, and servers started locally from a developer’s machine run with whatever credentials are in that developer’s environment. No gateway sees them. That is why discovery, covered at the end, is part of the audit story and not an afterthought.

SOC 2 and ISO 27001

Auditors don’t test “MCP”. They test criteria, and MCP connections fall under criteria that already exist.

In SOC 2, CC6.1 wants new infrastructure and software registered, authorized and documented before it receives credentials. CC6.2 and CC6.3 want credentials provisioned and removed deliberately, with least privilege. CC7.2 wants system components monitored for anomalies, including unauthorized actions by authorized people. CC8.1 wants changes approved. CC9.2 covers vendor risk, which is where third-party servers sit.

Read with MCP in mind, the evidence pack follows directly:

  • a register of approved servers with owners and approval tickets (CC6.1, CC8.1);
  • a token inventory with scopes and review dates (CC6.2, CC6.3);
  • the gateway or access log with user, tool and decision, the alert rules that read it, and the tickets showing alerts were triaged (CC7.2, CC7.3);
  • change approvals for servers whose tool definitions changed (CC8.1);
  • vendor assessments for external servers (CC9.2).

ISO 27001:2022 asks the same questions with different numbers. Control 8.15 wants logs produced, stored, protected and analysed; 8.16 wants monitoring for anomalous behaviour; 5.19 to 5.23 cover suppliers and cloud services; 5.9 wants an inventory of assets. Add MCP to the Statement of Applicability by name, write logs to storage with a write-once lock, restrict deletion to a break-glass account, and log access to the logs. That last item is a control in its own right.

Neither framework sets a retention period. Pick one you can defend, such as 90 days hot and 13 months in immutable cold storage, so one full audit period is always retrievable, and apply it consistently.

The EU AI Act and other frameworks

For internal coding and productivity agents, the EU AI Act’s high-risk obligations almost certainly don’t apply. They are worth knowing anyway, because a customer-facing feature built on the same plumbing might one day qualify. Article 12 requires automatic logging for high-risk systems; Article 26(6) requires deployers to keep those logs for at least six months. After the Digital Omnibus, those obligations apply from 2 December 2027 for stand-alone high-risk systems. The practical step today is to document the classification decision, which is what an auditor can check.

Other frameworks line up with the same records:

  • ISO 42001 asks for an inventory of AI systems and for event logs kept while a system is in use.
  • NIST AI RMF wants an AI inventory, third-party risk management and a way to disengage a system. A deny-all rule per server at the gateway provides the last one in seconds.
  • NIST CSF 2.0 supplies the structure most boards recognize: identify, protect, detect, respond.
  • GDPR is the constant underneath. Tool arguments and results can contain personal data, so payload logging stays minimal, retention is a decision rather than an accident, and the operators of third-party servers appear in the processor list.

The threat and compliance landscape

OWASP’s MCP Top 10, still in beta but already the shared vocabulary, describes what monitoring is defending against:

  • Tool poisoning: malicious instructions hidden in a tool description that the model reads at discovery time.
  • Prompt injection through tool outputs: a web page, ticket or email returned by a tool steers the agent.
  • Over-privileged tokens: access that started as temporary and became permanent.
  • Shadow servers: servers added through an IDE config or a package command that nobody approved.
  • Confused deputies and token passthrough: a server acting with an identity it shouldn’t have.
  • Lack of audit and telemetry, listed as a risk in its own right.

None of it is hypothetical. In 2025 the first malicious MCP server was caught in the wild: a widely downloaded email package that, from one version onward, copied every message it sent to an address its author controlled. A critical command-injection flaw in a popular bridge for remote servers let an untrusted server run commands on the connecting machine. Scans of thousands of public servers have found a meaningful share with at least one serious finding.

Guidance bodies have caught up. CoSAI published a taxonomy of MCP threats in January 2026. The NSA’s AI Security Center published design considerations in May 2026, recommending a filtering outgoing proxy for external connections, separation between tools that handle public data and tools that handle sensitive data, and MCP logs fed into existing security monitoring.

The point all of these share is that a server’s tool list is a promise it can break tomorrow. An approval should record a hash of the tools as reviewed, and a nightly job should re-read every tool list and compare it with the approved one. For the servers you publish, the MCP server audit in MCP Tower does that comparison daily and reports a change down to a single word of a description. A server that passed review in June and changed its tools in August is, until re-reviewed, an unknown server.

Auditors and governance

Governance is the part auditors spend the most time on, and it fits on two pages.

  • Scope: every MCP client and server used with company data or credentials, local or remote.
  • Default deny: only servers in the approved register may be used.
  • Data-class rules: tools that read confidential data and tools that send data outside the company are not enabled in the same agent session without approval; production writes require a human confirmation.
  • Credential rules: no long-lived personal tokens in config files; no token passthrough.
  • Ownership: every server has a named owner and a review date.

The approval workflow is a ticket with the business purpose, the data touched and the tools needed, followed by automated checks on the tool definitions and the package, a review scaled to risk, a pinned version and an entry in the register. Drift in the tool hash sends the server back to the start. Quarterly, each owner certifies who still has access and which tokens are still live.

The register is the single source of truth: client allowlists point at it, gateway configuration points at it, and so does the board metric most worth reporting, the percentage of MCP tool calls that flow through a governed, logged path. Explained in one sentence: “95% means nineteen of every twenty agent actions on company systems are attributable to a named person and reviewable.”

Least privilege and continuous scanning

Least privilege, in MCP terms, means:

  • remote servers behind a gateway that brokers credentials, so users never hold downstream tokens;
  • scoped OAuth grants with short-lived access tokens;
  • per-tool allow rules rather than per-server ones, with write tools set to ask;
  • for local servers that can’t be retired, secrets from the operating system’s keychain instead of plaintext JSON, run in containers with the narrowest scopes available;
  • on Kubernetes, one namespace and one service account per server, with an egress allowlist, which is the exfiltration control most teams already have and forget to use.

Continuous scanning closes the loop:

  • Nightly: re-read every approved server’s tool list and compare it with the pinned hash.
  • Weekly: sweep developer endpoints for MCP config files and compare the result with the register; anything unknown becomes a ticket.
  • On every pull request: check for committed MCP configs.
  • At the network edge: use whatever can see the traffic. Cloudflare Gateway, for example, has flagged requests carrying the MCP-Protocol-Version header since August 2026 and can list the MCP servers your devices talk to outside your approved set, though only for traffic it inspects, and a missing header never proves a request isn’t MCP.

Where to start

If you publish an MCP server, make your customers’ audits easy: implement the 2026-07-28 headers, return serverInfo on every result, support OAuth 2.1 with resource indicators, and keep a dated record of your own tool list so they can prove what you advertised and when. The free MCP server audit runs hundreds of checks on a server’s public endpoint, the 2026-07-28 headers among them, so you can see where yours stands.

If you connect agents to servers, start with the register. The gateway, the log schema, the detections and the board metric all hang off that one list of what is approved and who owns it.

Similar articles

Claude connector search: how an MCP gets found

Claude connector search: how an MCP gets found

In the previous article on the Claude Marketplace we talked about Claude suggesting connectors when one fits the task. Now we want to dive deeper into Claude connector search through one example…

Read article: Claude connector search: how an MCP gets found

How Muse calls your MCP server: user agents, networks and sessions

The first time we connected an MCP (Model Context Protocol) server to Muse, Meta's AI agent, it told us the server had refused it and asked us to sign in again. The server's logs showed nothing wrong…

Read article: How Muse calls your MCP server: user agents, networks and sessions
MCP elicitation: your tool can ask follow-up questions

MCP elicitation: your tool can ask follow-up questions

Version 2026-07-28 of the Model Context Protocol introduced a new way for an MCP server to follow up with the user in the middle of a tool call: elicitation. The tool sends a special command…

Read article: MCP elicitation: your tool can ask follow-up questions

What's new in MCP: November 2026

What's new in MCP this month, in short: there is no new specification revision, and 2026-07-28 is still the latest one. The next release is now planned for March 30, 2027, on a new six-month release…

Read article: What's new in MCP: November 2026

ChatGPT plugin directory: a new growth channel

The ChatGPT plugin directory gives an MCP server something it never had before: a listing in front of ChatGPT users, reviewed by OpenAI and backed by a model that decides when to call it. I think this…

Read article: ChatGPT plugin directory: a new growth channel
Claude Marketplace: a new MCP growth channel

Claude Marketplace: a new MCP growth channel

The Claude Marketplace is where Claude users find connectors, and for a team that ships an MCP server it looks a lot like the early App Store: a catalog that lives inside the product people already…

Read article: Claude Marketplace: a new MCP growth channel

Gemini Connected Apps: a new MCP growth channel

Gemini Connected Apps let an MCP server work inside the Gemini app and Google Search, and on October 28, 2026 Google opened the program to more developers with the Connected Apps Platform. For a team…

Read article: Gemini Connected Apps: a new MCP growth channel

Grok Bot Marketplace: a new MCP growth channel

The Grok Bot Marketplace is xAI's new way to get a plugin or MCP server in front of Grok Bot and Cursor users, with Grok itself listed as coming soon. One form on xAI's site covers all three. In this…

Read article: Grok Bot Marketplace: a new MCP growth channel

Muse MCP connectors: Meta's new growth channel

Muse connectors let Meta's personal AI agent use your product while it works on a user's task. If your team ships an MCP server, Meta's new Muse Connector Platform lets you list it as a Muse MCP…

Read article: Muse MCP connectors: Meta's new growth channel

Official MCP Registry: a new MCP growth channel

The official MCP Registry is the one place where you publish your MCP server's metadata and let other catalogs pick it up. Before it existed, every directory had its own submission form, pull request…

Read article: Official MCP Registry: a new MCP growth channel

Perplexity connectors: a new MCP growth channel

Perplexity connectors let Perplexity search, read and act in other products on a user's behalf, and the remote ones run on the Model Context Protocol. For a team that ships an MCP server, that makes…

Read article: Perplexity connectors: a new MCP growth channel

How to publish an MCP server to the MCP Registry

To publish an MCP server to the official MCP Registry, you describe it in a server.json file, prove that you own its namespace, and push the file with the mcp-publisher CLI. There is no form and no…

Read article: How to publish an MCP server to the MCP Registry

How to submit an MCP to Gemini

To submit an app to Gemini, you register your remote MCP server as a Connected App in the Google Connected Console, test it with Gmail accounts, send it for review and then publish it yourself. This…

Read article: How to submit an MCP to Gemini

How to submit a connector to Claude

To submit a connector to Claude, you send your remote MCP server to Anthropic's Connectors Directory from the developer portal, answer a review, and then publish the approved listing yourself. This…

Read article: How to submit a connector to Claude

How to publish an MCP to Muse

To submit a connector to Muse, you sign in to Meta's Muse Connector Platform, describe your MCP server and your business, hand over credentials and a test account, and wait while Meta reviews every…

Read article: How to publish an MCP to Muse

How to publish an MCP in Perplexity

To submit a connector to Perplexity, you send a connector proposal through a Google Form, and Perplexity's Plugins marketplace team decides whether to take it further. The help center documents no…

Read article: How to publish an MCP in Perplexity

How to submit a plugin to ChatGPT

To submit a plugin to ChatGPT, you upload a ZIP bundle to OpenAI's plugin portal, connect a remote MCP server that anyone on the internet can reach, and wait for review. A first review takes months…

Read article: How to submit a plugin to ChatGPT

How to submit a plugin to Grok

To submit a plugin to Grok, you fill in one short form on xAI's site. It asks for your MCP server URL or a public GitHub repository, a description, testing instructions and the places you want to be…

Read article: How to submit a plugin to Grok