MCP & A2A

MCP Security: Approvals, Access Control, and Audit for Agent Tools

Corebots Team · · 7 min read

MCP security is about controlling what AI agents can do once you connect them to real systems through the Model Context Protocol: who can use each tool, which calls need a person to approve them, how credentials are stored, and whether you can prove afterwards what happened. The protocol gives you a standard way to connect tools. It leaves most of these decisions to you.

What MCP is, in one paragraph

MCP is an open protocol, introduced by Anthropic in late 2024, that lets AI applications connect to tools and data through MCP servers. A server describes the tools it offers, such as "create issue" or "search customers", and an agent can call them. Hundreds of companies now publish MCP servers for their products, which is why MCP has become the default way to give agents access to business systems.

The main risks

Too much access

Many MCP servers run with a single powerful token. If every agent and every person shares it, an agent built to read tickets can also close them, and you cannot tell who did what.

Tool descriptions are untrusted input

Agents decide which tool to call by reading the tool descriptions a server provides, and they read whatever data a tool returns. Both can carry instructions an attacker planted, often called prompt injection or tool poisoning. Treat third-party servers and their output as untrusted.

Authorization is up to you

The MCP specification defines an OAuth-based authorization flow for servers reached over HTTP, but implementations are not required to use it, and local servers often have none. Do not assume a server checks permissions just because it speaks MCP.

No record of what happened

The protocol does not keep an audit trail for you. Without your own logging, you cannot answer basic questions after an incident: which agent called the tool, on whose behalf, with what inputs, and who approved it.

Unsafe network reach

A server that fetches URLs on an agent's behalf can be tricked into reaching internal addresses. Servers that make outbound requests need the same protections as any other service that does.

Controls that work in production

ControlWhat it means
A curated catalogAgents use only MCP servers your team has reviewed and added, not anything a user pastes in.
The right identityDecide whose identity each server uses, so actions can be traced to a person and limited to what that person may do.
Least privilegeGive each agent only the tools its job needs, and scope tokens as narrowly as the server allows.
Per-tool approvalMark sensitive tools so every call waits for a person with the right role. See our risk matrix.
Secrets stay on the serverEncrypt tokens at rest, refresh them server-side, and never send them to the browser.
LoggingRecord every tool call with the agent, the user, the inputs, the result, and any approval. See what to log.
Test before useCheck a new server's connection and tool list before any agent can call it.

Do you need an MCP gateway?

If you have more than a handful of agents or servers, you want one place that enforces these controls, rather than configuring each agent by hand. Some teams add a separate gateway product. Others use an agent platform that already puts a catalog, identity, approvals, and logging in front of every MCP call. Either way, the goal is the same: no agent reaches a tool without going through your rules.

MCP security checklist

  1. Keep an approved list of MCP servers; block everything else.
  2. Choose, per server, whose identity the agent uses.
  3. Give each agent the smallest set of tools it needs.
  4. Require approval for tools that change data, spend money, or contact customers.
  5. Store tokens encrypted on the server, never in the browser or the prompt.
  6. Treat tool descriptions and tool output as untrusted.
  7. Log every call, and review the log.

Corebots puts an MCP catalog with OAuth sign-in, per-tool approvals, encrypted secrets, and an audit log in front of every tool call, and runs in our cloud or yours. If your agents also need to talk to other agents, read A2A vs MCP next.

See it on your own use case

We’ll walk through the agents, approvals, and deployment option that fit your team.

Keep reading