Agent Security MCP
Detects leaked GitHub personal access tokens (ghp_*, github_pat_*) and OAuth tokens.
Detects leaked JSON Web Tokens (JWT) in text or code.
Detects leaked MongoDB connection URIs (e.g., mongodb://).
Detects leaked MySQL connection URIs (e.g., mysql://).
Detects leaked OpenAI API keys (sk-*) in text or code.
Provides OWASP LLM Top 10 and Agentic Top 10 resources for security assessments.
Detects leaked PostgreSQL connection URIs (e.g., postgres://).
Detects leaked Redis connection URIs (e.g., redis://).
Detects leaked Slack tokens and webhooks.
Detects leaked Stripe live/test secret keys (sk_live_*, sk_test_*).
Detects leaked Telegram bot tokens.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Agent Security MCP scan my MCP config for security issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Tool | Description |
| Scan MCP server configurations for security issues (dangerous commands, exposed secrets, network exposure, container misconfigs) |
| Analyze text for prompt injection attempts across 7 attack categories with context-aware risk scoring |
| Check if agent actions comply with scope contracts (tool allowlists, file access, boundary constraints) |
| Detect leaked API keys, tokens, private keys, database URIs, and credentials in text or code |
| Audit agent configurations against role-based expectations and flag principle of least privilege violations |
| Generate comprehensive security assessment reports with prioritized remediation plans |
| Analyze MCP tool definitions for hidden instructions that could manipulate agent behavior (OWASP Agentic Top 10) |
Related MCP server: ZugaShield
Resources
Resource | URI | Description |
OWASP LLM Top 10 |
| OWASP Top 10 for LLM Applications (2025) |
MCP Security Checklist |
| Security checklist for MCP server deployments |
Installation
cd agent-security-mcp
npm installUsage
As a standalone server
npm startIn 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
Plan | Price | Servers | Features |
Free | $0 | 1 server | Single scan, basic report |
Starter | $49/month | 3 servers | Continuous scanning, weekly reports |
Pro | $199/month | 20 servers | Real-time alerts, CI/CD integration, Slack notifications |
Enterprise | $799/month | Unlimited | Custom policies, EU AI Act compliance reporting, SSO, dedicated support |
Requirements
Node.js >= 18.0.0
@modelcontextprotocol/sdk >= 1.12.0
License
MIT
Available Tools
8 toolsaudit_agent_permissionsB
Audit an agent configuration for over-privileged access. Compares granted permissions against role-based expectations (researcher, analyst, developer, reviewer, orchestrator, monitor). Flags principle of least privilege violations.
Inputs: role (required), agent_config (required).
detect_prompt_injectionA
Analyze text for prompt injection attempts. Detects instruction overrides, identity manipulation, system prompt extraction, data exfiltration, delimiter attacks, encoded injections, and privilege escalation. Context-aware risk scoring.
Inputs: text (required), context (required).
detect_tool_poisoningA
Analyze an MCP tool definition for poisoning indicators — hidden instructions in descriptions that could manipulate agent behavior. Covers OWASP Agentic Top 10 tool poisoning attack vectors.
Inputs: tool_definition (required).
generate_security_reportA
Generate a comprehensive security assessment report for an agent deployment. Aggregates results from config scans and permission audits into a prioritized remediation plan with OWASP LLM Top 10 compliance notes.
Inputs: agent_name (required), configs, audit_results.
health_checkA
Returns server health, uptime, version, and usage stats
Inputs: no named parameters.
scan_mcp_configA
Scan an MCP server configuration for security issues including dangerous commands, exposed secrets, network exposure, and container misconfigurations. Returns a risk score (0-100), issues found, and actionable recommendations.
Inputs: config (required), server_name (required).
scan_secretsA
Detect leaked secrets and credentials in text or code. Identifies API keys (OpenAI, AWS, GitHub, GCP, Stripe, Slack, Telegram), JWT tokens, database connection strings, private keys, and .env patterns. All values are masked in output.
Inputs: content (required), content_type (required).
validate_scope_contractA
Check if an agent action complies with its scope contract. Validates tool usage against allowlists, file access against permitted paths, and boundary constraints (no_network, read_only, no_exec, no_secrets).
Inputs: action (required), scope_contract (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool addresses a distinct security concern: health, config scanning, prompt injection, scope validation, secrets, permissions, reporting, and tool poisoning. No functional overlap.
All tool names follow a consistent verb_noun pattern (e.g., scan_mcp_config, detect_prompt_injection), making the set predictable and easy to navigate.
8 tools cover a comprehensive range of security operations without being excessive; each tool earns its place for the server's stated purpose.
The tool set covers all major security assessment areas for MCP agents: scanning, detection, validation, auditing, and reporting, leaving no obvious gaps.
Maintenance
Related MCP Connectors
Security scanner for AI agents: prompt injection, leaked secrets, PII, and SSRF-risk URL detection.
Security gateway for AI agents: policy, approval, and audited execution, no secrets shared.
LLM agent security scan: injection, jailbreak, tool abuse probes plus guardrail audit.
The WAF for agents. Pattern-based + heuristic firewall scans prompts, RAG documents, tool argume...
Related MCP Servers
- AlicenseAqualityCmaintenanceProtects AI agents from threats like prompt injection, jailbreaks, and SQL injection through a multi-layer scanning pipeline. It also enables PII redaction and rehydration to ensure data privacy during LLM interactions.12154 npm2Apache 2.0
- AlicenseNot gradedqualityBmaintenanceA 7-layer security system for AI agents that detects and blocks prompt injection, data exfiltration, and malicious tool calls. It enables real-time scanning of inputs, outputs, and tool definitions to protect agentic workflows from emerging AI-specific threats.1MIT
- AlicenseAqualityCmaintenanceSecurity co-pilot for AI agents. Scans for vulnerabilities like prompt injection, infinite loops, and token bombing in AI Agents, audits MCP servers, verifies AGENTS.md governance, and generates EU AI Act compliance reports.1095 npm3Apache 2.0
- AlicenseAqualityDmaintenanceOpen-source permission control plane for AI agents — scan, enforce, and audit every tool call with code-level policies that prompt injection can't bypass.1419Business Source 1.1