1. Conduid
  2. Agents
  3. Aidefend MCP
MCP server · Agents

Aidefend MCP

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.

53Fair

Scored 7 hours ago · breakdown

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

From source
git clone https://github.com/edward-playground/aidefend-mcp

Tools (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.
ParameterTypeDescription
implemented_techniques *arrayList of technique IDs already implemented
system_typestringOptional 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.
ParameterTypeDescription
implemented_techniquesarrayList of technique IDs already implemented (e.g., ['AID-H-001', 'AID-D-001']). Use empty array [] for baseline analysis.
system_typestringOptional system type for context-aware analysis
viewstringAnalysis 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.
ParameterTypeDescription
text *stringInput text containing threat-related content (e.g., incident report, alert)
top_kintegerMaximum 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.
ParameterTypeDescription
include_recommendationsbooleanInclude prioritization recommendations (default: true)
technique_ids *arrayList 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.
ParameterTypeDescription
include_subtechniquesbooleanInclude sub-techniques in results (default: true)
max_resultsintegerMaximum total results to return (5-50, default: 20)
topic *stringBroad 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.
ParameterTypeDescription
incident_description *stringFree-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_techniquesbooleanInclude 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.
ParameterTypeDescription
threat_idstringThreat ID or recognized OWASP LLM risk reference (e.g., 'LLM01', 'LLM03:2025', 'ML01:2023', 'T0043', 'NISTAML.031')
threat_keywordstringNatural language threat keyword (e.g., 'prompt injection', 'model poisoning')
top_kintegerNumber 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.
ParameterTypeDescription
detail_levelstringLevel of detail: 'basic' (IDs only), 'standard' (brief summaries for top 5), 'detailed' (full summaries + code for top 5)
exclude_tacticsarrayList of tactics to exclude (e.g., ['Model', 'Harden'])
implemented_techniquesarrayList of already implemented technique IDs (optional)
top_kintegerNumber 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.
ParameterTypeDescription
formatstringOutput format (default: checklist)
max_itemsintegerMaximum items (5-20, default: 10)
topic *stringSecurity 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.
ParameterTypeDescription
languagestringProgramming language filter (e.g., 'python', 'javascript')
max_snippetsintegerMaximum number of snippets (1-20, default: 5)
technique_idstringSpecific technique/subtechnique ID
topicstringTopic 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.
ParameterTypeDescription
include_codebooleanInclude full code examples (default: true)
include_toolsbooleanInclude tool recommendations (default: true)
technique_id *stringTechnique 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.
ParameterTypeDescription
implemented_techniques *arrayList 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.
ParameterTypeDescription
frameworkstringCompliance framework (default: nist_ai_rmf)
technique_ids *arrayList 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.
ParameterTypeDescription
query *stringYour search query in natural language. Examples: 'how to prevent prompt injection', 'defend against model poisoning', 'secure AI supply chain'
top_kintegerNumber 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.
ParameterTypeDescription
technique_id *stringTechnique ID to validate (e.g., 'AID-H-001', 'AID-D-001.001')

Security checks

6 checks have not been run yet.

Questions

About Aidefend MCP

How do I install Aidefend MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Aidefend MCP safe to use with an AI agent?

Its trust score is 53 out of 100 (fair). Conduid hasn't run static security checks on this repository yet, so review the source yourself before granting it credentials. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Aidefend MCP still maintained?

Yes — the last commit was yesterday. The repository has 20 stars and 5 forks.

What tools does Aidefend MCP provide?

Conduid read 18 tools from the source: analyze_coverage, analyze_security_posture, classify_threat, compare_techniques, comprehensive_search, generate_incident_playbook, get_aidefend_status, get_defenses_for_threat and 10 more. 15 of them publish their parameters, listed under Tools above.