MCP security

Know every MCP tool. Decide every call to it.

The Model Context Protocol lets an agent discover tools at runtime from any server it can reach. That is the point, and it is the risk: a tool listing can change, a server can be impersonated and a poisoned description can steer the model. TrustIvan lists each server's tools, records the server as a resource and each tool's publisher-declared effect, and never calls a tool or reads a server's resources or prompts.

AvailableMCP connector (tools/list) · not yet run against a live server

Agents The gate decides on Credential presentedTool entitlementDeclared effectResource impactAutonomy MCP tools
  • mcp://tickets HTTPS auth: bearer 7 tools 4 read · 2 write · 1 unknown unchanged · synced 2h ago Healthy 3 agents entitled
  • mcp://docs-search HTTPS auth: bearer 4 tools 4 read unchanged · synced 2h ago Healthy 5 agents entitled
  • mcp://warehouse HTTPS auth: bearer 9 tools 3 read · 3 write · 3 unknown 2 tools first seen this week Review 2 agents entitled
  • mcp://build-tools HTTPS auth: none 0 tools no tools listed no tools capability declared Degraded 0 agents entitled
Illustrative · sample environment · the MCP connector reads tool listings only; entitlements are declared by an operator

What MCP changes

A protocol for discovering capabilities is a protocol for acquiring authority.

MCP makes tools portable across agents and frameworks. It also moves the moment an agent gains a capability from deploy time to runtime, where no review was ever scheduled.

Discovery At Runtime

An agent learns which tools exist by asking the server, so its capabilities are whatever the server says today

Listings That Drift

A tool's name can stay the same while its description, schema or behavior changes underneath it

Servers Without Auth

Local stdio servers on developer machines have no auth flow at all; whoever can start them is trusted

Coverage

What TrustIvan reads from MCP

The MCP connector lists what a server offers and records each tool's declared effect. Which agents may call a tool is declared by an operator, because a server does not know its callers.

MCP connector

Servers and tool listings

Each sync calls initialize and tools/list over HTTPS, records the server as a resource and every tool it lists, and takes each tool's effect from its readOnlyHint, or records it as unknown. An operator can override an effect and declare which agents may call which tool. Two new tools on a warehouse server become visible on the next sync, with no effect assumed from their names.

  • Server: the operator's name for it and its HTTPS endpoint; private and loopback addresses are refused.
  • Tools: name and publisher-declared effect (read, write or unknown), marked absent when delisted.
  • Never: tools/call, MCP resources or prompts, or any claim about which agents call a tool.

AvailableModel Context Protocol connector

View the integration catalog

Tool listings · mcp://warehouse, mcp://build-tools

6 tools · 2 first seen this week · 2 with no declared effect

  • warehouse.query mcp://warehouse · first seen 41d ago Read Publisher Entitled
  • warehouse.export_table mcp://warehouse · first seen 41d ago Write Publisher Entitled
  • warehouse.grant_role mcp://warehouse · first seen 2d ago Admin Operator Not entitled
  • warehouse.drop_table mcp://warehouse · first seen 2d ago Write Operator Not entitled
  • fs.read_any mcp://build-tools · first seen 5d ago Unknown None Entitled
  • shell.exec mcp://build-tools · first seen 5d ago Unknown None Not entitled

Illustrative · sample environment

Illustrative tool listings from two servers · effect basis and entitlement per tool

Threats

Four ways an MCP server becomes an attack path

Each is addressed by treating a tool as authority an operator grants and a gate decides, not as text the model should be careful about.

Securing AI agent tool access over MCP

Tool Poisoning

A description carries instructions, or a server changes a tool after approval. A tool's effect comes from the publisher's hint or an operator's declaration, never its description, and a tool with no declared effect is challenged

Tool Impersonation

A server mimics a trusted one by name. Tools are keyed to the operator's name for the server, not the name the server gives itself, and a call to a tool never discovered is denied

Rogue And Unsanctioned Servers

A server nobody reviewed is reachable by agents holding real credentials. A call to a tool outside an agent's declared entitlements is denied at the gate

Cross-Server Confused Deputy

A low-trust server's tool output steers an agent into calling a high-trust server. The second call is decided on the credential, the tool's entitlement and effect and the resource's impact; its stated purpose is recorded, never evaluated

Trust boundaries

Three answers, decided per call

Trust in an MCP tool is not a label on the server. It is the entitlement an operator declared, the effect the tool carries and the decision the gate records for every call.

Entitled

An operator declared that this agent may call the tool, and its effect is declared. The call is decided on the resource's impact and the agent's autonomy, and recorded

Undeclared

Nobody has declared what the tool does, or this agent's entitlements were never declared. A mutating call returns CHALLENGE until someone does

Not Entitled

The agent's entitlements are declared and this tool is not among them, or the tool was never discovered. The call returns DENY

What you get

MCP governance with the evidence attached

Every server entry lists its tools, their declared effect and the agents an operator entitled to call them.

MCP Tool Inventory

Every tool each server lists, recorded against the server, with when it was first discovered and whether it is still listed

Publisher-Declared Effect

Read, write or unknown from the tool's readOnlyHint, kept with its basis so a finding never overstates it

Operator Effect Overrides

A declaration that outranks every later sync, for the security engineer who disbelieves a server

Declared Entitlements

Which agent may call which tool, declared by an operator and enforced at the runtime gate

Degraded Servers Reported

A server that answers but declares no tools is degraded, never a green tick over an empty catalog

A Decision For Every Call

Every ALLOW, CHALLENGE and DENY for a call to an MCP tool, recorded immutably with the rules that fired

Posture checks

Five AI agent and MCP checks

NHI Security policies, on by default and tunable under Policies. The three tool checks judge the tools a connector observed an agent using, not the tools it is only entitled to, and apply to registered agents.

Tool description instructs the model (heuristic)

Medium. A tool description matching one of seven pattern kinds, such as override instructions, concealment from the user, a secret-file reference or invisible characters. A heuristic: it only adds findings and never sets a tool effect

Mutating tool without approval

Medium, high for an administrative tool. An agent declared human-in-the-loop that uses a write or administrative tool. Reads declared autonomy only

Privilege exceeds tools

Medium. An administrative provider grant on an agent whose classified tools include nothing administrative

Unauthenticated MCP server

High. A server listed its tools to a connector with no credential. Discovery never calls a tool, so whether one would run for an anonymous caller is not tested

Long-lived agent credential

Medium. No expiry reported, or a lifetime over 90 days (tunable from 1 to 730). A federated credential never raises it

The description check flags a prompt injection risk for a person to read. It does not detect or block prompt injection: text written around its patterns raises nothing, and no match never means a tool is safe. AI agent and MCP checks in the docs

Separately, an opt-in, read-only assessment of each MCP server you connect repeats the listing without the connector's token to see whether the server answers anonymous callers, looks for poisoning patterns, including hidden Unicode, in tool descriptions, schemas and prompt and resource labels, and reports a tool whose definition changed after it was first seen. It keeps a hash of each tool, never its text, and has been tested against a local simulated MCP server only. MCP server assessment in the docs

See TrustIvan on your own estate.

Book thirty minutes with an engineer and bring an image, a repository or a cloud account, or start free on the hosted service.