Exploit-DB MCP Server
Integrates the Exploit-DB database with AI assistants to enable searching for exploits, shellcodes, and proof-of-concept code during penetration testing workflows. It allows users to perform keyword searches and direct CVE-to-exploit mappings to retrieve technical security data.
README
Exploit-DB MCP Server for Pentesting
A Model Context Protocol (MCP) server that integrates Exploit-DB with AI assistants like Open-WebUI for penetration testing workflows.
Features
🔍 Search Exploits - Search by keyword, CVE, platform, or type 📋 Get Exploit Code - Retrieve full exploit/PoC code by EDB-ID 🐚 Shellcode Search - Find shellcodes by platform and purpose 📊 Database Stats - Get insights into the exploit database 🎯 CVE Lookup - Direct CVE-to-exploit mapping
Quick Start
1. Setup
Run the setup script to install dependencies and extract the database:
.\setup.ps1
Or manually:
# Install dependencies
pip install -r requirements.txt
# Extract the exploit-db database (you already have the zip file)
# Extract exploitdb-main.zip to C:\Users\John\
2. Start the Server
# Option 1: Use the batch file
.\start.bat
# Option 2: Direct Python
python server.py
The server will start on stdio by default (for local MCP usage).
3. Connect to Open-WebUI
Method 1: Open-WebUI Admin Panel (Recommended)
-
Open Open-WebUI at http://localhost:3000
-
Go to Settings → Admin Panel → MCP Servers
-
Add a new MCP server:
- Name:
exploit-db - Type:
stdio - Command:
python - Args:
["C:\\Users\\John\\exploitdb-mcp-server\\server.py"] - Working Directory:
C:\Users\John\exploitdb-mcp-server
- Name:
-
Click Save and Restart the MCP connection
Method 2: Configuration File
Edit your Open-WebUI MCP configuration file (usually in ~/.openwebui/mcp.json or similar):
{
"mcpServers": {
"exploit-db": {
"command": "python",
"args": ["C:\\Users\\John\\exploitdb-mcp-server\\server.py"],
"cwd": "C:\\Users\\John\\exploitdb-mcp-server",
"env": {
"EXPLOITDB_PATH": "C:\\Users\\John\\exploitdb-main"
}
}
}
}
Method 3: Docker Open-WebUI
If running Open-WebUI in Docker, you'll need to:
- Mount the MCP server directory as a volume
- Install Python in the container
- Configure the MCP server path
Example docker-compose addition:
volumes:
- C:\Users\John\exploitdb-mcp-server:/mcp/exploitdb
- C:\Users\John\exploitdb-main:/data/exploitdb-main
environment:
- EXPLOITDB_PATH=/data/exploitdb-main
Available Tools
Once connected, your AI agent can use these tools:
search_exploits
Search the exploit database by keyword, platform, or type.
Example prompts:
- "Search for Apache exploits"
- "Find Windows privilege escalation exploits"
- "Search for remote code execution exploits in Linux"
search_by_cve
Search for exploits by CVE identifier.
Example prompts:
- "Find exploits for CVE-2024-1234"
- "What exploits exist for CVE-2023-12345?"
get_exploit_code
Retrieve the full exploit code by EDB-ID.
Example prompts:
- "Get the code for exploit 51234"
- "Show me EDB-51234"
search_shellcodes
Search for shellcodes in the database.
Example prompts:
- "Find Linux x86 shellcodes"
- "Search for bind shell shellcodes"
list_platforms
List all available platforms with exploit counts.
Example prompts:
- "What platforms are available?"
- "Show me platform statistics"
get_database_stats
Get comprehensive database statistics.
Example prompts:
- "What's in the exploit database?"
- "Show me database statistics"
Usage Examples
In Open-WebUI Chat
Once configured, you can chat with your AI assistant like this:
You: I need to test a Windows Server 2019 system for privilege escalation vulnerabilities.
What exploits are available?
AI: Let me search for Windows privilege escalation exploits.
[Uses search_exploits tool]
I found 47 Windows privilege escalation exploits. Here are the most relevant:
1. EDB-51234 - Windows Token Privilege Escalation (2024)
2. EDB-49876 - Windows Service Binary Hijacking (2023)
...
You: Show me the code for EDB-51234
AI: [Uses get_exploit_code tool]
Here's the full exploit code...
Creating a Pentesting Agent
You can create a custom agent in Open-WebUI with a system prompt like:
You are a penetration testing assistant with access to the Exploit-DB database.
Your capabilities:
- Search for exploits by keyword, CVE, platform, or type
- Retrieve full exploit code and PoC scripts
- Find relevant shellcodes for various platforms
- Provide context and remediation advice
Always:
1. Confirm the target system details before suggesting exploits
2. Explain the exploit and its requirements
3. Provide ethical hacking context and responsible disclosure guidelines
4. Suggest remediation steps alongside vulnerabilities
Remember: This tool is for authorized penetration testing only.
Database Information
The Exploit-DB database contains:
- 50,000+ exploits and proof-of-concepts
- 10,000+ shellcodes
- Coverage from 1998 to present
- Multiple platforms: Linux, Windows, macOS, Hardware, etc.
- Various types: Remote, Local, WebApps, DoS, etc.
Troubleshooting
Server won't start
- Check Python is installed:
python --version - Verify dependencies:
pip install -r requirements.txt - Check the database is extracted:
dir %USERPROFILE%\exploitdb-main
"Database not found" error
- Extract
exploitdb-main.ziptoC:\Users\John\ - Or set
EXPLOITDB_PATHenvironment variable to your database location
Open-WebUI not detecting tools
- Restart Open-WebUI after configuring MCP
- Check MCP server logs in Open-WebUI admin panel
- Verify the Python path is correct in the configuration
Slow searches
- Optional: Install
searchsploitfrom https://www.exploit-db.com/searchsploit - The server will automatically use it for faster searches
- Without it, CSV parsing is slower but still functional
Security Notes
⚠️ Important Security Considerations:
- Authorized Testing Only - Use this tool only on systems you have explicit permission to test
- Local Use - Keep this server local; don't expose it to the internet
- Responsible Disclosure - Follow responsible disclosure practices for any vulnerabilities found
- Ethical Hacking - This tool is for legitimate security research and testing
Contributing
To extend this server:
- Add new tools in
server.pyusing the@mcp.tool()decorator - Follow the FastMCP documentation for tool creation
- Test with the MCP Inspector:
npx @modelcontextprotocol/inspector python server.py
Support
Issues? Check:
- FastMCP docs: https://github.com/jlowin/fastmcp
- MCP specification: https://modelcontextprotocol.io
- Exploit-DB: https://www.exploit-db.com
License
This MCP server wrapper is provided as-is for educational and authorized security testing purposes. The Exploit-DB database is copyright Offensive Security and subject to their terms of use.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。