About Aidefend MCP
Aidefend MCP is an MCP server published by edward-playground in the Agents category: aIDEFEND MCP is a local-first AI Security Defensive Assistant that brings the full AIDEFEND countermeasure library into your environment and turns static knowledge into actionable protection for LLMs and agentic AI systems — privately, securely, and on-device. Conduid read 18 tools from its source: analyze_coverage, analyze_security_posture, classify_threat, compare_techniques, comprehensive_search, generate_incident_playbook and 12 more. No package is published for it, so it installs from a source checkout.
The repository has 20 stars and 5 forks, and its last commit was on 1 Dec 2026. Conduid has no tagged release on record for it. Its topics include ai-security-tool, aidefend, cybersecurity-tools, iso-42001, maestro and mitre-atlas.
Install
git clone https://github.com/edward-playground/aidefend-mcpTools (18)
analyze_coverageAnalyze defense coverage based on implemented techniques and identify gaps. Provides coverage percentage by tactic/pillar/phase, threat framework coverage, and prioritized recommendations. Essential for security program management.| Parameter | Type | Description |
|---|---|---|
| implemented_techniques * | array | List of technique IDs already implemented |
| system_type | string | Optional system type for context-aware analysis |
analyze_security_posture🛡️ Comprehensive security posture analysis combining technical and threat perspectives. This unified tool merges analyze_coverage + get_threat_coverage functionality.
✅ USE THIS to get holistic view of:
- Technical coverage: Tactics/pillars/phases distribution and gaps
- Threat coverage: Coverage rates across all mapped threat frameworks
- Combined insights: Overall security posture assessment
- Prioritized recommendations: What to implement next
Supports 3 views:
- 'both' (default): Full analysis (technical + threat)
- 'technical': Only tactic/pillar/phase coverage
- 'threat': Only threat framework coverage
💡 TIP: Use empty array [] for baseline security planning (shows all gaps and 0% coverage)
Perfect for security program management, audits, and strategic planning.| Parameter | Type | Description |
|---|---|---|
| implemented_techniques | array | List of technique IDs already implemented (e.g., ['AID-H-001', 'AID-D-001']). Use empty array [] for baseline analysis. |
| system_type | string | Optional system type for context-aware analysis |
| view | string | Analysis view: 'both' (default), 'technical', or 'threat' |
classify_threatClassify threats in text using a 2-tier local matching system: 1) Static keyword matching (free), 2) Fuzzy matching for typo tolerance (free). Maps common threat terms (prompt injection, model poisoning, etc.) to standard framework IDs used by the service. Keyword matching is English-only; for other languages use query_aidefend or comprehensive_search. No external API or paid LLM inference is used.| Parameter | Type | Description |
|---|---|---|
| text * | string | Input text containing threat-related content (e.g., incident report, alert) |
| top_k | integer | Maximum keywords to return (1-10, default: 5) |
compare_techniques🔬 Side-by-side comparison of multiple AIDEFEND techniques with heuristic scoring.
Provides comparison matrix showing:
- **Effectiveness Score (0-100):** Based on threat coverage, implementation support
- **Complexity Score (0-100):** Based on implementation depth and requirements
- **Cost Score (0-100):** Based on tooling and resource needs
✅ USE THIS when:
- Evaluating multiple techniques for selection
- Prioritizing implementation based on ROI
- Understanding trade-offs between different approaches
- Building business case for security investments
Includes smart recommendations:
- **Quick Wins:** High effectiveness, low complexity/cost
- **Strategic Investments:** High effectiveness but resource-intensive
- **Implementation Priority:** Ordered by effectiveness-to-complexity ratio
All scoring is 100% local using metadata analysis - no ML inference or external APIs.| Parameter | Type | Description |
|---|---|---|
| include_recommendations | boolean | Include prioritization recommendations (default: true) |
| technique_ids * | array | List of technique IDs to compare (e.g., ['AID-H-001', 'AID-D-002']) |
comprehensive_search🔍 Auto-expanding semantic search for exploratory questions. Perfect when you don't know the exact keywords to search.
✅ USE THIS when:
- Broad exploratory questions ('What defenses exist for deepfakes?')
- User unsure of technical terminology or related concepts
- Want comprehensive coverage across multiple related topics
- Exploring a new threat landscape
❌ DON'T USE when:
- Known specific threat ID (LLM01, T0043) → use get_defenses_for_threat
- Precise keyword search → use query_aidefend (faster)
- Need code/implementation details → use get_technique_detail afterward
- User already knows exact technique ID → use get_technique_detail
This tool automatically generates 4-5 related queries (e.g., 'deepfakes' → 'synthetic media', 'deepfake detection', 'media manipulation'), executes them in parallel, deduplicates results by source_id, and provides coverage summary showing tactics/pillars distribution.| Parameter | Type | Description |
|---|---|---|
| include_subtechniques | boolean | Include sub-techniques in results (default: true) |
| max_results | integer | Maximum total results to return (5-50, default: 20) |
| topic * | string | Broad topic to search comprehensively. Examples: 'deepfakes', 'prompt injection', 'model poisoning', 'RAG vulnerabilities', 'supply chain security', 'adversarial attacks' |
generate_incident_playbook🚨 Generate structured incident response playbook based on threat classification.
Provides timeline-based action plan following NIST incident response phases:
1. **Immediate Actions (0-15 min):** Assessment, team activation, evidence preservation
2. **Investigation (15 min - 2 hours):** Threat classification, scope analysis, IOC collection
3. **Containment (2-8 hours):** Isolation, defense deployment, attack vector blocking
4. **Recovery (8+ hours):** Security controls, service restoration, post-incident review
✅ USE THIS when:
- Responding to active AI/ML security incident
- Planning incident response procedures
- Training IR teams on AI-specific threats
- Documenting security incident workflows
Integrates with existing tools:
- Automatically classifies threats (via classify_threat)
- Recommends specific defense techniques (via get_defenses_for_threat)
- Provides context-aware, actionable checklists
100% local implementation - all analysis happens on your machine.| Parameter | Type | Description |
|---|---|---|
| incident_description * | string | Free-text description of the incident. Examples: 'Suspicious prompt injection attempts detected', 'Model outputs revealing training data', 'Unusual API query patterns suggesting model extraction' |
| include_defense_techniques | boolean | Include specific AIDEFEND defense techniques in playbook (default: true) |
get_aidefend_statusGet the current status of the AIDEFEND knowledge base, including total indexed documents, embedding model info, and sync status. Use this to check if the service is ready.get_defenses_for_threatFind AIDEFEND defense techniques for a specific threat. Supports threat IDs from the mapped framework set (e.g., 'LLM01', 'LLM03:2025', 'ML01:2023', 'ASI01:2026', 'T0043', 'NISTAML.031'), or natural language threat keywords (e.g., 'prompt injection'). Bare OWASP LLM IDs resolve to the active edition; superseded IDs migrate by declared risk concept and return structured resolution metadata. Retired MITRE ATLAS IDs resolve to their reviewed successor, or list candidates when the concept was split.| Parameter | Type | Description |
|---|---|---|
| threat_id | string | Threat ID or recognized OWASP LLM risk reference (e.g., 'LLM01', 'LLM03:2025', 'ML01:2023', 'T0043', 'NISTAML.031') |
| threat_keyword | string | Natural language threat keyword (e.g., 'prompt injection', 'model poisoning') |
| top_k | integer | Number of defense techniques to return (1-50, default: 10) |
get_implementation_planGet ranked recommendations for next defense techniques to implement based on heuristic scoring (threat importance, ease of implementation, phase weight, pillar weight). Use this to prioritize security investments. Note: This tool provides ONLY heuristic scores. You should use these scores to make final recommendations via your own reasoning. IMPORTANT: Use detail_level='detailed' to get actionable strategies and code snippets for top 5 recommendations, eliminating the need for subsequent get_technique_detail calls.| Parameter | Type | Description |
|---|---|---|
| detail_level | string | Level of detail: 'basic' (IDs only), 'standard' (brief summaries for top 5), 'detailed' (full summaries + code for top 5) |
| exclude_tactics | array | List of tactics to exclude (e.g., ['Model', 'Harden']) |
| implemented_techniques | array | List of already implemented technique IDs (optional) |
| top_k | integer | Number of recommendations to return (1-20, default: 10) |
get_quick_referenceGenerate a quick reference guide for a specific security topic. Provides actionable checklist organized by priority (quick wins, must-haves, nice-to-haves). Perfect for fast decision-making and presentations.| Parameter | Type | Description |
|---|---|---|
| format | string | Output format (default: checklist) |
| max_items | integer | Maximum items (5-20, default: 10) |
| topic * | string | Security topic (e.g., 'prompt injection', 'RAG security') |
get_secure_code_snippetExtract executable secure code snippets from AIDEFEND implementation guidance. Search by technique ID or topic keyword to get copy-paste ready code examples. Perfect for developers implementing specific security controls.| Parameter | Type | Description |
|---|---|---|
| language | string | Programming language filter (e.g., 'python', 'javascript') |
| max_snippets | integer | Maximum number of snippets (1-20, default: 5) |
| technique_id | string | Specific technique/subtechnique ID |
| topic | string | Topic keyword (e.g., 'input validation', 'RAG security') |
get_statisticsGet comprehensive statistics about the AIDEFEND knowledge base including total documents, breakdown by tactic/pillar/phase, threat framework coverage, and tools availability. Essential for understanding the scope of the knowledge base.get_technique_detailGet complete details for a specific AIDEFEND technique including all sub-techniques, implementation guidance with code examples, tool recommendations, and threat mappings. This is the primary tool for deep-diving into a specific defense technique.| Parameter | Type | Description |
|---|---|---|
| include_code | boolean | Include full code examples (default: true) |
| include_tools | boolean | Include tool recommendations (default: true) |
| technique_id * | string | Technique or sub-technique ID (e.g., 'AID-H-001', 'AID-H-002.002') |
get_threat_coverageAnalyze threat coverage for implemented defense techniques. Given a list of AIDEFEND technique IDs, calculates which threats are covered across all mapped external frameworks and provides coverage rates. Essential for tracking security posture and identifying gaps.| Parameter | Type | Description |
|---|---|---|
| implemented_techniques * | array | List of implemented technique IDs (e.g., ['AID-D-001', 'AID-H-002']) |
map_to_compliance_frameworkMap AIDEFEND techniques to compliance framework requirements (NIST AI RMF, EU AI Act, ISO 42001, CSA AI Controls, OWASP ASVS). Uses heuristic-based analysis for mapping (100% local, no external API calls). Critical for governance and audit.| Parameter | Type | Description |
|---|---|---|
| framework | string | Compliance framework (default: nist_ai_rmf) |
| technique_ids * | array | List of technique IDs to map |
query_aidefendSearch the AIDEFEND AI security defense knowledge base. Use this to find defense strategies, techniques, and best practices for AI/ML security threats like prompt injection, model poisoning, data extraction, etc. Returns relevant defense tactics and implementation guidance.| Parameter | Type | Description |
|---|---|---|
| query * | string | Your search query in natural language. Examples: 'how to prevent prompt injection', 'defend against model poisoning', 'secure AI supply chain' |
| top_k | integer | Number of results to return (default: 5, max: 20) |
sync_aidefendManually synchronize with the configured AIDEFEND source (the public GitHub repository by default) to fetch the latest defense tactics and techniques. Note: This may take a few minutes. Auto-sync runs every hour by default.validate_technique_idValidate if a technique ID exists and is correctly formatted. Provides fuzzy matching suggestions if ID is not found. Use this before querying specific techniques to avoid errors.| Parameter | Type | Description |
|---|---|---|
| technique_id * | string | Technique ID to validate (e.g., 'AID-H-001', 'AID-D-001.001') |
Security checks
6 checks have not been run yet.