mcpField
A
agent-security

agent-security

Local
github.com/mdfifty50-boopSecurity0Updated 27w ago

About agent-security

agent-security is an MCP server for scanning AI agent setups and activity for security risks. It helps teams inspect configurations, content, permissions, and tool definitions, then produce remediation-focused reports.

Key features

  1. 01MCP 配置风险扫描
  2. 02提示词注入检测
  3. 03密钥与凭据泄露检测
  4. 04Agent 权限审计
  5. 05工具投毒分析
  6. 06生成安全评估报告

Use cases

  1. 01部署前检查 MCP 服务配置
  2. 02筛查 Agent 输入中的注入内容
  3. 03审计 Agent 权限是否符合角色
  4. 04整理安全问题与修复建议

MCP support

作为 MCP 服务,提供配置扫描、注入与密钥检测、权限审计及工具定义分析等工具,并提供 OWASP 和 MCP 安全参考资源。

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"mdfifty50-boop-agent-security": {
"command": "npx",
"args": [
"-y",
"agent-security-mcp"
]
}
}
}
Run commandnpx -y agent-security-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmagent-security-mcp0.1.3

Tools

8

Saved tool list · updated 2w ago

This tool takes no parameters.

Details

From the project README

Agent Security MCP Server

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

Tools

ToolDescription
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)

Resources

ResourceURIDescription
OWASP LLM Top 10security://owasp-llm-top10OWASP Top 10 for LLM Applications (2025)
MCP Security Checklistsecurity://mcp-security-checklistSecurity checklist for MCP server deployments

Installation

cd agent-security-mcp
npm install

Usage

As a standalone server
npm start
In Claude Desktop / MCP client configuration
{
  "mcpServers": {
    "agent-security": {
      "command": "node",
      "args": ["/path/to/agent-security-mcp/src/index.js"]
    }
  }
}
With npx (after publishing)
{
  "mcpServers": {
    "agent-security": {
      "command": "npx",
      "args": ["@asl-throne/agent-security-mcp"]
    }
  }
}

Detection Coverage

Prompt Injection (7 categories, 20+ patterns)
  • Instruction Override -- "ignore previous instructions", "disregard all rules", "new instructions:"
  • Identity Manipulation -- "you are now", "pretend you are", "act as", DAN/jailbreak
  • System Prompt Extraction -- "repeat your system prompt", "show your instructions"
  • Data Exfiltration -- "send this to", "post to webhook", "email everything to"
  • Delimiter Attacks -- ```system, [INST], <|im_start|>system, XML tag injection
  • Encoded Injection -- Base64 payloads, unicode zero-width characters, hex escapes
  • Privilege Escalation -- "sudo mode", "disable safety", "bypass filters"
Secret Detection (25+ patterns)
  • AI Provider Keys -- OpenAI (sk-), Anthropic (sk-ant-)
  • Cloud Credentials -- AWS (AKIA*), GCP (AIza*), Azure connection strings
  • Source Control -- GitHub PATs (ghp_, github_pat_), OAuth tokens (gho_*)
  • Payment -- Stripe live/test keys (sk_live_, sk_test_)
  • Communication -- Slack tokens/webhooks, Telegram bot tokens
  • Database -- PostgreSQL, MongoDB, MySQL, Redis connection URIs
  • Cryptographic -- RSA/EC/OpenSSH private keys, generic PEM blocks
  • JWT -- JSON Web Tokens
  • Generic -- api_key=, secret=, password=, .env file patterns
Permission Audit (6 role profiles)
  • Researcher -- Read + search + web only
  • Analyst -- Read + search only
  • Developer -- Read + write + execute
  • Reviewer -- Read only, no network
  • Orchestrator -- Read + write + task spawning
  • Monitor -- Read only, no network, no write

Pricing

PlanPriceServersFeatures
Free$01 serverSingle scan, basic report
Starter$49/month3 serversContinuous scanning, weekly reports
Pro$199/month20 serversReal-time alerts, CI/CD integration, Slack notifications
Enterprise$799/monthUnlimitedCustom policies, EU AI Act compliance reporting, SSO, dedicated support

Requirements

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

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.