Agent Security MCP Server

Prompt injection detection, secret scanning, permission auditing

Local serverstdio

What is the Agent Security MCP MCP server?

Connect Agent Security MCP to Claude, Cursor or any other MCP client and it stops being a tab you switch to. Prompt injection detection, secret scanning, permission auditing. The agent security mcp mcp server is what makes that connection.

What the server does

Security scanning, prompt injection detection, secret leak detection, and agent permission auditing for AI agent workflows. Built on the Model Context Protocol (MCP).

Installation

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • scan_mcp_config — Scan MCP server configurations for security issues (dangerous commands, exposed secrets, network exposure, container misconfigs)
  • detect_prompt_injection — Analyze text for prompt injection attempts across 7 attack categories with context-aware risk scoring
  • validate_scope_contract — Check if agent actions comply with scope contracts (tool allowlists, file access, boundary constraints)
  • scan_secrets — Detect leaked API keys, tokens, private keys, database URIs, and credentials in text or code
  • audit_agent_permissions — Audit agent configurations against role-based expectations and flag principle of least privilege violations
  • generate_security_report — Generate comprehensive security assessment reports with prioritized remediation plans
  • detect_tool_poisoning — Analyze MCP tool definitions for hidden instructions that could manipulate agent behavior (OWASP Agentic Top 10)

Credentials and setup notes

  • Node.js >= 18.0.0 - @modelcontextprotocol/sdk >= 1.12.0

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Where it fits

Among the database access options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Agent Security MCP's toolset — scan_mcp_config, detect_prompt_injection, validate_scope_contract and 4 more — is a fair guide to whether it matches your workflow. It is maintained by mdfifty50-boop; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
scan_mcp_configScan MCP server configurations for security issues (dangerous commands, exposed secrets, network exposure, container misconfigs)
detect_prompt_injectionAnalyze text for prompt injection attempts across 7 attack categories with context-aware risk scoring
validate_scope_contractCheck if agent actions comply with scope contracts (tool allowlists, file access, boundary constraints)
scan_secretsDetect leaked API keys, tokens, private keys, database URIs, and credentials in text or code
audit_agent_permissionsAudit agent configurations against role-based expectations and flag principle of least privilege violations
generate_security_reportGenerate comprehensive security assessment reports with prioritized remediation plans
detect_tool_poisoningAnalyze MCP tool definitions for hidden instructions that could manipulate agent behavior (OWASP Agentic Top 10)

How to install the Agent Security MCP MCP server

{
  "mcpServers": {
    "agent-security": {
      "command": "node",
      "args": ["/path/to/agent-security-mcp/src/index.js"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js >= 18.0.0 - @modelcontextprotocol/sdk >= 1.12.0

Example prompts to try

  • Use Agent Security MCP to scan mcp config.
  • Use Agent Security MCP to detect prompt injection.
  • Use Agent Security MCP to validate scope contract.

Frequently asked questions

It connects Agent Security MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 7 tools (scan_mcp_config, detect_prompt_injection, validate_scope_contract, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Agent Security MCP directly.