Open-Source Security Tools for MCP Servers and AI Agents

An MCP server can read files, call APIs and run commands on your behalf, so installing one is closer to installing a program than adding a plugin. A malicious or careless server can leak data or be steered by prompt injection.

The defensive tools below do four jobs: scan servers before you trust them, run them in locked-down containers, filter agent traffic through a gateway, and detect suspicious behaviour at runtime. This list covers defence only.

AgentIndex · Updated 2026-10-20

Layers of protection around MCP servers

Scanners reduce risk but do not prove safety. Use layers: scan, isolate, gate and test.

  1. 1Scan before install

    Check tools, prompts and source.

  2. 2Isolate

    Run servers in locked-down containers.

  3. 3Gate and log

    One place for policy, guardrails and audit.

  4. 4Test and detect

    Red-team agents and watch for attacks.

Quick picks

  • mcp-scanner — scans MCP servers and tools with YARA rules, an LLM judge and Cisco's inspect API; the YARA engine needs no key.
  • toolhive — runs and governs MCP servers in locked-down containers, locally or on Kubernetes.
  • agentgateway — open-source proxy for LLM, MCP and A2A traffic with guardrails and observability.
  • agentic_security — vulnerability scanner for LLMs and agent workflows, for red-teaming your own systems.
  • ADR — research code from Uber: a telemetry sensor and dual-agent detector for securing MCP-based agents.

Side-by-side comparison

ToolWhat it isStarsLicenseLast pushMaintenanceReleases, 90 daysCommits, 12 weeksInstall
mcp-scannerApache-2.0 scanner that checks MCP servers and tools for malicious or risky behaviour with YARA rules, an LLM judge and Cisco's inspect API1.1kApache-2.02026-11-06Active5Commits, 12 weeks: 1, 2, 1, 0, 3, 0, 5, 2, 1, 8, 3, 1uv tool install --python 3.13 cisco-ai-mcp-scanner
toolhiveRun and govern MCP servers in locked-down containers, locally or on Kubernetes2.3kApache-2.02026-11-07Active27Commits, 12 weeks: 40, 33, 30, 113, 35, 25, 10, 12, 44, 56, 51, 3git clone https://github.com/stacklok/toolhive.git
agentgatewayOpen-source proxy for LLM, MCP and A2A traffic with guardrails and observability6.0kApache-2.02026-11-07Active9Commits, 12 weeks: 40, 52, 60, 60, 89, 59, 56, 73, 98, 81, 68, 24curl -sL https://agentgateway.dev/install.sh | bash -s -- --install-path /usr…
archestraOpen-source enterprise AI platform with LLM and MCP gateways4.4kAGPL-3.0 (enterprise parts under a commercial license)2026-11-07Active30Commits, 12 weeks: 103, 140, 113, 130, 135, 136, 133, 208, 428, 326, 251, 117docker pull archestra/platform:latest; docker run -p 9000:9000 -p 3000:3000 -…
agentic_securityOpen-source vulnerability scanner for LLMs and agent workflows2.0kApache-2.02026-11-04Active0Commits, 12 weeks: 8, 1, 4, 14, 0, 3, 0, 0, 0, 11, 0, 2pip install agentic_security
ADRApache-2.0 research code from Uber: a telemetry sensor and dual-agent detector for securing MCP-based AI agents2.1kApache-2.02026-10-31Active0Commits, 12 weeks: 7, 18, 1, 15, 8, 4, 17, 5, 48, 0, 0, 0git clone https://github.com/uber/ADR
AiSOCMIT self-hostable AI security operations center with a local model, auditable agent investigations and human-approved responses6.7kMIT2026-11-07Active30Commits, 12 weeks: 0, 0, 0, 0, 0, 233, 213, 124, 229, 47, 62, 57git clone https://github.com/beenuar/AiSOC
agentTerminal DevOps agent with secret substitution and network-level guardrails1.9kApache-2.02026-07-06Slowing0Commits, 12 weeks: 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0curl -sSL https://stakpak.dev/install.sh | sh
ghidra-mcpGhidra MCP server with 245 tools, read-write analysis and a live debugger6.2kApache-2.02026-11-07Active4Commits, 12 weeks: 1, 1, 5, 12, 48, 13, 6, 68, 18, 12, 14, 0git clone https://github.com/bethington/ghidra-mcp.git
ida-pro-mcpMCP server for "vibe reversing" in IDA Pro13.4kMIT2026-09-26Active0Commits, 12 weeks: 1, 2, 0, 1, 0, 11, 0, 0, 0, 0, 0, 0pip uninstall ida-pro-mcp

Tools in this list with an in-depth AgentIndex review: 10/10

How to choose

  • Scan before you install. A scanner that reads tool descriptions, prompts and source code can catch obvious problems early.
  • Isolate what you run. Container-based tools limit what a compromised server can touch.
  • Add a gateway or guardrails if several agents or people share servers, so there is one place to enforce policy and log calls.
  • Scanners reduce risk but do not prove safety; a clean report can still miss problems.
  • Check which tools need hosted services or API keys, and where scan data is sent.

FAQ

How do I check whether an MCP server is safe?

Read its source and tool descriptions, run it with least-privilege credentials, and scan it with a tool such as MCP Scanner. Prefer maintained, well-known servers, and treat any server like a shell: it can do what its permissions allow.

What is tool poisoning or prompt injection in MCP?

It is when text in a tool description, a tool result or a document contains instructions that steer the model into doing something you did not ask for, such as leaking data. Scanners look for such patterns, and gateways and guardrails can limit the damage.

Do I need a scanner and a gateway?

They solve different problems. A scanner checks a server before you trust it; a gateway or container runtime controls what it can do while it runs. For anything beyond personal use, using both is sensible.

How should teams perform red-teaming and security testing on custom AI agents and MCP servers?

Combine automated scanner tools like Cisco AI Defense MCP Scanner to detect malicious prompt injections and tool poisoning with proxy gates like AgentGateway to enforce runtime DLP policies.

How we compiled this list

Tools are chosen by hand from the projects in our index, favouring those we have reviewed in depth. Stars, licence, last-push date and install command come from each repository and are refreshed with the site data. The maintenance column comes from the GitHub API (archived flag, last commit, releases in the last 90 days) and is refreshed daily. We read each project's README and docs; we have not run every tool ourselves, so test before you depend on one.

More lists