Guide
What kinds of tools secure MCP servers and the agents that use them?
Updated
Short answer
MCP security tools fall into 4 categories. Server scanners and allowlists decide what gets connected. Proxies sit on the traffic. Authorization and identity controls scope tokens. Checks on each tool call run where the agent runs. Each one sees a different layer and misses the others, so most teams need more than one.
What you're actually securing#
An MCP server is a program or remote service that gives an agent new tools. On a developer laptop, that can be a local process started from a config file. The MCP spec's own security guidance lists what local servers from untrusted sources can bring: arbitrary code execution, no visibility, command obfuscation, data exfiltration and data loss (MCP security best practices).
OWASP's MCP Top 10 comes at the same ground from another angle. It lists tool poisoning, command injection, prompt injection via contextual payloads, insufficient authentication and authorization, lack of audit and telemetry, and shadow MCP servers (OWASP MCP Top 10).
No single tool covers all of that. The tools sort by where they sit.
Server scanners and allowlists#
These decide which servers get connected at all. A scanner reviews a server's code, dependencies and tool descriptions before you approve it. An allowlist then limits connections to the servers you approved.
Claude Code has part of this built in. A server blocked by an allowlist, a denylist or another restriction in managed MCP configuration is hidden from the claude mcp list and claude mcp get commands. Its docs also say: "Verify you trust each server before connecting it" (Claude Code MCP docs).
- Sees: what a server is and where it came from, at approval time.
- Misses: a server or tool that changes after you approve it, and what the agent does with a perfectly legitimate server.
For the full process, see how to secure MCP servers for coding agents and vetting coding agent extensions and plugins.
Proxies#
These sit between the agent and the servers it calls. They can log traffic and control which tools can be called.
- Sees: MCP traffic routed through them, including traffic to remote servers.
- Misses: anything that skips them. A local server a developer starts from a config file never touches a network proxy. Neither does a shell command or file edit the agent makes on its own.
Ask any vendor in this category exactly which traffic never reaches them.
Authorization and identity#
This means OAuth, checking who a token was issued to, and designing scopes. The spec is blunt: "MCP servers MUST NOT accept any tokens that were not explicitly issued for the MCP server."
- Sees: who is calling and what the token allows.
- Misses: what a properly authorized agent decides to do next. A correctly scoped token can't tell a refactor from an injected instruction.
More in MCP authorization and security for coding agents.
Checks on each tool call where the agent runs#
This category judges the action itself, right before it runs. That matters because content a server returns can steer the agent. OWASP lists tool poisoning and prompt injection via contextual payloads as separate risks, and Claude Code's docs warn that servers that fetch external content can expose you to prompt injection.
A pre-execution check sits at the agent's hook, outside the agent, and looks at the pending command, file edit or push. Say a poisoned tool result talks the agent into sending a secret to a network call. The check can stop that call, no matter which server produced the result.
- Sees: every action the agent takes, in the moment, whether MCP prompted it or not.
- Misses: problems that never become an action on that machine, like a flaw in a remote server's own code. Exfiltration split across several separate calls is the hard case. It doesn't replace scoped credentials or egress policy.
Questions to ask before choosing#
- Does it cover local servers, or only remote ones?
- What happens after approval? Does it notice when a server or tool description changes?
- Where is the decision made, and does anything leave the laptop?
- Does it fail closed if the check can't run?
- Can the agent switch it off, edit its config or talk it out of a decision?
- Does every decision leave a record you can export to your SIEM?
- Can it start watch-only, so you see what agents do before you enforce?
A decision rule#
Start with the layer you can see least of today.
- If you don't know which servers developers have installed, start with an inventory and an allowlist.
- If your servers are remote and touch sensitive APIs, fix authorization and scopes first.
- If agents run for hours without anyone reading each step, add a check on each call. In Anthropic's 1,053-tester study, humans caught 13.6% of dangerous commands and approved 93% of prompts anyway. Approval clicks aren't a control you can count on.
Then add the other layers. An allowlist, scoped tokens and a per-call check together cover approval time, identity and runtime. For tools beyond MCP, see AI coding agent security tools: what each misses.
Where Harden fits#
Harden Agentic Integrity Foundation (AIF) is a per-call check. It runs on the developer laptop, outside the agent, at the agent's pre-execution hook. Before any command, file edit or push runs, it's checked against what the session is supposed to be doing, whether an MCP tool prompted it or not.
Decisions take milliseconds and are made locally. Nothing leaves the machine. One policy covers every agent, and it starts watch-only. AIF doesn't replace allowlists or scoped tokens. It checks each action, which they can't do.
You approve a server once. The agent averages 145 actions a session, and over 1,000 on long ones. Each action needs its own check.
FAQ
Related questions
Do I need an MCP proxy if I already have an allowlist?
They do different jobs. An allowlist controls which servers can connect. A proxy sees and shapes the traffic routed through it, but it won't see a local server started from a config file or the shell commands an agent runs itself.
Are local MCP servers riskier than remote ones?
They carry their own risks. The MCP spec says local servers with weak restrictions or from untrusted sources can mean arbitrary code execution, no visibility, command obfuscation, data exfiltration and data loss on the developer's machine.
Can a scanner prove an MCP server is safe?
No. A scan reviews the server at one point in time. A server can change after you approve it, and a clean server can still return content with injected instructions.
Where should we start with MCP security?
Find out which servers developers actually use and allowlist the approved ones. Then scope tokens and run a per-call check in watch-only mode, so you see what agents really do before you enforce.