MCP was introduced by Anthropic in late 2024 and is now implemented by many AI applications and tool vendors. It defines three roles: a host (the AI application, such as a chat client, IDE or agent runtime), the client inside it that holds a connection, and an MCP server that exposes capabilities. Messages are JSON-RPC 2.0, carried over standard input and output for local servers or over streamable HTTP for remote ones. After an initialize handshake, a client can list a server's tools (functions the model may call, each with a name, description and input schema), resources (data the application may read) and prompts (templated instructions). Tool definitions can carry annotations, such as a hint that a tool is read-only.
How it is used in practice
Organizations use MCP to give agents access to internal systems without writing a custom integration per model: an MCP server for the ticketing system, one for the code host, one for a database, each reusable across AI applications. Developers install community MCP servers to extend their coding assistants. Security teams, in turn, have to answer new questions: which MCP servers are in use, which tools each exposes, what those tools can change, which credentials the servers hold, and which agents may call which tools.
Common pitfalls
- Letting the model decide. If the only check on a tool call is the model's own judgment, prompt injection in any content the agent reads can trigger it.
- Trusting annotations. A server's claim that a tool is read-only is a claim; a malicious or careless server can mislabel a destructive tool.
- Tool poisoning. Tool descriptions are read by the model, so a server can hide instructions in them.
- Over-privileged server credentials. An MCP server often holds a broad token for the system it fronts, which every connected agent then borrows.
- Unknown servers. A locally installed server is code running with the user's permissions.
How TrustIvan relates to it
TrustIvan NHI Security's MCP connector reads what a server publishes through the protocol's own initialize and tools/list handshake over streamable HTTP, and records its tools and resources. Each tool gets an effect (read, write, administrative, authenticate or unknown), seeded from the server's read-only hint and correctable by a person with a stated reason. Agents start with no tool entitlements. Before forwarding a tool call, an agent runtime asks NHI Security's runtime gate, which answers allow, challenge or deny using the stricter of the declared action and the tool's recorded effect. The gate does not sit in the network path: it decides only for a runtime that asks it. See MCP server guardrails.
Related terms
- AI agent security AI agent security is the set of controls that govern what AI agents, software that uses a model to choose and take actions, can access and do, including their identity, credentials, tool permissions and runtime authorization.
- Non-human identity (NHI) A non-human identity (NHI) is any identity that authenticates and acts without a person at the keyboard: a service account, IAM role, API key, OAuth application, CI/CD robot, workload identity or AI agent.
- Least privilege The principle of least privilege says that every user, process and machine identity should hold only the permissions it needs to do its job, and only for as long as it needs them.
- Policy as code Policy as code is the practice of expressing security, compliance and operational rules as machine-readable definitions that are versioned, reviewed and evaluated automatically, rather than as prose in a document.
- Software supply chain security Software supply chain security is the discipline of protecting everything that goes into producing and delivering software, including third-party dependencies, source repositories, build systems, artifacts and the path they take to production.
On the platform: MCP security. All glossary terms