VibeDefender MCP Server
Provides security assessment methodology, tool documentation, and step-by-step workflows to guide AI agents through vulnerability scanning, static analysis, and penetration testing of applications and URLs.
README
<div align="center">
๐ก๏ธ VibeDefender
Security Knowledge MCP Server for AI Coding Agents
Guide your AI agents through professional security assessments with methodology, documentation, and step-by-step workflows covering OWASP Top 10 and beyond.
Installation โข Features โข Quick Start โข Configuration โข Documentation
</div>
๐ Why VibeDefender?
Your AI coding agent (Claude Code, Cursor, etc.) already knows how to run commands. VibeDefender teaches it WHEN, WHY, and HOW to run security tools like a professional pentester.
Instead of guessing which security tools to run, your AI gets:
- ๐ Step-by-step security methodology - Professional assessment workflows
- ๐ฏ Plain English guidance - No security expertise required
- ๐ง Tool installation guides - Automated setup assistance
- ๐ Always-current documentation - Live tool documentation proxy
- โ OWASP Top 10 coverage - Industry-standard vulnerability detection
โญ If you find VibeDefender useful, please star this repo! It helps others discover professional security testing for AI agents.
๐ฆ Installation
Direct from GitHub (Recommended)
npx github:yunusj/VibeDefender-MCP
This automatically clones, installs dependencies, builds, and runs the MCP server.
Global Installation
npm install -g github:yunusj/VibeDefender-MCP
vibedefender-mcp
โจ Features
๐ฏ What Makes VibeDefender Different
โ Knowledge-First Approach - Guides AI agents instead of executing tools directly โ 5 Pre-Built Security Workflows - Setup, full scan, pre-push check, live testing, URL scanning โ OWASP Top 10 Coverage - Comprehensive vulnerability detection (injection, XSS, auth, etc.) โ Mandatory Runtime Analysis - Not just static analysis - tests your running application โ Artifact Generation - Saves all scan results as JSON + markdown reports โ Zero Security Knowledge Required - Plain English explanations for non-security developers โ Tool Agnostic - Works with any MCP-compatible AI editor (Claude Code, Cursor, etc.)
๐ง Integrated Security Tools
- Trivy - CVE and dependency vulnerability scanning
- Semgrep - Static code analysis with 2000+ security rules
- Nuclei - Runtime security testing with template-based scanning
- Metasploit - Optional integration for discovery and exploitation
๐ค Supported AI Editors
| Editor | Status | Notes |
|---|---|---|
| Claude Code | โ Fully Supported | Native MCP support |
| Cursor | โ Fully Supported | MCP configuration required |
| Claude Desktop | โ Fully Supported | Config in claude_desktop_config.json |
| Google Antigravity | โ Fully Supported | Same config as Claude Desktop |
๐ง Philosophy
The MCP GUIDES, not executes.
Your AI agent (Claude Code, Cursor, etc.) already has the ability to run CLI commands. This MCP provides:
- ๐ Step-by-step methodology for security assessments
- ๐ง Installation guides for required tools
- ๐ฌ Plain English explanations for non-technical users
- ๐ Documentation proxy for always-current tool docs
โก Quick Start
- Install and configure (one-time setup):
{
"mcpServers": {
"vibedefender": {
"command": "npx",
"args": ["github:yunusj/VibeDefender-MCP"]
}
}
}
- Talk to your AI agent in plain English:
| What You Say | What Happens |
|---|---|
| ๐ฌ "Help me set up security scanning" | ๐ง AI installs Trivy, Semgrep, Nuclei with guided steps |
| ๐ฌ "Scan my code for security issues" | ๐ Full scan: dependencies + code + runtime + artifacts |
| ๐ฌ "Check my code before I push" | โก Fast critical-only check (< 30 seconds) |
| ๐ฌ "Test my app on localhost" | ๐ Starts dev server + runs live security tests |
| ๐ฌ "Check this URL for vulnerabilities" | ๐ฏ Tests specific URL with authorization check |
- Get professional security reports with actionable fixes:
โ
All scans saved to: security-scan-20241220-143022/
โโโ trivy-results.json (Dependency vulnerabilities)
โโโ semgrep-results.json (Code security issues)
โโโ nuclei-results.json (Runtime vulnerabilities)
โโโ REPORT.md (Human-readable summary)
โ๏ธ Configuration
Claude Code
Add to your Claude Code MCP settings:
{
"mcpServers": {
"vibedefender": {
"command": "npx",
"args": ["github:yunusj/VibeDefender-MCP"]
}
}
}
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"vibedefender": {
"command": "npx",
"args": ["github:yunusj/VibeDefender-MCP"]
}
}
}
Cursor
Add to Cursor's MCP settings (Settings โ Features โ MCP):
{
"mcpServers": {
"vibedefender": {
"command": "npx",
"args": ["github:yunusj/VibeDefender-MCP"]
}
}
}
Google Antigravity
Same configuration as Claude Desktop.
๐งช Testing with MCP Inspector
Test the server before configuring in your editor:
npm install -g @modelcontextprotocol/inspector
npx @modelcontextprotocol/inspector npx github:yunusj/VibeDefender-MCP
Expected: Web UI shows "Connected", lists all security:// resources and 5 workflow prompts.
๐ฏ Available Workflows
| Workflow | Trigger Phrase | What It Does |
|---|---|---|
๐ง setup |
"Help me set up security scanning" | Checks installed tools, guides installation |
๐ scan |
"Scan my code for security issues" | Full scan: static + runtime + artifacts |
โก pre-push |
"Check my code before I push" | Fast check: critical issues only (< 30s) |
๐ scan-live |
"Test my app on localhost" | Starts dev server + runs live tests |
๐ฏ scan-url |
"Check this URL for vulnerabilities" | Tests specific URL (requires authorization) |
๐ ๏ธ Required Tools
The MCP guides you through installing these (just say "help me set up"):
| Tool | Purpose | Install (macOS) |
|---|---|---|
| ๐ Trivy | CVE/dependency scanning | brew install aquasecurity/trivy/trivy |
| ๐ Semgrep | Static code analysis | brew install semgrep |
| ๐ Nuclei | Runtime testing (mandatory) | brew install nuclei |
๐๏ธ Metasploit Integration
Metasploit Framework is integrated for both discovery (reconnaissance) and exploitation phases.
Setup
- Install external Metasploit MCP server:
# Clone the Metasploit MCP repository
git clone https://github.com/your-org/MetasploitMCP ~/MetasploitMCP
- Set environment variable (add to
~/.bashrcor~/.zshrc):
export METASPLOIT_MCP_PATH="$HOME/MetasploitMCP/start_mcp.sh"
- Verify installation:
npm run mcp:metasploit
# Should output: "Metasploit MCP Proxy running on stdio"
Usage
Discovery Phase (Automatic):
- Runs safe auxiliary modules for service detection
- Port scanning and version detection
- Correlates findings with CVE database
- No exploitation attempts
Exploitation Phase (Requires Approval):
- Executes exploits against validated vulnerabilities
- Requires explicit human approval
- Full session management and post-exploitation
- Evidence gathering only (read-only)
Safety
โ ๏ธ CRITICAL: Authorization Required
- Only use on systems you own OR have written permission to test
- Unauthorized access to computer systems is illegal
- Discovery phase: Basic authorization sufficient
- Exploitation phase: Explicit approval required
๐ Documentation
- See
security://methodology/exploitationfor complete exploitation workflow - See
security://docs/metasploitfor detailed tool usage - Includes safety guidelines, workflow examples, and troubleshooting
๐ Available Resources
๐ Methodology Guides
| Resource | Description |
|---|---|
security://methodology/discovery |
๐ How to find attack surface |
security://methodology/scanning |
๐ What to scan, in what order |
security://methodology/validation |
โ How to validate on live targets |
security://methodology/reporting |
๐ How to structure reports |
๐ Reference Documentation
| Resource | Description |
|---|---|
security://reference/severity |
๐จ What CRITICAL/HIGH/MEDIUM/LOW mean |
security://reference/cwe-top-25 |
๐ Common weakness types |
security://reference/owasp-top-10 |
๐ก๏ธ OWASP vulnerability categories |
security://reference/browser-options |
๐ Browser automation choices |
๐ง Tool Documentation
| Resource | Description |
|---|---|
security://docs/overview |
๐ Overview of all tools |
security://docs/trivy |
๐ Trivy quick start |
security://docs/semgrep |
๐ Semgrep quick start |
security://docs/nuclei |
๐ Nuclei quick start |
security://docs/playwright |
๐ญ Playwright MCP info |
security://docs/metasploit |
๐๏ธ Metasploit basics |
๐ก Example Workflows
First Time Setup
You: Help me set up security scanning
AI: I'll check what tools you have installed...
[Runs version checks]
You're missing Trivy and Semgrep. Let me help you install them.
Trivy checks your dependencies for known vulnerabilities.
Run this to install: brew install aquasecurity/trivy/trivy
...
Before Pushing Code
You: Check my code before I push
AI: Running quick pre-push security check...
[Runs trivy + semgrep for CRITICAL issues only]
โ
All clear! No critical security issues found. Safe to push.
For a comprehensive scan including runtime testing, use the 'scan' workflow.
Full Security Scan
You: Scan my code for security issues
AI: I see this is a Node.js project using Express.
First, checking for known vulnerabilities in dependencies...
[Runs trivy]
Found 3 critical issues in your packages:
1. lodash < 4.17.21 - allows prototype pollution
Fix: npm update lodash
...
๐ Project Structure
src/
โโโ index.ts # Main MCP server entry point
โโโ resources/
โ โโโ static.ts # Bundled methodology & references
โ โโโ dynamic.ts # Tool documentation with search guidance
โโโ prompts/
โโโ workflows.ts # 5 user-friendly workflow prompts
๐จ Design Decisions
- ๐ซ No execution tools - AI agents already have CLI access. We provide knowledge.
- ๐ฌ Plain English - Everything explained for non-technical users.
- ๐ Step-by-step - Prompts tell the AI exactly what to do at each step.
- ๐ Documentation proxy - Search patterns for always-current tool docs.
- ๐ฆ Minimal files - 4 files total, easy to understand and maintain.
- ๐ GitHub-based distribution - No npm publish, direct from source via npx.
๐ Browser Automation Options
For live testing that needs a browser:
| Option | When to Use |
|---|---|
| Playwright MCP | Claude Code, Cursor, most IDEs |
| Browser Agent | Google Antigravity IDE (built-in) |
| Puppeteer | If already in project |
๐ง Troubleshooting
Build Errors
If you see TypeScript compilation errors when installing from GitHub:
npm cache clean --force
npx github:yunusj/VibeDefender-MCP
MCP Server Not Connecting
- Test with MCP Inspector first (see "Testing" section above)
- Check Node.js version:
node --version(requires >= 22.0.0) - Verify the server runs standalone:
npx github:yunusj/VibeDefender-MCP # Should output: "Security Knowledge MCP server running on stdio" - Check editor configuration file syntax (valid JSON)
- Restart your AI editor after configuration changes
Permission Errors
If you get EACCES errors:
# On Unix-like systems, the shebang should make it executable
# If not, manually set permissions on global install:
chmod +x $(which vibedefender-mcp)
Update to Latest Version
npm cache clean --force
npx github:yunusj/VibeDefender-MCP
# Or for global install
npm uninstall -g vibedefender-mcp
npm install -g github:yunusj/VibeDefender-MCP
โ ๏ธ Security Notice
- โ Only scan systems you are authorized to test
- ๐ Live validation (scan-url, scan-live) requires explicit authorization
- ๐ค The AI will ask for confirmation before testing URLs
- ๐ Always get written permission before security testing
- ๐ก๏ธ Follow responsible disclosure practices
<div align="center">
๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
๐ License
MIT License - see LICENSE for details
โญ Show Your Support
If VibeDefender helps secure your code, please star this repository!
Made with ๐ก๏ธ by security professionals, for developers
</div>
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.